VM Region Info: 0 is not in any region. UNUSED SPACE AT START TEXT 10

Please help to understand the crash better. I am keep getting this and is on Ipads only, iphones work just fine.

Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000 Exception Codes: 0x0000000000000001, 0x0000000000000000 VM Region Info: 0 is not in any region. Bytes before following region: 4390486016 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START --->
__TEXT 105b18000-10653c000 [ 10.1M] r-x/r-x SM=COW ...pp/mediproapp Termination Reason: SIGNAL 11 Segmentation fault: 11 Terminating Process: exc handler [2608]

Triggered by Thread: 0

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_platform.dylib 0x10ee0f0ad _platform_memmove$VARIANT$Haswell + 141 1 mediproapp 0x106422d92 addVertex + 98 (PPSSignatureView.m:40) 2 mediproapp 0x1064232f5 -[PPSSignatureView pan:] + 1077 (PPSSignatureView.m:416) 3 UIKitCore 0x1218a4e57 -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:] + 49 4 UIKitCore 0x1218aefb1 _UIGestureRecognizerSendTargetActions + 100 5 UIKitCore 0x1218abb1d _UIGestureRecognizerSendActions + 294 6 UIKitCore 0x1218aae59 -[UIGestureRecognizer _updateGestureForActiveEvents] + 725 7 UIKitCore 0x12189d0db _UIGestureEnvironmentUpdate + 2713 8 CoreFoundation 0x109f1ec67 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 23 9 CoreFoundation 0x109f1948c __CFRunLoopDoObservers + 541 10 CoreFoundation 0x109f19a3c __CFRunLoopRun + 1126 11 CoreFoundation 0x109f190f3 CFRunLoopRunSpecific + 567 12 GraphicsServices 0x110cb6cd3 GSEventRunModal + 139 13 UIKitCore 0x121dd0f42 -[UIApplication _run] + 928 14 UIKitCore 0x121dd5b5e UIApplicationMain + 101 15 mediproapp 0x105b1dc08 main + 104 (main.m:7) 16 dyld_sim 0x108b6dee9 start_sim + 10 17 dyld 0x109dad310 start + 2432

Thread 1: 0 libsystem_pthread.dylib 0x10ed91c58 start_wqthread + 0

Thread 2:: com.apple.uikit.eventfetch-thread 0 libsystem_kernel.dylib 0x10ef215c2 mach_msg2_trap + 10 1 libsystem_kernel.dylib 0x10ef2f604 mach_msg2_internal + 82 2 libsystem_kernel.dylib 0x10ef28635 mach_msg_overwrite + 723 3 libsystem_kernel.dylib 0x10ef218a8 mach_msg + 19 4 CoreFoundation 0x109f1f440 __CFRunLoopServiceMachPort + 319 5 CoreFoundation 0x109f19ae3 __CFRunLoopRun + 1293 6 CoreFoundation 0x109f190f3 CFRunLoopRunSpecific + 567 7 Foundation 0x10ab9a754 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213 8 Foundation 0x10ab9a9cb -[NSRunLoop(NSRunLoop) runUntilDate:] + 72 9 UIKitCore 0x121e912d1 -[UIEventFetcher threadMain] + 491 10 Foundation 0x10abc3550 NSThread__start + 1025 11 libsystem_pthread.dylib 0x10ed96259 _pthread_start + 125 12 libsystem_pthread.dylib 0x10ed91c7b thread_start + 15

Logical CPU: 4 Error Code: 0x00000006 (no mapping for user data write) Trap Number: 14

Crash Report

Consider this:

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000

Your app has crashed trying to access invalid memory. The invalid address is 0, that is, nil / NULL / nullptr.

Now look at the crashing thread backtrace:

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_platform.dylib … _platform_memmove$VARIANT$Haswell + 141
1   mediproapp               … addVertex + 98 (PPSSignatureView.m:40)
2   mediproapp               … -[PPSSignatureView pan:] + 1077 (PPSSignatureView.m:416)
3   UIKitCore                … -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:] + 49

Frame 3 shows that UIKit is calling your gesture recogniser. Frames 2 and 1 are you code. Frame 0 is the implementation of memmove. Something in your code is calling memmove with either a source or destination address of nil. To investigate further, look at the code indicated by frame 1, that is, line 416 of PPSSignatureView.m.

ps When posting chunks of preformatted text, use a code block to make it readable. For this and other DevForums hints, see Quinn’s Top Ten DevForums Tips.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

VM Region Info: 0 is not in any region. UNUSED SPACE AT START TEXT 10
 
 
Q