Bug 10435 - App crash when viewing UITextView properties
Summary: App crash when viewing UITextView properties
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: iOS
Classification: Xamarin
Component: Debugger ()
Version: 6.0.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-02-19 07:51 UTC by Maxim
Modified: 2014-02-25 20:28 UTC (History)
2 users (show)

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

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:
RESOLVED NOT_REPRODUCIBLE

Description Maxim 2013-02-19 07:51:54 UTC
Create new project, write that code:

var a = new UITextView();


Then, toggle breakpoint on line after that code and run app.

Then, try to see a's properties in watch list. App will crash with such info:
Stacktrace:

  at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSend (intptr,intptr) <IL 0x00026, 0xffffffff>
  at MonoTouch.UIKit.UITextView.get_TypingAttributes () [0x00010] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UITextView.g.cs:1130
  at (wrapper runtime-invoke) <Module>.runtime_invoke_object__this__ (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>
  at Moments.Views.Cells.Streams.CellStreamPost.SetData (Moments.Data.Entity.Common.Moment,Moments.Data.Entity.Common.UserProfile,System.Collections.Generic.List`1<Moments.Data.Entity.Common.UserProfile>) [0x00006] in /Users/mobile/Projects/msn/msn_client/Moments/Views/Cells/Streams/CellStreamPost.cs:475
  at Moments.Views.Streams.StreamSource.GetHeightForRow (MonoTouch.UIKit.UITableView,MonoTouch.Foundation.NSIndexPath) [0x002e9] in /Users/mobile/Projects/msn/msn_client/Moments/Views/Streams/StreamSource.cs:182
  at (wrapper runtime-invoke) <Module>.runtime_invoke_single__this___object_object (object,intptr,intptr,intptr) <IL 0x00066, 0xffffffff>
  at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend (intptr,intptr) <IL 0x00024, 0xffffffff>
  at MonoTouch.UIKit.UITableView.ReloadData () [0x00010] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UITableView.g.cs:263
  at Moments.Views.Streams.StreamView.LoadData (Moments.Data.Entity.Common.StreamContent,bool,int) [0x000ed] in /Users/mobile/Projects/msn/msn_client/Moments/Views/Streams/StreamView.cs:426
  at Moments.Views.Streams.StreamView/<LoadStream>c__AnonStorey23D/<LoadStream>c__AnonStorey23F/<LoadStream>c__AnonStorey23E.<>m__5B0 () [0x001a5] in /Users/mobile/Projects/msn/msn_client/Moments/Views/Streams/StreamView.cs:369
  at MonoTouch.Foundation.NSActionDispatcher.Apply () [0x00000] in /Developer/MonoTouch/Source/monotouch/src/shared/Foundation/NSAction.cs:53
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x0004e, 0xffffffff>
  at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <IL 0x0009f, 0xffffffff>
  at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
  at Moments.Application.Main (string[]) [0x00000] in /Users/mobile/Projects/msn/msn_client/Moments/Main.cs:17
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>

Native stacktrace:

	0   Moments                             0x000a85ec mono_handle_native_sigsegv + 284
	1   Moments                             0x0001e2c8 mono_sigsegv_signal_handler + 248
	2   libsystem_c.dylib                   0x9c96a59b _sigtramp + 43
	3   ???                                 0xffffffff 0x0 + 4294967295
	4   WebKit                              0x07412fa5 -[WebView(WebPrivate) styleAtSelectionStart] + 53
	5   UIKit                               0x01a6fa8a -[UIWebDocumentView typingAttributes] + 50
	6   UIKit                               0x019f2e57 -[UITextView typingAttributes] + 42
	7   ???                                 0x17230a4b 0x0 + 388172363
	8   ???                                 0x17c6e038 0x0 + 398909496
	9   ???                                 0x17c666f8 0x0 + 398878456
	10  Moments                             0x00022682 mono_jit_runtime_invoke + 722
	11  Moments                             0x00186fae mono_runtime_invoke + 126
	12  Moments                             0x000d22f5 do_invoke_method + 1685
	13  Moments                             0x000d2983 suspend_current + 627
	14  Moments                             0x000d2ad2 suspend_current + 962
	15  Moments                             0x000d2ad2 suspend_current + 962
	16  Moments                             0x000d2ad2 suspend_current + 962
	17  Moments                             0x000d2ad2 suspend_current + 962
	18  Moments                             0x000d2ad2 suspend_current + 962
	19  Moments                             0x000d2ad2 suspend_current + 962
	20  Moments                             0x000d2ad2 suspend_current + 962
	21  Moments                             0x000d2ad2 suspend_current + 962
	22  Moments                             0x000d2ad2 suspend_current + 962
	23  Moments                             0x000d2ad2 suspend_current + 962
	24  Moments                             0x000d2ad2 suspend_current + 962
	25  Moments                             0x000d2ad2 suspend_current + 962
	26  Moments                             0x000d2ad2 suspend_current + 962
	27  Moments                             0x000d2ad2 suspend_current + 962
	28  Moments                             0x000d2ad2 suspend_current + 962
	29  Moments                             0x000d2ad2 suspend_current + 962
	30  Moments                             0x000d2ad2 suspend_current + 962
	31  Moments                             0x000d2ad2 suspend_current + 962
	32  Moments                             0x000d2ad2 suspend_current + 962
	33  Moments                             0x000d2ad2 suspend_current + 962
	34  Moments                             0x000d2ad2 suspend_current + 962
	35  Moments                             0x000d2ad2 suspend_current + 962
	36  Moments                             0x000d2ad2 suspend_current + 962
	37  Moments                             0x000d2ad2 suspend_current + 962
	38  Moments                             0x000d2ad2 suspend_current + 962
	39  Moments                             0x000d2ad2 suspend_current + 962
	40  Moments                             0x000d2ad2 suspend_current + 962
	41  Moments                             0x000d2ad2 suspend_current + 962
	42  Moments                             0x000d2ad2 suspend_current + 962
	43  Moments                             0x000d2ad2 suspend_current + 962
	44  Moments                             0x000d2ad2 suspend_current + 962
	45  Moments                             0x000d2ad2 suspend_current + 962
	46  Moments                             0x000d2ad2 suspend_current + 962
	47  Moments                             0x000d2ad2 suspend_current + 962
	48  Moments                             0x000d2ad2 suspend_current + 962
	49  Moments                             0x000d2ad2 suspend_current + 962
	50  Moments                             0x000d2ad2 suspend_current + 962
	51  Moments                             0x000d2ad2 suspend_current + 962
	52  Moments                             0x000d2ad2 suspend_current + 962
	53  Moments                             0x000d2ad2 suspend_current + 962
	54  Moments                             0x000d2ad2 suspend_current + 962
	55  Moments                             0x000d2ad2 suspend_current + 962
	56  Moments                             0x000d2ad2 suspend_current + 962
	57  Moments                             0x000d2ad2 suspend_current + 962
	58  Moments                             0x000d2ad2 suspend_current + 962
	59  Moments                             0x000d2ad2 suspend_current + 962
	60  Moments                             0x000d2ad2 suspend_current + 962
	61  Moments                             0x000d2ad2 suspend_current + 962
	62  Moments                             0x000d2ad2 suspend_current + 962
	63  Moments                             0x000d2ad2 suspend_current + 962
	64  Moments                             0x000d2ad2 suspend_current + 962
	65  Moments                             0x000d2ad2 suspend_current + 962
	66  Moments                             0x000d2ad2 suspend_current + 962
	67  Moments                             0x000d2ad2 suspend_current + 962
	68  Moments                             0x000d2ad2 suspend_current + 962
	69  Moments                             0x000d2ad2 suspend_current + 962
	70  Moments                             0x000d2ad2 suspend_current + 962
	71  Moments                             0x000d2ad2 suspend_current + 962
	72  Moments                             0x000d2ad2 suspend_current + 962
	73  Moments                             0x000d2ad2 suspend_current + 962
	74  Moments                             0x000d2ad2 suspend_current + 962
	75  Moments                             0x000d2ad2 suspend_current + 962
	76  Moments                             0x000d2ad2 suspend_current + 962
	77  Moments                             0x000d2ad2 suspend_current + 962
	78  Moments                             0x000d2ad2 suspend_current + 962
	79  Moments                             0x000d2ad2 suspend_current + 962
	80  Moments                             0x000d2ad2 suspend_current + 962
	81  Moments                             0x000d2ad2 suspend_current + 962
	82  Moments                             0x000d2ad2 suspend_current + 962
	83  Moments                             0x000d2ad2 suspend_current + 962
	84  Moments                             0x000d3314 process_event + 1812
	85  Moments                             0x000d3e31 process_breakpoint_inner + 1201
	86  Moments                             0x000d408a process_breakpoint + 106
	87  ???                                 0xbfffd758 0x0 + 3221215064
	88  ???                                 0x17868730 0x0 + 394692400
	89  ???                                 0x178517b5 0x0 + 394598325
	90  Moments                             0x00022682 mono_jit_runtime_invoke + 722
	91  Moments                             0x00186fae mono_runtime_invoke + 126
	92  Moments                             0x00239a72 monotouch_fpret_single_trampoline + 3394
	93  UIKit                               0x01a9edee -[UISectionRowData refreshWithSection:tableView:tableViewRowData:] + 3620
	94  UIKit                               0x01aa13c4 -[UITableViewRowData numberOfRows] + 98
	95  UIKit                               0x01965fa2 -[UITableView noteNumberOfRowsChanged] + 120
	96  UIKit                               0x0196592c -[UITableView reloadData] + 769
	97  ???                                 0x17294dcc 0x0 + 388582860
	98  ???                                 0x17c49378 0x0 + 398758776
	99  ???                                 0x1780fba3 0x0 + 394328995
	100 ???                                 0x17c4903c 0x0 + 398757948
	101 ???                                 0x17547408 0x0 + 391410696
	102 ???                                 0x0b4ec05c 0x0 + 189710428
	103 Moments                             0x00022682 mono_jit_runtime_invoke + 722
	104 Moments                             0x00186fae mono_runtime_invoke + 126
	105 Moments                             0x0023cc06 monotouch_trampoline + 3686
	106 libobjc.A.dylib                     0x041586b0 -[NSObject performSelector:withObject:] + 70
	107 Foundation                          0x00af9035 __NSThreadPerformPerform + 327
	108 CoreFoundation                      0x03e92f3f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
	109 CoreFoundation                      0x03e9296f __CFRunLoopDoSources0 + 239
	110 CoreFoundation                      0x03eb5734 __CFRunLoopRun + 964
	111 CoreFoundation                      0x03eb4f44 CFRunLoopRunSpecific + 276
	112 CoreFoundation                      0x03eb4e1b CFRunLoopRunInMode + 123
	113 GraphicsServices                    0x04e5c7e3 GSEventRunModal + 88
	114 GraphicsServices                    0x04e5c668 GSEventRun + 104
	115 UIKit                               0x018ba65c UIApplicationMain + 1211
	116 ???                                 0x0d7f2885 0x0 + 226437253
	117 ???                                 0x0d7ef4d8 0x0 + 226424024
	118 ???                                 0x0d7ee808 0x0 + 226420744
	119 ???                                 0x0d7ee97e 0x0 + 226421118
	120 Moments                             0x00022682 mono_jit_runtime_invoke + 722
	121 Moments                             0x00186fae mono_runtime_invoke + 126
	122 Moments                             0x0018b404 mono_runtime_exec_main + 420
	123 Moments                             0x0018b775 mono_runtime_run_main + 725
	124 Moments                             0x0007de95 mono_jit_exec + 149
	125 Moments                             0x00231d6d main + 2013
	126 Moments                             0x0001b5e9 start + 53

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================
Comment 1 Sebastien Pouliot 2014-02-25 20:28:07 UTC
I cannot duplicate this.

			var t = new UITextView ();

Adding `t` to the watch pad works fine and I can see every properties, including `t.TypingAttributes` which is `null`.

Please re-open (and attach a test case) if you can still duplicate this. It's possible something else needs to happen before or, more likely, that it was fixed.