-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Open
Labels
Needs AttentionThis issue needs maintainer attention.This issue needs maintainer attention.type: bugSomething isn't workingSomething isn't working
Description
Is there an existing issue for this?
- I have searched the existing issues.
Which plugins are affected?
Cloud Functions
Which platforms are affected?
iOS
Description
Calling a Firebase HTTPS callable function from Flutter crashes on a physical iPhone in both profile and release mode.
The same code works in debug mode.
I reproduced this both:
- in my main app
- in a fresh minimal Flutter app created just for testing
So this does not appear to be specific to my main project code.
Environment
- Device: iPhone 14 Pro Max (physical device)
- iOS version: 26.4
- macOS: 26.4
- Xcode: 26.4 (17E192)
- Flutter: 3.41.6
- firebase_core: 4.6.0
- cloud_functions: 6.1.0
Reproducing the issue
final functions = FirebaseFunctions.instanceFor(region: 'europe-west1');
final callable = functions.httpsCallable('now');
debugPrint('[TEST][now] before call');
final response = await callable.call(<String, dynamic>{});
debugPrint('[TEST][now] after call data=${response.data}');Fresh Flutter app with only:
firebase_corecloud_functions
Firebase is initialized with:
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);Firebase Core version
4.6.0
Flutter Version
3.41.6
Relevant Log Output
flutter DEBUG CONSOLE :
Launching lib/main.dart on Riyadh’s iPhone in profile mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 4P8V3U9463
Xcode build done. 18.5s
flutter: [TEST] Firebase initialized
flutter: [TEST][now] before call
Process 1691 stopped
* thread #24, name = 'Task 1', queue = 'com.apple.root.user-initiated-qos.cooperative', stop reason = signal SIGABRT
frame #0: 0x000000024e5971d0 libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`__pthread_kill:
-> 0x24e5971d0 <+8>: b.lo 0x24e5971f0 ; <+40>
0x24e5971d4 <+12>: pacibsp
0x24e5971d8 <+16>: stp x29, x30, [sp, #-0x10]!
0x24e5971dc <+20>: mov x29, sp
Target 0: (Runner) stopped.
Application finished.
Exited.
`LLDB backtrace : `
* thread #25, name = 'Task 1', queue = 'com.apple.root.user-initiated-qos.cooperative', stop reason = signal SIGABRT
* frame #0: 0x000000024e5971d0 libsystem_kernel.dylib`__pthread_kill + 8
frame #1: 0x00000001fe8fe7dc libsystem_pthread.dylib`pthread_kill + 268
frame #2: 0x00000001ab630de4 libsystem_c.dylib`abort + 148
frame #3: 0x000000019dc4d258 libswift_Concurrency.dylib`swift::swift_Concurrency_fatalErrorv(unsigned int, char const*, char*) + 32
frame #4: 0x000000019dbfe6d4 libswift_Concurrency.dylib`swift::swift_Concurrency_fatalError(unsigned int, char const*, ...) + 32
frame #5: 0x000000019dc4d3ec libswift_Concurrency.dylib`swift::_swift_task_dealloc_specific(swift::AsyncTask*, void*) (.cold.2) + 84
frame #6: 0x000000019dbdc2e0 libswift_Concurrency.dylib`swift::_swift_task_dealloc_specific(swift::AsyncTask*, void*) + 108
frame #7: 0x000000019dbebfa4 libswift_Concurrency.dylib`asyncLet_finish_after_task_completion(swift::AsyncContext*, swift::AsyncLet*, void (swift::AsyncContext* swift_async_context) swiftasynccall*, swift::AsyncContext*, void*) + 108
frame #8: 0x000000019dbdbf60 libswift_Concurrency.dylib`swift::runJobInEstablishedExecutorContext(swift::Job*) + 472
frame #9: 0x000000019dbdabfc libswift_Concurrency.dylib`swift_job_runImpl(swift::Job*, swift::SerialExecutorRef) + 156
frame #10: 0x00000001053cfb90 libdispatch.dylib`_dispatch_root_queue_drain + 512
frame #11: 0x00000001053d0488 libdispatch.dylib`_dispatch_worker_thread2 + 204
frame #12: 0x00000001fe8f8374 libsystem_pthread.dylib`_pthread_wqthread + 232Flutter dependencies
Expand Flutter dependencies snippet
Dart SDK 3.11.4
Flutter SDK 3.41.6
firebase_test_app 1.0.0+1
dependencies:
- cloud_functions 6.1.0 [cloud_functions_platform_interface cloud_functions_web firebase_core firebase_core_platform_interface flutter]
- cupertino_icons 1.0.9
- firebase_core 4.6.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
dev dependencies:
- flutter_lints 6.0.0 [lints]
- flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math leak_tracker_flutter_testing collection meta stream_channel]
transitive dependencies:
- async 2.13.1 [collection meta]
- boolean_selector 2.1.2 [source_span string_scanner]
- characters 1.4.1
- clock 1.1.2
- cloud_functions_platform_interface 5.8.11 [firebase_core flutter meta plugin_platform_interface]
- cloud_functions_web 5.1.4 [cloud_functions_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins web]
- collection 1.19.1
- fake_async 1.3.3 [clock collection]
- firebase_core_platform_interface 6.0.3 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 3.5.1 [firebase_core_platform_interface flutter flutter_web_plugins meta web]
- flutter_web_plugins 0.0.0 [flutter]
- leak_tracker 11.0.2 [clock collection meta path vm_service]
- leak_tracker_flutter_testing 3.0.10 [flutter leak_tracker leak_tracker_testing matcher meta]
- leak_tracker_testing 3.0.2 [leak_tracker matcher meta]
- lints 6.1.0
- matcher 0.12.19 [async meta stack_trace term_glyph test_api]
- material_color_utilities 0.13.0 [collection]
- meta 1.17.0
- path 1.9.1
- plugin_platform_interface 2.1.8 [meta]
- sky_engine 0.0.0
- source_span 1.10.2 [collection path term_glyph]
- stack_trace 1.12.1 [path]
- stream_channel 2.1.4 [async]
- string_scanner 1.4.1 [source_span]
- term_glyph 1.2.2
- test_api 0.7.10 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph]
- vector_math 2.2.0
- vm_service 15.0.2
- web 1.1.1```
</details>
### Additional context and comments
_No response_Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Needs AttentionThis issue needs maintainer attention.This issue needs maintainer attention.type: bugSomething isn't workingSomething isn't working