GNOME Bugzilla – Bug 789511
gnome-font-viewer crashed with SIGSEGV in g_type_check_instance_cast()
Last modified: 2017-10-30 22:30:51 UTC
Original Ubuntu Launchpad bug report: https://bugs.launchpad.net/ubuntu/+source/gnome-font-viewer/+bug/1726286 For me it crashes whenever I open it by double-clicking its icon anywhere Gnome Shell. For some reason it runs more reliably if I start it from a terminal. (I've seen it segfault once that way too, but after running a while.) All original attachments available on Launchpad, no idea where mine are because I chose to add to the same bug rather than report a new one. Original description: Fresh Ubuntu 17.10 install on ASUS UX-303LA laptop, opened font viewer and after a couple of secs it has crashed ProblemType: Crash DistroRelease: Ubuntu 17.10 Package: gnome-font-viewer 3.26.0-1 ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4 Uname: Linux 4.13.0-16-generic x86_64 ApportVersion: 2.20.7-0ubuntu3 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Mon Oct 23 10:42:14 2017 ExecutablePath: /usr/bin/gnome-font-viewer InstallationDate: Installed on 2017-10-21 (1 days ago) InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018) ProcCmdline: /usr/bin/gnome-font-viewer --gapplication-service SegvAnalysis: Segfault happened at: 0x7fa952064dd6 <g_type_check_instance_cast+22>: mov (%rdi),%rdi PC (0x7fa952064dd6) ok source "(%rdi)" (0x4238317839080030) not located in a known VMA region (needed readable region)! destination "%rdi" ok SegvReason: reading unknown VMA Signal: 11 SourcePackage: gnome-font-viewer StacktraceTop: g_type_check_instance_cast () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 ?? () g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 Title: gnome-font-viewer crashed with SIGSEGV in g_type_check_instance_cast() UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
Thanks for taking the time to report this. Without a stack trace from the crash it's very hard to determine what caused it. Can you get us a stack trace? Please see https://wiki.gnome.org/Community/GettingInTouch/Bugzilla/GettingTraces for more information on how to do so. When pasting a stack trace in this bug report, please reset the status of this bug report from NEEDINFO to its previous status. Thanks in advance!
...and that stacktrace should include all debug symbols.
Created attachment 362398 [details] apport crash report No core dump, as file was too large with it.
As for the status, I can only choose between NEEDINFO and RESOLVED. I'm guessing NEEDINFO is safer.
We still need a stacktrace with debug symbols...
Tharr you go: (gdb) r Starting program: /usr/bin/gnome-font-viewer [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffebb5e700 (LWP 3517)] [New Thread 0x7fffeb35d700 (LWP 3518)] [New Thread 0x7fffea94f700 (LWP 3519)] (gnome-font-viewer:3513): Gtk-WARNING **: Theme parsing error: gtk.css:7:48: Junk at end of value for background-color (gnome-font-viewer:3513): Gtk-WARNING **: Theme parsing error: gtk.css:8:0: 'trans' is not a valid property name [New Thread 0x7fffe895e700 (LWP 3520)] (gnome-font-viewer:3513): Gtk-CRITICAL **: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed Thread 1 "gnome-font-view" received signal SIGSEGV, Segmentation fault. g_type_check_instance_cast (type_instance=0x6c612f3c090a3e74, iface_type=93825002769200) at ../../../../gobject/gtype.c:4052 4052 ../../../../gobject/gtype.c: No such file or directory. (gdb) bt
+ Trace 238122
Also, it has nothing to do with where it's started from (Gnome Shell vs. Terminal) but rather which screen it's started on. I have 2 screens (laptop at 200% scale and monitor at 100% scale). Launched on the external monitor it crashes immediately. Launched on the laptop screen it works just fine, unless I move it to the external and monitor and try to resize it. That's coming up as a separate bug.
Resizing segfault submitted separately as bug 789560.
*** Bug 789560 has been marked as a duplicate of this bug. ***
Pushed a fix for this to master, thanks for reporting.