Bug 10903 - Xamarin Studio crashing when editing Info.plist
Summary: Xamarin Studio crashing when editing Info.plist
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2013-03-05 08:45 UTC by Jonathan Nesbitt
Modified: 2013-03-08 06:35 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
This is where the problem happens. (13.90 KB, image/png)
2013-03-05 08:45 UTC, Jonathan Nesbitt
Details
Here is a screencast of me reproducing the crash. (3.64 MB, application/x-shockwave-flash)
2013-03-07 11:12 UTC, Jonathan Nesbitt
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Jonathan Nesbitt 2013-03-05 08:45:01 UTC
Created attachment 3536 [details]
This is where the problem happens.

Xamarin Studio 4.0 (build 2003) is crashing when 1) I click '+' to add a new entry to an array, and 2) I hit enter to edit the newly added array item. After hitting enter, I see the rainbow wheel of death and the application crashes - "Xamarin Studio quit unexpectedly". This specifically happened to me when attempting to add several new fonts to my project ("Fonts provided by the application"), but it also happens with other properties. Thanks.
Comment 1 Jeffrey Stedfast 2013-03-05 17:10:05 UTC
I'm having trouble replicating this crash with 4.0 and with latest git.

Would it be possible to provide a screencast of how you are doing it? You can use Jing (http://www.techsmith.com/jing.html) if you don't already have a screencast app.

I'm probably just not clicking things in quite the same order as you or something and so am not seeing the crash...

Thanks
Comment 2 Jonathan Nesbitt 2013-03-07 11:12:23 UTC
Created attachment 3548 [details]
Here is a screencast of me reproducing the crash.
Comment 3 Jeffrey Stedfast 2013-03-07 12:05:31 UTC
Thanks! Looks like the key ingredient to reproducing this bug is hitting Enter after clicking the + icon.

I see that you said that in your description but I guess I assumed you meant to click inside of the text field and then hit Enter or something. I can definitely reproduce it now.
Comment 4 Jeffrey Stedfast 2013-03-07 13:20:04 UTC
Program received signal SIGBUS, Bus error.
0x0d6a99ff in gtksharp_gdk_event_get_event_type (event=0x0) at event.c:108
108		return event->type;
(gdb) bt
#0  0x0d6a99ff in gtksharp_gdk_event_get_event_type (event=0x0) at event.c:108
#1  0x0d66e49c in ?? ()
#2  0x12181ed0 in ?? ()
#3  0x12ca095c in ?? ()
#4  0x12ca08c3 in ?? ()
#5  0x155664a0 in ?? ()
#6  0x046493b3 in gtk_cell_renderer_start_editing (cell=0x27e8058, event=0x0, widget=0x1656328, path=0xe8aa6c0 "8:1", background_area=0xbfffd368, cell_area=0xbfffd378, flags=0) at gtkcellrenderer.c:665
#7  0x048d4b20 in gtk_tree_view_column_cell_process_action (tree_column=0x16e0840, window=0x0, background_area=0xbfffd558, cell_area=0xbfffd548, flags=0, action=2, expose_area=0x0, focus_rectangle=0x0, editable_widget=0xbfffd544, event=0x0, path_string=0xe8aa6c0 "8:1") at gtktreeviewcolumn.c:3092
#8  0x048d5054 in _gtk_tree_view_column_cell_event (tree_column=0x16e0840, editable_widget=0xbfffd544, event=0x0, path_string=0xe8aa6c0 "8:1", background_area=0xbfffd558, cell_area=0xbfffd548, flags=0) at gtktreeviewcolumn.c:3190
#9  0x048cb4a3 in gtk_tree_view_start_editing (tree_view=0x1656328, cursor_path=0x136c9920) at gtktreeview.c:14816
#10 0x048bf42d in gtk_tree_view_real_select_cursor_row (tree_view=0x1656328, start_editing=1) at gtktreeview.c:10118
#11 0x0473d58e in _gtk_marshal_BOOLEAN__BOOLEAN (closure=0x95a0610, return_value=0xbfffda30, n_param_values=2, param_values=0xe8b7850, invocation_hint=0xbfffd840, marshal_data=0x48bf320) at gtkmarshalers.c:955
#12 0x055c79ce in g_type_class_meta_marshal (closure=0x95a0610, return_value=0xbfffda30, n_param_values=2, param_values=0xe8b7850, invocation_hint=0xbfffd840, marshal_data=0x1cc) at gclosure.c:885
#13 0x055c75bf in g_closure_invoke (closure=0x95a0610, return_value=0xbfffda30, n_param_values=2, param_values=0xe8b7850, invocation_hint=0xbfffd840) at gclosure.c:774
#14 0x055e7e94 in signal_emit_unlocked_R (node=0x95a06b0, detail=0, instance=0x1656328, emission_return=0xbfffda30, instance_and_params=0xe8b7850) at gsignal.c:3310
#15 0x055e5d26 in g_signal_emitv (instance_and_params=0xe8b7850, signal_id=196, detail=0, return_value=0xbfffda30) at gsignal.c:2907
#16 0x04629e49 in gtk_binding_entry_activate (entry=0x95fb650, object=0x1656328) at gtkbindings.c:537
#17 0x0462b150 in binding_match_activate (pspec_list=0x136c9928, object=0x1656328, path_length=11, path=0xe8a4720 "GtkTreeView", path_reversed=0xe89ef10 "weiVeerTktG", unbound=0xbfffdb1c) at gtkbindings.c:1124
#18 0x0462b574 in gtk_bindings_activate_list (object=0x1656328, entries=0x136c9640, is_release=0) at gtkbindings.c:1269
#19 0x0462b991 in gtk_bindings_activate_event (object=0x1656328, event=0x17aadb10) at gtkbindings.c:1364
#20 0x048ee314 in gtk_widget_real_key_press_event (widget=0x1656328, event=0x17aadb10) at gtkwidget.c:4812
#21 0x048b4553 in gtk_tree_view_key_press (widget=0x1656328, event=0x17aadb10) at gtktreeview.c:5492
#22 0x0473ba2e in _gtk_marshal_BOOLEAN__BOXED (closure=0x950cbf0, return_value=0xbfffdf00, n_param_values=2, param_values=0x21a8318, invocation_hint=0xbfffdf30, marshal_data=0x48b3e50) at gtkmarshalers.c:86
#23 0x055c79ce in g_type_class_meta_marshal (closure=0x950cbf0, return_value=0xbfffdf00, n_param_values=2, param_values=0x21a8318, invocation_hint=0xbfffdf30, marshal_data=0xcc) at gclosure.c:885
#24 0x055c75bf in g_closure_invoke (closure=0x950cbf0, return_value=0xbfffdf00, n_param_values=2, param_values=0x21a8318, invocation_hint=0xbfffdf30) at gclosure.c:774
#25 0x055e7e94 in signal_emit_unlocked_R (node=0x950ce90, detail=0, instance=0x1656328, emission_return=0xbfffe118, instance_and_params=0x21a8318) at gsignal.c:3310
#26 0x055e698c in g_signal_emit_valist (instance=0x1656328, signal_id=42, detail=0, var_args=0xbfffe290 "????\t") at gsignal.c:3013
#27 0x055e6db1 in g_signal_emit (instance=0x1656328, signal_id=42, detail=0) at gsignal.c:3060
#28 0x048eed3d in gtk_widget_event_internal (widget=0x1656328, event=0x17aadb10) at gtkwidget.c:5139
#29 0x048ee52f in gtk_widget_event (widget=0x1656328, event=0x17aadb10) at gtkwidget.c:4875
#30 0x04908ced in gtk_window_propagate_key_event (window=0x3ab10d0, event=0x17aadb10) at gtkwindow.c:5199
#31 0x04908de0 in gtk_window_key_press_event (widget=0x3ab10d0, event=0x17aadb10) at gtkwindow.c:5229
#32 0x09443786 in gtksharp_widget_base_key_press_event (widget=0x3ab10d0, evnt=0x17aadb10) at generated.c:5447
#33 0x12c9ec90 in ?? ()
#34 0x12c9ec44 in ?? ()
#35 0x12c9eb4c in ?? ()
#36 0x12c9e962 in ?? ()
#37 0x09466a08 in ?? ()
#38 0x0473ba2e in _gtk_marshal_BOOLEAN__BOXED (closure=0x950cbf0, return_value=0xbfffe6e0, n_param_values=2, param_values=0x121d450, invocation_hint=0xbfffe710, marshal_data=0x94669d0) at gtkmarshalers.c:86
#39 0x055c79ce in g_type_class_meta_marshal (closure=0x950cbf0, return_value=0xbfffe6e0, n_param_values=2, param_values=0x121d450, invocation_hint=0xbfffe710, marshal_data=0xcc) at gclosure.c:885
#40 0x055c75bf in g_closure_invoke (closure=0x950cbf0, return_value=0xbfffe6e0, n_param_values=2, param_values=0x121d450, invocation_hint=0xbfffe710) at gclosure.c:774
#41 0x055e7e94 in signal_emit_unlocked_R (node=0x950ce90, detail=0, instance=0x3ab10d0, emission_return=0xbfffe8f8, instance_and_params=0x121d450) at gsignal.c:3310
#42 0x055e698c in g_signal_emit_valist (instance=0x3ab10d0, signal_id=42, detail=0, var_args=0xbfffea70 "????\t") at gsignal.c:3013
#43 0x055e6db1 in g_signal_emit (instance=0x3ab10d0, signal_id=42, detail=0) at gsignal.c:3060
#44 0x048eed3d in gtk_widget_event_internal (widget=0x3ab10d0, event=0x17aadb10) at gtkwidget.c:5139
#45 0x048ee52f in gtk_widget_event (widget=0x3ab10d0, event=0x17aadb10) at gtkwidget.c:4875
#46 0x047396b2 in propagate_event (widget=0x3ab10d0, event=0x17aadb10, captured=0, topmost=0x0) at gtkmain.c:2541
#47 0x04739817 in gtk_propagate_event (widget=0x3ab10d0, event=0x17aadb10) at gtkmain.c:2587
#48 0x04737abb in gtk_main_do_event (event=0x17aadb10) at gtkmain.c:1699
#49 0x04c9bd15 in gdk_event_dispatch (source=0x2f29230, callback=0, user_data=0x0) at gdkeventloop-quartz.c:677
#50 0x04332d31 in g_main_dispatch (context=0x2f29290) at gmain.c:2441
#51 0x0433462b in g_main_context_dispatch (context=0x2f29290) at gmain.c:3011
#52 0x04334c5a in g_main_context_iterate (context=0x2f29290, block=1, dispatch=1, self=0x1b5d7a0) at gmain.c:3089
#53 0x0433559d in g_main_loop_run (loop=0xe85c2a0) at gmain.c:3297
#54 0x04736ef0 in gtk_main () at gtkmain.c:1257
#55 0x0d66d98c in ?? ()
#56 0x0d66d954 in ?? ()
#57 0x0d66d934 in ?? ()
#58 0x03716fa8 in ?? ()
#59 0x004b6fb8 in ?? ()
#60 0x004b6d9c in ?? ()
#61 0x004b6e56 in ?? ()
#62 0x0000d382 in mono_jit_runtime_invoke (method=0x229441c, obj=0x0, params=0xbffff2f8, exc=0x0) at mini.c:5813
#63 0x001a8a1a in mono_runtime_invoke (method=0x229441c, obj=0x0, params=0xbffff2f8, exc=0x0) at object.c:2788
#64 0x001ab53c in mono_runtime_exec_main (method=0x229441c, args=0x46be00, exc=0x0) at object.c:3964
#65 0x001aa7a1 in mono_runtime_run_main (method=0x229441c, argc=0, argv=0xbffff550, exc=0x0) at object.c:3594
#66 0x0006ab15 in mono_jit_exec (domain=0x466e00, assembly=0x1b19860, argc=1, argv=0xbffff54c) at driver.c:944
#67 0x0006d0a9 in mono_main (argc=3, argv=0xbffff544) at driver.c:1003
#68 0x00002279 in main (argc=3, argv=0xbffff544) at main.c:89

Looks like a crash in the gtk-sharp bindings. Will try to patch this for the next MonoFramework release.
Comment 5 Jeffrey Stedfast 2013-03-07 13:21:55 UTC
Just patched gtk-sharp in git, now I just need to get this rolled into a new Mono release.
Comment 6 Jonathan Nesbitt 2013-03-07 13:39:37 UTC
Excellent. Thanks man.
Comment 7 Jatin 2013-03-08 06:35:33 UTC
Today, we have verified this issue with the latest builds:

Xamarin Studio 4.0.2.15
Xamarin.Mac 1.2.43
MT 6.2.1.198

And now the issue is not appearing as now when we edit the info.plist file, the XS does not crashes.