We are seeing a crash only in iOS5 which occurs during the .get_View()
method of the parent controller. Looking at the stack trace, it appears
that .get_view() is initializing child controls and calling their
constructors... 

Oddly enough, part of the stack trace indicates that
DetailTextWebView..ctor(NSCoder) is being called, but the 'InstanceLog'
code (which is a simple wrapper around
System.Diagnostics.debug.WriteLine()) is NOT being called.

The stack trace follows, but does anyone have ideas as to what would be
causing this?





Background: We have a ViewController/.xib which contains a View, which in
turn contains a UIWebView.

-XIB
--- View
------  UIWebView

This UIWebView has the 'Class' defined in the property window to
'DetailTextWebView'.


The definition of the class is as follows:
==========================================

[MonoTouch.Foundation.Register("DetailTextWebView")]
        public class DetailTextWebView : UIWebView
        {

public DetailTextWebView (IntPtr handle) : base(handle) {}

[Export("initWithCoder:")]
                public DetailTextWebView (NSCoder coder) : base(coder) {
                        InstanceLog.WriteLog("this code will not be reached");
                }

public DetailTextWebView (RectangleF frame) :base(frame) {}
}


===========================================


We are seeing a crash only in iOS5 which occurs during the .get_View()
method of the parent controller. Looking at the stack trace, it appears
that .get_view() is initializing child controls and calling their
constructors... 

Oddly enough, part of the stack trace indicates that
DetailTextWebView..ctor(NSCoder) is being called, but the 'InstanceLog'
code (which is a simple wrapper around
System.Diagnostics.debug.WriteLine()) is NOT being called.

The stack trace follows, but does anyone have ideas as to what would be
causing this?


Stack Trace
===========

Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:
Stacktrace:


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:   at
MonoTouch.Foundation.NSObject.InitializeObject (bool) <0x00093>


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:   at
MonoTouch.Foundation.NSObject..ctor (MonoTouch.Foundation.NSObjectFlag)
<0x0002b>


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:   at
MonoTouch.UIKit.UIResponder..ctor (MonoTouch.Foundation.NSObjectFlag)
<0x00023>


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:   at
MonoTouch.UIKit.UIView..ctor (MonoTouch.Foundation.NSObjectFlag) <0x00023>


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:   at
MonoTouch.UIKit.UIWebView..ctor () <0x0002b>


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:   at
LWBOJIPhone.DetailTextWebView..ctor (MonoTouch.Foundation.NSCoder) <IL
0x00001, 0x00083>


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:   at
(wrapper runtime-invoke) object.runtime_invoke_dynamic
(intptr,intptr,intptr,intptr) <0xffffffff>


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:   at
MonoTouch.UIKit.UIViewController.get_View () <0x00097>


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:   at
LWBOJIPhone.BrowseViewController.SwitchToDetailView
(LWBOJIPhone.BrowseDataSource,LWBOJIPhone.IPBOJWS.BOJBookTerm) [0x00070]
in 
/Users/stevem/Desktop/TFS/Source/BookOfJargon/Common/Interfaces/BrowseViewC
ontroller.xib.cs:77


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:   at
LWBOJIPhone.BrowseViewController.<SwitchToListView>m__4
(LWBOJIPhone.IPBOJWS.BOJBookTerm) [0x00000] in
/Users/stevem/Desktop/TFS/Source/BookOfJargon/Common/Interfaces/BrowseViewC
ontroller.xib.cs:108


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:   at
LWBOJIPhone.BrowseDataSource.RowSelected
(MonoTouch.UIKit.UITableView,MonoTouch.Foundation.NSIndexPath) [0x0002d]
in 
/Users/stevem/Desktop/TFS/Source/BookOfJargon/Common/Support/BrowseDataSour
ce.cs:143


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:   at
(wrapper runtime-invoke) object.runtime_invoke_dynamic
(intptr,intptr,intptr,intptr) <0xffffffff>


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:   at
MonoTouch.UIKit.UIApplication.Main (string[],string,string) <0x000cf>


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:   at
MonoTouch.UIKit.UIApplication.Main (string[]) <0x00023>


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:   at
LWBOJIPhone.Application.Main (string[]) [0x00000] in
/Users/stevem/Desktop/TFS/Source/BookOfJargon/Common/Interfaces/Main.cs:15


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:   at
(wrapper runtime-invoke) object.runtime_invoke_dynamic
(intptr,intptr,intptr,intptr) <0xffffffff>


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>: Native
stacktrace:


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       0
LWBOJIPhone                         0x004d9f5c mono_handle_native_sigsegv
+ 412


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       1
LWBOJIPhone                         0x004bfe3c mono_sigsegv_signal_handler
+ 360


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       2
libsystem_c.dylib                   0x33732441 _sigtramp + 48


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       3
LWBOJIPhone                         0x00636540 monotouch_retain_trampoline
+ 48


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       4
LWBOJIPhone                         0x0009f438
wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_void_objc_msgSend
_intptr_intptr + 68


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       5
LWBOJIPhone                         0x0007b7f4
MonoTouch_Foundation_NSObject__ctor_MonoTouch_Foundation_NSObjectFlag + 44


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       6
LWBOJIPhone                         0x000857f8
MonoTouch_UIKit_UIResponder__ctor_MonoTouch_Foundation_NSObjectFlag + 36


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       7
LWBOJIPhone                         0x0008979c
MonoTouch_UIKit_UIView__ctor_MonoTouch_Foundation_NSObjectFlag + 36


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       8
LWBOJIPhone                         0x0008b054
MonoTouch_UIKit_UIWebView__ctor + 44


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       9
LWBOJIPhone                         0x000de918 methods + 39192


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       10
LWBOJIPhone                         0x0042737c
wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_i
ntptr + 200


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       11
LWBOJIPhone                         0x004bfaa4 mono_jit_runtime_invoke +
2800


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       12
LWBOJIPhone                         0x005ae778 mono_runtime_invoke + 140


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       13
LWBOJIPhone                         0x006355e8 monotouch_ctor_trampoline +
2948


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       14
UIKit                               0x37e92d93 -[UIClassSwapper
initWithCoder:] + 218


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       15
Foundation                          0x36e238d3 _decodeObjectBinary + 2698


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       16
Foundation                          0x36e22d19 _decodeObject + 204


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       17
UIKit                               0x37e929b9 -[UIRuntimeConnection
initWithCoder:] + 152


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       18
Foundation                          0x36e238d3 _decodeObjectBinary + 2698


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       19
Foundation                          0x36e2764f -[NSKeyedUnarchiver
_decodeArrayOfObjectsForKey:] + 1102


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       20
Foundation                          0x36e270d3 -[NSArray(NSArray)
initWithCoder:] + 502


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       21
Foundation                          0x36e238d3 _decodeObjectBinary + 2698


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       22
Foundation                          0x36e22d19 _decodeObject + 204


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       23
UIKit                               0x37e92145 -[UINib
instantiateWithOwner:options:] + 664


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       24
UIKit                               0x37df236b -[UIViewController
_loadViewFromNibNamed:bundle:] + 246


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       25
UIKit                               0x37da76e5 -[UIViewController
loadView] + 88


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       26
UIKit                               0x37c8a547 -[UIViewController view] +
50


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       27
LWBOJIPhone                         0x0009f8b0
wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSe
ndSuper_intptr_intptr + 68


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       28
LWBOJIPhone                         0x000db9ec methods + 27116


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       29
LWBOJIPhone                         0x000dc204 methods + 29188


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       30
LWBOJIPhone                         0x000eb55c methods + 91484


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       31
LWBOJIPhone                         0x0042737c
wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_i
ntptr + 200


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       32
LWBOJIPhone                         0x004bfaa4 mono_jit_runtime_invoke +
2800


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       33
LWBOJIPhone                         0x005ae778 mono_runtime_invoke + 140


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       34
LWBOJIPhone                         0x00634368 monotouch_trampoline + 2840


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       35
UIKit                               0x37ca75c9 -[UITableView
_selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 944


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       36
UIKit                               0x37d0a8fb -[UITableView
_userSelectRowAtPendingSelectionIndexPath:] + 158


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       37
Foundation                          0x36e8ed4f __NSFireDelayedPerform + 414


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       38
CoreFoundation                      0x33c50f3f
__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 14


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       39
CoreFoundation                      0x33c50ba5 __CFRunLoopDoTimer + 364


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       40
CoreFoundation                      0x33c4f553 __CFRunLoopRun + 1206


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       41
CoreFoundation                      0x33bf0f79 CFRunLoopRunSpecific + 300


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       42
CoreFoundation                      0x33bf0e41 CFRunLoopRunInMode + 104


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       43
GraphicsServices                    0x3410a125 GSEventRunModal + 156


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       44
UIKit                               0x37c4d479 UIApplicationMain + 1080


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       45
LWBOJIPhone                         0x000a212c
wrapper_managed_to_native_MonoTouch_UIKit_UIApplication_UIApplicationMain_i
nt_string___intptr_intptr + 240


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       46
LWBOJIPhone                         0x00081d88
MonoTouch_UIKit_UIApplication_Main_string__ + 36


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       47
LWBOJIPhone                         0x000f0050 methods + 110672


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       48
LWBOJIPhone                         0x0042737c
wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_i
ntptr + 200


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       49
LWBOJIPhone                         0x004bfaa4 mono_jit_runtime_invoke +
2800


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       50
LWBOJIPhone                         0x005ae778 mono_runtime_invoke + 140


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       51
LWBOJIPhone                         0x005b1728 mono_runtime_exec_main + 784


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       52
LWBOJIPhone                         0x005b078c mono_runtime_run_main + 1048


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       53
LWBOJIPhone                         0x004c7254 mono_jit_exec + 216


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       54
LWBOJIPhone                         0x004ba070 main + 3520


Jul 29 11:45:55 Steve-Mentzers-iPad
UIKitApplication:com.lw.bookofjargoniphone[0x2370][404] <Notice>:       55
LWBOJIPhone                         0x00002eb4 start + 40





*******************************************************************************
To comply with IRS regulations, we advise you that any discussion of Federal 
tax issues in this 
e-mail was not intended or written to be used, and cannot be used by you, (i) 
to avoid any penalties 
imposed under the Internal Revenue Code or (ii) to promote, market or recommend 
to another party any 
transaction or matter addressed herein.

For more information please go to  http://www.lw.com/docs/irs.pdf
*******************************************************************************

This email may contain material that is confidential, privileged and/or 
attorney work product for 
the sole use of the intended recipient.  Any review, reliance or distribution 
by others or forwarding
without express permission is strictly prohibited.  If you are not the intended 
recipient, please 
contact the sender and delete all copies.

Latham & Watkins LLP

_______________________________________________
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to