Not sure on the error - it's a segfault, which is basically a null reference exception - but you could replace the UIButton with a Guesture and attach that to the image? And turn on user interaction for the image if you do :)
Tho it looks like it's failing when it's calling back into your code - have you let something go out of scope? On Wed, Aug 15, 2012 at 9:02 AM, A_vdB <[email protected]> wrote: > After I have updated monotouch to Version 5.2.13 my App crashes when I > touched inside a UIButton. > > About my Code: (it's a question of a LoginView): > > I have a UIViewController which includes a ScrollView. > For each User the ScrollView provides a UIView (the UserImageView). > This UserImageView contains a UserImage, Username and so on. Over the > UserImage lays a UIButton which should catches the Touch-Events to selected > a User. > This Button causes the Exception below more precisely the HitTest Method > from the UIView. > > I get the following Stacktrace: > > > Stacktrace: > > at (wrapper managed-to-native) > MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) > <IL 0x0009f, 0xffffffff> > at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x00042] > in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:29 > at MF.Stationaer.iPad.Application.Main (string[]) <IL 0x00028, 0x00073> > at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object > (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff> > > Native stacktrace: > > 0 MFiPad_MD 0x0009061c mono_handle_native_sigsegv + 284 > 1 MFiPad_MD 0x000059a8 mono_sigsegv_signal_handler + 248 > 2 libsystem_c.dylib 0x92cd259b _sigtramp + 43 > 3 ??? 0xffffffff 0x0 + 4294967295 > 4 UIKit 0x0228c741 > __38-[UIView(Geometry) > hitTest:withEvent:]_block_invoke_0 + 96 > 5 CoreFoundation 0x0116cf1a > __NSArrayChunkIterate + > 362 > 6 CoreFoundation 0x01138635 __NSArrayEnumerate > + 997 > 7 CoreFoundation 0x01138026 -[NSArray > enumerateObjectsWithOptions:usingBlock:] + 102 > 8 UIKit 0x0228c66b -[UIView(Geometry) > hitTest:withEvent:] + 646 > 9 UIKit 0x0228c765 > __38-[UIView(Geometry) > hitTest:withEvent:]_block_invoke_0 + 132 > 10 CoreFoundation 0x0116cf1a > __NSArrayChunkIterate + > 362 > 11 CoreFoundation 0x01138635 __NSArrayEnumerate > + 997 > 12 CoreFoundation 0x01138026 -[NSArray > enumerateObjectsWithOptions:usingBlock:] + 102 > 13 UIKit 0x0228c66b -[UIView(Geometry) > hitTest:withEvent:] + 646 > 14 UIKit 0x022a1157 -[UIScrollView > hitTest:withEvent:] + 79 > 15 UIKit 0x0228c765 > __38-[UIView(Geometry) > hitTest:withEvent:]_block_invoke_0 + 132 > 16 CoreFoundation 0x0116cf1a > __NSArrayChunkIterate + > 362 > 17 CoreFoundation 0x01138635 __NSArrayEnumerate > + 997 > 18 CoreFoundation 0x01138026 -[NSArray > enumerateObjectsWithOptions:usingBlock:] + 102 > 19 UIKit 0x0228c66b -[UIView(Geometry) > hitTest:withEvent:] + 646 > 20 UIKit 0x0228c765 > __38-[UIView(Geometry) > hitTest:withEvent:]_block_invoke_0 + 132 > 21 CoreFoundation 0x0116cf1a > __NSArrayChunkIterate + > 362 > 22 CoreFoundation 0x01138635 __NSArrayEnumerate > + 997 > 23 CoreFoundation 0x01138026 -[NSArray > enumerateObjectsWithOptions:usingBlock:] + 102 > 24 UIKit 0x0228c66b -[UIView(Geometry) > hitTest:withEvent:] + 646 > 25 UIKit 0x0228c765 > __38-[UIView(Geometry) > hitTest:withEvent:]_block_invoke_0 + 132 > 26 CoreFoundation 0x0116cf1a > __NSArrayChunkIterate + > 362 > 27 CoreFoundation 0x01138635 __NSArrayEnumerate > + 997 > 28 CoreFoundation 0x01138026 -[NSArray > enumerateObjectsWithOptions:usingBlock:] + 102 > 29 UIKit 0x0228c66b -[UIView(Geometry) > hitTest:withEvent:] + 646 > 30 UIKit 0x02286dbd +[UIWindow > _hitTestToPoint:pathIndex:forEvent:] + 378 > 31 UIKit 0x02258ca0 > _UIApplicationHandleEvent + 1648 > 32 GraphicsServices 0x047c5ef5 > PurpleEventCallback + > 1274 > 33 CoreFoundation 0x011a9195 > __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53 > 34 CoreFoundation 0x0110dff2 > __CFRunLoopDoSource1 + > 146 > 35 CoreFoundation 0x0110c8da __CFRunLoopRun + > 2218 > 36 CoreFoundation 0x0110bd84 > CFRunLoopRunSpecific + > 212 > 37 CoreFoundation 0x0110bc9b CFRunLoopRunInMode > + 123 > 38 GraphicsServices 0x047c47d8 GSEventRunModal + > 190 > 39 GraphicsServices 0x047c488a GSEventRun + 103 > 40 UIKit 0x02258626 UIApplicationMain > + 1163 > 41 ??? 0x0b96e514 0x0 + 194438420 > 42 ??? 0x0b96d6c0 0x0 + 194434752 > 43 ??? 0x0b96d33c 0x0 + 194433852 > 44 ??? 0x0b96d42f 0x0 + 194434095 > 45 MFiPad_MD 0x00009d12 mono_jit_runtime_invoke + 722 > 46 MFiPad_MD 0x00169e4e mono_runtime_invoke + 126 > 47 MFiPad_MD 0x0016df34 mono_runtime_exec_main + 420 > 48 MFiPad_MD 0x001732e5 mono_runtime_run_main + 725 > 49 MFiPad_MD 0x00066f15 mono_jit_exec + 149 > 50 MFiPad_MD 0x002115d5 main + 2837 > 51 MFiPad_MD 0x00002d65 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. > ================================================================= > > > > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/App-crashes-after-update-to-Monotouch-5-2-13-tp4656525.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
