http://bugzilla.novell.com/show_bug.cgi?id=590240
http://bugzilla.novell.com/show_bug.cgi?id=590240#c0 Summary: Exception while using UISwipeGestureRecognizer Classification: Mono Product: MonoTouch Version: unspecified Platform: Macintosh OS/Version: Mac OS X 10.6 Status: NEW Severity: Normal Priority: P5 - None Component: Runtime AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 I'm running into an issue with my application when I started using the "UISwipeGestureRecognizer" class. I have created a smaller sample so that you can analyze it to let me know if it's a usage issue or a bug. To reproduce the issue, open the attached "example-gestures" project, and launch it. (Note: This is an iPad project) Once it is open simulate gestures going left to right, left to right, etc... Typically on my machine, after 11 gestures ("swipes") I get the following stacktrace: --------- BEGIN STACKTRACE -------- Stacktrace: at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0x00004> at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0x00004> at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x00038] in /Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:26 at MonoTouch.UIKit.UIApplication.Main (string[]) [0x00000] in /Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:31 at examplegestures.Application.Main (string[]) [0x00000] in /Development/ew-llc/ew-monotouch/example-gestures/Main.cs:14 at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x0001d, 0x00090> Native stacktrace: 0 example-gestures 0x000c1888 mono_handle_native_sigsegv + 376 1 example-gestures 0x0000daaa mono_sigsegv_signal_handler + 313 2 libSystem.B.dylib 0x97aca9bb _sigtramp + 43 3 ??? 0xffffffff 0x0 + 4294967295 4 UIKit 0x0167a0aa -[UITouchesEvent _addGestureRecognizersForView:toTouch:] + 491 5 UIKit 0x01679ceb -[UITouchesEvent _addTouch:forDelayedDelivery:] + 242 6 UIKit 0x01507fa4 _AddTouchToEvent + 188 7 UIKit 0x01515b18 _UIApplicationHandleEvent + 6799 8 GraphicsServices 0x03c3517c PurpleEventCallback + 1578 9 CoreFoundation 0x009ad03c CFRunLoopRunSpecific + 4076 10 CoreFoundation 0x009ac048 CFRunLoopRunInMode + 88 11 GraphicsServices 0x03c3389d GSEventRunModal + 217 12 GraphicsServices 0x03c33962 GSEventRun + 115 13 UIKit 0x01513de1 UIApplicationMain + 1134 14 ??? 0x067f4eba 0x0 + 109006522 15 ??? 0x067f4c8a 0x0 + 109005962 16 ??? 0x067f45aa 0x0 + 109004202 17 ??? 0x067f43fc 0x0 + 109003772 18 ??? 0x067f44b1 0x0 + 109003953 19 example-gestures 0x0000d86e mono_jit_runtime_invoke + 1360 20 example-gestures 0x001c7449 mono_runtime_invoke + 137 21 example-gestures 0x001c91a0 mono_runtime_exec_main + 714 22 example-gestures 0x001c8a61 mono_runtime_run_main + 812 23 example-gestures 0x00096ea3 mono_jit_exec + 200 24 example-gestures 0x0027e0ed main + 3187 25 example-gestures 0x000025d0 _start + 210 26 example-gestures 0x000024fd start + 41 Debug info from gdb: warning: Trying to remove a section from the ordered section list that did not exist at 0x364000. warning: Could not find object file "/var/folders/i7/i7qGCU12EJyERd6E5iKVT++++TI/-Tmp-//ccAJjSwz.o" - no debug information available for "template.m". warning: .o file "/Developer/MonoTouch/SDKs/MonoTouch1.0.iphonesimulator.sdk/usr/lib/libmonotouch.a(zlib-helper.x86.o)" more recent than executable timestamp in "/Users/jlipsky/Library/Application Support/iPhone Simulator/3.2/Applications/F441E438-1FFA-43C7-AEDC-A831FB33B3AD/example-gestures.app/example-gestures" warning: Could not open OSO file /Developer/MonoTouch/SDKs/MonoTouch1.0.iphonesimulator.sdk/usr/lib/libmonotouch.a(zlib-helper.x86.o) to scan for pubtypes for objfile /Users/jlipsky/Library/Application Support/iPhone Simulator/3.2/Applications/F441E438-1FFA-43C7-AEDC-A831FB33B3AD/example-gestures.app/example-gestures warning: .o file "/Developer/MonoTouch/SDKs/MonoTouch1.0.iphonesimulator.sdk/usr/lib/libmonotouch.a(monotouch-glue.x86.o)" more recent than executable timestamp in "/Users/jlipsky/Library/Application Support/iPhone Simulator/3.2/Applications/F441E438-1FFA-43C7-AEDC-A831FB33B3AD/example-gestures.app/example-gestures" warning: Could not open OSO file /Developer/MonoTouch/SDKs/MonoTouch1.0.iphonesimulator.sdk/usr/lib/libmonotouch.a(monotouch-glue.x86.o) to scan for pubtypes for objfile /Users/jlipsky/Library/Application Support/iPhone Simulator/3.2/Applications/F441E438-1FFA-43C7-AEDC-A831FB33B3AD/example-gestures.app/example-gestures Attaching to process 3713. Reading symbols for shared libraries . done Reading symbols for shared libraries ..................................................................................... done 0x97a6fbf9 in read$UNIX2003 () 6 port# 0x3803 0x97a648da in mach_msg_trap () 5 port# 0x3603 0x97aa1b1a in recvfrom$UNIX2003 () 4 port# 0x2403 0x97a64916 in semaphore_wait_trap () 3 port# 0x2003 0x97a92806 in __semwait_signal () 2 port# 0x1f03 0x97a648da in mach_msg_trap () * 1 port# 0x207 0x97a6fbf9 in read$UNIX2003 () --------- END STACKTRACE -------- What is strange is that if you comment out lines 15 and 16 of "GestureView.cs", and re-run the application, it will not crash until the 19th "swipe gesture". I included the gradient view to demonstrate that a child view accelerates how quickly the crash happens. In my real application, there are many (20 or so) subviews and the application crashes after the first "swipe gesture" attempt. I am running OSX 10.6.2 I am using iPhone Developer Kit 3.2 Beta 5 and had the same issue occur with Beta 3 and Beta 4 I am using the latest beta/alpha releases of MonoTouch and MonoDevelop (as updated through the auto update feature) Note: I don't know if this perhaps could be an issue with the iPad simulator, as the scale of the iPad simulator seems to impact how quickly this exception occurs as well. Reproducible: Always Steps to Reproduce: 1. Launch the attached example 2. Swipe back left and right until exception occurs. Actual Results: Exception occurs. Expected Results: No exception occurs. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
