Products › lamco-dbus-tools › Use cases
Message recipient disconnected from message bus without replying
Message recipient disconnected from message bus without replying: A D-Bus service crash caught from a recording, replayed, and handed over as a script.
A settings service crashes on a call, the caller gets NoReply, and the bus starts the service again
the next time it's asked, so by the time anyone looks all is well. The error reads:
Message recipient disconnected from message bus without replying
lamco-dbus-tools caught and reproduced it with dbussee, which recorded the bus, dbusdo, which
relayed the application's messages, sent the calls again and wrote the script, and dbustell, which said what
happened to the service.
A real run on 2026-12-01 on Debian 13 against a private dbus-daemon 1.16.2, with a development build of
lamco-dbus-tools, version 0.1.0. run.sh ran it, settings.py and app.py are the made-up
service and application, not real ones, run.txt is what it printed, and out/ holds the
captures, the recording and the script.
The symptom
A settings application applies a dark theme and the settings service disappears; the bus starts it again the next time anything asks for it, so by the time anyone looks, all is well. The service's developers can't make it happen. The task is to catch what the application sent, show that sending it again reproduces the crash, and hand over something they can run.
What the application sent
The application runs behind dbusdo relay, which stands between it and the bus and records each message both
ways, while a recording of the whole bus runs beside it:
$ dbussee record --all --bodies raw --stats 0.5 --duration 4 --out crash.json &
$ dbusdo --out relay.json relay --bodies decoded -- python3 app.py
apply failed: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
Relayed 3 messages to the bus and 4 back, on 1 connections, 0 descriptors passed. The bus saw this relay, process 2605852, where the program is process 2605854. ...
relay.json holds the application's own messages with their decoded values (relay-messages), and the relay's
account of itself (driver-acts). The recording beside it says what happened to the service:
$ dbustell names crash.json
2 well-known names; 1 of them changed during the recording. 2 connections joined and 2 left.
NAME AT OLD OWNER NEW OWNER
com.example.Settings 585.87 ms - :1.3
com.example.Settings 588.44 ms :1.3 -
Lost and not retaken by the end: com.example.Settings
$ dbustell errors crash.json
1 errors: 1 from the bus itself, 0 from services.
From the bus, about calls to services: Refused, not delivered, or not answered in time:
1 org.freedesktop.DBus.Error.NoReply, answering com.example.Settings com.example.Settings.Apply
The bus started the service for the application's first call, and 2.6 ms later at the bus, by the recorder's clock, the service was gone: It left
without answering Apply, and the bus answered for it with NoReply.
The crash again, from the recording
replay sends a recording's method calls to a well-known name again, built from their recorded bytes, which is
what --bodies raw kept, and says which ended differently:
$ dbusdo replay --service com.example.Settings --speed 2 crash.json
2 calls sent again: 2 ended as they did, 0 differently, 0 had no answer.
Ended as they did means the property was set again and Apply ended in NoReply again: The bus started the
service, and it crashed the same way. --service takes only the calls to that name, and --speed 2 sends them at
twice the recorded pace.
Something to hand over
A recording of a chain keeps each command with the moment it ran. soft lets the chain go on past a command
that fails, retry 2 tries the next one twice, pause waits:
$ dbusdo --record repro.dbusdo soft retry 2 set com.example.Settings /settings com.example.Settings.Theme s dark pause 0.2 soft call com.example.Settings /settings com.example.Settings.Apply
...
call com.example.Settings /settings com.example.Settings.Apply: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying (allowed to fail)
$ cat repro.dbusdo
# dbusdo recording, version 1
@0.000 soft retry 2 set com.example.Settings /settings com.example.Settings.Theme s dark
@0.042 pause 0.2
@0.242 soft call com.example.Settings /settings com.example.Settings.Apply
$ dbusdo play repro.dbusdo 2
...
call com.example.Settings /settings com.example.Settings.Apply: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying (allowed to fail)
play runs it again, here at twice the speed, and the crash comes again. For the developers, a script without
the timing, which run runs:
$ dbusdo convert repro.dbusdo repro.dbusdo-script
$ cat repro.dbusdo-script
# dbusdo script, from repro.dbusdo
soft retry 2 set com.example.Settings /settings com.example.Settings.Theme s dark
pause 0.2
soft call com.example.Settings /settings com.example.Settings.Apply
$ dbusdo run repro.dbusdo-script
...
call com.example.Settings /settings com.example.Settings.Apply: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying (allowed to fail)
For the bug report
The service's interface as it describes itself, from the path it serves, asked with the flag that forbids starting it (it was started first):
$ dbussee --out interface.json introspect com.example.Settings --path /settings --max-objects 10
/settings
com.example.Settings: 1 methods, 0 signals, 1 properties
com.example.Settings (:1.13) asked at 1 objects from /settings, with the no-start flag: 1 with interfaces of its own, 0 failed
And the bus's own counters, to show nothing was piling up for anyone, polled twice half a second apart; the
recording above polled them too (--stats 0.5, its bus-counters records):
$ dbussee stats --count 2 --every 0.5 --top 3
2 polls over 500.94 ms, asked with GetStats, and GetConnectionStats for each connection. ...
CONNECTION MOST LAST EVER NOTE
:1.17 0 B 0 B 556 B
:1.13 (com.example.Settings) 0 B 0 B 185 B
The recording, the relay's capture, the script and the interface are what goes to the developers; crash.json is
better scrubbed first, and read before it's sent, as the upgrade use case shows.