GNOME Bugzilla – Bug 662732
Resize in Mac OS X Lion (10.7.2)
Last modified: 2012-01-23 09:43:48 UTC
It's mostly not possible to resize gedit in Mac OS X Lion (10.7.2) and sometimes it crashes when I'm trying to resize it. I installed the latest stable gedit dmg file (2.30.2). It could be a GTK+ Bug as well, but I'm not sure. I tried running it in Terminal, and it's what I get when it crashes: Oct 26 05:26:03 myuser.local gedit-bin[1174] <Error>: clip: empty path. Oct 26 05:26:03 myuser.local gedit-bin[1174] <Error>: clip: empty path. Oct 26 05:26:03 myuser.local gedit-bin[1174] <Error>: clip: empty path. Oct 26 05:26:03 myuser.local gedit-bin[1174] <Error>: clip: empty path. Oct 26 05:26:03 myuser.local gedit-bin[1174] <Error>: clip: empty path. Oct 26 05:26:03 myuser.local gedit-bin[1174] <Error>: clip: empty path. (gedit-bin:1174): Gdk-CRITICAL **: gdk_window_get_events: assertion `GDK_IS_WINDOW (window)' failed (gedit-bin:1174): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed (gedit-bin:1174): Gdk-CRITICAL **: gdk_window_get_toplevel: assertion `GDK_IS_WINDOW (window)' failed Bus error: 10
Created attachment 199992 [details] Apple Report Apple Report
I'm having this problem as well.
I'm having the same problem, although only horizontal resizing seems to cause the crashes.
If you resize using the top edge, or the upper-left or upper-right corners, it works. But if you use either of the other three sides (right, left, or bottom), or either of the bottom corners it will crash.
Identical behaviour on my system. It worked fine initially. I tried a "reinstall" (delete app, replace app). This bug makes gedit totally unusable. As a recent Ubuntu - OSX convert I would love to use Gedit but I can't. System: MacBook Pro running OS 10.7.2 Gedit Version 2.30.2 installed from dmg file on website. All plugins disabled. Error produced in terminal: --> (gedit-bin:484): Gdk-CRITICAL **: gdk_window_get_events: assertion `GDK_IS_WINDOW (window)' failed (gedit-bin:484): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed (gedit-bin:484): Gdk-CRITICAL **: gdk_window_get_toplevel: assertion `GDK_IS_WINDOW (window)' failed Bus error: 10 -->
Could you try the same with other gtk+ apps, like for example inkscape. I feel this is a gtk+ bug and not a gedit specific bug.
I am reassigning this to gtk+.
If the GTK+ in the DMG is < 2.24.6, then this is the expected behavior. As John Ralls indicated in the other bug report, only GTK+ 2.24.6 and later will work on OS X 10.7. Please provide the version of GTK+ that is used here.
I tried inkscape. It has no problems resizing the window. However, there is no option to resize by dragging the sides of the window. Only the bottom-right corner works. The version of gtk in the package appears to be 2.10.0 (because there is a directory called "2.10.0" in "./contents/resources/lib/gtk-2.0/"). This is the same version in both inkscape and gedit. I could not find any reference to GTK+ using $ find . -iname *gtk+* Let me know if can provide any more useful info (but you may need to explain how).
The Gtk version is 2.18.1 (look at the "compatibility version" in the crash report's library listing. The problem lies with whoever is packaging GEdit for you. They need to rebuild their package with a current (2.24.6 or later) version of Gtk. *** This bug has been marked as a duplicate of bug 655122 ***
From gedit, we are not going to release another 2.x version of gedit. We are however planning to release gedit 3.2 for OS X this week, which ships with gtk+ 3.2, so it should work fine.
Ok this is a little weird but I might have a workaround for people who absolutely NEED to use gedit 2.x on OS-X. My system specs are listed above. I found that you can resize the gedit window as follows: 1) Open a gedit window (blank document or whatever). 2) Click on the desktop (i.e. "unselect" the gedit window). 3) Now hold your mouse over the edge of the gedit window, click and drag. That's it. It works fine for me. Maybe someone might find it useful.