Crash when loading a pcap with a method call with two valid returns
Reproducer:
BT:
$ RUST_BACKTRACE=1 RUST_LOG=bustle flatpak run org.freedesktop.Bustle
2024-04-16T07:00:06.893507Z INFO bustle::application: Bustle (org.freedesktop.Bustle)
2024-04-16T07:00:06.893551Z INFO bustle::application: Version: 0.9.2 ()
2024-04-16T07:00:06.893555Z INFO bustle::application: Datadir: /app/share/bustle
2024-04-16T07:00:06.897752Z DEBUG bustle::application::imp: GtkApplication<Application>::startup
2024-04-16T07:00:07.067749Z DEBUG bustle::application::imp: GtkApplication<Application>::activate
(bustle:2): GVFS-WARNING **: 09:00:08.743: The peer-to-peer connection failed: Error when getting information for file “/run/user/10055/gvfsd”: No such file or directory. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.
(bustle:2): GVFS-WARNING **: 09:00:08.744: The peer-to-peer connection failed: Error when getting information for file “/run/user/10055/gvfsd”: No such file or directory. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.
(bustle:2): Gtk-WARNING **: 09:00:08.763: Failed to measure available space: Error getting filesystem info for /home/msandoval/Documents/proxmox: No such file or directory
(bustle:2): Gtk-WARNING **: 09:00:08.763: Failed to measure available space: Error getting filesystem info for /home/msandoval/Documents/m.sandoval: No such file or directory
(bustle:2): GVFS-WARNING **: 09:00:08.765: The peer-to-peer connection failed: Error when getting information for file “/run/user/10055/gvfsd”: No such file or directory. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.
(bustle:2): GVFS-WARNING **: 09:00:08.766: The peer-to-peer connection failed: Error when getting information for file “/run/user/10055/gvfsd”: No such file or directory. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.
(bustle:2): GVFS-WARNING **: 09:00:08.770: The peer-to-peer connection failed: Error when getting information for file “/run/user/10055/gvfsd”: No such file or directory. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.
(bustle:2): GVFS-WARNING **: 09:00:08.771: The peer-to-peer connection failed: Error when getting information for file “/run/user/10055/gvfsd”: No such file or directory. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.
(bustle:2): GVFS-WARNING **: 09:00:08.771: The peer-to-peer connection failed: Error when getting information for file “/run/user/10055/gvfsd”: No such file or directory. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.
2024-04-16T07:00:10.470637Z DEBUG bustle::message_list: Loaded PCAP file path="/run/user/10055/doc/b8d4450c/logs.pcap" header=PcapHeader { version_major: 2, version_minor: 4, ts_correction: 0, ts_accuracy: 0, snaplen: 134217728, datalink: DBUS, ts_resolution: MicroSecond, endianness: Little }
thread 'main' panicked at src/message.rs:118:14:
associated message must not be set twice: WeakRef(GWeakRef @ 0x572dc6813160 { priv_: GWeakRef_priv @ 0x572dc6813160 { p: 0x572dc6813140 } }, PhantomData<*mut bustle::message::Message>)
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.