ITADN

cupertino_http 2.4.0 crashes on iOS on wrapListenerBlock

#1894Openorestesgaolin 创建于 2026-03-17
type-bugpackage:cupertino_http
O
orestesgaolincommented
Typically user leaves the app and it crashes with the following stacktrace: ``` SIGABRT: ZTUM libsystem_kernel 0x1d79981dc __pthread_kill libsystem_pthread 0x210fe3c18 pthread_kill libsystem_c 0x18eb23050 abort Flutter 0x10ae56c9c dart::Assert::Fail (assert.cc:54) Flutter 0x10af104dc DLRT_GetFfiCallbackMetadata (runtime_entry.cc:5144) 0x114945d10 <redacted> cupertino_http 0x10982c34c ___NativeCupertinoHttp_wrapListenerBlock_xx612k_block_invoke (native_cupertino_bindings.m:534) cupertino_http 0x10982c34c ___NativeCupertinoHttp_wrapListenerBlock_xx612k_block_invoke (native_cupertino_bindings.m:534) cupertino_http 0x10982c758 _NativeCupertinoHttp_protocolTrampoline_xx612k (native_cupertino_bindings.m:555) CFNetwork 0x18809b2e8 __81-[__NSCFURLSessionDelegateWrapper dataTask:didReceiveResponse:completionHandler:]_block_invoke Foundation 0x18576543c __NSINDEXSET_IS_CALLING_OUT_TO_A_BOOL_BLOCK__ Foundation 0x18579be2c -[NSBlockOperation main] Foundation 0x18579b570 __NSOPERATION_IS_INVOKING_MAIN__ Foundation 0x18579b7f8 -[NSOperation start] Foundation 0x18579bbac __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ Foundation 0x18579d1c8 __NSOQSchedule_f libdispatch 0x18ea772b4 _dispatch_block_async_invoke2 libdispatch 0x18ea81580 _dispatch_client_callout libdispatch 0x18ea6c55c _dispatch_continuation_pop libdispatch 0x18ea6bbd0 _dispatch_async_redirect_invoke libdispatch 0x18ea79dac _dispatch_root_queue_drain libdispatch 0x18ea7a548 _dispatch_worker_thread2 libsystem_pthread 0x210fdc9cc _pthread_wqthread libsystem_kernel 0x1d79981dc __pthread_kill libsystem_pthread 0x210fe3c18 pthread_kill libsystem_c 0x18eb23050 abort Flutter 0x10ae56c9c dart::Assert::Fail (assert.cc:54) Flutter 0x10af104dc DLRT_GetFfiCallbackMetadata (runtime_entry.cc:5144) 0x114945d10 <redacted> cupertino_http 0x10982c34c ___NativeCupertinoHttp_wrapListenerBlock_xx612k_block_invoke (native_cupertino_bindings.m:534) cupertino_http 0x10982c34c ___NativeCupertinoHttp_wrapListenerBlock_xx612k_block_invoke (native_cupertino_bindings.m:534) cupertino_http 0x10982c758 _NativeCupertinoHttp_protocolTrampoline_xx612k (native_cupertino_bindings.m:555) CFNetwork 0x18809b2e8 __81-[__NSCFURLSessionDelegateWrapper dataTask:didReceiveResponse:completionHandler:]_block_invoke Foundation 0x18576543c __NSINDEXSET_IS_CALLING_OUT_TO_A_BOOL_BLOCK__ Foundation 0x18579be2c -[NSBlockOperation main] Foundation 0x18579b570 __NSOPERATION_IS_INVOKING_MAIN__ Foundation 0x18579b7f8 -[NSOperation start] Foundation 0x18579bbac __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ Foundation 0x18579d1c8 __NSOQSchedule_f libdispatch 0x18ea772b4 _dispatch_block_async_invoke2 libdispatch 0x18ea81580 _dispatch_client_callout libdispatch 0x18ea6c55c _dispatch_continuation_pop libdispatch 0x18ea6bbd0 _dispatch_async_redirect_invoke libdispatch 0x18ea79dac _dispatch_root_queue_drain libdispatch 0x18ea7a548 _dispatch_worker_thread2 libsystem_pthread 0x210fdc9cc _pthread_wqthread ``` flutter doctor ``` [✓] Flutter (Channel stable, 3.38.4, on macOS 15.6.1 24G90 darwin-arm64, locale pl-PL) [435ms] • Flutter version 3.38.4 on channel stable at /Users/dominik/fvm/versions/3.38.4 • Upstream repository https://github.com/flutter/flutter.git • Framework revision 66dd93f9a2 (3 months ago), 2025-12-03 14:56:10 -0800 • Engine revision a5cb96369e • Dart version 3.10.3 • DevTools version 2.51.1 • Feature flags: enable-web, no-enable-linux-desktop, enable-macos-desktop, no-enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, omit-legacy-version-file, enable-lldb-debugging [!] Android toolchain - develop for Android devices (Android SDK version 36.1.0) [6,3s] • Android SDK at /Users/dominik/Library/Android/sdk • Emulator version 36.4.10.0 (build_id 15004761) (CL:N/A) ✗ cmdline-tools component is missing. Try installing or updating Android Studio. Alternatively, download the tools from https://developer.android.com/studio#command-line-tools-only and make sure to set the ANDROID_HOME environment variable. See https://developer.android.com/studio/command-line for more details. ✗ Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses. See https://flutter.dev/to/macos-android-setup for more details. [✓] Xcode - develop for iOS and macOS (Xcode 26.3) [1 370ms] • Xcode at /Applications/Xcode.app/Contents/Developer • Build 17C529 • CocoaPods version 1.16.2 [✓] Chrome - develop for the web [6ms] • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Connected device (4 available) [10,2s] • SM S911B (mobile) • RFCW60DP85H • android-arm64 • Android 16 (API 36) • iPhone (wireless) (mobile) • 00008101-0001510C3CF0001E • ios • iOS 26.3.1 23D8133 • macOS (desktop) • macos • darwin-arm64 • macOS 15.6.1 24G90 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 146.0.7680.80 [✓] Network resources [252ms] • All expected network resources are available. ! Doctor found issues in 1 category. ``` Dependencies [deps.txt](https://github.com/user-attachments/files/26065733/deps.txt) - issue occurs across wide range of iOS versions - issue seems to occur after moving the app to the background after successful HTTP requests - 99%+ issues occur when app is not in the foreground according to Sentry
23 条评论