After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 363596 - gedit->quit,popup error message'1. In gedit , 2. Click on 'file-> quit' menu 3. popup error message:'1. In gedit , 2. Click on 'file-> quit' menu 3. popup error message:'1. In gedit , 2. Click on 'file-> quit' menu 3. popup error message:'The applic...
gedit->quit,popup error message'1. In gedit , 2. Click on 'file-> quit' menu ...
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
2.16.x
Other All
: High critical
: ---
Assigned To: Gedit maintainers
Gedit maintainers
: 363589 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-10-20 08:21 UTC by agc-tester
Modified: 2006-11-08 09:56 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Patch for gedit/gedit-window.c (1.21 KB, patch)
2006-10-23 02:12 UTC, Takao Fujiwara
none Details | Review

Description agc-tester 2006-10-20 08:21:47 UTC
Steps to reproduce:

Open-soalris
hardware:AMD 64 (Opteron)
locale:zh_cn.gb18030

1. In gedit ,
2. Click on 'file-> quit' menu 
3. popup error message:'The application gedit has crashed.'


Stack trace:


Other information:
Comment 1 André Klapper 2006-10-20 09:26:21 UTC
Thanks for taking the time to report this bug.
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 http://live.gnome.org/GettingTraces for more information on how to do so. Thanks in advance!
Comment 2 Takao Fujiwara 2006-10-23 02:09:45 UTC
When gedit python is enabled, gedit_window_destroy() called multiple times.
Comment 3 Takao Fujiwara 2006-10-23 02:12:47 UTC
Created attachment 75223 [details] [review]
Patch for gedit/gedit-window.c

Added the suggest patch.

The stack trace is:
=>[1] strlen(0x0), at 0xd2af5510 
  [2] _ndoprnt(0xd258fe35, 0x8046b3c, 0x80465d0, 0x0), at 0xd2b34525 
  [3] vsnprintf(0x8046620, 0x1, 0xd258fe14, 0x8046b3c), at 0xd2b36950 
  [4] g_printf_string_upper_bound(0xd258fe14, 0x8046b3c), at 0xd2188967 
  [5] g_vasprintf(0x8046680, 0xd258fe14, 0x8046b3c), at 0xd21a683b 
  [6] g_strdup_vprintf(0xd258fe14, 0x8046b3c), at 0xd2196822 
  [7] g_logv(0xd25915d4, 0x10, 0xd258fe14, 0x8046b3c), at 0xd2187bf7 
  [8] g_log(0xd25915d4, 0x10, 0xd258fe14, 0x0, 0x80c79b0), at 0xd2187cd9 
  [9] g_type_check_instance_cast(0x8230890, 0x8197828), at 0xd25862ae 
  [10] gedit_window_destroy(0x8198010, 0x80e9df0), at 0x80908b5 
  [11] g_cclosure_marshal_VOID__VOID(0x80e6420, 0x0, 0x1, 0x8046d3c, 0x8046c9c, 0x8090818), at 0xd257e7f1 
  [12] g_type_class_meta_marshal(0x80e6420, 0x0, 0x1, 0x8046d3c, 0x8046c9c, 0x4c), at 0xd256a6fc 
  [13] g_closure_invoke(0x80e6420, 0x0, 0x1, 0x8046d3c, 0x8046c9c), at 0xd256a41b 
  [14] signal_emit_unlocked_R(0x80ea3c8, 0x0, 0x8198010, 0x0, 0x8046d3c), at 0xd257e5d4 
  [15] g_signal_emit_valist(0x8198010, 0x2, 0x0, 0x8046fa8), at 0xd257d388 
  [16] g_signal_emit(0x8198010, 0x2, 0x0), at 0xd257d51d 
  [17] gtk_object_dispose(0x8198010), at 0xd23401c1 
  [18] gtk_widget_dispose(0x8198010), at 0xd242768f 
  [19] gtk_window_dispose(0x8198010), at 0xd242ba99 
  [20] gedit_window_dispose(0x8198010), at 0x80907b6 
  [21] g_object_unref(0x8198010), at 0xd2570276 
  [22] pygobject_clear(0x852934c), at 0xcf2c690f 
  [23] delete_garbage(0x80470d8, 0xd2a9b3a8), at 0xd2a51d09 
  [24] collect(0x2), at 0xd2a51f22 
  [25] PyGC_Collect(0x80d9c70, 0x807db60, 0x10, 0x80bd5ec, 0x804715c, 0x807db68), at 0xd2a524f4 
  [26] gedit_python_shutdown(0x8198010, 0x80e6c28, 0x80ba0ec, 0x806fab5, 0x810b0e0, 0x80e6c28, 0x80ba0ec, 0x80bd5ec, 0x89f5fc8, 0x80bd0e8, 0x804718c, 0x806f347, 0x80472ac, 0x8047174, 0xd2bfb7c0, 0x133f, 0x1f80, 0x8047174, 0x80b9ce7, 0xd2bfb7c0), at 0x809acea 
  [27] gedit_plugins_engine_shutdown(0x80472ac, 0x8047174, 0xd2bfb7c0, 0x133f, 0x1f80, 0x8047174), at 0x807db68 
  [28] main(0x1, 0x80471b8, 0x80471c0), at 0x806f347
Comment 4 Paolo Borelli 2006-10-23 08:57:59 UTC
ah, thanks. This one is already fixed for a while in cvs. On most of other people machines it just caused a warning to be printed on console, but it looks like it's fatal on solaris.

Thus the fix will be in the next release. If you are patching the solaris package I suggest to backport the original patch that is a bit more complete than the one you posted.

Here is the changelog entry of the original fix:


2006-10-07  Paolo Borelli  <pborelli@katamail.com>

	* gedit/gedit-window.c (gedit_window_destroy): save panes
	state only on the first run of destroy. Fixes critical
	warnings. bug #360219.
Comment 5 Paolo Borelli 2006-10-26 22:28:28 UTC
*** Bug 363589 has been marked as a duplicate of this bug. ***
Comment 6 Paolo Borelli 2006-11-08 09:56:14 UTC
*** Bug 372379 has been marked as a duplicate of this bug. ***
Comment 7 agc-tester 2009-08-15 18:04:40 UTC
The original summary for this bug was longer than 255 characters, and so it was truncated when Bugzilla was upgraded. The original summary was:

gedit->quit,popup error message'1. In gedit , 2. Click on 'file-> quit' menu  3. popup error message:'1. In gedit , 2. Click on 'file-> quit' menu  3. popup error message:'1. In gedit , 2. Click on 'file-> quit' menu  3. popup error message:'The application gedit has crashed'