Opened 4 years ago

Last modified 17 months ago

#60578 assigned defect

gtk3: Crash on new macbooks (MacBookPro15,2)

Reported by: schirnding-haus Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: dbevans (David B. Evans), cooljeanius (Eric Gallager)
Port: gtk3

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I get the following crash, when I open a new window from a existing window

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary visibleFrame]: unrecognized selector sent to instance 0x60000108c580'
terminating with uncaught exception of type NSException
abort() called

Application Specific Backtrace 1:
0   CoreFoundation                      0x00007fff3c177acd __exceptionPreprocess + 256
1   libobjc.A.dylib                     0x00007fff66854a17 objc_exception_throw + 48
2   CoreFoundation                      0x00007fff3c1f18d6 -[NSObject(NSObject) __retain_OA] + 0
3   CoreFoundation                      0x00007fff3c11993f ___forwarding___ + 1485
4   CoreFoundation                      0x00007fff3c19bae8 __forwarding_prep_1___ + 120
5   libgdk-3.0.dylib                    0x000000010ff132e9 gdk_quartz_monitor_get_workarea + 101
6   libgtk-3.0.dylib                    0x000000010f9feae3 gtk_window_guess_default_size + 83
7   libgtk-3.0.dylib                    0x000000010f9f3ffd gtk_window_compute_configure_request + 529
8   libgtk-3.0.dylib                    0x000000010f9fb34e gtk_window_realize + 571

Change History (6)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: dbevans added
Description: modified (diff)
Milestone: MacPorts 2.6.3
Type: requestdefect

We don't have a port called "gtk". Did you mean gtk2? gtk3? something else?

What steps should we follow to try to reproduce the issue? How does one "open a new window from a existing window"?

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Based on "libgtk-3.0.dylib" in the crash log I guess you are talking about gtk3? And based on "gdk_quartz_monitor_get_workarea" I guess you are using the +quartz variant? What OS version are you using? Since it is a new MacBook Pro I am guessing Catalina?

comment:3 Changed 4 years ago by schirnding-haus

yes getk3

port install gtk3 +quarz-x11

OS Version: Mac OS X 10.14.6 (18G3020)

Model: MacBookPro15,2, BootROM 1037.80.53.0.0 (iBridge: 17.16.13050.0.0,0), 4 processors, Intel Core i7, 2.8 GHz, 16 GB, SMC Graphics: kHW_IntelIrisGraphics655Item, Intel Iris Plus Graphics 655, spdisplays_builtin

the source : static void UeberschriftenAbaendern1 (char *papplikationsname)

{

char lapplikationsname[1003];

strcpy (lapplikationsname, papplikationsname); ConvertMacRomantoUTF8NFC (lapplikationsname);

Window_UeberschriftenAbaendern1 = gtk_window_new (GTK_WINDOW_TOPLEVEL); g_signal_connect (Window_UeberschriftenAbaendern1, "destroy", G_CALLBACK (gtk_main_quit), NULL); gtk_window_move (GTK_WINDOW (Window_UeberschriftenAbaendern1), 100, 100); gtk_window_resize (GTK_WINDOW(Window_UeberschriftenAbaendern1), 400, 150); gtk_window_set_decorated (GTK_WINDOW (Window_UeberschriftenAbaendern1), FALSE); WindowCssProvider_UeberschriftenAbaendern1 = gtk_css_provider_new (); gtk_css_provider_load_from_data (WindowCssProvider_UeberschriftenAbaendern1, gwindowdecoration, -1, NULL); gtk_style_context_add_provider (gtk_widget_get_style_context (Window_UeberschriftenAbaendern1), GTK_STYLE_PROVIDER (WindowCssProvider_UeberschriftenAbaendern1), GTK_STYLE_PROVIDER_PRIORITY_USER); g_object_unref (WindowCssProvider_UeberschriftenAbaendern1);

KeyPressHandlerId_UeberschriftenAbaendern1 = g_signal_connect (G_OBJECT (Window_UeberschriftenAbaendern1), "key_press_event", G_CALLBACK (ueberschriftenabaendern1dokeypressevent), NULL);

FixedLayout_UeberschriftenAbaendern1 = gtk_fixed_new ();

Label_UeberschriftenAbaendern1Working1 = gtk_label_new (lapplikationsname); gtk_widget_set_size_request (Label_UeberschriftenAbaendern1Working1, 380, 0); gtk_fixed_put (GTK_FIXED (FixedLayout_UeberschriftenAbaendern1), Label_UeberschriftenAbaendern1Working1, 10, 35);

Label_UeberschriftenAbaendern1Working2 = gtk_label_new ("Überschriften abändern ?"); gtk_widget_set_size_request (Label_UeberschriftenAbaendern1Working2, 380, 0); gtk_fixed_put (GTK_FIXED (FixedLayout_UeberschriftenAbaendern1), Label_UeberschriftenAbaendern1Working2, 10, 60);

PBut_UeberschriftenAbaendern1Ja = gtk_event_box_new (); PButLabel_UeberschriftenAbaendern1Ja = gtk_label_new ("Ja"); gtk_widget_set_size_request (PButLabel_UeberschriftenAbaendern1Ja, 102, 22); PButLabelCssProvider_UeberschriftenAbaendern1Ja = gtk_css_provider_new (); gtk_css_provider_load_from_data (PButLabelCssProvider_UeberschriftenAbaendern1Ja, ggreyscalebuttonnotchoosen, -1, NULL); gtk_style_context_add_provider (gtk_widget_get_style_context (PButLabel_UeberschriftenAbaendern1Ja), GTK_STYLE_PROVIDER (PButLabelCssProvider_UeberschriftenAbaendern1Ja), GTK_STYLE_PROVIDER_PRIORITY_USER); gtk_container_add (GTK_CONTAINER (PBut_UeberschriftenAbaendern1Ja), PButLabel_UeberschriftenAbaendern1Ja); gtk_fixed_put (GTK_FIXED(FixedLayout_UeberschriftenAbaendern1), PBut_UeberschriftenAbaendern1Ja, 65, 100); g_signal_connect (G_OBJECT (PBut_UeberschriftenAbaendern1Ja), "button-press-event", G_CALLBACK (ueberschriftenabaendern1doit), NULL); g_signal_connect (G_OBJECT (PBut_UeberschriftenAbaendern1Ja), "enter-notify-event", G_CALLBACK (ueberschriftenabaendern1doenter), NULL); g_signal_connect (G_OBJECT (PBut_UeberschriftenAbaendern1Ja), "leave-notify-event", G_CALLBACK (ueberschriftenabaendern1doleave), NULL);

PBut_UeberschriftenAbaendern1Nein = gtk_event_box_new (); PButLabel_UeberschriftenAbaendern1Nein = gtk_label_new ("Nein"); gtk_widget_set_size_request (PButLabel_UeberschriftenAbaendern1Nein, 102, 22); PButLabelCssProvider_UeberschriftenAbaendern1Nein = gtk_css_provider_new (); gtk_css_provider_load_from_data (PButLabelCssProvider_UeberschriftenAbaendern1Nein, gbluescalebuttonnotchoosen, -1, NULL); gtk_style_context_add_provider (gtk_widget_get_style_context (PButLabel_UeberschriftenAbaendern1Nein), GTK_STYLE_PROVIDER (PButLabelCssProvider_UeberschriftenAbaendern1Nein), GTK_STYLE_PROVIDER_PRIORITY_USER); gtk_container_add (GTK_CONTAINER (PBut_UeberschriftenAbaendern1Nein), PButLabel_UeberschriftenAbaendern1Nein); gtk_fixed_put (GTK_FIXED(FixedLayout_UeberschriftenAbaendern1), PBut_UeberschriftenAbaendern1Nein, 235, 100); g_signal_connect (G_OBJECT (PBut_UeberschriftenAbaendern1Nein), "button-press-event", G_CALLBACK (ueberschriftenabaendern1doit), NULL); g_signal_connect (G_OBJECT (PBut_UeberschriftenAbaendern1Nein), "enter-notify-event", G_CALLBACK (ueberschriftenabaendern1doenter), NULL); g_signal_connect (G_OBJECT (PBut_UeberschriftenAbaendern1Nein), "leave-notify-event", G_CALLBACK (ueberschriftenabaendern1doleave), NULL);

gtk_container_add (GTK_CONTAINER(Window_UeberschriftenAbaendern1), FixedLayout_UeberschriftenAbaendern1);

gtk_widget_show_all (Window_UeberschriftenAbaendern1);

gtk_main ();

}

the whole Backtrace Application Specific Backtrace 1: 0 CoreFoundation 0x00007fff2cad0acd exceptionPreprocess + 256 1 libobjc.A.dylib 0x00007fff571ada17 objc_exception_throw + 48 2 CoreFoundation 0x00007fff2cb4a8d6 -[NSObject(NSObject) retain_OA] + 0 3 CoreFoundation 0x00007fff2ca7293f _forwarding_ + 1485 4 CoreFoundation 0x00007fff2caf4ae8 forwarding_prep_1_ + 120 5 libgdk-3.0.dylib 0x000000010c5a52e9 gdk_quartz_monitor_get_workarea + 101 6 libgtk-3.0.dylib 0x000000010c092ae3 gtk_window_guess_default_size + 83 7 libgtk-3.0.dylib 0x000000010c087ffd gtk_window_compute_configure_request + 529 8 libgtk-3.0.dylib 0x000000010c08f34e gtk_window_realize + 571 9 libgobject-2.0.0.dylib 0x000000010c432d04 _g_closure_invoke_va + 213 10 libgobject-2.0.0.dylib 0x000000010c44677f g_signal_emit_valist + 1127 11 libgobject-2.0.0.dylib 0x000000010c447108 g_signal_emit + 120 12 libgtk-3.0.dylib 0x000000010c072d38 gtk_widget_realize + 279 13 libgtk-3.0.dylib 0x000000010c08ec9d gtk_window_show + 81 14 libgobject-2.0.0.dylib 0x000000010c432b31 g_closure_invoke + 200 15 libgobject-2.0.0.dylib 0x000000010c445c6b signal_emit_unlocked_R + 1057 16 libgobject-2.0.0.dylib 0x000000010c446a3c g_signal_emit_valist + 1828 17 libgobject-2.0.0.dylib 0x000000010c447108 g_signal_emit + 120 18 libgtk-3.0.dylib 0x000000010c07269a gtk_widget_show + 152 19 Häufigkeiten hp 0x000000010bda535f UeberschriftenAbaendern1 + 1887 20 Häufigkeiten hp 0x000000010bd97e80 UeberschriftenAbaendern2 + 1872 21 Häufigkeiten hp 0x000000010bd96f0d main + 669 22 libdyld.dylib 0x00007fff5897c3d5 start + 1 23 ??? 0x0000000000000001 0x0 + 1

Version 0, edited 4 years ago by schirnding-haus (next)

comment:4 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Port: gtk3 added; gtk removed
Summary: Crash on new macbooks (MacBookPro15,2)gtk3: Crash on new macbooks (MacBookPro15,2)

comment:5 Changed 17 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:6 Changed 17 months ago by mascguy (Christopher Nielsen)

Owner: set to mascguy
Status: newassigned
Version: 2.8.1
Note: See TracTickets for help on using tickets.