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

Application crashes when terminated by user on iOS #1350

Closed
cristian1980 opened this issue Oct 9, 2024 · 18 comments
Closed

Application crashes when terminated by user on iOS #1350

cristian1980 opened this issue Oct 9, 2024 · 18 comments
Assignees
Labels
1 backlog bug Something isn't working

Comments

@cristian1980
Copy link
Contributor

cristian1980 commented Oct 9, 2024

Which API doesn't behave as documented, and how does it misbehave?
just audio 0.9.41

It is crashing if you close the application while audio players are loaded on iOS.
It is crashing because flutter disposes the just_audio plugin, which causes the players to be disposed.
When players are disposed they send a broadcast event with their current status, which causes a crash report.

Minimal reproduction project

import 'package:flutter/material.dart';
import 'package:just_audio/just_audio.dart';

AudioPlayer? _tapAudioCache;
void main() async{
  WidgetsFlutterBinding.ensureInitialized();

  runApp( MaterialApp(
    title: 'Flutter Demo',
    home: Center(
      child: ElevatedButton(onPressed: () async{
        _tapAudioCache = await initEffectsCache('christmas1.mp3');
        _tapAudioCache!.play();
      }, child: const Text('Play Sound')),
    ),
  ));
}
Future<AudioPlayer> initEffectsCache(String filePath, {double volume = 1}) async {

  var player = AudioPlayer();
  await player.setUrl('asset:assets/sounds/$filePath', );
  await player.setVolume(volume);

  return player;
}

To Reproduce (i.e. user steps, not code)
Steps to reproduce the behavior:

  1. Launch the application
  2. Press the 'Play Sound' button
  3. On the device swipe up and close the application
  4. An exception will trigger (you can catch it with xcode attached, see screenshot)

Error messages

Exception	NSException *	"Sending a message before the FlutterEngine has been run."	0x0000600000c90f60

Expected behavior
The application should not crash when terminating the application while players are loaded.
There is no need for players to report their state when terminating the app.
The crash reports are being sent to Apple, Crashlytics etc. ... there is no need for that.

Screenshots
image

Smartphone (please complete the following information):

  • Device: any ios device physical or simulated
  • OS: tested on iOS18 but I expect it to happen on any ios version

Flutter SDK version

[!] Flutter (Channel [user-branch], 3.22.3, on macOS 14.6.1 23G93 darwin-arm64, locale en-US)
    ! Flutter version 3.22.3 on channel [user-branch] at /Users/cristi/Desktop/work/flutter/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.93.1)
[✓] Connected device (7 available)
    ! Error: Browsing on the local area network for Constantin’s iPad. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for Roxa's iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources

! Doctor found issues in 1 category.

Additional context
Add any other context about the problem here.

@cristian1980 cristian1980 added 1 backlog bug Something isn't working labels Oct 9, 2024
@cristian1980
Copy link
Contributor Author

Probably same issue as this guy #1347

@EArminjon
Copy link

EArminjon commented Oct 10, 2024

Same issue on all my Radio apps.

You can live reproduce it using one of my little app : "Zim Radio" on AppStore (https://apps.apple.com/sn/app/zim-radio/id1290256398).

Steps :

  • Launch App
  • Wait audio start
  • Kill app
  • Wait a bit

Current result:

After few seconds a native iOS popup appear saying app has crashed

Expected results:

Nothing should happen ,app should be killed, audio stopped without issue.

Device :

iPhone SE 2gen
iOS 18
XCode 16

On flutter i didn't see any interesting logs except this one which appear when app is killed :

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Sending a message before the FlutterEngine has been run.'
crashlog.crash from TestFlight
Incident Identifier: 3DEF35DB-A11A-43D2-A329-93E631689B51
Distributor ID:      com.apple.TestFlight
Hardware Model:      iPhone12,8
Process:             Runner [938]
Path:                /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Runner
Identifier:          egdigital.zimradio.Zim-Radio
Version:             2.4.0 (24)
AppStoreTools:       16A242d
AppVariant:          1:iPhone12,8:18
Beta:                YES
Code Type:           ARM-64 (Native)
Role:                Background
Parent Process:      launchd [1]
Coalition:           egdigital.zimradio.Zim-Radio [552]

Date/Time:           2024-10-10 14:59:49.0201 +0200
Launch Time:         2024-10-10 14:59:43.0019 +0200
OS Version:          iPhone OS 18.0 (22A3354)
Release Type:        User
Baseband Version:    6.00.00
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: SIGNAL 6 Abort trap: 6
Terminating Process: Runner [938]

Triggered by Thread:  0

Last Exception Backtrace:
0   CoreFoundation                	0x18ecd908c __exceptionPreprocess + 164 (NSException.m:249)
1   libobjc.A.dylib               	0x18bfdb2e4 objc_exception_throw + 88 (objc-exception.mm:356)
2   Foundation                    	0x18e0aa15c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 288 (NSException.m:252)
3   Flutter                       	0x1058ad420 -[FlutterEngine sendOnChannel:message:binaryReply:] + 748 (FlutterEngine.mm:1252)
4   Flutter                       	0x105e6bc04 -[FlutterBinaryMessengerRelay sendOnChannel:message:] + 140 (FlutterBinaryMessengerRelay.mm:24)
5   Flutter                       	0x105e6df1c invocation function for block in SetStreamHandlerMessageHandlerOnChannel(NSObject<FlutterStreamHandler>*, NSString*, NSObject<FlutterBinaryMessenger>*, NSObject<FlutterMethodCodec>*, NSObject<Flutt... + 236 (FlutterChannels.mm:398)
6   just_audio                    	0x105695b6c -[AudioPlayer broadcastPlaybackEvent] + 388 (AudioPlayer.m:331)
7   just_audio                    	0x10569904c -[AudioPlayer dispose] + 56 (AudioPlayer.m:1335)
8   just_audio                    	0x10569af04 -[JustAudioPlugin dealloc] + 164 (JustAudioPlugin.m:59)
9   libsystem_blocks.dylib        	0x216011018 _call_dispose_helpers_excp + 48 (generic_helpers.c:30)
10  libsystem_blocks.dylib        	0x216010fcc _Block_release + 256 (runtime.cpp:1017)
11  Flutter                       	0x1058cb580 __destroy_helper_block_ea8_32s40s + 24 (FlutterMetalLayer.mm:0)
12  libsystem_blocks.dylib        	0x216011018 _call_dispose_helpers_excp + 48 (generic_helpers.c:30)
13  libsystem_blocks.dylib        	0x216010fcc _Block_release + 256 (runtime.cpp:1017)
14  Flutter                       	0x1058f7ab4 fml::internal::ScopedBlockTraits<void (NSData*, void (NSData*) block_pointer) block_pointer __strong>::Release(void (NSData*, void (NSData*) block_pointer) block_pointer __strong) + 4 (scoped_block.h:31)
15  Flutter                       	0x1058f7ab4 fml::ScopedTypeRef<void (NSData*, void (NSData*) block_pointer) block_pointer __strong, fml::internal::ScopedBlockTraits<fml::internal>>::~ScopedTypeRef() + 12 (scoped_typeref.h:87)
16  Flutter                       	0x1058f7ab4 fml::ScopedTypeRef<void (NSData*, void (NSData*) block_pointer) block_pointer __strong, fml::internal::ScopedBlockTraits<fml::internal>>::~ScopedTypeRef() + 12 (scoped_typeref.h:85)
17  Flutter                       	0x1058f7ab4 flutter::PlatformMessageHandlerIos::HandlerInfo::~HandlerInfo() + 12 (platform_message_handler_ios.h:35)
18  Flutter                       	0x1058f7ab4 flutter::PlatformMessageHandlerIos::HandlerInfo::~HandlerInfo() + 12 (platform_message_handler_ios.h:35)
19  Flutter                       	0x1058f7ab4 std::_fl::pair<std::_fl::basic_string<char, std::_fl::char_traits<char>, std::_fl::allocator<char>> const, flutter::PlatformMessageHandlerIos::HandlerInfo>::~pair() + 12 (pair.h:40)
20  Flutter                       	0x1058f7ab4 std::_fl::pair<std::_fl::basic_string<char, std::_fl::char_traits<char>, std::_fl::allocator<char>> const, flutter::PlatformMessageHandlerIos::HandlerInfo>::~pair() + 12 (pair.h:40)
21  Flutter                       	0x1058f7ab4 void std::_fl::allocator_traits<std::_fl::allocator<std::_fl::__hash_node<std::_fl::__hash_value_type<std::_fl::basic_string<char, std::_fl::char_traits<char>, std::_fl::allocator<char>>, flutter::... + 28 (allocator_traits.h:319)
22  Flutter                       	0x1058f7a64 std::_fl::__hash_table<std::_fl::__hash_value_type<std::_fl::basic_string<char, std::_fl::char_traits<char>, std::_fl::allocator<char>>, flutter::PlatformMessageHandlerIos::HandlerInfo>, std::_fl::... + 16 (__hash_table:1523)
23  Flutter                       	0x1058f7a64 std::_fl::__hash_table<std::_fl::__hash_value_type<std::_fl::basic_string<char, std::_fl::char_traits<char>, std::_fl::allocator<char>>, flutter::PlatformMessageHandlerIos::HandlerInfo>, std::_fl::... + 40 (__hash_table:1464)
24  Flutter                       	0x1058f6d10 std::_fl::__hash_table<std::_fl::__hash_value_type<std::_fl::basic_string<char, std::_fl::char_traits<char>, std::_fl::allocator<char>>, flutter::PlatformMessageHandlerIos::HandlerInfo>, std::_fl::... + 4 (__hash_table:1456)
25  Flutter                       	0x1058f6d10 std::_fl::unordered_map<std::_fl::basic_string<char, std::_fl::char_traits<char>, std::_fl::allocator<char>>, flutter::PlatformMessageHandlerIos::HandlerInfo, std::_fl::hash<std::_fl::basic_string<... + 4 (unordered_map:1153)
26  Flutter                       	0x1058f6d10 std::_fl::unordered_map<std::_fl::basic_string<char, std::_fl::char_traits<char>, std::_fl::allocator<char>>, flutter::PlatformMessageHandlerIos::HandlerInfo, std::_fl::hash<std::_fl::basic_string<... + 4 (unordered_map:1151)
27  Flutter                       	0x1058f6d10 flutter::PlatformMessageHandlerIos::~PlatformMessageHandlerIos() + 72 (platform_message_handler_ios.h:16)
28  Flutter                       	0x1058f6d10 flutter::PlatformMessageHandlerIos::~PlatformMessageHandlerIos() + 72 (platform_message_handler_ios.h:16)
29  Flutter                       	0x1058f6d10 flutter::PlatformMessageHandlerIos::~PlatformMessageHandlerIos() + 88 (platform_message_handler_ios.h:16)
30  Flutter                       	0x105e4bf6c std::_fl::__shared_count::__release_shared[abi:v15000]() + 44 (shared_ptr.h:174)
31  Flutter                       	0x105e4bf6c std::_fl::__shared_weak_count::__release_shared[abi:v15000]() + 44 (shared_ptr.h:215)
32  Flutter                       	0x105e4bf6c std::_fl::shared_ptr<flutter::PlatformMessageHandler>::~shared_ptr[abi:v15000]() + 52 (shared_ptr.h:702)
33  Flutter                       	0x105e4bf6c std::_fl::shared_ptr<flutter::PlatformMessageHandler>::~shared_ptr[abi:v15000]() + 52 (shared_ptr.h:700)
34  Flutter                       	0x105e4bf6c flutter::Shell::~Shell() + 2504 (shell.cc:591)
35  Flutter                       	0x1058af360 flutter::Shell::~Shell() + 4 (shell.cc:529)
36  Flutter                       	0x1058af360 std::_fl::default_delete<flutter::Shell>::operator()[abi:v15000](flutter::Shell*) const + 4 (unique_ptr.h:48)
37  Flutter                       	0x1058af360 std::_fl::unique_ptr<flutter::Shell, std::_fl::default_delete<flutter::Shell>>::reset[abi:v15000](flutter::Shell*) + 28 (unique_ptr.h:305)
38  Flutter                       	0x1058aa1b0 -[FlutterEngine destroyContext] + 64 (FlutterEngine.mm:482)
39  CoreFoundation                	0x18eca708c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 148 (CFNotificationCenter.c:701)
40  CoreFoundation                	0x18eca6fa8 ___CFXRegistrationPost_block_invoke + 88 (CFNotificationCenter.c:194)
41  CoreFoundation                	0x18eca6ef0 _CFXRegistrationPost + 436 (CFNotificationCenter.c:222)
42  CoreFoundation                	0x18eca54a4 _CFXNotificationPost + 728 (CFNotificationCenter.c:1248)
43  Foundation                    	0x18d8b7884 -[NSNotificationCenter postNotificationName:object:userInfo:] + 92 (NSNotification.m:531)
44  UIKitCore                     	0x192551dac -[UIApplication _terminateWithStatus:] + 232 (UIApplication.m:7513)
45  UIKitCore                     	0x1915aae9c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 112 (_UISceneLifecycleMultiplexer.m:819)
46  UIKitCore                     	0x191d79504 -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:] + 164 (_UISceneLifecycleMultiplexer.m:482)
47  UIKitCore                     	0x19254d508 -[UIApplication workspaceShouldExit:withTransitionContext:] + 164 (UIApplication.m:4212)
48  FrontBoardServices            	0x1a81cbff4 __63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke_2 + 72 (FBSWorkspaceScenesClient.m:632)
49  FrontBoardServices            	0x1a818bcfc -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 168 (FBSWorkspace.m:445)
50  FrontBoardServices            	0x1a81cbf94 __63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke + 128 (FBSWorkspaceScenesClient.m:629)
51  libdispatch.dylib             	0x1969520d0 _dispatch_client_callout + 20 (object.m:576)
52  libdispatch.dylib             	0x196955b14 _dispatch_block_invoke_direct + 284 (queue.c:515)
53  FrontBoardServices            	0x1a818d3b8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 52 (FBSSerialQueue.m:285)
54  FrontBoardServices            	0x1a818d338 -[FBSMainRunLoopSerialQueue _targetQueue_performNextIfPossible] + 240 (FBSSerialQueue.m:309)
55  FrontBoardServices            	0x1a818d210 -[FBSMainRunLoopSerialQueue _performNextFromRunLoopSource] + 28 (FBSSerialQueue.m:322)
56  CoreFoundation                	0x18ecac088 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1950)
57  CoreFoundation                	0x18ecac01c __CFRunLoopDoSource0 + 176 (CFRunLoop.c:1994)
58  CoreFoundation                	0x18eca9b08 __CFRunLoopDoSources0 + 244 (CFRunLoop.c:2031)
59  CoreFoundation                	0x18eca8d04 __CFRunLoopRun + 840 (CFRunLoop.c:2949)
60  CoreFoundation                	0x18eca85b8 CFRunLoopRunSpecific + 572 (CFRunLoop.c:3414)
61  GraphicsServices              	0x1da73e1c4 GSEventRunModal + 164 (GSEvent.c:2196)
62  UIKitCore                     	0x1917fe5f0 -[UIApplication _run] + 816 (UIApplication.m:3820)
63  UIKitCore                     	0x1918ad10c UIApplicationMain + 340 (UIApplication.m:5472)
64  UIKitCore                     	0x191bd9e50 UIApplicationMain(_:_:_:_:) + 104 (UIKit.swift:565)
65  Runner                        	0x104ad10a0 specialized static UIApplicationDelegate.main() + 28 (/<compiler-generated>:24)
66  Runner                        	0x104ad10a0 static AppDelegate.$main() + 28 (AppDelegate.swift:0)
67  Runner                        	0x104ad10a0 main + 120
68  dyld                          	0x1b447bd34 start + 2724 (dyldMain.cpp:1334)

Thread 0 name:
Thread 0 Crashed:
0   libsystem_kernel.dylib        	0x00000001deaf7274 __pthread_kill + 8 (:-1)
1   libsystem_pthread.dylib       	0x000000021601aef8 pthread_kill + 268 (pthread.c:1721)
2   libsystem_c.dylib             	0x0000000196a0bb6c __abort + 136 (abort.c:163)
3   libsystem_c.dylib             	0x0000000196a0bae4 abort + 140 (abort.c:130)
4   libc++abi.dylib               	0x0000000215f3e5b8 abort_message + 132 (abort_message.cpp:78)
5   libc++abi.dylib               	0x0000000215f2cbac demangling_terminate_handler() + 348 (cxa_default_handlers.cpp:77)
6   libobjc.A.dylib               	0x000000018bff6e04 _objc_terminate() + 156 (objc-exception.mm:496)
7   FirebaseCrashlytics           	0x00000001050b6564 FIRCLSTerminateHandler() + 340 (FIRCLSException.mm:463)
8   libc++abi.dylib               	0x0000000215f3d87c std::__terminate(void (*)()) + 16 (cxa_handlers.cpp:59)
9   libc++abi.dylib               	0x0000000215f3d820 std::terminate() + 108 (cxa_handlers.cpp:88)
10  libdispatch.dylib             	0x00000001969520e4 _dispatch_client_callout + 40 (object.m:579)
11  libdispatch.dylib             	0x0000000196955b14 _dispatch_block_invoke_direct + 284 (queue.c:515)
12  FrontBoardServices            	0x00000001a818d3b8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 52 (FBSSerialQueue.m:285)
13  FrontBoardServices            	0x00000001a818d338 -[FBSMainRunLoopSerialQueue _targetQueue_performNextIfPossible] + 240 (FBSSerialQueue.m:309)
14  FrontBoardServices            	0x00000001a818d210 -[FBSMainRunLoopSerialQueue _performNextFromRunLoopSource] + 28 (FBSSerialQueue.m:322)
15  CoreFoundation                	0x000000018ecac088 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1950)
16  CoreFoundation                	0x000000018ecac01c __CFRunLoopDoSource0 + 176 (CFRunLoop.c:1994)
17  CoreFoundation                	0x000000018eca9b08 __CFRunLoopDoSources0 + 244 (CFRunLoop.c:2031)
18  CoreFoundation                	0x000000018eca8d04 __CFRunLoopRun + 840 (CFRunLoop.c:2949)
19  CoreFoundation                	0x000000018eca85b8 CFRunLoopRunSpecific + 572 (CFRunLoop.c:3414)
20  GraphicsServices              	0x00000001da73e1c4 GSEventRunModal + 164 (GSEvent.c:2196)
21  UIKitCore                     	0x00000001917fe5f0 -[UIApplication _run] + 816 (UIApplication.m:3820)
22  UIKitCore                     	0x00000001918ad10c UIApplicationMain + 340 (UIApplication.m:5472)
23  UIKitCore                     	0x0000000191bd9e50 UIApplicationMain(_:_:_:_:) + 104 (UIKit.swift:565)
24  Runner                        	0x0000000104ad10a0 specialized static UIApplicationDelegate.main() + 28 (/<compiler-generated>:24)
25  Runner                        	0x0000000104ad10a0 static AppDelegate.$main() + 28 (AppDelegate.swift:0)
26  Runner                        	0x0000000104ad10a0 main + 120
27  dyld                          	0x00000001b447bd34 start + 2724 (dyldMain.cpp:1334)

Thread 1:
0   libsystem_pthread.dylib       	0x0000000216014480 start_wqthread + 0 (:-1)

Thread 2:
0   libsystem_pthread.dylib       	0x0000000216014480 start_wqthread + 0 (:-1)

Thread 3:
0   libsystem_pthread.dylib       	0x0000000216014480 start_wqthread + 0 (:-1)

Thread 4:
0   libsystem_pthread.dylib       	0x0000000216014480 start_wqthread + 0 (:-1)

Thread 5:
0   libsystem_pthread.dylib       	0x0000000216014480 start_wqthread + 0 (:-1)

Thread 6 name:
Thread 6:
0   libsystem_kernel.dylib        	0x00000001deaec728 mach_msg2_trap + 8 (:-1)
1   libsystem_kernel.dylib        	0x00000001deaefe38 mach_msg2_internal + 80 (mach_msg.c:201)
2   libsystem_kernel.dylib        	0x00000001deaefd50 mach_msg_overwrite + 424 (mach_msg.c:0)
3   libsystem_kernel.dylib        	0x00000001deaefb9c mach_msg + 24 (mach_msg.c:323)
4   CoreFoundation                	0x000000018eca97cc __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2617)
5   CoreFoundation                	0x000000018eca8e78 __CFRunLoopRun + 1212 (CFRunLoop.c:3001)
6   CoreFoundation                	0x000000018eca85b8 CFRunLoopRunSpecific + 572 (CFRunLoop.c:3414)
7   Foundation                    	0x000000018d93ef00 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212 (NSRunLoop.m:373)
8   Foundation                    	0x000000018d93ed50 -[NSRunLoop(NSRunLoop) runUntilDate:] + 64 (NSRunLoop.m:420)
9   UIKitCore                     	0x0000000191811a44 -[UIEventFetcher threadMain] + 420 (UIEventFetcher.m:1212)
10  Foundation                    	0x000000018d950058 __NSThread__start__ + 724 (NSThread.m:991)
11  libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
12  libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 7 name:
Thread 7:
0   libsystem_kernel.dylib        	0x00000001deaec728 mach_msg2_trap + 8 (:-1)
1   libsystem_kernel.dylib        	0x00000001deaefe38 mach_msg2_internal + 80 (mach_msg.c:201)
2   libsystem_kernel.dylib        	0x00000001deaefd50 mach_msg_overwrite + 424 (mach_msg.c:0)
3   libsystem_kernel.dylib        	0x00000001deaefb9c mach_msg + 24 (mach_msg.c:323)
4   CoreFoundation                	0x000000018eca97cc __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2617)
5   CoreFoundation                	0x000000018eca8e78 __CFRunLoopRun + 1212 (CFRunLoop.c:3001)
6   CoreFoundation                	0x000000018eca85b8 CFRunLoopRunSpecific + 572 (CFRunLoop.c:3414)
7   Flutter                       	0x0000000105919f48 fml::MessageLoopDarwin::Run() + 88 (message_loop_darwin.mm:51)
8   Flutter                       	0x0000000105919b90 fml::MessageLoopImpl::DoRun() + 28 (message_loop_impl.cc:94)
9   Flutter                       	0x0000000105919b90 fml::MessageLoop::Run() + 32 (message_loop.cc:49)
10  Flutter                       	0x0000000105919b90 fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0::operator()() const + 160 (thread.cc:154)
11  Flutter                       	0x0000000105919b90 decltype(std::declval<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0&>()()) std::_fl::__invoke[abi:v15000]<fml::Threa... + 160 (invoke.h:403)
12  Flutter                       	0x0000000105919b90 void std::_fl::__invoke_void_return_wrapper<void, true>::__call<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0&>(fml:... + 160 (invoke.h:488)
13  Flutter                       	0x0000000105919b90 std::_fl::__function::__alloc_func<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0, std::_fl::allocator<fml::Thread::T... + 160 (function.h:185)
14  Flutter                       	0x0000000105919b90 std::_fl::__function::__func<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0, std::_fl::allocator<fml::Thread::Thread(... + 180 (function.h:359)
15  Flutter                       	0x0000000105919820 std::_fl::__function::__value_func<void ()>::operator()[abi:v15000]() const + 20 (function.h:512)
16  Flutter                       	0x0000000105919820 std::_fl::function<void ()>::operator()() const + 20 (function.h:1187)
17  Flutter                       	0x0000000105919820 fml::ThreadHandle::ThreadHandle(std::_fl::function<void ()>&&)::$_0::operator()(void*) const + 20 (thread.cc:76)
18  Flutter                       	0x0000000105919820 fml::ThreadHandle::ThreadHandle(std::_fl::function<void ()>&&)::$_0::__invoke(void*) + 36 (thread.cc:73)
19  libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
20  libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 8 name:
Thread 8:
0   libsystem_kernel.dylib        	0x00000001deaec728 mach_msg2_trap + 8 (:-1)
1   libsystem_kernel.dylib        	0x00000001deaefe38 mach_msg2_internal + 80 (mach_msg.c:201)
2   libsystem_kernel.dylib        	0x00000001deaefd50 mach_msg_overwrite + 424 (mach_msg.c:0)
3   libsystem_kernel.dylib        	0x00000001deaefb9c mach_msg + 24 (mach_msg.c:323)
4   CoreFoundation                	0x000000018eca97cc __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2617)
5   CoreFoundation                	0x000000018eca8e78 __CFRunLoopRun + 1212 (CFRunLoop.c:3001)
6   CoreFoundation                	0x000000018eca85b8 CFRunLoopRunSpecific + 572 (CFRunLoop.c:3414)
7   Flutter                       	0x0000000105919f48 fml::MessageLoopDarwin::Run() + 88 (message_loop_darwin.mm:51)
8   Flutter                       	0x0000000105919b90 fml::MessageLoopImpl::DoRun() + 28 (message_loop_impl.cc:94)
9   Flutter                       	0x0000000105919b90 fml::MessageLoop::Run() + 32 (message_loop.cc:49)
10  Flutter                       	0x0000000105919b90 fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0::operator()() const + 160 (thread.cc:154)
11  Flutter                       	0x0000000105919b90 decltype(std::declval<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0&>()()) std::_fl::__invoke[abi:v15000]<fml::Threa... + 160 (invoke.h:403)
12  Flutter                       	0x0000000105919b90 void std::_fl::__invoke_void_return_wrapper<void, true>::__call<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0&>(fml:... + 160 (invoke.h:488)
13  Flutter                       	0x0000000105919b90 std::_fl::__function::__alloc_func<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0, std::_fl::allocator<fml::Thread::T... + 160 (function.h:185)
14  Flutter                       	0x0000000105919b90 std::_fl::__function::__func<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0, std::_fl::allocator<fml::Thread::Thread(... + 180 (function.h:359)
15  Flutter                       	0x0000000105919820 std::_fl::__function::__value_func<void ()>::operator()[abi:v15000]() const + 20 (function.h:512)
16  Flutter                       	0x0000000105919820 std::_fl::function<void ()>::operator()() const + 20 (function.h:1187)
17  Flutter                       	0x0000000105919820 fml::ThreadHandle::ThreadHandle(std::_fl::function<void ()>&&)::$_0::operator()(void*) const + 20 (thread.cc:76)
18  Flutter                       	0x0000000105919820 fml::ThreadHandle::ThreadHandle(std::_fl::function<void ()>&&)::$_0::__invoke(void*) + 36 (thread.cc:73)
19  libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
20  libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 9 name:
Thread 9:
0   libsystem_kernel.dylib        	0x00000001deaec728 mach_msg2_trap + 8 (:-1)
1   libsystem_kernel.dylib        	0x00000001deaefe38 mach_msg2_internal + 80 (mach_msg.c:201)
2   libsystem_kernel.dylib        	0x00000001deaefd50 mach_msg_overwrite + 424 (mach_msg.c:0)
3   libsystem_kernel.dylib        	0x00000001deaefb9c mach_msg + 24 (mach_msg.c:323)
4   CoreFoundation                	0x000000018eca97cc __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2617)
5   CoreFoundation                	0x000000018eca8e78 __CFRunLoopRun + 1212 (CFRunLoop.c:3001)
6   CoreFoundation                	0x000000018eca85b8 CFRunLoopRunSpecific + 572 (CFRunLoop.c:3414)
7   Flutter                       	0x0000000105919f48 fml::MessageLoopDarwin::Run() + 88 (message_loop_darwin.mm:51)
8   Flutter                       	0x0000000105919b90 fml::MessageLoopImpl::DoRun() + 28 (message_loop_impl.cc:94)
9   Flutter                       	0x0000000105919b90 fml::MessageLoop::Run() + 32 (message_loop.cc:49)
10  Flutter                       	0x0000000105919b90 fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0::operator()() const + 160 (thread.cc:154)
11  Flutter                       	0x0000000105919b90 decltype(std::declval<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0&>()()) std::_fl::__invoke[abi:v15000]<fml::Threa... + 160 (invoke.h:403)
12  Flutter                       	0x0000000105919b90 void std::_fl::__invoke_void_return_wrapper<void, true>::__call<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0&>(fml:... + 160 (invoke.h:488)
13  Flutter                       	0x0000000105919b90 std::_fl::__function::__alloc_func<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0, std::_fl::allocator<fml::Thread::T... + 160 (function.h:185)
14  Flutter                       	0x0000000105919b90 std::_fl::__function::__func<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0, std::_fl::allocator<fml::Thread::Thread(... + 180 (function.h:359)
15  Flutter                       	0x0000000105919820 std::_fl::__function::__value_func<void ()>::operator()[abi:v15000]() const + 20 (function.h:512)
16  Flutter                       	0x0000000105919820 std::_fl::function<void ()>::operator()() const + 20 (function.h:1187)
17  Flutter                       	0x0000000105919820 fml::ThreadHandle::ThreadHandle(std::_fl::function<void ()>&&)::$_0::operator()(void*) const + 20 (thread.cc:76)
18  Flutter                       	0x0000000105919820 fml::ThreadHandle::ThreadHandle(std::_fl::function<void ()>&&)::$_0::__invoke(void*) + 36 (thread.cc:73)
19  libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
20  libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 10 name:
Thread 10:
0   libsystem_kernel.dylib        	0x00000001deaf2030 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000216016a50 _pthread_cond_wait + 1204 (pthread_cond.c:862)
2   Flutter                       	0x00000001058f8800 std::_fl::__libcpp_condvar_wait[abi:v15000](_opaque_pthread_cond_t*, _opaque_pthread_mutex_t*) + 4 (__threading_support:335)
3   Flutter                       	0x00000001058f8800 std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&) + 20 (condition_variable.cpp:46)
4   Flutter                       	0x00000001059130dc void std::_fl::condition_variable::wait<fml::ConcurrentMessageLoop::WorkerMain()::$_0>(std::_fl::unique_lock<std::_fl::mutex>&, fml::ConcurrentMessageLoop::WorkerMain()::$_0) + 44 (__mutex_base:398)
5   Flutter                       	0x00000001059130dc fml::ConcurrentMessageLoop::WorkerMain() + 56 (concurrent_message_loop.cc:75)
6   Flutter                       	0x00000001059130dc fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0::operator()() const + 252 (concurrent_message_loop.cc:20)
7   Flutter                       	0x00000001059130dc decltype(std::declval<fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>()()) std::_fl::__invoke[abi:v15000]<fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_... + 252 (invoke.h:403)
8   Flutter                       	0x00000001059130dc _ZNSt3_fl16__thread_executeB6v15000INS_10unique_ptrINS_15__thread_structENS_14default_deleteIS2_EEEEZN3fml21ConcurrentMessageLoopC1EmE3$_0JETpTnmJEEEvRNS_5tupleIJT_T0_DpT1_EEENS_15__tuple_indicesIJ... + 252 (thread:284)
9   Flutter                       	0x00000001059130dc void* std::_fl::__thread_proxy[abi:v15000]<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct>>, fml::ConcurrentMessageLoop::Concurre... + 340 (thread:295)
10  libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
11  libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 11 name:
Thread 11:
0   libsystem_kernel.dylib        	0x00000001deaf2030 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000216016a50 _pthread_cond_wait + 1204 (pthread_cond.c:862)
2   Flutter                       	0x00000001058f8800 std::_fl::__libcpp_condvar_wait[abi:v15000](_opaque_pthread_cond_t*, _opaque_pthread_mutex_t*) + 4 (__threading_support:335)
3   Flutter                       	0x00000001058f8800 std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&) + 20 (condition_variable.cpp:46)
4   Flutter                       	0x00000001059130dc void std::_fl::condition_variable::wait<fml::ConcurrentMessageLoop::WorkerMain()::$_0>(std::_fl::unique_lock<std::_fl::mutex>&, fml::ConcurrentMessageLoop::WorkerMain()::$_0) + 44 (__mutex_base:398)
5   Flutter                       	0x00000001059130dc fml::ConcurrentMessageLoop::WorkerMain() + 56 (concurrent_message_loop.cc:75)
6   Flutter                       	0x00000001059130dc fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0::operator()() const + 252 (concurrent_message_loop.cc:20)
7   Flutter                       	0x00000001059130dc decltype(std::declval<fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>()()) std::_fl::__invoke[abi:v15000]<fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_... + 252 (invoke.h:403)
8   Flutter                       	0x00000001059130dc _ZNSt3_fl16__thread_executeB6v15000INS_10unique_ptrINS_15__thread_structENS_14default_deleteIS2_EEEEZN3fml21ConcurrentMessageLoopC1EmE3$_0JETpTnmJEEEvRNS_5tupleIJT_T0_DpT1_EEENS_15__tuple_indicesIJ... + 252 (thread:284)
9   Flutter                       	0x00000001059130dc void* std::_fl::__thread_proxy[abi:v15000]<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct>>, fml::ConcurrentMessageLoop::Concurre... + 340 (thread:295)
10  libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
11  libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 12 name:
Thread 12:
0   libsystem_kernel.dylib        	0x00000001deaf2030 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000216016a50 _pthread_cond_wait + 1204 (pthread_cond.c:862)
2   Flutter                       	0x00000001058f8800 std::_fl::__libcpp_condvar_wait[abi:v15000](_opaque_pthread_cond_t*, _opaque_pthread_mutex_t*) + 4 (__threading_support:335)
3   Flutter                       	0x00000001058f8800 std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&) + 20 (condition_variable.cpp:46)
4   Flutter                       	0x00000001059130dc void std::_fl::condition_variable::wait<fml::ConcurrentMessageLoop::WorkerMain()::$_0>(std::_fl::unique_lock<std::_fl::mutex>&, fml::ConcurrentMessageLoop::WorkerMain()::$_0) + 44 (__mutex_base:398)
5   Flutter                       	0x00000001059130dc fml::ConcurrentMessageLoop::WorkerMain() + 56 (concurrent_message_loop.cc:75)
6   Flutter                       	0x00000001059130dc fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0::operator()() const + 252 (concurrent_message_loop.cc:20)
7   Flutter                       	0x00000001059130dc decltype(std::declval<fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>()()) std::_fl::__invoke[abi:v15000]<fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_... + 252 (invoke.h:403)
8   Flutter                       	0x00000001059130dc _ZNSt3_fl16__thread_executeB6v15000INS_10unique_ptrINS_15__thread_structENS_14default_deleteIS2_EEEEZN3fml21ConcurrentMessageLoopC1EmE3$_0JETpTnmJEEEvRNS_5tupleIJT_T0_DpT1_EEENS_15__tuple_indicesIJ... + 252 (thread:284)
9   Flutter                       	0x00000001059130dc void* std::_fl::__thread_proxy[abi:v15000]<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct>>, fml::ConcurrentMessageLoop::Concurre... + 340 (thread:295)
10  libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
11  libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 13 name:
Thread 13:
0   libsystem_kernel.dylib        	0x00000001deaf346c kevent + 8 (:-1)
1   Flutter                       	0x0000000105e05a6c dart::bin::EventHandlerImplementation::EventHandlerEntry(unsigned long) + 360 (eventhandler_macos.cc:459)
2   Flutter                       	0x0000000105e3126c dart::bin::ThreadStart(void*) + 88 (thread_macos.cc:91)
3   libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
4   libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 14 name:
Thread 14:
0   libsystem_kernel.dylib        	0x00000001deaec728 mach_msg2_trap + 8 (:-1)
1   libsystem_kernel.dylib        	0x00000001deaefe38 mach_msg2_internal + 80 (mach_msg.c:201)
2   libsystem_kernel.dylib        	0x00000001deaefd50 mach_msg_overwrite + 424 (mach_msg.c:0)
3   libsystem_kernel.dylib        	0x00000001deaefb9c mach_msg + 24 (mach_msg.c:323)
4   FirebaseCrashlytics           	0x00000001050bf580 FIRCLSMachExceptionReadMessage + 56 (FIRCLSMachException.c:196)
5   FirebaseCrashlytics           	0x00000001050bf580 FIRCLSMachExceptionServer + 104 (FIRCLSMachException.c:172)
6   libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
7   libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 15:
0   libsystem_pthread.dylib       	0x0000000216014480 start_wqthread + 0 (:-1)

Thread 16:
0   libsystem_pthread.dylib       	0x0000000216014480 start_wqthread + 0 (:-1)

Thread 17 name:
Thread 17:
0   libsystem_kernel.dylib        	0x00000001deaf2030 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000216016a50 _pthread_cond_wait + 1204 (pthread_cond.c:862)
2   JavaScriptCore                	0x00000001a695c0ac scavenger_thread_main + 1512 (pas_scavenger.c:347)
3   libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
4   libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 18 name:
Thread 18:
0   libsystem_kernel.dylib        	0x00000001deaf2030 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000216016a7c _pthread_cond_wait + 1248 (pthread_cond.c:862)
2   Flutter                       	0x0000000105f2eff0 dart::Monitor::WaitMicros(long long) + 128 (os_thread_macos.cc:449)
3   Flutter                       	0x0000000105f6a9f4 dart::MonitorLocker::WaitMicros(long long) + 8 (lockers.h:181)
4   Flutter                       	0x0000000105f6a9f4 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 480 (thread_pool.cc:183)
5   Flutter                       	0x0000000105f6a9f4 dart::ThreadPool::Worker::Main(unsigned long) + 612 (thread_pool.cc:330)
6   Flutter                       	0x0000000105f2e9bc dart::ThreadStart(void*) + 312 (os_thread_macos.cc:136)
7   libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
8   libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 19 name:
Thread 19:
0   libsystem_kernel.dylib        	0x00000001deaf2030 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000216016a7c _pthread_cond_wait + 1248 (pthread_cond.c:862)
2   Flutter                       	0x0000000105f2eff0 dart::Monitor::WaitMicros(long long) + 128 (os_thread_macos.cc:449)
3   Flutter                       	0x0000000105f6a9f4 dart::MonitorLocker::WaitMicros(long long) + 8 (lockers.h:181)
4   Flutter                       	0x0000000105f6a9f4 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 480 (thread_pool.cc:183)
5   Flutter                       	0x0000000105f6a9f4 dart::ThreadPool::Worker::Main(unsigned long) + 612 (thread_pool.cc:330)
6   Flutter                       	0x0000000105f2e9bc dart::ThreadStart(void*) + 312 (os_thread_macos.cc:136)
7   libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
8   libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 20 name:
Thread 20:
0   libsystem_kernel.dylib        	0x00000001deaf2030 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000216016a7c _pthread_cond_wait + 1248 (pthread_cond.c:862)
2   Flutter                       	0x0000000105f2eff0 dart::Monitor::WaitMicros(long long) + 128 (os_thread_macos.cc:449)
3   Flutter                       	0x0000000105f6a9f4 dart::MonitorLocker::WaitMicros(long long) + 8 (lockers.h:181)
4   Flutter                       	0x0000000105f6a9f4 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 480 (thread_pool.cc:183)
5   Flutter                       	0x0000000105f6a9f4 dart::ThreadPool::Worker::Main(unsigned long) + 612 (thread_pool.cc:330)
6   Flutter                       	0x0000000105f2e9bc dart::ThreadStart(void*) + 312 (os_thread_macos.cc:136)
7   libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
8   libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 21 name:
Thread 21:
0   libsystem_kernel.dylib        	0x00000001deaf2030 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000216016a7c _pthread_cond_wait + 1248 (pthread_cond.c:862)
2   Flutter                       	0x0000000105f2eff0 dart::Monitor::WaitMicros(long long) + 128 (os_thread_macos.cc:449)
3   Flutter                       	0x0000000105f6a9f4 dart::MonitorLocker::WaitMicros(long long) + 8 (lockers.h:181)
4   Flutter                       	0x0000000105f6a9f4 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 480 (thread_pool.cc:183)
5   Flutter                       	0x0000000105f6a9f4 dart::ThreadPool::Worker::Main(unsigned long) + 612 (thread_pool.cc:330)
6   Flutter                       	0x0000000105f2e9bc dart::ThreadStart(void*) + 312 (os_thread_macos.cc:136)
7   libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
8   libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 22 name:
Thread 22:
0   libsystem_kernel.dylib        	0x00000001deaf2030 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000216016a7c _pthread_cond_wait + 1248 (pthread_cond.c:862)
2   Flutter                       	0x0000000105f2eff0 dart::Monitor::WaitMicros(long long) + 128 (os_thread_macos.cc:449)
3   Flutter                       	0x0000000105f6a9f4 dart::MonitorLocker::WaitMicros(long long) + 8 (lockers.h:181)
4   Flutter                       	0x0000000105f6a9f4 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 480 (thread_pool.cc:183)
5   Flutter                       	0x0000000105f6a9f4 dart::ThreadPool::Worker::Main(unsigned long) + 612 (thread_pool.cc:330)
6   Flutter                       	0x0000000105f2e9bc dart::ThreadStart(void*) + 312 (os_thread_macos.cc:136)
7   libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
8   libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 23 name:
Thread 23:
0   libsystem_kernel.dylib        	0x00000001deaf2030 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000216016a7c _pthread_cond_wait + 1248 (pthread_cond.c:862)
2   Flutter                       	0x0000000105f2eff0 dart::Monitor::WaitMicros(long long) + 128 (os_thread_macos.cc:449)
3   Flutter                       	0x0000000105f6a9f4 dart::MonitorLocker::WaitMicros(long long) + 8 (lockers.h:181)
4   Flutter                       	0x0000000105f6a9f4 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 480 (thread_pool.cc:183)
5   Flutter                       	0x0000000105f6a9f4 dart::ThreadPool::Worker::Main(unsigned long) + 612 (thread_pool.cc:330)
6   Flutter                       	0x0000000105f2e9bc dart::ThreadStart(void*) + 312 (os_thread_macos.cc:136)
7   libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
8   libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 24 name:
Thread 24:
0   libsystem_kernel.dylib        	0x00000001deaec6bc semaphore_timedwait_trap + 8 (:-1)
1   libdispatch.dylib             	0x00000001969526e8 _dispatch_sema4_timedwait + 64 (lock.c:154)
2   libdispatch.dylib             	0x0000000196952ce8 _dispatch_semaphore_wait_slow + 76 (semaphore.c:116)
3   libdispatch.dylib             	0x0000000196963b60 _dispatch_worker_thread + 324 (queue.c:7509)
4   libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
5   libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 25 name:
Thread 25:
0   libsystem_kernel.dylib        	0x00000001deaec6bc semaphore_timedwait_trap + 8 (:-1)
1   libdispatch.dylib             	0x00000001969526e8 _dispatch_sema4_timedwait + 64 (lock.c:154)
2   libdispatch.dylib             	0x0000000196952ce8 _dispatch_semaphore_wait_slow + 76 (semaphore.c:116)
3   libdispatch.dylib             	0x0000000196963b60 _dispatch_worker_thread + 324 (queue.c:7509)
4   libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
5   libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 26 name:
Thread 26:
0   libsystem_kernel.dylib        	0x00000001deaec728 mach_msg2_trap + 8 (:-1)
1   libsystem_kernel.dylib        	0x00000001deaefe38 mach_msg2_internal + 80 (mach_msg.c:201)
2   libsystem_kernel.dylib        	0x00000001deaefd50 mach_msg_overwrite + 424 (mach_msg.c:0)
3   libsystem_kernel.dylib        	0x00000001deaefb9c mach_msg + 24 (mach_msg.c:323)
4   CoreFoundation                	0x000000018eca97cc __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2617)
5   CoreFoundation                	0x000000018eca8e78 __CFRunLoopRun + 1212 (CFRunLoop.c:3001)
6   CoreFoundation                	0x000000018eca85b8 CFRunLoopRunSpecific + 572 (CFRunLoop.c:3414)
7   CFNetwork                     	0x0000000190220f44 +[__CFN_CoreSchedulingSetRunnable _run:] + 416 (CoreSchedulingSet.mm:1473)
8   Foundation                    	0x000000018d950058 __NSThread__start__ + 724 (NSThread.m:991)
9   libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
10  libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 27 name:
Thread 27:
0   libsystem_kernel.dylib        	0x00000001deaec6bc semaphore_timedwait_trap + 8 (:-1)
1   libdispatch.dylib             	0x00000001969526e8 _dispatch_sema4_timedwait + 64 (lock.c:154)
2   libdispatch.dylib             	0x0000000196952ce8 _dispatch_semaphore_wait_slow + 76 (semaphore.c:116)
3   libdispatch.dylib             	0x0000000196963b60 _dispatch_worker_thread + 324 (queue.c:7509)
4   libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
5   libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 28 name:
Thread 28:
0   libsystem_kernel.dylib        	0x00000001deaec6bc semaphore_timedwait_trap + 8 (:-1)
1   libdispatch.dylib             	0x00000001969526e8 _dispatch_sema4_timedwait + 64 (lock.c:154)
2   libdispatch.dylib             	0x0000000196952ce8 _dispatch_semaphore_wait_slow + 76 (semaphore.c:116)
3   libdispatch.dylib             	0x0000000196963b60 _dispatch_worker_thread + 324 (queue.c:7509)
4   libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
5   libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)

Thread 29 name:
Thread 29:
0   libsystem_kernel.dylib        	0x00000001deaec6bc semaphore_timedwait_trap + 8 (:-1)
1   libdispatch.dylib             	0x00000001969526e8 _dispatch_sema4_timedwait + 64 (lock.c:154)
2   libdispatch.dylib             	0x0000000196952ce8 _dispatch_semaphore_wait_slow + 76 (semaphore.c:116)
3   libdispatch.dylib             	0x0000000196963b60 _dispatch_worker_thread + 324 (queue.c:7509)
4   libsystem_pthread.dylib       	0x000000021601937c _pthread_start + 136 (pthread.c:931)
5   libsystem_pthread.dylib       	0x0000000216014494 thread_start + 8 (:-1)


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x0000000000000000   x5: 0x0000000000989680   x6: 0x000000000000006e   x7: 0x0000000000000000
    x8: 0xf68f9c119478ab99   x9: 0xf68f9c1066629319  x10: 0x00000000000003e8  x11: 0x000000000000000b
   x12: 0x000000000000000b  x13: 0x000000018f104b84  x14: 0x00000000001ff800  x15: 0x00000000000007fb
   x16: 0x0000000000000148  x17: 0x00000001f21a3880  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x0000000000000103  x21: 0x00000001f21a3960  x22: 0x0000000000000007  x23: 0x00000001050e4853
   x24: 0x0000000000000000  x25: 0x0000000000000000  x26: 0x0000000000000000  x27: 0x0000000000000000
   x28: 0x00000000211200d5   fp: 0x000000016b3364d0   lr: 0x000000021601aef8
    sp: 0x000000016b3364b0   pc: 0x00000001deaf7274 cpsr: 0x40000000
   esr: 0x56000080  Address size fault


Binary Images:
        0x104ac8000 -         0x104daffff Runner arm64  <d743a74bb71631298f7f7957fd262916> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Runner
        0x104ecc000 -         0x104ed3fff FirebaseCoreExtension arm64  <93e7f76267d4310ea06e7d261ea834fc> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/FirebaseCoreExtension.framework/FirebaseCoreExtension
        0x104fec000 -         0x104ffbfff FBLPromises arm64  <227295d3265e358fa1892b8d46010542> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/FBLPromises.framework/FBLPromises
        0x105018000 -         0x10502bfff FirebaseCore arm64  <7536ff65c8c136429ce52e21f2cfed1f> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/FirebaseCore.framework/FirebaseCore
        0x10504c000 -         0x105067fff FirebaseCoreInternal arm64  <5d487ceaa5203184a80061011b200005> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/FirebaseCoreInternal.framework/FirebaseCoreInternal
        0x1050a4000 -         0x1050f3fff FirebaseCrashlytics arm64  <d0e7acd5638b35a88cc800114446eaa8> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/FirebaseCrashlytics.framework/FirebaseCrashlytics
        0x105178000 -         0x10518ffff FirebaseInstallations arm64  <9106ef01bd72364aa14c068cf2ba0ef5> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/FirebaseInstallations.framework/FirebaseInstallations
        0x1051bc000 -         0x1051c7fff FirebaseRemoteConfigInterop arm64  <d0d9154154f5345e9e02c03410ba5304> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/FirebaseRemoteConfigInterop.framework/FirebaseRemoteConfigInterop
        0x1051e0000 -         0x1051fffff FirebaseSessions arm64  <d0e357d24412348094e76731272f3e6c> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/FirebaseSessions.framework/FirebaseSessions
        0x10523c000 -         0x105263fff GoogleDataTransport arm64  <98d08403e58f3cdd96eccce309829c44> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/GoogleDataTransport.framework/GoogleDataTransport
        0x1052a0000 -         0x1052bffff GoogleUtilities arm64  <86bf30dc925c3e77b523b66c96dac719> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/GoogleUtilities.framework/GoogleUtilities
        0x1052e8000 -         0x1052fbfff MUXSDKStats arm64  <fe0aa8d890d835ab9b21285c99d8a04f> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/MUXSDKStats.framework/MUXSDKStats
        0x105314000 -         0x10533ffff MuxCore arm64  <ef6bffd9818e36c5ad6092ca923548e1> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/MuxCore.framework/MuxCore
        0x10537c000 -         0x10538ffff Promises arm64  <e3afae1124193a87bb65132259838db5> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/Promises.framework/Promises
        0x1053b0000 -         0x10544ffff WonderPush arm64  <a62b61b3cbd635078faa5c8935da019a> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/WonderPush.framework/WonderPush
        0x10553c000 -         0x10554ffff WonderPushExtension arm64  <5be2f9dca4c439cab55c93e03dfc0e06> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/WonderPushExtension.framework/WonderPushExtension
        0x105570000 -         0x105587fff WysistatSDK arm64  <0ea5ac17010e36fc8b8b69d9352829f6> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/WysistatSDK.framework/WysistatSDK
        0x1055a0000 -         0x1055affff app_settings arm64  <300c3be8a41a3090bb64f1d68eda0fc0> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/app_settings.framework/app_settings
        0x1055c8000 -         0x1055d3fff audio_service arm64  <daf4638168df3520be35c7fb03d80a0f> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/audio_service.framework/audio_service
        0x1055e4000 -         0x1055f3fff audio_session arm64  <cdeb4f99bc2933acb100e64fca4a2ec9> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/audio_session.framework/audio_session
        0x105608000 -         0x10560ffff device_info_plus arm64  <e4873a478371315a84eb2c720f54f723> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/device_info_plus.framework/device_info_plus
        0x10561c000 -         0x10562bfff flutter_local_notifications arm64  <8f61b1c1baf03305a167cd389a2e6131> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/flutter_local_notifications.framework/flutter_local_notifications
        0x105640000 -         0x105647fff flutter_native_splash arm64  <62bf6085be313437b7680d5684b3ba5a> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/flutter_native_splash.framework/flutter_native_splash
        0x105654000 -         0x105663fff flutter_to_airplay arm64  <d74d9142b7553267bca272245774649e> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/flutter_to_airplay.framework/flutter_to_airplay
        0x10567c000 -         0x105683fff in_app_review arm64  <383c2bb7f82a3e29b4a4de27b18fa604> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/in_app_review.framework/in_app_review
        0x105690000 -         0x1056a3fff just_audio arm64  <ba363235fcf03c4da522f5c9f7dc3d4a> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/just_audio.framework/just_audio
        0x1056c0000 -         0x1056c7fff nanopb arm64  <dc7e9aaf17553b1280f049287a081876> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/nanopb.framework/nanopb
        0x1056d4000 -         0x1056dbfff package_info_plus arm64  <889385eface33c43b8986f7ff861d369> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/package_info_plus.framework/package_info_plus
        0x1056e8000 -         0x1056f3fff path_provider_foundation arm64  <5f905135123b360989f157b33ca135ff> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/path_provider_foundation.framework/path_provider_foundation
        0x105708000 -         0x105713fff share_plus arm64  <bbe0a14904dd391b9aa8fbcc772ed4b3> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/share_plus.framework/share_plus
        0x105724000 -         0x105737fff shared_preferences_foundation arm64  <2be047d095e93f87a06a96f310f3c04d> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/shared_preferences_foundation.framework/shared_preferences_foundation
        0x105758000 -         0x10576ffff sqflite arm64  <0e7e4990bf4936c096c4f27b4c82df28> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/sqflite.framework/sqflite
        0x105798000 -         0x1057a7fff url_launcher_ios arm64  <dd9bc20560ff38c291c3bbc6499d34e5> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/url_launcher_ios.framework/url_launcher_ios
        0x1057c4000 -         0x1057d3fff volume_controller arm64  <f8add0abd3423ab99ed48ed59ce81492> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/volume_controller.framework/volume_controller
        0x1057ec000 -         0x10581bfff webview_flutter_wkwebview arm64  <abcaa97e232c322db3d67eb720bda79d> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/webview_flutter_wkwebview.framework/webview_flutter_wkwebview
        0x10587c000 -         0x105887fff wonderpush_flutter arm64  <bb4d57f668c73dfa84cb3ff1bc9a8305> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/wonderpush_flutter.framework/wonderpush_flutter
        0x105898000 -         0x106127fff Flutter arm64  <4c4c440955553144a19ab64ea953a1e7> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/Flutter.framework/Flutter
        0x106b4c000 -         0x106b57fff libobjc-trampolines.dylib arm64e  <ece8465d62ec35e7810fcdedfc9817bf> /private/preboot/Cryptexes/OS/usr/lib/libobjc-trampolines.dylib
        0x10a064000 -         0x10a797fff App arm64  <f24914c51c8e3768931f03f7dd01d752> /private/var/containers/Bundle/Application/3009DFC2-E604-4F72-B370-7422E0072735/Runner.app/Frameworks/App.framework/App
        0x18bfc4000 -         0x18c014d5f libobjc.A.dylib arm64e  <1a127d4447a33947bc4d9a51c4c4e157> /usr/lib/libobjc.A.dylib
        0x18d888000 -         0x18e5a6fff Foundation arm64e  <12e17a7ab65f35ee82d7cbc31004e223> /System/Library/Frameworks/Foundation.framework/Foundation
        0x18ec55000 -         0x18f19afff CoreFoundation arm64e  <47427277ee153c17ad686886b0380b5e> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
        0x190123000 -         0x1904e5fff CFNetwork arm64e  <fa95b718e8eb34bd90fa8fb1afe016d6> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
        0x191420000 -         0x1932e0fff UIKitCore arm64e  <5bd027b10ec935fdb9f06288a525693a> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
        0x19694e000 -         0x196993fff libdispatch.dylib arm64e  <b8c15e69d076317d92961279500738fc> /usr/lib/system/libdispatch.dylib
        0x196994000 -         0x196a13ff3 libsystem_c.dylib arm64e  <1ad666a001a831c188b9808915fb97b4> /usr/lib/system/libsystem_c.dylib
        0x1a53b8000 -         0x1a6b39f7f JavaScriptCore arm64e  <996b6979e43f3b188c12148e3f634a07> /System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore
        0x1a8177000 -         0x1a8249fff FrontBoardServices arm64e  <7e30829dd45e3c1aa05312ca1633cf36> /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
        0x1b4448000 -         0x1b44cb693 dyld arm64e  <77c1eed22ed7396aba34e770120d81d4> /usr/lib/dyld
        0x1da73d000 -         0x1da745fff GraphicsServices arm64e  <227122eb72fd3ecb9f66986addd8e048> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
        0x1deaeb000 -         0x1deb24ffb libsystem_kernel.dylib arm64e  <8d929b3bd4d639bfadbbbe59e928b332> /usr/lib/system/libsystem_kernel.dylib
        0x215f2b000 -         0x215f45fff libc++abi.dylib arm64e  <256c6581e6013bd1972eb869776bed2f> /usr/lib/libc++abi.dylib
        0x21600f000 -         0x216012ff8 libsystem_blocks.dylib arm64e  <ee0373a8d3b933ed94db60202c36ebbe> /usr/lib/system/libsystem_blocks.dylib
        0x216013000 -         0x21601fff3 libsystem_pthread.dylib arm64e  <fcc77eb0558f370392675419c4d33ae7> /usr/lib/system/libsystem_pthread.dylib

EOF

@cristian1980
Copy link
Contributor Author

made a fix for this on my fork minor...cristian1980:just_audio:minor if in a hurry

@EArminjon
Copy link

made a fix for this on my fork minor...cristian1980:just_audio:minor if in a hurry

If it work for you, can you open a PR on just_audio lib :) ?

@EArminjon
Copy link

EArminjon commented Oct 11, 2024

@cristian1980, it works well, ty a lot !

yunusemrealpak added a commit to yunusemrealpak/just_audio that referenced this issue Oct 17, 2024
@jonmountjoy
Copy link

Looking forward to this making it into production as my app is crashing as well, with the same exception.

@richanshah
Copy link

richanshah commented Oct 24, 2024

same issue with the music app, not facing this before. Is above solution is stable one? can it be used for the production app? thanks a lot, @ryanheise any stable update with this fix coming up?

@EArminjon
Copy link

same issue with the music app, not facing this before. Is above solution is stable one? can it be used for the production app? thanks a lot, @ryanheise any stable update with this fix coming up?

I use it along with my 12 radio apps. It works well.

@richanshah
Copy link

richanshah commented Oct 24, 2024

@EArminjon @cristian1980, can you explain the changes a bit? , as I am a flutter plus android developer not able to understand ios framework changes lot.

@cristian1980
Copy link
Contributor Author

In Objective C we are getting a dealloc function that is called when the receiving object is about to be removed from RAM.
When dealloc is called for just_audio plugin, the plugin tries to send audio players states(position, play/paused/stopped) to your flutter app.
The problem is that your flutter app is probably already terminated because the entire flutter engine is shutting down, and the flutter engine is the one that unloaded the just_audio in the first place.
Sending messages to the flutter engine that will forward it to you flutter app, in the shutting down state, seems to be causing a crash.

For the fix I added a parameter to dispose method so I know that dispose was called from dealloc so I don't send player states when the flutter engine is shutting down.

@richanshah
Copy link

Thank you, @cristian1980 ! Your explanation worked perfectly for my app. I was able to modify the just_audio package and integrate it successfully. You've saved my day! 🙌

@jonmountjoy
Copy link

Great @richanshah . Note however that you didn't need to modify anything, because @cristian1980 indicated he made a fork here #1350 (comment) - so all you really needed to do was to use it. For example, by modifying your pubspec.yaml to look like this:

just_audio:
    git:
      url: https://github.com/cristian1980/just_audio
      ref: minor
      path: just_audio

@richanshah
Copy link

ok thanks @jonmountjoy

@milesegan
Copy link

@jonmountjoy @cristian1980 Thanks for the patch. It seems to work for me on iOS. On macOS I'm getting a compilation error though:

/Users/miles/.pub-cache/git/just_audio-5a3023b73e320d7b541d6c54f8b0ba518ee2e56c/just_audio/darwin/Classes/JustAudioPlugin.m:43:29: error: no visible @interface for 'AudioPlayer' declares the selector 'dispose:'
   43 |         [_players[playerId] dispose:NO];
      |          ~~~~~~~~~~~~~~~~~~ ^~~~~~~
/Users/miles/.pub-cache/git/just_audio-5a3023b73e320d7b541d6c54f8b0ba518ee2e56c/just_audio/darwin/Classes/JustAudioPlugin.m:48:33: error: no visible @interface for 'AudioPlayer' declares the selector 'dispose:'
   48 |             [_players[playerId] dispose:NO];
      |              ~~~~~~~~~~~~~~~~~~ ^~~~~~~
/Users/miles/.pub-cache/git/just_audio-5a3023b73e320d7b541d6c54f8b0ba518ee2e56c/just_audio/darwin/Classes/JustAudioPlugin.m:59:29: error: no visible @interface for 'AudioPlayer' declares the selector 'dispose:'
   59 |         [_players[playerId] dispose:YES];
      |          ~~~~~~~~~~~~~~~~~~ ^~~~~~~
3 errors generated.
** BUILD FAILED **

@milesegan
Copy link

@cristian1980 I think you need to update the definition of dispose in the header as well as the implementation, here:

@cristian1980
Copy link
Contributor Author

@milesegan you are correct, I did not test the fix on MacOS, fixed it on my fork.

@ryanheise
Copy link
Owner

Closed by #1351

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with just_audio.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1 backlog bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants