ige-mac-integration



Hi John Ralls

I'm using your ige-mac-integration package. But I have crashes on mac when menues changes (UIManager). Here is what I get:

----
2010-09-08 16:44:51.488 mono[672:613] *** Assertion failure in -[NSMenu insertItem:atIndex:], /SourceCache/AppKit/AppKit-1038.32/Menus.subproj/NSMenu.m:554
2010-09-08 16:44:51.491 mono[672:613] An uncaught exception was raised
2010-09-08 16:44:51.496 mono[672:613] Invalid parameter not satisfying: (index >= 0) && (index <= [_itemArray count])
2010-09-08 16:44:51.498 mono[672:613] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: (index >= 0) && (index <= [_itemArray count])'
-----

If I make this change to "src/cocoa_menu_item.c":

----
@@ -496,8 +501,9 @@ cocoa_menu_item_add_item (NSMenu* cocoa_menu, GtkWidget* menu_item, int index)

   if (index >= 0 && index < [cocoa_menu numberOfItems])
     [ cocoa_menu insertItem:cocoa_item atIndex:index];
-  else
-    [ cocoa_menu addItem:cocoa_item];
+  else
+    [cocoa_menu insertItem:cocoa_item atIndex:0];
+    //[ cocoa_menu addItem:cocoa_item];

   cocoa_menu_item_sync(menu_item);
}
---

Then everything works fine, accept that the menu's is reversed. But no crashes.

Do you have any idea what could be the problem ?

(Se attachment for full dump)

Many thanks, for the otherwise great integration.

--
Med Venlig Hilsen / Kind Regards

Mikkel Kruse Johnsen
Adm.Dir.

Linet
Ørholmgade 6 st tv
Copenhagen N 2200 Denmark
Work: +45 21287793
Mobile: +45 21287793
Email: mikkel linet dk

Web: Healthcare
in: Professional Profile


Medical Consultant


2010-09-08 16:44:51.488 mono[672:613] *** Assertion failure in -[NSMenu insertItem:atIndex:], /SourceCache/AppKit/AppKit-1038.32/Menus.subproj/NSMenu.m:554
2010-09-08 16:44:51.491 mono[672:613] An uncaught exception was raised
2010-09-08 16:44:51.496 mono[672:613] Invalid parameter not satisfying: (index >= 0) && (index <= [_itemArray count])
2010-09-08 16:44:51.498 mono[672:613] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: (index >= 0) && (index <= [_itemArray count])'
*** Call stack at first throw:
(
	0   CoreFoundation                      0x9388fbba __raiseError + 410
	1   libobjc.A.dylib                     0x954c1509 objc_exception_throw + 56
	2   CoreFoundation                      0x9388f8e8 +[NSException raise:format:arguments:] + 136
	3   Foundation                          0x97964dc3 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116
	4   AppKit                              0x95f7e561 -[NSMenu insertItem:atIndex:] + 178
	5   libigemacintegration.0.dylib        0x193f1f29 -[GNSMenuItem setHidden:] + 249
	6   libigemacintegration.0.dylib        0x193f24e5 cocoa_menu_item_update_state + 208
	7   libigemacintegration.0.dylib        0x193f304a cocoa_menu_item_notify + 104
	8   libgobject-2.0.0.dylib              0x02a35983 g_cclosure_marshal_VOID__PARAM + 177
	9   libgobject-2.0.0.dylib              0x02a1c6ec g_closure_invoke + 370
	10  libgobject-2.0.0.dylib              0x02a3445a g_signal_emit_by_name + 2962
	11  libgobject-2.0.0.dylib              0x02a335a0 g_signal_emit_valist + 2212
	12  libgobject-2.0.0.dylib              0x02a338c6 g_signal_emit + 44
	13  libgobject-2.0.0.dylib              0x02a1ee65 g_object_interface_list_properties + 1216
	14  libgobject-2.0.0.dylib              0x02a1ddcc g_object_type_init + 577
	15  libgobject-2.0.0.dylib              0x02a1f3f5 g_object_notify + 979
	16  libgobject-2.0.0.dylib              0x02a1f1b9 g_object_notify + 407
	17  libgtk-quartz-2.0.0.dylib           0x02513eee gtk_widget_show + 240
	18  libgtk-quartz-2.0.0.dylib           0x02509694 gtk_ui_manager_remove_ui + 3577
	19  libgtk-quartz-2.0.0.dylib           0x0250b3da gtk_ui_manager_remove_ui + 11071
	20  libgtk-quartz-2.0.0.dylib           0x0250b33d gtk_ui_manager_remove_ui + 10914
	21  libgtk-quartz-2.0.0.dylib           0x0250b33d gtk_ui_manager_remove_ui + 10914
	22  libgtk-quartz-2.0.0.dylib           0x0250b4e4 gtk_ui_manager_remove_ui + 11337
	23  libgtk-quartz-2.0.0.dylib           0x0250b57f gtk_ui_manager_ensure_update + 47
	24  ???                                 0x19766a37 0x0 + 427190839
	25  ???                                 0x197669ff 0x0 + 427190783
	26  ???                                 0x197668c6 0x0 + 427190470
	27  ???                                 0x19766891 0x0 + 427190417
	28  ???                                 0x19c7cc54 0x0 + 432524372
	29  ???                                 0x19c7ca23 0x0 + 432523811
	30  ???                                 0x19c7c974 0x0 + 432523636
	31  ???                                 0x19aa86d5 0x0 + 430606037
	32  ???                                 0x19f73699 0x0 + 435631769
	33  ???                                 0x19f7362d 0x0 + 435631661
	34  ???                                 0x19f7322b 0x0 + 435630635
	35  ???                                 0x19f72efd 0x0 + 435629821
	36  libmono.0.dylib                     0x000115b8 mono_jit_find_compiled_method + 1399
	37  libmono.0.dylib                     0x001cc404 mono_runtime_invoke + 137
	38  libmono.0.dylib                     0x001ce692 mono_runtime_invoke_array + 1706
	39  libmono.0.dylib                     0x001b619c mono_verifier_is_sig_compatible + 26488
	40  ???                                 0x01775a3b 0x0 + 24599099
	41  ???                                 0x0177554b 0x0 + 24597835
	42  ???                                 0x017750a6 0x0 + 24596646
	43  ???                                 0x13ffacfb 0x0 + 335523067
	44  ???                                 0x13ffab5d 0x0 + 335522653
	45  ???                                 0x13ffab22 0x0 + 335522594
	46  ???                                 0x13ffaaf7 0x0 + 335522551
	47  ???                                 0x13ffa9c4 0x0 + 335522244
	48  ???                                 0x13ff9883 0x0 + 335517827
	49  ???                                 0x13f579e2 0x0 + 334854626
	50  libgobject-2.0.0.dylib              0x02a1c6ec g_closure_invoke + 370
	51  libgobject-2.0.0.dylib              0x02a348d4 g_signal_emit_by_name + 4108
	52  libgobject-2.0.0.dylib              0x02a335a0 g_signal_emit_valist + 2212
	53  libgobject-2.0.0.dylib              0x02a338c6 g_signal_emit + 44
	54  libgtk-quartz-2.0.0.dylib           0x024f2ad6 gtk_tree_view_row_activated + 181
	55  libgtk-quartz-2.0.0.dylib           0x024ddf9e gtk_tree_view_get_type + 25711
	56  libgtk-quartz-2.0.0.dylib           0x023a43c0 gtk_marshal_VOID__UINT_STRING + 426
	57  libgobject-2.0.0.dylib              0x02a1c9f5 g_cclosure_new_swap + 316
	58  libgobject-2.0.0.dylib              0x02a1c6ec g_closure_invoke + 370
	59  libgobject-2.0.0.dylib              0x02a346b4 g_signal_emit_by_name + 3564
	60  libgobject-2.0.0.dylib              0x02a3361a g_signal_emit_valist + 2334
	61  libgobject-2.0.0.dylib              0x02a338c6 g_signal_emit + 44
	62  libgtk-quartz-2.0.0.dylib           0x0251737d gtk_widget_send_expose + 1397
	63  libgtk-quartz-2.0.0.dylib           0x02516dfc gtk_widget_event + 283
	64  libgtk-quartz-2.0.0.dylib           0x023a2a18 gtk_propagate_event + 584
	65  libgtk-quartz-2.0.0.dylib           0x023a1398 gtk_main_do_event + 828
	66  libgdk-quartz-2.0.0.dylib           0x02702a29 pollfds_equal + 1949
	67  libglib-2.0.0.dylib                 0x003a0b94 g_source_is_destroyed + 843
	68  libglib-2.0.0.dylib                 0x003a2178 g_main_context_dispatch + 144
	69  libglib-2.0.0.dylib                 0x003a26bc g_main_context_dispatch + 1492
	70  libglib-2.0.0.dylib                 0x003a2f08 g_main_loop_run + 992
	71  libgtk-quartz-2.0.0.dylib           0x023a09c5 gtk_main + 239
	72  ???                                 0x197ce389 0x0 + 427615113
	73  ???                                 0x197ce353 0x0 + 427615059
	74  ???                                 0x004ddc36 0x0 + 5102646
	75  ???                                 0x004dddec 0x0 + 5103084
	76  libmono.0.dylib                     0x000115b8 mono_jit_find_compiled_method + 1399
	77  libmono.0.dylib                     0x001cc404 mono_runtime_invoke + 137
	78  libmono.0.dylib                     0x001cdf59 mono_runtime_exec_main + 706
	79  libmono.0.dylib                     0x001cd89f mono_runtime_run_main + 799
	80  libmono.0.dylib                     0x00097c34 mono_jit_exec + 200
	81  libmono.0.dylib                     0x00097e7b mono_jit_exec + 783
	82  libmono.0.dylib                     0x00099e07 mono_main + 6719
	83  mono                                0x00001f77 main + 49
	84  mono                                0x00001f2b _start + 209
	85  mono                                0x00001e59 start + 41
)
Trace/BPT trap



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]