We have moved to a new Sailfish OS Forum. Please start new discussions there.
3

Why do piped dbus-monitor commands crash?

asked 2015-03-29 10:59:51 +0300

rdmo gravatar image

When trying to pipe dbus-monitor into a command and then >> to a file, sometimes Fingerterm closes without notice when the command has collected several seconds of dbus-monitor output and user interaction events. Why is this? Does dbus-monitor start to catch itself monitoring itself and get infinite recursive feedback, does it run out of memory, or is it likely something simpler? Since the GUI from which I run dbus-monitor closes, it's hard to tell from here.

edit retag flag offensive close delete

Comments

You could try to run it from a ssh session, to see if it behaves the same way there?

juiceme ( 2015-03-29 19:34:08 +0300 )edit

I'll get back to you on that, hopefully later in the week.

rdmo ( 2015-03-29 20:10:40 +0300 )edit

Am thinking if such topics are best discussed over IRC \ Dev Mailing list...

anandrkris ( 2015-03-29 20:56:46 +0300 )edit

Or, enable the option to background dbus-monitor so that its output appears in dmesg, on Linux and particularly Sailfish, such as:

dbus-monitor --dmesg

It would be especially helpful if users could configure this in the Jolla Settings GUI:

Dbus monitoring: on/off

I know there may be nuanced arguments for and against this. Please refrain from comments like 'it is not a priority' and 'the Jolla developers are working on more important issues'.

That is a given assumption and voting up or down is more helpful. Please comment on the merits of and issues raised by this change to the role and positioning of dbus-monitor.

rdmo ( 2015-04-04 11:39:30 +0300 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2015-03-30 06:50:03 +0300

rdmo gravatar image

updated 2015-05-02 23:09:07 +0300

In Fingerterm , signals=$(dbus-monitor) may be safer (crashes may be silent) and mostly affect nothing else (AFAIK).

Use echo $signals >>filename to write $signals (dbus output, normally text) to a file.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2015-03-29 10:59:51 +0300

Seen: 335 times

Last updated: May 02 '15