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 576766 - Configuring "Draw Spaces" crashes Gedit
Configuring "Draw Spaces" crashes Gedit
Status: RESOLVED FIXED
Product: gedit-plugins
Classification: Other
Component: General
2.26.x
Other All
: High critical
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2009-03-25 20:46 UTC by Hernando Torque
Modified: 2019-03-23 20:48 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
drawspaces (1.06 KB, patch)
2009-03-29 00:29 UTC, Ignacio Casal Quinteiro (nacho)
none Details | Review

Description Hernando Torque 2009-03-25 20:46:46 UTC
Steps to reproduce:
1. Go to plugins tab in Gedit
2. (Tick,) untick, tick "Draw Spaces"
3. Open the configure frame and change the state of any checkbox


Stack trace:
  • #0 IA__g_type_check_instance_cast
    at /build/buildd/glib2.0-2.20.0/gobject/gtype.c line 3728
  • #1 ??
    from /usr/lib/gedit-2/plugins/libdrawspaces.so
  • #2 ??
    from /usr/lib/libgconf-2.so.4
  • #3 gconf_listeners_notify
    from /usr/lib/libgconf-2.so.4
  • #4 ??
    from /usr/lib/libgconf-2.so.4
  • #5 ??
    from /usr/lib/libgconf-2.so.4
  • #6 g_idle_dispatch
    at /build/buildd/glib2.0-2.20.0/glib/gmain.c line 3922
  • #7 IA__g_main_context_dispatch
    at /build/buildd/glib2.0-2.20.0/glib/gmain.c line 1814
  • #8 g_main_context_iterate
    at /build/buildd/glib2.0-2.20.0/glib/gmain.c line 2448
  • #9 IA__g_main_loop_run
    at /build/buildd/glib2.0-2.20.0/glib/gmain.c line 2656
  • #10 IA__gtk_main
    at /build/buildd/gtk+2.0-2.16.0/gtk/gtkmain.c line 1205
  • #11 main

Other information:
The failing cast happens in the on_gconf_notify function at
GeditDrawspacesPlugin *plugin = GEDIT_DRAWSPACES_PLUGIN (user_data);
in /plugins/drawspaces/gedit-drawspaces-plugin.c

Even if every option is ticked and the plugin is active, it doesn't draw spaces - but I don't know if that's connected.
Comment 1 Ignacio Casal Quinteiro (nacho) 2009-03-25 21:35:36 UTC
Thanks for taking the time to report this bug.
Unfortunately, that stack trace is missing some elements that will help a lot to solve the problem, so it will be hard for the developers to fix that crash. Can you get us a stack trace with debugging symbols? Please see http://live.gnome.org/GettingTraces for more information on how to do so and reopen this bug or report a new one. Thanks in advance!
Comment 2 Hernando Torque 2009-03-25 22:10:50 UTC
Sorry, c&p error.

  • #0 IA__g_type_check_instance_cast
    at /build/buildd/glib2.0-2.20.0/gobject/gtype.c line 3728
  • #1 on_gconf_notify
    at gedit-drawspaces-plugin.c line 586
  • #2 gconf_marshal_VOID__STRING_POINTER
    at gconfmarshal.c line 82
  • #3 gconf_engine_reverse_change_set
    at gconf-changeset.c line 624
  • #4 gconf_engine_dir_exists
    at gconf.c line 2054
  • #5 gconf_engine_dir_exists
    at gconf.c line 2078
  • #6 g_idle_dispatch
    at /build/buildd/glib2.0-2.20.0/glib/gmain.c line 3922
  • #7 IA__g_main_context_dispatch
    at /build/buildd/glib2.0-2.20.0/glib/gmain.c line 1814
  • #8 g_main_context_iterate
    at /build/buildd/glib2.0-2.20.0/glib/gmain.c line 2448
  • #9 IA__g_main_loop_run
    at /build/buildd/glib2.0-2.20.0/glib/gmain.c line 2656
  • #10 IA__gtk_main
    at /build/buildd/gtk+2.0-2.16.0/gtk/gtkmain.c line 1205
  • #11 main

Comment 3 Hernando Torque 2009-03-25 23:07:15 UTC
Strange symbols - got it from a CoreDump using gdb. I now crashed gedit directly via gdb and got this stack trace:

  • #0 IA__g_type_check_instance_cast
    at /build/buildd/glib2.0-2.20.0/gobject/gtype.c line 3728
  • #1 on_gconf_notify
    at gedit-drawspaces-plugin.c line 586
  • #2 notify_listeners_callback
    at gconf-client.c line 2385
  • #3 notify_listener_list
    at gconf-listeners.c line 590
  • #4 ltable_notify
    at gconf-listeners.c line 656
  • #5 gconf_listeners_notify
    at gconf-listeners.c line 185
  • #6 notify_one_entry
    at gconf-client.c line 2410
  • #7 gconf_client_flush_notifies
    at gconf-client.c line 2450
  • #8 notify_idle_callback
    at gconf-client.c line 2344
  • #9 g_idle_dispatch
    at /build/buildd/glib2.0-2.20.0/glib/gmain.c line 3922
  • #10 IA__g_main_context_dispatch
    at /build/buildd/glib2.0-2.20.0/glib/gmain.c line 1814
  • #11 g_main_context_iterate
    at /build/buildd/glib2.0-2.20.0/glib/gmain.c line 2448
  • #12 IA__g_main_loop_run
    at /build/buildd/glib2.0-2.20.0/glib/gmain.c line 2656
  • #13 IA__gtk_main
    at /build/buildd/gtk+2.0-2.16.0/gtk/gtkmain.c line 1205
  • #14 main

Comment 4 Gianluca Borello 2009-03-27 23:55:46 UTC
Additional info: I can't reproduce this bug on gedit 2.24.2
Comment 5 Hernando Torque 2009-03-28 01:25:06 UTC
I'm sure that's because 2.24.2 uses the older python version of "Draw Spaces" (which worked fine btw.).
Comment 6 Ignacio Casal Quinteiro (nacho) 2009-03-28 19:57:08 UTC
Which gtksourceview version do you have?
Comment 7 Hernando Torque 2009-03-28 21:30:31 UTC
On Ubuntu Jaunty Beta:
libgtksourceview1.0-0 is on 1.8.5-2
libgtksourceview2.0-0 is on 2.6.0(-0ubuntu2)
Comment 8 Dave Gilbert 2009-03-28 23:12:20 UTC
I can confirm this on Ubuntu Jaunty beta - but it doesn't always do it - probably about 50% of the time; I got it when I clicked on draw tabs (maybe the 2nd time?)

package versions (all Ubuntu 64bit):
  gedit 2.26.0-0ubuntu2  
  gedit-plugins 2.26.0-0ubuntu3
  libgtksourceview2.0-0  2.6.0-0ubuntu2
  libgtksourceview1.0-0                      1.8.5-2

With ubuntu system uptodate as of today.

Dave

Backtrace:
Program received signal SIGSEGV, Segmentation fault.

Thread 140344653146064 (LWP 26046)

  • #0 IA__g_type_check_instance_cast
    at /build/buildd/glib2.0-2.20.0/gobject/gtype.c line 3728
  • #1 ??
    from /usr/lib/gedit-2/plugins/libdrawspaces.so
  • #2 gconf_listeners_notify
    from /usr/lib/libgconf-2.so.4
  • #3 ??
    from /usr/lib/libgconf-2.so.4
  • #4 ??
    from /usr/lib/libgconf-2.so.4
  • #5 IA__g_main_context_dispatch
    at /build/buildd/glib2.0-2.20.0/glib/gmain.c line 1814
  • #6 g_main_context_iterate
    at /build/buildd/glib2.0-2.20.0/glib/gmain.c line 2448
  • #7 IA__g_main_loop_run
    at /build/buildd/glib2.0-2.20.0/glib/gmain.c line 2656
  • #8 IA__gtk_main
    at /build/buildd/gtk+2.0-2.16.0/gtk/gtkmain.c line 1205
  • #9 main

Comment 9 Ignacio Casal Quinteiro (nacho) 2009-03-29 00:29:30 UTC
Created attachment 131604 [details] [review]
drawspaces

This should fix the bug.
Comment 10 Hernando Torque 2009-03-29 01:46:39 UTC
Yes, can't crash it like before. :)

Unfortunately this didn't fix the plugin not drawing any spaces. A different bug then.

Tested the other plugins the same way (enable, disable, reenable) and it seems charmap is another candidate (the other C plugins bookmarks and showtabbar are ok). Won't crash but freeze the application and gedit spits out those msgs:

GLib-GObject-WARNING **: cannot register existing type `GucharmapChaptersView'
GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed

Should I file a new bug for this too?
Comment 11 Ignacio Casal Quinteiro (nacho) 2009-03-29 10:50:23 UTC
(In reply to comment #10)
> Yes, can't crash it like before. :)
> 
> Unfortunately this didn't fix the plugin not drawing any spaces. A different
> bug then.

Do you have the View->Show White Spaces option enabled?
> 
> Tested the other plugins the same way (enable, disable, reenable) and it seems
> charmap is another candidate (the other C plugins bookmarks and showtabbar are
> ok). Won't crash but freeze the application and gedit spits out those msgs:
> 
> GLib-GObject-WARNING **: cannot register existing type `GucharmapChaptersView'
> GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0'
> failed
> GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT
> (object_type)' failed
> 
> Should I file a new bug for this too?
> 

Comment 12 Hernando Torque 2009-03-29 10:57:54 UTC
> Do you have the View->Show White Spaces option enabled?

I'm not feeling very smart right now. :D
Comment 13 Ignacio Casal Quinteiro (nacho) 2009-03-29 13:08:19 UTC
I've commited a patch to fix drawspaces, now I'll check what's the problem with charmap. If you realize about another plugin, please tell us.
Comment 14 Hernando Torque 2009-03-29 14:52:17 UTC
Thanks for your efforts! 

No, I couldn't find any related problems with the other plugins.

About the "View > Show White Spaces"-option: I think it's more reasonable to have this option enabled by default like it was with the python version. If a user activates a plugin he usually wants it to be ready to use without having to activate it a second time via the menu.
Comment 15 Ignacio Casal Quinteiro (nacho) 2009-03-31 18:30:28 UTC
(In reply to comment #14)
> Thanks for your efforts! 
> 
> No, I couldn't find any related problems with the other plugins.
> 
> About the "View > Show White Spaces"-option: I think it's more reasonable to
> have this option enabled by default like it was with the python version. If a
> user activates a plugin he usually wants it to be ready to use without having
> to activate it a second time via the menu.
> 
Done.

This bug should be finally fixed.