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

fix: 3.29 release has EXC_BAD_ACCESS NSBlock > KERN_INVALID_ADDRESS #2896

Closed
Ax0elz opened this issue Feb 15, 2025 · 4 comments
Closed

fix: 3.29 release has EXC_BAD_ACCESS NSBlock > KERN_INVALID_ADDRESS #2896

Ax0elz opened this issue Feb 15, 2025 · 4 comments
Assignees
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@Ax0elz
Copy link

Ax0elz commented Feb 15, 2025

App ID: tripski

Description
App crashes on iOS on startup. EXC_BAD_ACCESS
NSBlock >
KERN_INVALID_ADDRESS

Started after making a build on latest stable flutter 3.29.0.

Non shorebird build works fine.

Steps To Reproduce

  1. Start app
  2. It crashes. Sentry captures EXC_BAD_ACCESS
    NSBlock >
    KERN_INVALID_ADDRESS
@Ax0elz Ax0elz added the bug Something isn't working label Feb 15, 2025
@eseidel
Copy link
Contributor

eseidel commented Feb 15, 2025

Thank you for the report! We would love to help. Are you able to reproduce on your local device? Could you share an ips file?

https://developer.apple.com/documentation/xcode/acquiring-crash-reports-and-diagnostic-logs

@Ax0elz
Copy link
Author

Ax0elz commented Feb 15, 2025

Thanks for the quick response.

Here is a crash report:

7ZrFYK5TmutcVc9jeGtai.xccrashpoint.zip

Let me know if I can send an xcarchive I can send that later (I don't have an IPA on hand right now)

@orestesgaolin
Copy link

orestesgaolin commented Feb 18, 2025

Seems to be similar stacktrace as #2844

Thread 0:
0   libsystem_kernel.dylib        	0x00000001d8c9c788 mach_msg2_trap + 8 (:-1)
1   libsystem_kernel.dylib        	0x00000001d8c9fe98 mach_msg2_internal + 80 (mach_msg.c:201)
2   libsystem_kernel.dylib        	0x00000001d8c9fdb0 mach_msg_overwrite + 424 (mach_msg.c:0)
3   libsystem_kernel.dylib        	0x00000001d8c9fbfc mach_msg + 24 (mach_msg.c:323)
4   CoreFoundation                	0x00000001875bb804 __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2637)
5   CoreFoundation                	0x00000001875baeb0 __CFRunLoopRun + 1212 (CFRunLoop.c:3021)
6   CoreFoundation                	0x000000018760d284 CFRunLoopRunSpecific + 588 (CFRunLoop.c:3434)
7   GraphicsServices              	0x00000001d48794c0 GSEventRunModal + 164 (GSEvent.c:2196)
8   UIKitCore                     	0x000000018a156674 -[UIApplication _run] + 816 (UIApplication.m:3846)
9   UIKitCore                     	0x0000000189d7ce88 UIApplicationMain + 340 (UIApplication.m:5503)
10  UIKitCore                     	0x000000018a4b915c UIApplicationMain(_:_:_:_:) + 104 (UIKit.swift:565)
11  Runner                        	0x0000000102d0cb6c specialized static UIApplicationDelegate.main() + 28 (/<compiler-generated>:6)
12  Runner                        	0x0000000102d0cb6c static AppDelegate.$main() + 28 (AppDelegate.swift:0)
13  Runner                        	0x0000000102d0cb6c main + 120
14  dyld                          	0x00000001ad865de8 start + 2724 (dyldMain.cpp:1338)

Thread 1:
0   Flutter                       	0x00000001066042cc dart::Thread::dart_state_is_on_cpu() const + 0 (thread.h:1161)
1   Flutter                       	0x00000001066042cc dart::Simulator::CallWithCpuState(unsigned long, unsigned long) + 20 (simulator_arm64.cc:4002)
2   Flutter                       	0x00000001066042cc dart::CallSimulatorFromFFI(unsigned long, unsigned long) + 104 (shorebird_ffi_callback.cc:124)
3   ???                           	0x000000010fc24928 0x0 + 4559358248
4   cupertino_http                	0x0000000104077978 ___NativeCupertinoHttp_wrapListenerBlock_xx612k_block_invoke + 228 (native_cupertino_bindings.m:559)
5   CoreFoundation                	0x0000000187574e34 __invoking___ + 148 (:-1)
6   CoreFoundation                	0x0000000187573e7c -[NSInvocation invoke] + 428 (NSForwarding.m:3411)
7   CoreFoundation                	0x00000001875d7a38 -[NSInvocation invokeWithTarget:] + 64 (NSForwarding.m:3508)
8   objective_c                   	0x000000010476a538 -[DOBJCDartProxy forwardInvocation:] + 104 (proxy.m:90)
9   CoreFoundation                	0x0000000187575374 ___forwarding___ + 964 (NSForwarding.m:3654)
10  CoreFoundation                	0x0000000187574ef0 _CF_forwarding_prep_0 + 96 (:-1)
11  CFNetwork                     	0x0000000188aa706c __81-[__NSCFURLSessionDelegateWrapper dataTask:didReceiveResponse:completionHandler:]_block_invoke + 168 (SessionDelegateWrapper.mm:620)
12  Foundation                    	0x00000001861a4c9c __NSINDEXSET_IS_CALLING_OUT_TO_A_BOOL_BLOCK__ + 24 (NSIndexSet.m:172)
13  Foundation                    	0x0000000186194568 -[NSBlockOperation main] + 104 (NSOperation.m:1565)
14  Foundation                    	0x0000000186194488 __NSOPERATION_IS_INVOKING_MAIN__ + 16 (NSOperation.m:2190)
15  Foundation                    	0x00000001861928e0 -[NSOperation start] + 648 (NSOperation.m:1407)
16  Foundation                    	0x00000001861c9ce0 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 16 (NSOperation.m:2221)
17  Foundation                    	0x00000001861c9910 __NSOQSchedule_f + 172 (NSOperation.m:2232)
18  libdispatch.dylib             	0x000000018f316394 _dispatch_block_async_invoke2 + 148 (queue.c:574)
19  libdispatch.dylib             	0x000000018f306fa8 _dispatch_client_callout + 20 (object.m:576)
20  libdispatch.dylib             	0x000000018f30a45c _dispatch_continuation_pop + 596 (queue.c:325)
21  libdispatch.dylib             	0x000000018f309a8c _dispatch_async_redirect_invoke + 580 (queue.c:849)
22  libdispatch.dylib             	0x000000018f318ec0 _dispatch_root_queue_drain + 392 (queue.c:7331)
23  libdispatch.dylib             	0x000000018f3196c4 _dispatch_worker_thread2 + 156 (queue.c:7399)
24  libsystem_pthread.dylib       	0x0000000212308644 _pthread_wqthread + 228 (pthread.c:2709)
25  libsystem_pthread.dylib       	0x0000000212306474 start_wqthread + 8 (:-1)

@felangel
Copy link
Contributor

Seems to be similar stacktrace as #2844

Thread 0:
0   libsystem_kernel.dylib        	0x00000001d8c9c788 mach_msg2_trap + 8 (:-1)
1   libsystem_kernel.dylib        	0x00000001d8c9fe98 mach_msg2_internal + 80 (mach_msg.c:201)
2   libsystem_kernel.dylib        	0x00000001d8c9fdb0 mach_msg_overwrite + 424 (mach_msg.c:0)
3   libsystem_kernel.dylib        	0x00000001d8c9fbfc mach_msg + 24 (mach_msg.c:323)
4   CoreFoundation                	0x00000001875bb804 __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2637)
5   CoreFoundation                	0x00000001875baeb0 __CFRunLoopRun + 1212 (CFRunLoop.c:3021)
6   CoreFoundation                	0x000000018760d284 CFRunLoopRunSpecific + 588 (CFRunLoop.c:3434)
7   GraphicsServices              	0x00000001d48794c0 GSEventRunModal + 164 (GSEvent.c:2196)
8   UIKitCore                     	0x000000018a156674 -[UIApplication _run] + 816 (UIApplication.m:3846)
9   UIKitCore                     	0x0000000189d7ce88 UIApplicationMain + 340 (UIApplication.m:5503)
10  UIKitCore                     	0x000000018a4b915c UIApplicationMain(_:_:_:_:) + 104 (UIKit.swift:565)
11  Runner                        	0x0000000102d0cb6c specialized static UIApplicationDelegate.main() + 28 (/<compiler-generated>:6)
12  Runner                        	0x0000000102d0cb6c static AppDelegate.$main() + 28 (AppDelegate.swift:0)
13  Runner                        	0x0000000102d0cb6c main + 120
14  dyld                          	0x00000001ad865de8 start + 2724 (dyldMain.cpp:1338)

Thread 1:
0   Flutter                       	0x00000001066042cc dart::Thread::dart_state_is_on_cpu() const + 0 (thread.h:1161)
1   Flutter                       	0x00000001066042cc dart::Simulator::CallWithCpuState(unsigned long, unsigned long) + 20 (simulator_arm64.cc:4002)
2   Flutter                       	0x00000001066042cc dart::CallSimulatorFromFFI(unsigned long, unsigned long) + 104 (shorebird_ffi_callback.cc:124)
3   ???                           	0x000000010fc24928 0x0 + 4559358248
4   cupertino_http                	0x0000000104077978 ___NativeCupertinoHttp_wrapListenerBlock_xx612k_block_invoke + 228 (native_cupertino_bindings.m:559)
5   CoreFoundation                	0x0000000187574e34 __invoking___ + 148 (:-1)
6   CoreFoundation                	0x0000000187573e7c -[NSInvocation invoke] + 428 (NSForwarding.m:3411)
7   CoreFoundation                	0x00000001875d7a38 -[NSInvocation invokeWithTarget:] + 64 (NSForwarding.m:3508)
8   objective_c                   	0x000000010476a538 -[DOBJCDartProxy forwardInvocation:] + 104 (proxy.m:90)
9   CoreFoundation                	0x0000000187575374 ___forwarding___ + 964 (NSForwarding.m:3654)
10  CoreFoundation                	0x0000000187574ef0 _CF_forwarding_prep_0 + 96 (:-1)
11  CFNetwork                     	0x0000000188aa706c __81-[__NSCFURLSessionDelegateWrapper dataTask:didReceiveResponse:completionHandler:]_block_invoke + 168 (SessionDelegateWrapper.mm:620)
12  Foundation                    	0x00000001861a4c9c __NSINDEXSET_IS_CALLING_OUT_TO_A_BOOL_BLOCK__ + 24 (NSIndexSet.m:172)
13  Foundation                    	0x0000000186194568 -[NSBlockOperation main] + 104 (NSOperation.m:1565)
14  Foundation                    	0x0000000186194488 __NSOPERATION_IS_INVOKING_MAIN__ + 16 (NSOperation.m:2190)
15  Foundation                    	0x00000001861928e0 -[NSOperation start] + 648 (NSOperation.m:1407)
16  Foundation                    	0x00000001861c9ce0 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 16 (NSOperation.m:2221)
17  Foundation                    	0x00000001861c9910 __NSOQSchedule_f + 172 (NSOperation.m:2232)
18  libdispatch.dylib             	0x000000018f316394 _dispatch_block_async_invoke2 + 148 (queue.c:574)
19  libdispatch.dylib             	0x000000018f306fa8 _dispatch_client_callout + 20 (object.m:576)
20  libdispatch.dylib             	0x000000018f30a45c _dispatch_continuation_pop + 596 (queue.c:325)
21  libdispatch.dylib             	0x000000018f309a8c _dispatch_async_redirect_invoke + 580 (queue.c:849)
22  libdispatch.dylib             	0x000000018f318ec0 _dispatch_root_queue_drain + 392 (queue.c:7331)
23  libdispatch.dylib             	0x000000018f3196c4 _dispatch_worker_thread2 + 156 (queue.c:7399)
24  libsystem_pthread.dylib       	0x0000000212308644 _pthread_wqthread + 228 (pthread.c:2709)
25  libsystem_pthread.dylib       	0x0000000212306474 start_wqthread + 8 (:-1)

Yup looks to be the same root cause. We should have a fix in the next few days.

@felangel felangel added the duplicate This issue or pull request already exists label Feb 18, 2025
@felangel felangel self-assigned this Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants