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 655078 - NSInternalInconsistencyException in gdk_window_set_decorations on Lion
NSInternalInconsistencyException in gdk_window_set_decorations on Lion
Status: RESOLVED DUPLICATE of bug 655074
Product: gtk+
Classification: Platform
Component: Backend: Quartz
2.24.x
Other Mac OS
: Normal critical
: ---
Assigned To: gtk-quartz maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2011-07-21 20:40 UTC by John Ralls
Modified: 2011-07-21 22:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description John Ralls 2011-07-21 20:40:15 UTC
Lion apparently objects to this line:
impl->toplevel = [impl->toplevel initWithContentRect:rect
                                           styleMask:new_mask
                                             backing:NSBackingStoreBuffered
                                               defer:NO];
Replacing it with a simple
[impl->toplevel];
impl->toplevel = [[GdkQuartWindow alloc] initWithContentRect:rect
                                           styleMask:new_mask
                                             backing:NSBackingStoreBuffered
                                               defer:NO];

eliminates the crash and appears to solve the problem.

[impl->toplevel release];
impl->toplevel = [[GdkNSWindow alloc] initWithContentRect...] instead.
 
Although investigated in 2.24, the code is unchanged in master (except that instead of calling GdkQuartzWindow it needs to be GdkQuartzNSWindow). There's no reason to believe the problem doesn't also exist there.


(gdb) bt f
  • #0 ___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___
  • #1 objc_exception_throw
  • #2 +[NSException raise:format:arguments:]
  • #3 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
  • #4 -[NSWindow(NSWindow_Scale) _setFrameworkScaleFactor:]
  • #5 -[NSWindow(NSWindow_Scale) _setScaleFactor:]
  • #6 -[NSWindow _commonInitFrame:styleMask:backing:defer:]
  • #7 -[NSWindow _initContent:styleMask:backing:defer:contentView:]
  • #8 -[NSWindow initWithContentRect:styleMask:backing:defer:]
  • #9 gdk_window_set_decorations
    at gdkwindow-quartz.c line 2655
  • #10 gtk_window_realize
    at gtkwindow.c line 4869
  • #11 g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 79
  • #12 g_type_class_meta_marshal
    at gclosure.c line 877
  • #13 g_closure_invoke
    at gclosure.c line 766
  • #15 g_signal_emit_valist
    at gsignal.c line 2983
  • #16 g_signal_emit
    at gsignal.c line 3040
  • #17 gtk_widget_realize
    at gtkwidget.c line 3524
  • #18 gtk_window_show
    at gtkwindow.c line 4532
  • #19 g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 79
  • #20 g_type_class_meta_marshal
    at gclosure.c line 877
  • #21 g_closure_invoke
    at gclosure.c line 766
  • #23 g_signal_emit_valist
    at gsignal.c line 2983
  • #24 g_signal_emit
    at gsignal.c line 3040
  • #25 gtk_widget_show
    at gtkwidget.c line 3206
  • #26 gtk_container_show_all
    at gtkcontainer.c line 2614
  • #27 gtk_widget_show_all
    at gtkwidget.c line 3354
  • #28 gnc_show_splash_screen
  • #29 gnc_gui_init
  • #30 main

Comment 1 John Ralls 2011-07-21 21:01:18 UTC
*** Bug 655074 has been marked as a duplicate of this bug. ***
Comment 2 John Ralls 2011-07-21 22:11:48 UTC

*** This bug has been marked as a duplicate of bug 655074 ***