GNOME Bugzilla – Bug 782508
Segmentation fault when presentation is opened two times in a row
Last modified: 2021-07-05 11:31:00 UTC
See this RHEL bug: https://bugzilla.redhat.com/show_bug.cgi?id=1444437 Previewing two presentations (PPT, PPTX, ODP) , one after the another, leads to a crash with this backtrace: Core was generated by `/usr/bin/gjs-console /usr/bin/gnome-documents'. Program terminated with signal SIGSEGV, Segmentation fault.
+ Trace 237469
Thread 12 (Thread 0x7f31d071e700 (LWP 28097))
Thread 10 (Thread 0x7f31e3198700 (LWP 28010))
Thread 8 (Thread 0x7f31c0126700 (LWP 28098))
Thread 1 (Thread 0x7f31fe0b2a80 (LWP 28004))
Created attachment 351617 [details] [review] lokview: Fix crash on repeated open of presentations
That's Caolan's patch from https://bugzilla.redhat.com/show_bug.cgi?id=1444437. I tweaked it to use vfunc_destroy like the Preview base-class instead of a signal connection.
Created attachment 351658 [details] [review] lokview: Fix crash on repeated open of presentations I forgot to remove the tabs.
Review of attachment 351658 [details] [review]: I am confused why this is needed in practice, since we always call destroy() on the old preview before creating a new one, and destroying the main widget should cause the lokview to be destroyed too. Does that not happen?
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/gnome-documents/-/issues/ Thank you for your understanding and your help.