GNOME Bugzilla – Bug 782678
Regularly crashes shortly after startup: gbp_flatpak_application_addin_has_runtime: assertion failed: (id != NULL)
Last modified: 2017-05-18 03:15:37 UTC
Using the latest Stable Flatpak version, Build regularly crashes shortly after starting it with this error message: gbp-flatpak-application-addin:ERROR:gbp-flatpak-application-addin.c:685:gbp_flatpak_application_addin_has_runtime: assertion failed: (id != NULL)
Hrmm, it'd be really nice if we had a stack trace for this. I can easily work around the assertion, but without a stack trace I'm concerned we might be in a situation where we have a NULL runtime id floating around somewhere it shouldn't.
I tried to generate one before writing this report but with no success: 'coredumpctl gdb' -> 'bt' gave no symbols. Is there any way to work around that?
You probably need to do something like the following to get debug symbols: flatpak install gnome-apps org.gnome.Builder.Debug Then something like: flatpak run --command=bash org.gnome.Builder bash$ gdb --args gnome-builder -vvvv ... crash gdb) bt
Thanks, here is what I got: gbp-flatpak-application-addin:ERROR:gbp-flatpak-application-addin.c:685:gbp_flatpak_application_addin_has_runtime: assertion failed: (id != NULL) Thread 1 "gnome-builder" received signal SIGABRT, Aborted. 0x0000003cd003304f in raise () from /lib/libc.so.6 (gdb) bt
+ Trace 237488
Oh and just before that there is this debug message (dunno if it's related): 11:25:06.0190 flatpak[17]: DEBUG: Using cached summary for remote org.gnome.Games-origin
Created attachment 352058 [details] [review] flatpak: handle NULL parameters gracefully These can happen in various places where we read an id/branch/arch out of ancillary data and it is empty. In most places we use g_strcmp0() to be NULL-safe, to to simplify those code-paths, just handle NULL here.
Thanks for tracking stuff down! Based on the issue, I'm fine with just reducing our assertion shere and gracefully handling NULL. The associated patch does just that. Attachment 352058 [details] pushed as fc76d45 - flatpak: handle NULL parameters gracefully