Crash related to phosh-toplevel-manager on_toplevel_closed -- Phosh killed by signal 6
This crash happened today on a Librem 5 Birch just as I was trying to make a phone call. One problem was the "Invalid country calling code" thing but that can be fixed by changing locale, and the "only emergency calls allowed" may be because the prepaid period for my sim card expired, not sure about that but anyway the more important issue is that phosh crashed.
Here is the journalctl output from around the crash:
Dec 30 10:04:18 pureos ModemManager[506]: <info> [modem3/call0] user request to start call
Dec 30 10:04:18 pureos ModemManager[506]: <info> [modem3/call0] call state changed: unknown -> terminated (unknown)
Dec 30 10:04:18 pureos calls[906]: Error parsing phone number `070xxxxxxx': Invalid country calling code
Dec 30 10:04:18 pureos gsd-color[802]: unable to get EDID for xrandr-DSI-1: unable to get EDID for output
Dec 30 10:04:18 pureos calls[906]: Error starting outgoing call ModemManager call to `070xxxxxxx': GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unauthorized: only emergency calls allowed
Dec 30 10:04:18 pureos sm.puri.Phosh.desktop[657]: **
Dec 30 10:04:18 pureos sm.puri.Phosh.desktop[657]: phosh-toplevel-manager:ERROR:../src/toplevel-manager.c:83:on_toplevel_closed: 'g_ptr_array_remove (self->toplevels, toplevel)' should be TRUE
Dec 30 10:04:18 pureos gnome-session-binary[604]: WARNING: Application 'sm.puri.Phosh.desktop' killed by signal 6
Dec 30 10:04:18 pureos gnome-session[604]: gnome-session-binary[604]: WARNING: Application 'sm.puri.Phosh.desktop' killed by signal 6
Dec 30 10:04:18 pureos polkitd(authority=local)[467]: Unregistered Authentication Agent for unix-session:1 (system bus name :1.59, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, local e C.UTF-8) (disconnected from bus)
Dec 30 10:04:18 pureos gnome-session-binary[604]: Unrecoverable failure in required component sm.puri.Phosh.desktop
I tried many times to reproduce it and managed to do that once, so the crash has happened twice so far. The way to reproduce it seems to be to attempt such a failing phone call many many times, then there seems to be a small probability of this happening. Despite more attempts I was not able to reproduce it again, so it only happened twice so far.
Here is the journalctl output from around the crash for the second time it happened:
Dec 30 11:10:32 pureos calls[1268]: Error starting outgoing call ModemManager call to `+4670xxxxxxx': GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unauthorized: only emergency calls allowed
Dec 30 11:10:32 pureos sm.puri.Phosh.desktop[668]: **
Dec 30 11:10:32 pureos sm.puri.Phosh.desktop[668]: phosh-toplevel-manager:ERROR:../src/toplevel-manager.c:83:on_toplevel_closed: 'g_ptr_array_remove (self->toplevels, toplevel)' should be TRUE
Dec 30 11:10:32 pureos gnome-session-binary[612]: Unrecoverable failure in required component sm.puri.Phosh.desktop
The journalctl output above does point to a specific place in the code, src/toplevel-manager.c:83 and a g_ptr_array_remove() call there, hopefully that can be useful info even if the issue is hard to reproduce.
Phosh version: 0.7.1