GLib critical warning & possible hang on ctrl-c
Submitted by Nick Treleaven
Link to original bug (#540161)
Description
Please describe the problem: Hi, We're using the VTE library in the Geany lightweight IDE. I noticed this GLib message when we start the VTE:
GLib-GObject-CRITICAL **: g_object_notify_queue_thaw: assertion `nqueue->freeze_count > 0' failed
I'm reporting this because Geany hangs when pressing Ctrl-C in the VTE widget with VTE 0.16.14. I'm not sure if this is related to the GLib warning, or if it is libvte or Geany that is at fault. But according to one user, this only started happening with VTE 0.16.14.
For reference, the Geany bug report is here: https://sourceforge.net/tracker/index.php?func=detail&aid=1990323&group_id=153444&atid=787791
Steps to reproduce:
- Start Geany
- Focus the VTE
- Press Ctrl-C
Actual results: Geany prints 2 more indentical GLib warnings as the one on startup, then hangs indefinitely.
Expected results: The VTE is reset as usual.
Does this happen every time? Yes (unless Override Geany Keybindings is enabled, but Geany's ctrl-c copy keybinding just does nothing when the VTE is focused).
Other information: Backtrace with --g-fatal-warnings after the above GLib warning:
(gdb) bt
`#0` 0x009d6402 in __kernel_vsyscall ()
`#1` 0x00485ee9 in raise () from /lib/libc.so.6
`#2` 0x004874f1 in abort () from /lib/libc.so.6
`#3` 0x035b5c42 in g_logv () from /usr/lib/libglib-2.0.so.0
`#4` 0x035b5c79 in g_log () from /usr/lib/libglib-2.0.so.0
`#5` 0x035b5d5b in g_return_if_fail_warning () from /usr/lib/libglib-2.0.so.0
`#6` 0x00bf2706 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
`#7` 0x00bf293f in g_object_new_valist () from /usr/lib/libgobject-2.0.so.0
`#8` 0x00bf2af0 in g_object_new () from /usr/lib/libgobject-2.0.so.0
`#9` 0x0028a7a7 in vte_reaper_get () at reaper.c:248
`#10` 0x0028a7c7 in vte_reaper_add_child (pid=28553) at reaper.c:118
`#11` 0x00292d18 in _vte_terminal_fork_basic (terminal=0xa2be758,
command=0xa2fbe28 "/bin/bash", argv=0xa2fbe38, envv=0xa2fbf68,
directory=0xa280db8 "/home/nmt/svn/geany", lastlog=1, utmp=1, wtmp=1)
at vte.c:2919
`#12` 0x080de175 in vte_start (widget=0xa2be758) at vte.c:337
`#13` 0x080dddef in create_vte () at vte.c:245
`#14` 0x080dd9dc in vte_init () at vte.c:203
`#15` 0x080b8055 in main (argc=1, argv=0xbfec5ff4) at main.c:860
Version: 0.16.x
Resolution: RESOLVED DUPLICATE