Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash EXC_BAD_ACCESS at KSCrashMonitor_Memory.m:573 #593

Closed
dannydaddy3 opened this issue Nov 13, 2024 · 0 comments · Fixed by #594
Closed

Crash EXC_BAD_ACCESS at KSCrashMonitor_Memory.m:573 #593

dannydaddy3 opened this issue Nov 13, 2024 · 0 comments · Fixed by #594
Labels

Comments

@dannydaddy3
Copy link

Describe the bug

We use KSCrash 2.0.0-rc.4 and right now about 0.07% of all our users for the last week have this crash (we consider crash as critical starting from 0.3%)

I added stacktrace below

Steps to reproduce

All crashes happen on app launch and always in background (could be app prewarming)

Crash report or stack trace

# Downloaded at: 2024-11-13 14:47:11
# Crashed at: 2024-11-13 09:02:38
# Device model: iPhone 15 Pro Max (iPhone16,2)
# OS version: iOS 17.6.1
# Background session: true
# Jailbroken: false

EXC_BAD_ACCESS at KSCrashMonitor_Memory.m:573

#0. EXC_BAD_ACCESS 0x0000000000000001

Crashed: Thread
0  Bookmate                   0x101773268 ksmemory_notifyUnhandledFatalSignal + 12 (KSCrashMonitor_Memory.m:573)
1  Bookmate                   0x101773f38 handleSignal + 96 (KSCrashMonitor_Signal.c)
2  libsystem_platform.dylib   0x1e5876e9c _sigtramp + 56
3  libsystem_kernel.dylib     0x1d1b38ec8 mach_msg2_internal + 80
4  libsystem_kernel.dylib     0x1d1b38de0 mach_msg_overwrite + 436
5  libsystem_kernel.dylib     0x1d1b38c20 mach_msg + 24
6  CoreFoundation             0x188eb0f5c __CFRunLoopServiceMachPort + 160
7  CoreFoundation             0x188eb0600 __CFRunLoopRun + 1208
8  CoreFoundation             0x188eafcd8 CFRunLoopRunSpecific + 608
9  GraphicsServices           0x1cd8fd1a8 GSEventRunModal + 164
10 UIKitCore                  0x18b4e9ae8 -[UIApplication _run] + 888
11 UIKitCore                  0x18b59dd98 UIApplicationMain + 340
12 Bookmate                   0x10080ca60 main + 540 (<compiler-generated>)
13 (Missing)                  0x1ac687154 (Missing)

#1. com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib    0x1d1b356c8 mach_msg2_trap + 8
1  libsystem_kernel.dylib    0x1d1b38ec8 mach_msg2_internal + 80
2  libsystem_kernel.dylib    0x1d1b38de0 mach_msg_overwrite + 436
3  libsystem_kernel.dylib    0x1d1b38c20 mach_msg + 24
4  CoreFoundation            0x188eb0f5c __CFRunLoopServiceMachPort + 160
5  CoreFoundation            0x188eb0600 __CFRunLoopRun + 1208
6  CoreFoundation            0x188eafcd8 CFRunLoopRunSpecific + 608
7  Foundation                0x187dd0b5c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  Foundation                0x187dd09ac -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9  UIKitCore                 0x18b4fd81c -[UIEventFetcher threadMain] + 420
10 Foundation                0x187de7428 __NSThread__start__ + 732
11 libsystem_pthread.dylib   0x1e593206c _pthread_start + 136

#2. Thread
0  libsystem_kernel.dylib    0x1d1b3b2ac __semwait_signal + 8
1  libsystem_c.dylib         0x190de05f0 nanosleep + 220
2  libsystem_c.dylib         0x190e3d72c sleep + 52
3  Bookmate                  0x10176f684 monitorCachedData + 748 (KSCrashCachedData.c)
4  libsystem_pthread.dylib   0x1e593206c _pthread_start + 136

#3. KSCrash Exception Handler (Secondary)
0  libsystem_kernel.dylib    0x1d1b356c8 mach_msg2_trap + 8
1  libsystem_kernel.dylib    0x1d1b38ec8 mach_msg2_internal + 80
2  libsystem_kernel.dylib    0x1d1b38de0 mach_msg_overwrite + 436
3  libsystem_kernel.dylib    0x1d1b38c20 mach_msg + 24
4  Bookmate                  0x1017721f0 handleExceptions + 164 (KSCrashMonitor_MachException.c:277)
5  libsystem_pthread.dylib   0x1e593206c _pthread_start + 136

#4. KSCrash Exception Handler (Primary)
0  (Missing)   0x000000000 (Missing)

#5. com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib    0x1d1b356c8 mach_msg2_trap + 8
1  libsystem_kernel.dylib    0x1d1b38ec8 mach_msg2_internal + 80
2  libsystem_kernel.dylib    0x1d1b38de0 mach_msg_overwrite + 436
3  libsystem_kernel.dylib    0x1d1b38c20 mach_msg + 24
4  CoreFoundation            0x188eb0f5c __CFRunLoopServiceMachPort + 160
5  CoreFoundation            0x188eb0600 __CFRunLoopRun + 1208
6  CoreFoundation            0x188eafcd8 CFRunLoopRunSpecific + 608
7  CFNetwork                 0x18a090c7c (Missing)
8  Foundation                0x187de7428 __NSThread__start__ + 732
9  libsystem_pthread.dylib   0x1e593206c _pthread_start + 136

#6. Thread
0  libsystem_pthread.dylib   0x1e592d0c4 start_wqthread + 0

#7. Thread
0  libsystem_pthread.dylib   0x1e592d0c4 start_wqthread + 0

#8. Thread
0  libsystem_pthread.dylib   0x1e592d0c4 start_wqthread + 0

#9. Thread
0  libsystem_pthread.dylib   0x1e592d0c4 start_wqthread + 0

#10. Thread
0  libsystem_pthread.dylib   0x1e592d0c4 start_wqthread + 0

#11. Thread
0  libsystem_kernel.dylib    0x1d1b3565c semaphore_timedwait_trap + 8
1  libdispatch.dylib         0x190d873ec _dispatch_sema4_timedwait + 64
2  libdispatch.dylib         0x190d879e8 _dispatch_semaphore_wait_slow + 76
3  libdispatch.dylib         0x190d98668 _dispatch_worker_thread + 328
4  libsystem_pthread.dylib   0x1e593206c _pthread_start + 136

#12. Thread
0  libsystem_kernel.dylib    0x1d1b3565c semaphore_timedwait_trap + 8
1  libdispatch.dylib         0x190d873ec _dispatch_sema4_timedwait + 64
2  libdispatch.dylib         0x190d879e8 _dispatch_semaphore_wait_slow + 76
3  libdispatch.dylib         0x190d98668 _dispatch_worker_thread + 328
4  libsystem_pthread.dylib   0x1e593206c _pthread_start + 136

#13. Thread
0  libsystem_kernel.dylib    0x1d1b3565c semaphore_timedwait_trap + 8
1  libdispatch.dylib         0x190d873ec _dispatch_sema4_timedwait + 64
2  libdispatch.dylib         0x190d879e8 _dispatch_semaphore_wait_slow + 76
3  libdispatch.dylib         0x190d98668 _dispatch_worker_thread + 328
4  libsystem_pthread.dylib   0x1e593206c _pthread_start + 136

KSCrash version

2.0.0-rc.4

Operating System

iOS

OS version

iOS 17.6.1

Device model

iPhone 15 Pro Max

Xcode version

Xcode 15.4

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant