Hello, i’m reporting a crash that take place in the handling of touch events in the core of Codea.
The code is from the drawing of lines from multiple touching points with different fingers, with this code:
http://twolivesleft.com/Codea/Talk/discussion/1386/2d-physic-game-sandbox-with-drawing
this is the report error in the organizer window of Xcode:
Incident Identifier: F174F0E7-7193-493F-A937-74D93B75315C
CrashReporter Key: 10651cd8b5e6d476651ce356a380205e09c93f93
Hardware Model: iPad2,2
Process: Codea [2681]
Path: /var/mobile/Applications/5F1F08C1-D515-42B6-B3A6-4656E68781D5/Codea.app/Codea
Identifier: Codea
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-08-13 14:21:25.977 +0200
OS Version: iPhone OS 5.0.1 (9A405)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000020
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_c.dylib 0x32f15c74 memcpy$VARIANT$CortexA9 + 244
1 Codea 0x00137b08 0x95000 + 666376
2 Codea 0x0019d58a 0x95000 + 1082762
3 Codea 0x0019d6de 0x95000 + 1083102
4 Codea 0x001a6eb4 0x95000 + 1121972
5 Codea 0x001a7a5e 0x95000 + 1124958
6 Codea 0x0019d6e8 0x95000 + 1083112
7 Codea 0x00198882 0x95000 + 1063042
8 Codea 0x0019d0d4 0x95000 + 1081556
9 Codea 0x0019d888 0x95000 + 1083528
10 Codea 0x0019885a 0x95000 + 1063002
11 Codea 0x000a5304 0x95000 + 66308
12 Codea 0x000ac446 0x95000 + 95302
13 UIKit 0x32817508 -[UIWindow _sendTouchesForEvent:] + 312
14 UIKit 0x32816efa -[UIWindow sendEvent:] + 374
15 UIKit 0x327fd4e6 -[UIApplication sendEvent:] + 350
16 UIKit 0x327fcd26 _UIApplicationHandleEvent + 5802
17 GraphicsServices 0x30b4fdec PurpleEventCallback + 876
18 CoreFoundation 0x342e1afc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 8
19 CoreFoundation 0x342e12c8 __CFRunLoopDoSources0 + 208
20 CoreFoundation 0x342e006e __CFRunLoopRun + 646
21 CoreFoundation 0x342634d6 CFRunLoopRunSpecific + 294
22 CoreFoundation 0x3426339e CFRunLoopRunInMode + 98
23 GraphicsServices 0x30b4efc6 GSEventRunModal + 150
24 UIKit 0x3282b73c UIApplicationMain + 1084
25 Codea 0x00097e18 0x95000 + 11800
26 Codea 0x00097dd8 0x95000 + 11736
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x36d743b4 kevent + 24
1 libdispatch.dylib 0x3330af74 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x3330ac92 _dispatch_mgr_thread + 30
Thread 2:
0 libsystem_kernel.dylib 0x36d84cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x32eaa30a _pthread_wqthread + 610
2 libsystem_c.dylib 0x32eaa09c start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x36d84cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x32eaa30a _pthread_wqthread + 610
2 libsystem_c.dylib 0x32eaa09c start_wqthread + 0
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x36d74010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x36d74206 mach_msg + 50
2 CoreFoundation 0x342e141c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x342e0154 __CFRunLoopRun + 876
4 CoreFoundation 0x342634d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3426339e CFRunLoopRunInMode + 98
6 WebCore 0x33794128 _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x32eafc16 _pthread_start + 314
8 libsystem_c.dylib 0x32eafad0 thread_start + 0
....
Thread 0 crashed with ARM Thread State:
r0: 0x2fe923d8 r1: 0x00000020 r2: 0xffffffc6 r3: 0x2fe923b8
r4: 0x00000001 r5: 0x0d1386f0 r6: 0x00000001 r7: 0x2fe923c8
r8: 0x0d5adf34 r9: 0x001fbcec r10: 0x029aa280 r11: 0x00000000
ip: 0xc0000000 sp: 0x2fe923c0 lr: 0x00137b0f pc: 0x32f15c74
cpsr: 0x80080010
Binary Images:
0x95000 - 0x1fafff +Codea armv7 <11b8b7d0f6f630bca18961b8abaccf19> /var/mobile/Applications/5F1F08C1-D515-42B6-B3A6-4656E68781D5/Codea.app/Codea
...etc.
I dont know how to solve this problem, so here i am asking you for some help :]
Filled an issue here:
https://bitbucket.org/TwoLivesLeft/codea/issue/181/multiple-touch-crash