Steps to Reproduce
Unfortunately i am unable to reproduce it for now and it happens only in release mode affecting my beta testers.

The error description is :
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x2d623636612d6365
This crash occurred 10 times and each time with a little bit different StackTrace apparently.
I have made this issue because of the FirebaseDatabase log in the trace, but there is no such logs in more recent errors.
I have also focused on firebase_database because it's the main change between my 0.0.06 release and 0.0.07 including a real time chat feature in app.
I have also added flutter_sound_lite to play and record audio messages.
According to the popularity, i would think now that the error would come from the flutter_sound_lite rather than firebase_database, but FirebaseDatabase appeared in the first logs sequences so...
There is no evident log for me pointing towards a specific package anyway, it could be conflict between several packages as well (flutter_sound_lite and camera for example...)
In addition, the latest crash gave these keys :

I will update the full trace (you will see the difference with the one in FlutterFire repo that i have mentioned.
Below you will see the latest crash (with the above keys).
Expected results:
The app should not crash.
Actual results:
The app is crashing.
Logs
Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x15c8 objc_msgSend + 8
1 Flutter 0x4f02b0 (Missing)
2 Flutter 0x3c664 (Missing)
3 Flutter 0x3bc204 (Missing)
4 Flutter 0x2eb0d8 (Missing)
5 Flutter 0x2ee6a4 (Missing)
6 CoreFoundation 0xae268 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
7 CoreFoundation 0x32c40 __CFRunLoopDoTimer + 1076
8 CoreFoundation 0x2d43c __CFRunLoopDoTimers + 328
9 CoreFoundation 0xbc58 __CFRunLoopRun + 1944
10 CoreFoundation 0x1f3b8 CFRunLoopRunSpecific + 600
11 GraphicsServices 0x138c GSEventRunModal + 164
12 UIKitCore 0x5196a8 -[UIApplication _run] + 1100
13 UIKitCore 0x2987f4 UIApplicationMain + 2092
14 Runner 0x7ab0 main + 7 (AppDelegate.swift:7)
15 ??? 0x1034a9a24 (Missing)
Thread
0 libsystem_pthread.dylib 0xe8c start_wqthread + 258
com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x1504 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b9c mach_msg + 76
2 CoreFoundation 0x7688 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0xb97c __CFRunLoopRun + 1212
4 CoreFoundation 0x1f3b8 CFRunLoopRunSpecific + 600
5 Foundation 0x18354 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236
6 Foundation 0x59c28 -[NSRunLoop(NSRunLoop) runUntilDate:] + 92
7 UIKitCore 0x4928a4 -[UIEventFetcher threadMain] + 524
8 Foundation 0x6836c __NSThread__start__ + 808
9 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
10 libsystem_pthread.dylib 0xea0 thread_start + 8
io.flutter.1.ui
0 libsystem_kernel.dylib 0x1504 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b9c mach_msg + 76
2 CoreFoundation 0x7688 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0xb97c __CFRunLoopRun + 1212
4 CoreFoundation 0x1f3b8 CFRunLoopRunSpecific + 600
5 Flutter 0x2ee570 (Missing)
6 Flutter 0x2edd30 (Missing)
7 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
8 libsystem_pthread.dylib 0xea0 thread_start + 8
io.flutter.1.raster
0 libsystem_kernel.dylib 0x1558 semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x4c6c _dispatch_sema4_timedwait + 64
2 libdispatch.dylib 0x5270 _dispatch_semaphore_wait_slow + 76
3 QuartzCore 0x32290 -[CAMetalLayer nextDrawable] + 1044
4 Flutter 0x295604 (Missing)
5 Flutter 0x1a3f68 (Missing)
6 Flutter 0x187470 (Missing)
7 Flutter 0x187ba8 (Missing)
8 Flutter 0x5567c (Missing)
9 Flutter 0x4f9274 (Missing)
10 Flutter 0x47e558 (Missing)
11 Flutter 0x3b4704 (Missing)
12 Flutter 0x3b4c20 (Missing)
13 Flutter 0x2ec868 (Missing)
14 Flutter 0x3b4318 (Missing)
15 Flutter 0x3b5c50 (Missing)
16 Flutter 0x3b4ed4 (Missing)
17 Flutter 0x3bd314 (Missing)
18 Flutter 0x2eb0d8 (Missing)
19 Flutter 0x2ee6a4 (Missing)
20 CoreFoundation 0xae268 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
21 CoreFoundation 0x32c40 __CFRunLoopDoTimer + 1076
22 CoreFoundation 0x2d43c __CFRunLoopDoTimers + 328
23 CoreFoundation 0xbc58 __CFRunLoopRun + 1944
24 CoreFoundation 0x1f3b8 CFRunLoopRunSpecific + 600
25 Flutter 0x2ee570 (Missing)
26 Flutter 0x2edd30 (Missing)
27 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
28 libsystem_pthread.dylib 0xea0 thread_start + 8
io.flutter.1.io
0 libsystem_kernel.dylib 0x1504 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b9c mach_msg + 76
2 CoreFoundation 0x7688 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0xb97c __CFRunLoopRun + 1212
4 CoreFoundation 0x1f3b8 CFRunLoopRunSpecific + 600
5 Flutter 0x2ee570 (Missing)
6 Flutter 0x2edd30 (Missing)
7 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
8 libsystem_pthread.dylib 0xea0 thread_start + 8
io.worker.1
0 libsystem_kernel.dylib 0x1f90 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8254 _pthread_cond_wait + 1228
2 libc++.1.dylib 0x9ddc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 Flutter 0x2e8928 (Missing)
4 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
5 libsystem_pthread.dylib 0xea0 thread_start + 8
io.worker.2
0 libsystem_kernel.dylib 0x1f90 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8254 _pthread_cond_wait + 1228
2 libc++.1.dylib 0x9ddc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 Flutter 0x2e8928 (Missing)
4 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
5 libsystem_pthread.dylib 0xea0 thread_start + 8
io.worker.3
0 libsystem_kernel.dylib 0x1f90 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8254 _pthread_cond_wait + 1228
2 libc++.1.dylib 0x9ddc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 Flutter 0x2e8928 (Missing)
4 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
5 libsystem_pthread.dylib 0xea0 thread_start + 8
io.worker.4
0 libsystem_kernel.dylib 0x1f90 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8254 _pthread_cond_wait + 1228
2 libc++.1.dylib 0x9ddc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 Flutter 0x2e8928 (Missing)
4 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
5 libsystem_pthread.dylib 0xea0 thread_start + 8
io.worker.5
0 libsystem_kernel.dylib 0x1f90 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8254 _pthread_cond_wait + 1228
2 libc++.1.dylib 0x9ddc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 Flutter 0x2e8928 (Missing)
4 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
5 libsystem_pthread.dylib 0xea0 thread_start + 8
io.worker.6
0 libsystem_kernel.dylib 0x1f90 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8254 _pthread_cond_wait + 1228
2 libc++.1.dylib 0x9ddc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 Flutter 0x2e8928 (Missing)
4 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
5 libsystem_pthread.dylib 0xea0 thread_start + 8
dart:io EventHandler
0 libsystem_kernel.dylib 0x2e7c kevent + 8
1 Flutter 0x4b14dc (Missing)
2 Flutter 0x4e04e8 (Missing)
3 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
4 libsystem_pthread.dylib 0xea0 thread_start + 8
com.google.firebase.crashlytics.MachExceptionServer
0 FirebaseCrashlytics 0x1f44c FIRCLSProcessRecordAllThreads + 184
1 FirebaseCrashlytics 0x1f82c FIRCLSProcessRecordAllThreads + 1176
2 FirebaseCrashlytics 0x167f0 FIRCLSHandler + 48
3 FirebaseCrashlytics 0x195b8 FIRCLSMachExceptionServer + 1248
4 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
5 libsystem_pthread.dylib 0xea0 thread_start + 8
Thread
0 libsystem_pthread.dylib 0xe8c start_wqthread + 258
AVAudioSession Notify Thread
0 libsystem_kernel.dylib 0x1504 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b9c mach_msg + 76
2 CoreFoundation 0x7688 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0xb97c __CFRunLoopRun + 1212
4 CoreFoundation 0x1f3b8 CFRunLoopRunSpecific + 600
5 AudioSession 0x6308 CADeprecated::GenericRunLoopThread::Entry(void*) + 164
6 AudioSession 0xfd64 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92
7 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
8 libsystem_pthread.dylib 0xea0 thread_start + 8
com.apple.CoreMotion.MotionThread
0 libsystem_kernel.dylib 0x1504 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b9c mach_msg + 76
2 CoreFoundation 0x7688 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0xb97c __CFRunLoopRun + 1212
4 CoreFoundation 0x1f3b8 CFRunLoopRunSpecific + 600
5 CoreFoundation 0x9fa78 CFRunLoopRun + 64
6 CoreMotion 0x13544 CLMotionActivity::isTypeInVehicle(CLMotionActivity::Type) + 21264
7 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
8 libsystem_pthread.dylib 0xea0 thread_start + 8
Thread
0 libsystem_kernel.dylib 0x1f90 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8254 _pthread_cond_wait + 1228
2 libc++.1.dylib 0x9ddc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 leveldb 0x15ef0 leveldb::(anonymous namespace)::PosixEnv::BackgroundThreadMain() + 80
4 leveldb 0x15ea0 leveldb::(anonymous namespace)::PosixEnv::BackgroundThreadEntryPoint(leveldb::(anonymous namespace)::PosixEnv*) + 10
5 leveldb 0x15f84 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(leveldb::(anonymous namespace)::PosixEnv*), leveldb::(anonymous namespace)::PosixEnv*> >(void*) + 44
6 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
7 libsystem_pthread.dylib 0xea0 thread_start + 8
com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x1504 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b9c mach_msg + 76
2 CoreFoundation 0x7688 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0xb97c __CFRunLoopRun + 1212
4 CoreFoundation 0x1f3b8 CFRunLoopRunSpecific + 600
5 CFNetwork 0x27a6a0 _CFURLStorageSessionCopyIdentifier + 59784
6 Foundation 0x6836c __NSThread__start__ + 808
7 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
8 libsystem_pthread.dylib 0xea0 thread_start + 8
com.squareup.SocketRocket.NetworkThread
0 libsystem_kernel.dylib 0x1504 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b9c mach_msg + 76
2 CoreFoundation 0x7688 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0xb97c __CFRunLoopRun + 1212
4 CoreFoundation 0x1f3b8 CFRunLoopRunSpecific + 600
5 Foundation 0x18354 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236
6 FirebaseDatabase 0x52f5c -[_FSRRunLoopThread main] + 252
7 Foundation 0x6836c __NSThread__start__ + 808
8 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
9 libsystem_pthread.dylib 0xea0 thread_start + 8
com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x21d0 select$DARWIN_EXTSN + 8
1 libsystem_kernel.dylib 0x21d0 __select + 8
2 CoreFoundation 0xaa740 __CFSocketManager + 648
3 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
4 libsystem_pthread.dylib 0xea0 thread_start + 8
Thread
0 libsystem_pthread.dylib 0xe8c start_wqthread + 258
com.apple.coreaudio.AQClient
0 libsystem_kernel.dylib 0x1504 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b9c mach_msg + 76
2 CoreFoundation 0x7688 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0xb97c __CFRunLoopRun + 1212
4 CoreFoundation 0x1f3b8 CFRunLoopRunSpecific + 600
5 AudioToolbox 0x1cf25c <redacted> + 164
6 libAudioToolboxUtility.dylib 0x140f8 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92
7 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
8 libsystem_pthread.dylib 0xea0 thread_start + 8
Thread
0 libsystem_pthread.dylib 0xe8c start_wqthread + 258
Thread
0 libsystem_kernel.dylib 0x1b2c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1140 _pthread_wqthread + 364
2 libsystem_pthread.dylib 0xe94 start_wqthread + 8
DartWorker
0 libsystem_kernel.dylib 0x1f90 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8280 _pthread_cond_wait + 1272
2 Flutter 0x5a221c (Missing)
3 Flutter 0x5e8634 (Missing)
4 Flutter 0x5a1b44 (Missing)
5 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
6 libsystem_pthread.dylib 0xea0 thread_start + 8
DartWorker
0 libsystem_kernel.dylib 0x1f90 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8280 _pthread_cond_wait + 1272
2 Flutter 0x5a221c (Missing)
3 Flutter 0x5e8634 (Missing)
4 Flutter 0x5a1b44 (Missing)
5 libsystem_pthread.dylib 0x19a4 _pthread_start + 148
6 libsystem_pthread.dylib 0xea0 thread_start + 8
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.1 21C52 darwin-x64, locale fr-FR)
• Flutter version 2.8.1 at /Users/foxtom/Desktop/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 77d935af4d (4 days ago), 2021-12-16 08:37:33 -0800
• Engine revision 890a5fca2e
• Dart version 2.15.1
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/foxtom/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
[✓] VS Code (version 1.63.2)
• VS Code at /Users/foxtom/Desktop/Visual Studio Code.app/Contents
• Flutter extension version 3.29.0
[✓] Connected device (3 available)
• CPH1931 (mobile) • ee9b32b5 • android-arm64 • Android 10 (API 29)
• macOS (desktop) • macos • darwin-x64 • macOS 12.1 21C52 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 96.0.4664.110
• No issues found!
Steps to Reproduce
Unfortunately i am unable to reproduce it for now and it happens only in
releasemode affecting my beta testers.The error description is :
This crash occurred 10 times and each time with a little bit different
StackTraceapparently.I have made this issue because of the
FirebaseDatabaselog in the trace, but there is no such logs in more recent errors.I have also focused on
firebase_databasebecause it's the main change between my0.0.06release and0.0.07including a real time chat feature in app.I have also added
flutter_sound_liteto play and record audio messages.According to the popularity, i would think now that the error would come from the flutter_sound_lite rather than
firebase_database, butFirebaseDatabaseappeared in the first logs sequences so...There is no evident log for me pointing towards a specific package anyway, it could be conflict between several packages as well (
flutter_sound_liteandcamerafor example...)In addition, the latest crash gave these
keys:I will update the full trace (you will see the difference with the one in
FlutterFirerepo that i have mentioned.Below you will see the latest crash (with the above
keys).Expected results:
The app should not crash.
Actual results:
The app is crashing.
Logs