! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Program crash when dropping tab on Desktop
Status:
RESOLVED: FIXED
Severity:
critical
Product:
Mousepad
Component:
General

Comments

Description luecken 2017-02-05 15:32:53 CET
Maybe related to 13299, but without window wasn't maximized.
To reproduce start mousepad, make a new tab with ctrl-n and drag it outside the main window. On my machine this first freezes mousepad and shortly after the program disappears. I'm running Xubuntu 16.04.1 inside a virtual box.
Comment 1 Matthew Brush editbugs 2017-02-06 00:50:28 CET
I can reproduce this, it doesn't seem to be a crash in Mousepad though. Here's the GDB traceback (sorry, I don't have GTK debug symbols installed):

Starting program: /opt/mousepad/bin/mousepad 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffeb350700 (LWP 19063)]
[New Thread 0x7fffea6e1700 (LWP 19064)]
[New Thread 0x7fffe9ee0700 (LWP 19065)]

(mousepad:19059): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width 63 and height -3

(mousepad:19059): Gtk-CRITICAL **: gtk_widget_get_frame_clock: assertion 'GTK_IS_WIDGET (widget)' failed

Thread 1 "mousepad" received signal SIGSEGV, Segmentation fault.
0x00007ffff7566863 in gtk_widget_hide () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
(gdb) bt
#0  0x00007ffff7566863 in gtk_widget_hide ()
   from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#1  0x00007ffff7583852 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#2  0x00007ffff758390f in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#3  0x00007ffff7583acc in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#4  0x00007ffff6f55d68 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#5  0x00007ffff5fcab58 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007ffff5fcb5ae in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007ffff5fce0d8 in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007ffff5fce3f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007ffff5fce712 in g_main_loop_run ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007ffff741b395 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#11 0x0000000000411163 in main (argc=1, argv=0x7fffffffdf08)
    at ../../mousepad/main.c:182
Comment 2 flocculant 2017-02-11 13:35:05 CET
Running mousepad 0.4.0+git-0~866~ubuntu17.04.1 on xubuntu 17.04

Some gdb backtrace:

(gdb) run
Starting program: /usr/bin/mousepad 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffea50c700 (LWP 27355)]
[New Thread 0x7fffe989d700 (LWP 27356)]
[New Thread 0x7fffe909c700 (LWP 27357)]

(mousepad:27351): Gtk-WARNING **: Theme parsing error: <data>:2:29: The style property GtkButton:default-border is deprecated and shouldn't be used anymore. It will be removed in a future version

(mousepad:27351): Gtk-WARNING **: Theme parsing error: <data>:3:37: The style property GtkButton:default-outside-border is deprecated and shouldn't be used anymore. It will be removed in a future version

(mousepad:27351): Gtk-WARNING **: Theme parsing error: <data>:4:27: The style property GtkButton:inner-border is deprecated and shouldn't be used anymore. It will be removed in a future version

(mousepad:27351): Gtk-WARNING **: Theme parsing error: <data>:5:31: The style property GtkWidget:focus-line-width is deprecated and shouldn't be used anymore. It will be removed in a future version

(mousepad:27351): Gtk-WARNING **: Theme parsing error: <data>:6:28: The style property GtkWidget:focus-padding is deprecated and shouldn't be used anymore. It will be removed in a future version
[New Thread 0x7fffdbfff700 (LWP 27358)]
[New Thread 0x7fffdb7fe700 (LWP 27359)]
[Thread 0x7fffdb7fe700 (LWP 27359) exited]
[New Thread 0x7fffdb7fe700 (LWP 27360)]
[Thread 0x7fffdb7fe700 (LWP 27360) exited]

(mousepad:27351): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(mousepad:27351): Gtk-CRITICAL **: gtk_container_get_focus_child: assertion 'GTK_IS_CONTAINER (container)' failed

(mousepad:27351): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(mousepad:27351): Gtk-CRITICAL **: gtk_container_get_focus_child: assertion 'GTK_IS_CONTAINER (container)' failed
**
Gtk:ERROR:/build/gtk+3.0-MH7ynA/gtk+3.0-3.22.7/./gtk/gtkwidget.c:5808:gtk_widget_get_frame_clock: assertion failed: (window != NULL)

Thread 1 "mousepad" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:58
58	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
Comment 3 flocculant 2017-02-11 13:35:26 CET
Created attachment 6992 
strace log
Comment 4 flocculant 2017-02-11 13:42:42 CET
Created attachment 6993 
backtrace
Comment 5 Forest 2017-05-16 20:03:44 CEST
Reliably reproducible here.  Xubuntu 16.10 amd64.
Comment 6 Andre Miranda editbugs 2017-05-23 02:20:17 CEST
I can't reproduce, I open mousepad(0.4.0, gtk2 from distro repository), create a new tab(ctrl+n) and drag it to desktop, it just opens another window with that document. Arch Linux here mostly updated last week.
Comment 7 Fredrik 2017-06-16 22:50:58 CEST
Not reproducible for me. Using Debian testing (stretch) and mousepad version 0.4.0.

After creating a new tab with ctrl+n and draging that tab to the desktop it opens another window. Same as comment above.
Comment 8 vc 2017-07-03 04:26:01 CEST
Just confirming the same. Unexpected quit upon dragging a tab into desktop. Don't know if it makes any difference, but have 4 desktops and Mousepad was open on one only. Running Ubuntu (Studio) 16.04.2 / Xfce 4.12
Comment 9 Matthew Brush editbugs 2017-08-15 05:30:28 CEST
Found the bug after some sleuthing, fixed in:

https://git.xfce.org/apps/mousepad/commit/?id=e3718b23026117ef653a539f504c13d6a672fd7f

GTK+ upstream bug:

https://bugzilla.gnome.org/show_bug.cgi?id=744385

Where I found a workaround:

https://github.com/f2404/xfce4-terminal3/commit/06eace541aa4bd93d7e5204a856467cdf76de104

Others affected/related:

https://bugs.launchpad.net/midori/+bug/1492041
https://github.com/mypaint/mypaint/issues/194

There are still versions of GTK3 between around 3.10 and 3.16 which will still crash, suggestions on better fix welcome.
Comment 10 Forest 2018-06-05 08:10:50 CEST
Thank you, Matthew. Commit e3718b2 (applied as a patch) fixes the problem in xubuntu artful.
Comment 11 Theo Linkspfeifer editbugs 2019-04-24 17:31:20 CEST
*** Bug 14302 has been marked as a duplicate of this bug. ***

Bug #13336

Reported by:
luecken
Reported on: 2017-02-05
Last modified on: 2019-04-24
Duplicates (1):
  • 14302 Separating two tabs with opened files causes SIGSEGV

People

Assignee:
Matthew Brush
CC List:
8 users

Version

Version:
Unspecified
Target Milestone:
Mousepad 0.2.x

Attachments

strace log (148.24 KB, application/gzip)
2017-02-11 13:35 CET , flocculant
no flags
backtrace (6.84 KB, text/plain)
2017-02-11 13:42 CET , flocculant
no flags

Additional information