[Bug]: iOS integrated Flutter, unable to open Flutter page on specific machines. My colleague encountered Flutter opening on 2 machines in our company
请描述遇到的问题,以及您所期望的正确的结果
Open a Flutter page with Flutter Boost, but it lags and does not respond
Last login: Thu Feb 27 17:01:56 on ttys002 zlj@bogon ~ % flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.27.3, on macOS 15.2 24C101 darwin-x64, locale zh-Hans-CN) [✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 16.2) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.2) [✓] Connected device (5 available) ! Error: Browsing on the local area network for Max. 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
• No issues found! zlj@bogon ~ %
[Bugly][Debug] success excute persist <BLYBlockLogic: 0x10b20ca80> with Model: { jce_list: ( " { jce_type: 103 jce_crashTime: 1740647399824 jce_expName: NotSmoothFrameException jce_expMessage: There are some notsmooth frames in the main thread jce_expAddr: 0 jce_crashThread: 0 jce_callStack: 0 libsystem_kernel.dylib 0x00000001e888eb78 __psynch_mutexwait + 8\n1 libsystem_pthread.dylib 0x0000000221ea58a0 0x0000000221ea1000 + 18592\n2 libsystem_pthread.dylib 0x0000000221ea5250 0x0000000221ea1000 + 16976\n3 Flutter 0x000000010b8b69b4 _ZN7flutter15PlatformViewIOS22SetOwnerViewControllerERKN3fml12WeakNSObjectI21FlutterViewControllerEE + 40\n4 Flutter 0x000000010b8a1308 -[FlutterEngine notifyViewControllerDeallocated] + 120\n5 CoreFoundation 0x00000001971b3474 0x0000000197165000 + 320628\n6 CoreFoundation 0x00000001971b33a4 0x0000000197165000 + 320420\n7 CoreFoundation 0x00000001971b1f18 0x0000000197165000 + 315160\n8 CoreFoundation 0x00000001971b101c _CFXNotificationPost + 728\n9 Foundation 0x0000000195e08a9c 0x0000000195d69000 + 653980\n10 Flutter 0x000000010b8acf8c -[FlutterViewController deregisterNotifications] + 72\n11 Flutter 0x000000010b8ad000 -[FlutterViewController dealloc] + 76\n12 Flutter 0x000000010b8e8f30 _ZN7flutter19AccessibilityBridgeD2Ev + 248\n13 Flutter 0x000000010b8b4004 ZNSt3_fl10unique_ptrIN7flutter19AccessibilityBridgeENS_14default_deleteIS2_EEE5resetB6v15000EPS2 + 28\n14 Flutter 0x000000010b8b40a4 _ZN7flutter15PlatformViewIOS26AccessibilityBridgeManager5ClearEv + 60\n15 Flutter 0x000000010b8b69f0 _ZN7flutter15PlatformViewIOS22SetOwnerViewControllerERKN3fml12WeakNSObjectI21FlutterViewControllerEE + 100\n16 Flutter 0x000000010b8a10b0 -[FlutterEngine setViewController:] + 224\n17 flutter_boost 0x0000000105f4c930 -[FBFlutterViewContainer init] + 92\n18 InstrumentNews.debug.dylib 0x0000000111d74010 $sSo22FBFlutterViewContainerCABSgycfcTO + 24\n19 InstrumentNews.debug.dylib 0x0000000111d72a0c $sSo22FBFlutterViewContainerCABSgycfC + 32\n20 InstrumentNews.debug.dylib 0x0000000111d71830 $s14InstrumentNews13BoostDelegateC16pushFlutterRouteyySo0fcG7OptionsCSgF + 128\n21 InstrumentNews.debug.dylib 0x0000000111d72b20 $s14InstrumentNews13BoostDelegateC16pushFlutterRouteyySo0fcG7OptionsCSgFTo + 52\n22 flutter_boost 0x0000000105f4fa68 -[FlutterBoost open:] + 108\n23 InstrumentNews.debug.dylib 0x000000011152a5cc $s14InstrumentNews7CcToolsC12gotoSearchVC5index4textyAA0F8PageTypeO_SStF + 788\n24 InstrumentNews.debug.dylib 0x0000000114280728 $s14InstrumentNews0A18ShowViewControllerC09searchBarD5ClickyyF + 216\n25 InstrumentNews.debug.dylib 0x000000011428076c $s14InstrumentNews0A18ShowViewControllerC09searchBarD5ClickyyFTo + 36\n26 UIKitCore 0x0000000199d97650 0x0000000199984000 + 4273744\n27 UIKitCore 0x0000000199d97570 0x0000000199984000 + 4273520\n28 UIKitCore 0x0000000199d97280 0x0000000199984000 + 4272768\n29 UIKitCore 0x0000000199a485f8 0x0000000199984000 + 804344\n30 UIKitCore 0x0000000199a05a78 0x0000000199984000 + 531064\n31 UIKitCore 0x0000000199b95150 0x0000000199984000 + 2167120\n32 UIKitCore 0x0000000199c5a67c 0x0000000199984000 + 2975356\n33 UIKitCore 0x0000000199c59138 0x0000000199984000 + 2969912\n34 InstrumentNews.debug.dylib 0x0000000114b48c98 -[UIWindow(BaiduMobStatWindow) mtjSendEvent:] + 3860\n35 UIKitCore 0x0000000199c5808c 0x0000000199984000 + 2965644\n36 UIKit 0x0000000254b6f720 0x0000000254b68000 + 30496\n37 UIKitCore 0x0000000199c474d0 0x0000000199984000 + 2897104\n38 UIKitCore 0x0000000199b49f8c 0x0000000199984000 + 1859468\n39 UIKitCore 0x0000000199a228a4 0x0000000199984000 + 649380\n40 UIKitCore 0x0000000199a20710 0x0000000199984000 + 640784\n41 UIKitCore 0x0000000199a23040 0x0000000199984000 + 651328\n42 UIKitCore 0x0000000199a20c5c 0x0000000199984000 + 642140\n43 CoreFoundation 0x00000001971d8f4c 0x0000000197165000 + 474956\n44 CoreFoundation 0x00000001971d8ee0 0x0000000197165000 + 474848\n45 CoreFoundation 0x00000001971dbba4 0x0000000197165000 + 486308\n46 CoreFoundation 0x00000001971dad3c 0x0000000197165000 + 482620\n47 CoreFoundation 0x000000019722d284 CFRunLoopRunSpecific + 588\n48 GraphicsServices 0x00000001e44694c0 GSEventRunModal + 164\n49 UIKitCore 0x0000000199d72674 0x0000000199984000 + 4122228\n50 UIKitCore 0x0000000199998e88 UIApplicationMain + 340\n51 InstrumentNews.debug.dylib 0x000000011440a740 __debug_main_executable_dylib_entry_point + 64\n52 dyld 0x00000001bd46dde8 0x00000001bd43e000 + 196072 jce_allStacks: {\n 0 = "0 libsystem_kernel.dylib 0x00000001e888eb78 __psynch_mutexwait + 8\n1 libsystem_pthread.dylib 0x0000000221ea58a0 0x0000000221ea1000 + 18592\n2 libsystem_pthread.dylib 0x0000000221ea5250 0x0000000221ea1000 + 16976\n3 Flutter 0x000000010b8b69b4 _ZN7flutter15PlatformViewIOS22SetOwnerViewControllerERKN3fml12WeakNSObjectI21FlutterViewControllerEE + 40\n4 Flutter 0x000000010b8a1308 -[FlutterEngine notifyViewControllerDeallocated] + 120\n5 CoreFoundation 0x00000001971b3474 0x0000000197165000 + 320628\n6 CoreFoundation 0x00000001971b33a4 0x0000000197165000 + 320420\n7 CoreFoundation 0x00000001971b1f18 0x0000000197165000 + 315160\n8 CoreFoundation 0x00000001971b101c _CFXNotificationPost + 728\n9 Foundation 0x0000000195e08a9c 0x0000000195d69000 + 653980\n10 Flutter 0x000000010b8acf8c -[FlutterViewController deregisterNotifications] + 72\n11 Flutter 0x000000010b8ad000 -[FlutterViewController dealloc] + 76\n12 Flutter 0x000000010b8e8f30 _ZN7flutter19AccessibilityBridgeD2Ev + 248\n13 Flutter 0x000000010b8b4004 ZNSt3_fl10unique_ptrIN7flutter19AccessibilityBridgeENS_14default_deleteIS2_EEE5resetB6v15000EPS2 + 28\n14 Flutter 0x000000010b8b40a4 _ZN7flutter15PlatformViewIOS26AccessibilityBridgeManager5ClearEv + 60\n15 Flutter 0x000000010b8b69f0 _ZN7flutter15PlatformViewIOS22SetOwnerViewControllerERKN3fml12WeakNSObjectI21FlutterViewControllerEE + 100\n16 Flutter 0x000000010b8a10b0 -[FlutterEngine setViewController:] + 224\n17 flutter_boost 0x0000000105f4c930 -[FBFlutterViewContainer init] + 92\n18 InstrumentNews.debug.dylib 0x0000000111d74010 $sSo22FBFlutterViewContainerCABSgycfcTO + 24\n19 InstrumentNews.debug.dylib 0x0000000111d72a0c $sSo22FBFlutterViewContainerCABSgycfC + 32\n20 InstrumentNews.debug.dylib 0x0000000111d71830 $s14InstrumentNews13BoostDelegateC16pushFlutterRouteyySo0fcG7OptionsCSgF + 128\n21 InstrumentNews.debug.dylib 0x0000000111d72b20 $s14InstrumentNews13BoostDelegateC16pushFlutterRouteyySo0fcG7OptionsCSgFTo + 52\n22 flutter_boost 0x0000000105f4fa68 -[FlutterBoost open:] + 108\n23 InstrumentNews.debug.dylib 0x000000011152a5cc $s14InstrumentNews7CcToolsC12gotoSearchVC5index4textyAA0F8PageTypeO_SStF + 788\n24 InstrumentNews.debug.dylib 0x0000000114280728 $s14InstrumentNews0A18ShowViewControllerC09searchBarD5ClickyyF + 216\n25 InstrumentNews.debug.dylib 0x000000011428076c $s14InstrumentNews0A18ShowViewControllerC09searchBarD5ClickyyFTo + 36\n26 UIKitCore 0x0000000199d97650 0x0000000199984000 + 4273744\n27 UIKitCore 0x0000000199d97570 0x0000000199984000 + 4273520\n28 UIKitCore 0x0000000199d97280 0x0000000199984000 + 4272768\n29 UIKitCore 0x0000000199a485f8 0x0000000199984000 + 804344\n30 UIKitCore 0x0000000199a05a78 0x0000000199984000 + 531064\n31 UIKitCore 0x0000000199b95150 0x0000000199984000 + 2167120\n32 UIKitCore 0x0000000199c5a67c 0x0000000199984000 + 2975356\n33 UIKitCore 0x0000000199c59138 0x0000000199984000 + 2969912\n34 InstrumentNews.debug.dylib 0x0000000114b48c98 -[UIWindow(BaiduMobStatWindow) mtjSendEvent:] + 3860\n35 UIKitCore 0x0000000199c5808c 0x0000000199984000 + 2965644\n36 UIKit 0x0000000254b6f720 0x0000000254b68000 + 30496\n37 UIKitCore 0x0000000199c474d0 0x0000000199984000 + 2897104\n38 UIKitCore 0x0000000199b49f8c 0x0000000199984000 + 1859468\n39 UIKitCore 0x0000000199a228a4 0x0000000199984000 + 649380\n40 UIKitCore 0x0000000199a20710 0x0000000199984000 + 640784\n41 UIKitCore 0x0000000199a23040 0x0000000199984000 + 651328\n42 UIKitCore 0x0000000199a20c5c 0x0000000199984000 + 642140\n43 CoreFoundation 0x00000001971d8f4c 0x0000000197165000 + 474956\n44 CoreFoundation 0x00000001971d8ee0 0x0000000197165000 + 474848\n45 CoreFoundation 0x00000001971dbba4 0x0000000197165000 + 486308\n46 CoreFoundation 0x00000001971dad3c 0x0000000197165000 + 482620\n47 CoreFoundation 0x000000019722d284 CFRunLoopRunSpecific + 588\n48 GraphicsServices 0x00000001e44694c0 GSEventRunModal + 164\n49 UIKitCore 0x0000000199d72674 0x0000000199984000 + 4122228\n50 UIKitCore 0x0000000199998e88 UIApplicationMain + 340\n51 InstrumentNews.debug.dylib 0x000000011440a740 __debug_main_executable_dylib_entry_point + 64\n52 dyld 0x00000001bd46dde8 0x00000001bd43e000 + 196072";\n "10io.jiguang.hxhg.network" = "0 libsystem_kernel.dylib 0x00000001e8888788 mach_msg2_trap + 8\n1 libsystem_kernel.dylib 0x00000001e888be98 mach_msg2_internal + 80\n2 libsystem_kernel.dylib 0x00000001e888bdb0 mach_msg_overwrite + 424\n3 libsystem_kernel.dylib 0x00000001e888bbfc mach_msg + 24\n4 CoreFoundation 0x00000001971db804 0x0000000197165000 + 485380\n5 CoreFoundation 0x00000001971daeb0 0x0000000197165000 + 482992\n6 CoreFoundation 0x000000019722d284 CFRunLoopRunSpecific + 588\n7 CoreFoundation 0x0000000197240824 CFRunLoopRun + 64\n8 InstrumentNews.debug.dylib 0x0000000114b88068 +[JCORENetworkThread run] + 180\n9 Foundation 0x0000000195e7ef30 0x0000000195d69000 + https://github.com/flutter/flutter/commit/1138480f76636cdddafdab31c4c9138083789bee\n10 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n 11MainRunloopMonitor = "0 libsystem_kernel.dylib 0x00000001e8888788 mach_msg2_trap + 8\n1 libsystem_kernel.dylib 0x00000001e888be98 mach_msg2_internal + 80\n2 libsystem_kernel.dylib 0x00000001e88894a0 thread_get_state + 256\n3 ??? 0x000000016ff79c80 0x0000000106f66954 + 0";\n 12 = "0 libsystem_kernel.dylib 0x00000001e888e090 __psynch_cvwait + 8\n1 libsystem_pthread.dylib 0x0000000221ea4f98 0x0000000221ea1000 + 16280\n2 InstrumentNews.debug.dylib 0x00000001157e85f4 native_event_wait + 208\n3 InstrumentNews.debug.dylib 0x00000001157e89b8 internal_MSPThread_WaitMessages + 228\n4 InstrumentNews.debug.dylib 0x00000001157e88ac MSPThread_WaitMessages + 228\n5 InstrumentNews.debug.dylib 0x00000001158059c4 socket_main + 224\n6 InstrumentNews.debug.dylib 0x00000001157e9bc4 ThreadEntryHook + 548\n7 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n 13 = "0 libsystem_kernel.dylib 0x00000001e888e090 __psynch_cvwait + 8\n1 libsystem_pthread.dylib 0x0000000221ea4f98 0x0000000221ea1000 + 16280\n2 InstrumentNews.debug.dylib 0x00000001157e85f4 native_event_wait + 208\n3 InstrumentNews.debug.dylib 0x00000001157acd0c dns_main + 108\n4 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n 14 = "0 libsystem_kernel.dylib 0x00000001e888e090 __psynch_cvwait + 8\n1 libsystem_pthread.dylib 0x0000000221ea4f98 0x0000000221ea1000 + 16280\n2 InstrumentNews.debug.dylib 0x00000001157e85f4 native_event_wait + 208\n3 InstrumentNews.debug.dylib 0x00000001157e89b8 internal_MSPThread_WaitMessages + 228\n4 InstrumentNews.debug.dylib 0x00000001157e88ac MSPThread_WaitMessages + 228\n5 InstrumentNews.debug.dylib 0x0000000115828f70 iFlylua_engine_main + 2728\n6 InstrumentNews.debug.dylib 0x00000001157e9bc4 ThreadEntryHook + 548\n7 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n 15 = "0 libsystem_kernel.dylib 0x00000001e888e090 __psynch_cvwait + 8\n1 libsystem_pthread.dylib 0x0000000221ea4f98 0x0000000221ea1000 + 16280\n2 InstrumentNews.debug.dylib 0x00000001157e85f4 native_event_wait + 208\n3 InstrumentNews.debug.dylib 0x00000001157e89b8 internal_MSPThread_WaitMessages + 228\n4 InstrumentNews.debug.dylib 0x00000001157e88ac MSPThread_WaitMessages + 228\n5 InstrumentNews.debug.dylib 0x0000000115828f70 iFlylua_engine_main + 2728\n6 InstrumentNews.debug.dylib 0x00000001157e9bc4 ThreadEntryHook + 548\n7 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n 16 = "0 libsystem_kernel.dylib 0x00000001e888e090 __psynch_cvwait + 8\n1 libsystem_pthread.dylib 0x0000000221ea4f98 0x0000000221ea1000 + 16280\n2 InstrumentNews.debug.dylib 0x00000001157e85f4 native_event_wait + 208\n3 InstrumentNews.debug.dylib 0x00000001157e89b8 internal_MSPThread_WaitMessages + 228\n4 InstrumentNews.debug.dylib 0x00000001157e88ac MSPThread_WaitMessages + 228\n5 InstrumentNews.debug.dylib 0x0000000115828f70 iFlylua_engine_main + 2728\n6 InstrumentNews.debug.dylib 0x00000001157e9bc4 ThreadEntryHook + 548\n7 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n 17 = "0 libsystem_kernel.dylib 0x00000001e888e090 __psynch_cvwait + 8\n1 libsystem_pthread.dylib 0x0000000221ea4f98 0x0000000221ea1000 + 16280\n2 InstrumentNews.debug.dylib 0x00000001157e85f4 native_event_wait + 208\n3 InstrumentNews.debug.dylib 0x00000001157e89b8 internal_MSPThread_WaitMessages + 228\n4 InstrumentNews.debug.dylib 0x00000001157e88ac MSPThread_WaitMessages + 228\n5 InstrumentNews.debug.dylib 0x0000000115828f70 iFlylua_engine_main + 2728\n6 InstrumentNews.debug.dylib 0x00000001157e9bc4 ThreadEntryHook + 548\n7 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n 18 = "0 libsystem_kernel.dylib 0x00000001e888e090 __psynch_cvwait + 8\n1 libsystem_pthread.dylib 0x0000000221ea4f98 0x0000000221ea1000 + 16280\n2 InstrumentNews.debug.dylib 0x00000001157e85f4 native_event_wait + 208\n3 InstrumentNews.debug.dylib 0x00000001157e89b8 internal_MSPThread_WaitMessages + 228\n4 InstrumentNews.debug.dylib 0x00000001157e88ac MSPThread_WaitMessages + 228\n5 InstrumentNews.debug.dylib 0x0000000115828f70 iFlylua_engine_main + 2728\n6 InstrumentNews.debug.dylib 0x00000001157e9bc4 ThreadEntryHook + 548\n7 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n "19io.flutter.1.ui" = "0 libsystem_kernel.dylib 0x00000001e8888788 mach_msg2_trap + 8\n1 libsystem_kernel.dylib 0x00000001e888be98 mach_msg2_internal + 80\n2 libsystem_kernel.dylib 0x00000001e888bdb0 mach_msg_overwrite + 424\n3 libsystem_kernel.dylib 0x00000001e888bbfc mach_msg + 24\n4 CoreFoundation 0x00000001971db804 0x0000000197165000 + 485380\n5 CoreFoundation 0x00000001971daeb0 0x0000000197165000 + 482992\n6 CoreFoundation 0x000000019722d284 CFRunLoopRunSpecific + 588\n7 Flutter 0x000000010b91bbb0 _ZN3fml17MessageLoopDarwin3RunEv + 88\n8 Flutter 0x000000010b91acb0 _ZNSt3_fl10__function6__funcIZN3fml6ThreadC1ERKNS_8functionIFvRKNS3_12ThreadConfigEEEES7_E3$_0NS_9allocatorISC_EEFvvEEclEv + 180\n9 Flutter 0x000000010b91a9c0 _ZZN3fml12ThreadHandleC1EONSt3_fl8functionIFvvEEEEN3$_08__invokeEPv + 36\n10 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n "1im_logic_thread" = "0 libsystem_kernel.dylib 0x00000001e889ca44 kevent64 + 8\n1 ImSDK_Plus 0x0000000105a667d0 0x0000000105a44000 + 141264\n2 ImSDK_Plus 0x0000000105a666b8 0x0000000105a44000 + 140984\n3 ImSDK_Plus 0x0000000105a5a7c8 0x0000000105a44000 + 92104\n4 ImSDK_Plus 0x0000000105a4e448 0x0000000105a44000 + 42056\n5 ImSDK_Plus 0x0000000105a5d94c 0x0000000105a44000 + 104780\n6 ImSDK_Plus 0x0000000105a65810 0x0000000105a44000 + 137232\n7 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n 2 = "0 libsystem_kernel.dylib 0x00000001e8888510 __workq_kernreturn + 8\n1 libsystem_pthread.dylib 0x0000000221ea46cc _pthread_wqthread + 364";\n "20io.flutter.1.raster" = "0 libsystem_kernel.dylib 0x00000001e8888788 mach_msg2_trap + 8\n1 libsystem_kernel.dylib 0x00000001e888be98 mach_msg2_internal + 80\n2 libsystem_kernel.dylib 0x00000001e888bdb0 mach_msg_overwrite + 424\n3 libsystem_kernel.dylib 0x00000001e888bbfc mach_msg + 24\n4 CoreFoundation 0x00000001971db804 0x0000000197165000 + 485380\n5 CoreFoundation 0x00000001971daeb0 0x0000000197165000 + 482992\n6 CoreFoundation 0x000000019722d284 CFRunLoopRunSpecific + 588\n7 Flutter 0x000000010b91bbb0 _ZN3fml17MessageLoopDarwin3RunEv + 88\n8 Flutter 0x000000010b91acb0 _ZNSt3_fl10__function6__funcIZN3fml6ThreadC1ERKNS_8functionIFvRKNS3_12ThreadConfigEEEES7_E3$_0NS_9allocatorISC_EEFvvEEclEv + 180\n9 Flutter 0x000000010b91a9c0 _ZZN3fml12ThreadHandleC1EONSt3_fl8functionIFvvEEEEN3$_08__invokeEPv + 36\n10 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n "21io.flutter.1.io" = "0 libsystem_kernel.dylib 0x00000001e8888788 mach_msg2_trap + 8\n1 libsystem_kernel.dylib 0x00000001e888be98 mach_msg2_internal + 80\n2 libsystem_kernel.dylib 0x00000001e888bdb0 mach_msg_overwrite + 424\n3 libsystem_kernel.dylib 0x00000001e888bbfc mach_msg + 24\n4 CoreFoundation 0x00000001971db804 0x0000000197165000 + 485380\n5 CoreFoundation 0x00000001971daeb0 0x0000000197165000 + 482992\n6 CoreFoundation 0x000000019722d284 CFRunLoopRunSpecific + 588\n7 Flutter 0x000000010b91bbb0 _ZN3fml17MessageLoopDarwin3RunEv + 88\n8 Flutter 0x000000010b91acb0 _ZNSt3_fl10__function6__funcIZN3fml6ThreadC1ERKNS_8functionIFvRKNS3_12ThreadConfigEEEES7_E3$_0NS_9allocatorISC_EEFvvEEclEv + 180\n9 Flutter 0x000000010b91a9c0 _ZZN3fml12ThreadHandleC1EONSt3_fl8functionIFvvEEEEN3$_08__invokeEPv + 36\n10 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n "22io.flutter.1.profiler" = "0 libsystem_kernel.dylib 0x00000001e8888788 mach_msg2_trap + 8\n1 libsystem_kernel.dylib 0x00000001e888be98 mach_msg2_internal + 80\n2 libsystem_kernel.dylib 0x00000001e888bdb0 mach_msg_overwrite + 424\n3 libsystem_kernel.dylib 0x00000001e888bbfc mach_msg + 24\n4 CoreFoundation 0x00000001971db804 0x0000000197165000 + 485380\n5 CoreFoundation 0x00000001971daeb0 0x0000000197165000 + 482992\n6 CoreFoundation 0x000000019722d284 CFRunLoopRunSpecific + 588\n7 Flutter 0x000000010b91bbb0 _ZN3fml17MessageLoopDarwin3RunEv + 88\n8 Flutter 0x000000010b91acb0 _ZNSt3_fl10__function6__funcIZN3fml6ThreadC1ERKNS_8functionIFvRKNS3_12ThreadConfigEEEES7_E3$_0NS_9allocatorISC_EEFvvEEclEv + 180\n9 Flutter 0x000000010b91a9c0 _ZZN3fml12ThreadHandleC1EONSt3_fl8functionIFvvEEEEN3$_08__invokeEPv + 36\n10 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n "23io.worker.1" = "0 libsystem_kernel.dylib 0x00000001e888e090 __psynch_cvwait + 8\n1 libsystem_pthread.dylib 0x0000000221ea4f98 0x0000000221ea1000 + 16280\n2 Flutter 0x000000010b8f9708 _ZNSt3_fl18condition_variable4waitERNS_11unique_lockINS_5mutexEEE + 20\n3 Flutter 0x000000010b914228 _ZNSt3_fl14__thread_proxyB6v15000INS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEZN3fml21ConcurrentMessageLoopC1EmE3$0EEEEEPvSB + 348\n4 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n "24io.worker.2" = "0 libsystem_kernel.dylib 0x00000001e888e090 __psynch_cvwait + 8\n1 libsystem_pthread.dylib 0x0000000221ea4f98 0x0000000221ea1000 + 16280\n2 Flutter 0x000000010b8f9708 _ZNSt3_fl18condition_variable4waitERNS_11unique_lockINS_5mutexEEE + 20\n3 Flutter 0x000000010b914228 _ZNSt3_fl14__thread_proxyB6v15000INS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEZN3fml21ConcurrentMessageLoopC1EmE3$0EEEEEPvSB + 348\n4 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n "25io.worker.3" = "0 libsystem_kernel.dylib 0x00000001e888e090 __psynch_cvwait + 8\n1 libsystem_pthread.dylib 0x0000000221ea4f98 0x0000000221ea1000 + 16280\n2 Flutter 0x000000010b8f9708 _ZNSt3_fl18condition_variable4waitERNS_11unique_lockINS_5mutexEEE + 20\n3 Flutter 0x000000010b914228 _ZNSt3_fl14__thread_proxyB6v15000INS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEZN3fml21ConcurrentMessageLoopC1EmE3$0EEEEEPvSB + 348\n4 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n "26dart:io EventHandler" = "0 libsystem_kernel.dylib 0x00000001e888f4cc kevent + 8\n1 Flutter 0x000000010be14438 _ZN4dart3bin26EventHandlerImplementation17EventHandlerEntryEm + 364\n2 Flutter 0x000000010be40558 _ZN4dart3binL11ThreadStartEPv + 88\n3 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n 27DartWorker = "0 libsystem_kernel.dylib 0x00000001e888e090 __psynch_cvwait + 8\n1 libsystem_pthread.dylib 0x0000000221ea4fc4 0x0000000221ea1000 + 16324\n2 Flutter 0x000000010bea3558 _ZN4dart17ConditionVariable10WaitMicrosEPNS_5MutexEx + 116\n3 Flutter 0x000000010bf0baa8 _ZN4dart17MutatorThreadPool17OnEnterIdleLockedEPNS_11MutexLockerEPNS_10ThreadPool6WorkerE + 208\n4 Flutter 0x000000010c06c1d4 _ZN4dart10ThreadPool6Worker4MainEm + 232\n5 Flutter 0x000000010bfd91d8 _ZN4dartL11ThreadStartEPv + 312\n6 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n 28WebThread = "0 libsystem_kernel.dylib 0x00000001e8888788 mach_msg2_trap + 8\n1 libsystem_kernel.dylib 0x00000001e888be98 mach_msg2_internal + 80\n2 libsystem_kernel.dylib 0x00000001e888bdb0 mach_msg_overwrite + 424\n3 libsystem_kernel.dylib 0x00000001e888bbfc mach_msg + 24\n4 CoreFoundation 0x00000001971db804 0x0000000197165000 + 485380\n5 CoreFoundation 0x00000001971daeb0 0x0000000197165000 + 482992\n6 CoreFoundation 0x000000019722d284 CFRunLoopRunSpecific + 588\n7 WebCore 0x00000001aaeb3f68 0x00000001a9d60000 + 18169704\n8 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n 29 = "0 libsystem_kernel.dylib 0x00000001e8888510 __workq_kernreturn + 8\n1 libsystem_pthread.dylib 0x0000000221ea46cc _pthread_wqthread + 364";\n 3 = "0 libsystem_kernel.dylib 0x00000001e8888788 mach_msg2_trap + 8\n1 libsystem_kernel.dylib 0x00000001e888be98 mach_msg2_internal + 80\n2 libsystem_kernel.dylib 0x00000001e888bdb0 mach_msg_overwrite + 424\n3 libsystem_kernel.dylib 0x00000001e888bbfc mach_msg + 24\n4 CoreFoundation 0x00000001971db804 0x0000000197165000 + 485380\n5 CoreFoundation 0x00000001971daeb0 0x0000000197165000 + 482992\n6 CoreFoundation 0x000000019722d284 CFRunLoopRunSpecific + 588\n7 Foundation 0x0000000195d930e8 0x0000000195d69000 + 172264\n8 Foundation 0x0000000195d8f2b0 0x0000000195d69000 + 156336\n9 Foundation 0x0000000195e7ef30 0x0000000195d69000 + https://github.com/flutter/flutter/commit/1138480f76636cdddafdab31c4c9138083789bee\n10 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n "30com.apple.CFSocket.private" = "0 libsystem_kernel.dylib 0x00000001e8890334 __select + 8\n1 CoreFoundation 0x00000001972ad4b4 0x0000000197165000 + 1344692\n2 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n 31 = "0 libsystem_kernel.dylib 0x00000001e8888788 mach_msg2_trap + 8\n1 libsystem_kernel.dylib 0x00000001e888be98 mach_msg2_internal + 80\n2 libsystem_kernel.dylib 0x00000001e888bdb0 mach_msg_overwrite + 424\n3 libsystem_kernel.dylib 0x00000001e888bbfc mach_msg + 24\n4 CoreFoundation 0x00000001971db804 0x0000000197165000 + 485380\n5 CoreFoundation 0x00000001971daeb0 0x0000000197165000 + 482992\n6 CoreFoundation 0x000000019722d284 CFRunLoopRunSpecific + 588\n7 CoreFoundation 0x0000000197240824 CFRunLoopRun + 64\n8 HDBaseUtils 0x000000010441e430 __20-[DWDrmServer start]_block_invoke + 232\n9 libdispatch.dylib 0x00000001076ac88c _dispatch_call_block_and_release + 32\n10 libdispatch.dylib 0x00000001076ae578 _dispatch_client_callout + 20\n11 libdispatch.dylib 0x00000001076b6454 _dispatch_lane_serial_drain + 840\n12 libdispatch.dylib 0x00000001076b725c _dispatch_lane_invoke + 408\n13 libdispatch.dylib 0x00000001076c46fc _dispatch_root_queue_drain_deferred_wlh + 328\n14 libdispatch.dylib 0x00000001076c3d0c _dispatch_workloop_worker_thread + 580\n15 libsystem_pthread.dylib 0x0000000221ea4680 _pthread_wqthread + 288";\n 32 = "0 libsystem_kernel.dylib 0x00000001e8888788 mach_msg2_trap + 8\n1 libsystem_kernel.dylib 0x00000001e888be98 mach_msg2_internal + 80\n2 libsystem_kernel.dylib 0x00000001e888bdb0 mach_msg_overwrite + 424\n3 libsystem_kernel.dylib 0x00000001e888bbfc mach_msg + 24\n4 CoreFoundation 0x00000001971db804 0x0000000197165000 + 485380\n5 CoreFoundation 0x00000001971daeb0 0x0000000197165000 + 482992\n6 CoreFoundation 0x000000019722d284 CFRunLoopRunSpecific + 588\n7 CoreFoundation 0x0000000197240824 CFRunLoopRun + 64\n8 HDBaseUtils 0x000000010441e430 __20-[DWDrmServer start]_block_invoke + 232\n9 libdispatch.dylib 0x00000001076ac88c _dispatch_call_block_and_release + 32\n10 libdispatch.dylib 0x00000001076ae578 _dispatch_client_callout + 20\n11 libdispatch.dylib 0x00000001076b6454 _dispatch_lane_serial_drain + 840\n12 libdispatch.dylib 0x00000001076b725c _dispatch_lane_invoke + 408\n13 libdispatch.dylib 0x00000001076c46fc _dispatch_root_queue_drain_deferred_wlh + 328\n14 libdispatch.dylib 0x00000001076c3d0c _dispatch_workloop_worker_thread + 580\n15 libsystem_pthread.dylib 0x0000000221ea4680 _pthread_wqthread + 288";\n 33 = "0 libsystem_kernel.dylib 0x00000001e8888510 __workq_kernreturn + 8\n1 libsystem_pthread.dylib 0x0000000221ea46cc _pthread_wqthread + 364";\n 34 = "0 libsystem_kernel.dylib 0x00000001e8888510 __workq_kernreturn + 8\n1 libsystem_pthread.dylib 0x0000000221ea46cc _pthread_wqthread + 364";\n "35com.apple.NSURLConnectionLoader" = "0 libsystem_kernel.dylib 0x00000001e8888788 mach_msg2_trap + 8\n1 libsystem_kernel.dylib 0x00000001e888be98 mach_msg2_internal + 80\n2 libsystem_kernel.dylib 0x00000001e888bdb0 mach_msg_overwrite + 424\n3 libsystem_kernel.dylib 0x00000001e888bbfc mach_msg + 24\n4 CoreFoundation 0x00000001971db804 0x0000000197165000 + 485380\n5 CoreFoundation 0x00000001971daeb0 0x0000000197165000 + 482992\n6 CoreFoundation 0x000000019722d284 CFRunLoopRunSpecific + 588\n7 CFNetwork 0x000000019874bc4c 0x000000019865a000 + 990284\n8 Foundation 0x0000000195e7ef30 0x0000000195d69000 + https://github.com/flutter/flutter/commit/1138480f76636cdddafdab31c4c9138083789bee\n9 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n 36 = "0 libsystem_kernel.dylib 0x00000001e8888510 __workq_kernreturn + 8\n1 libsystem_pthread.dylib 0x0000000221ea46cc _pthread_wqthread + 364";\n 37 = "0 libsystem_kernel.dylib 0x00000001e8888510 __workq_kernreturn + 8\n1 libsystem_pthread.dylib 0x0000000221ea46cc _pthread_wqthread + 364";\n 38 = "0 libsystem_kernel.dylib 0x00000001e8888510 __workq_kernreturn + 8\n1 libsystem_pthread.dylib 0x0000000221ea46cc _pthread_wqthread + 364";\n 39DartWorker = "0 libsystem_kernel.dylib 0x00000001e888e090 __psynch_cvwait + 8\n1 libsystem_pthread.dylib 0x0000000221ea4fc4 0x0000000221ea1000 + 16324\n2 Flutter 0x000000010bea3558 _ZN4dart17ConditionVariable10WaitMicrosEPNS_5MutexEx + 116\n3 Flutter 0x000000010c06c384 _ZN4dart10ThreadPool6Worker4MainEm + 664\n4 Flutter 0x000000010bfd91d8 _ZN4dartL11ThreadStartEPv + 312\n5 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n "4com.apple.uikit.eventfetch-thread" = "0 libsystem_kernel.dylib 0x00000001e8888788 mach_msg2_trap + 8\n1 libsystem_kernel.dylib 0x00000001e888be98 mach_msg2_internal + 80\n2 libsystem_kernel.dylib 0x00000001e888bdb0 mach_msg_overwrite + 424\n3 libsystem_kernel.dylib 0x00000001e888bbfc mach_msg + 24\n4 CoreFoundation 0x00000001971db804 0x0000000197165000 + 485380\n5 CoreFoundation 0x00000001971daeb0 0x0000000197165000 + 482992\n6 CoreFoundation 0x000000019722d284 CFRunLoopRunSpecific + 588\n7 Foundation 0x0000000195d930e8 0x0000000195d69000 + 172264\n8 Foundation 0x0000000195eefbb0 0x0000000195d69000 + 1600432\n9 UIKitCore 0x0000000199e05a78 0x0000000199984000 + 4725368\n10 Foundation 0x0000000195e7ef30 0x0000000195d69000 + https://github.com/flutter/flutter/commit/1138480f76636cdddafdab31c4c9138083789bee\n11 libsystem_pthread.dylib 0x0000000221ea27d0 _pthread_start + 136";\n 5 = "0 libsystem_kernel.dylib 0x00000001e8888788 mach_msg2_trap + 8\n1 libsystem_kernel.dylib 0x00000001e888be98 mach_msg2_internal + 80\n2 libsystem_kernel.dylib 0x00000001e888bdb0 mach_msg_overwrite + 424\n3 libsystem_kernel.dylib 0x00000001e888bbfc mach_msg + 24\n4 CoreFoundation 0x00000001971db804 0x0000000197165000 + 485380\n5 CoreFoundation 0x00000001971daeb0 0x0000000197165000 + 482992\n6 CoreFoundation 0x000000019722d284 CFRunLoopRunSpecific + 588\n7 CoreFoundation 0x0000000197240824 CFRunLoopRun + 64\n8 HDBaseUtils
Must appear on the mobile phones of two colleagues in my company
... Crashing equipment:
iPhoneXR sys:iOS 18.3.1 IPhone16ProMax ,sys:OS 18.3.1
请说明如何操作会遇到上述问题
Start the program and initialize flutter_foost with an error, but there is no crash. Then open a Flutter page through Flutter_foost, which lags and has no response
在下面填入关键复现代码
let vc:FBFlutterViewContainer = FBFlutterViewContainer() vc.setName(options.pageName, uniqueId: options.uniqueId, params: options.arguments,opaque: options.opaque)
复现的平台
iOS
Flutter SDK版本
3.27.3
FlutterBoost版本
4.6.5
是否延迟初始化FlutterBoost
No
解决方案
We had a similar crash with stacktrack below. The app hangs on launch
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x1db1f2b78 __psynch_mutexwait + 8
1 libsystem_pthread.dylib 0x2148318a0 _pthread_mutex_firstfit_lock_wait + 84
2 libsystem_pthread.dylib 0x214831250 _pthread_mutex_firstfit_lock_slow + 220
3 Flutter flutter::PlatformViewIOS::SetOwnerViewController(fml::WeakNSObject<FlutterViewController> const&) (in Flutter) (platform_view_ios.mm:84)
4 Flutter -[FlutterEngine notifyViewControllerDeallocated] (in Flutter) (FlutterEngine.mm:0)
5 CoreFoundation 0x189ae3474 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 128
6 CoreFoundation 0x189ae33a4 ___CFXRegistrationPost_block_invoke + 88
7 CoreFoundation 0x189ae1f18 _CFXRegistrationPost + 436
8 CoreFoundation 0x189ae101c _CFXNotificationPost + 728
9 Foundation 0x188738a9c -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
10 Flutter -[FlutterViewController deregisterNotifications] (in Flutter) (FlutterViewController.mm:966)
11 Flutter -[FlutterViewController dealloc] (in Flutter) (FlutterViewController.mm:977)
12 Flutter flutter::AccessibilityBridge::~AccessibilityBridge() (in Flutter) (accessibility_bridge.mm:69)
13 Flutter std::_fl::unique_ptr<flutter::AccessibilityBridge, std::_fl::default_delete<flutter::AccessibilityBridge>>::reset[abi:v15000](flutter::AccessibilityBridge*) (in Flutter) (unique_ptr.h:305)
14 Flutter flutter::PlatformViewIOS::AccessibilityBridgeManager::Clear() (in Flutter) (platform_view_ios.mm:40)
15 Flutter flutter::PlatformViewIOS::SetOwnerViewController(fml::WeakNSObject<FlutterViewController> const&) (in Flutter) (platform_view_ios.mm:90)
16 Flutter -[FlutterEngine setViewController:] (in Flutter) (FlutterEngine.mm:430)
17 MyApp -[FBFlutterViewContainer init] (in MyApp) (FBFlutterViewContainer.m:81)
18 MyApp @objc FlutterViewContainer.init() (in MyApp) (/<compiler-generated>:0)
19 MyApp closure #1 in BoostAppDelegate.flutterViewController.getter (in MyApp) (BoostAppDelegate.swift:72)
20 MyApp BoostAppDelegate.flutterViewController.getter (in MyApp) (BoostAppDelegate.swift:71)
21 MyApp BoostAppDelegate.initialize(_:) (in MyApp) (BoostAppDelegate.swift:44)
22 MyApp AppDelegate.application(_:didFinishLaunchingWithOptions:) (in MyApp) (AppDelegate.swift:67)
23 MyApp @objc AppDelegate.application(_:didFinishLaunchingWithOptions:) (in MyApp) (/<compiler-generated>:0)
24 UIKitCore 0x18c733998 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 320
25 UIKitCore 0x18c730c5c -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3016
26 UIKitCore 0x18c5525dc -[UIApplication _runWithMainScene:transitionContext:completion:] + 960
27 UIKitCore 0x18c7040a0 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 132
28 UIKitCore 0x18c5075e4 _UIScenePerformActionsWithLifecycleActionMask + 112
29 UIKitCore 0x18c6a700c __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 220
30 UIKitCore 0x18c6a6d1c -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 216
31 UIKitCore 0x18c46d834 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 608
32 UIKitCore 0x18c46d554 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 248
33 UIKitCore 0x18c46d00c __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 148
34 UIKitCore 0x18c46c1b4 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:fromCurrentState:actions:completion:] + 736
35 UIKitCore 0x18c46b7ec _UISceneSettingsDiffActionPerformChangesWithTransitionContextAndCompletion + 224
36 UIKitCore 0x18c46b49c -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 316
37 UIKitCore 0x18c507394 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.229 + 612
38 UIKitCore 0x18c506ce4 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 208
39 UIKitCore 0x18c4fe708 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 244
40 UIKitCore 0x18c4e69f8 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 456
41 UIKitCore 0x18c4e4f04 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 288
42 FrontBoardServices 0x1a35dd00c __95-[FBSScene _callOutQueue_didCreateWithTransitionContext:alternativeCreationCallout:completion:]_block_invoke + 288
43 FrontBoardServices 0x1a35da834 -[FBSScene _callOutQueue_coalesceClientSettingsUpdates:] + 68
44 FrontBoardServices 0x1a35dc794 -[FBSScene _callOutQueue_didCreateWithTransitionContext:alternativeCreationCallout:completion:] + 436
45 FrontBoardServices 0x1a35f0c94 __93-[FBSWorkspaceScenesClient _callOutQueue_sendDidCreateForScene:transitionContext:completion:]_block_invoke.197 + 276
46 FrontBoardServices 0x1a35f04c8 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 168
47 FrontBoardServices 0x1a35ffb90 -[FBSWorkspaceScenesClient _callOutQueue_sendDidCreateForScene:transitionContext:completion:] + 468
48 libdispatch.dylib 0x191856fa8 _dispatch_client_callout + 20
49 libdispatch.dylib 0x19185a9f0 _dispatch_block_invoke_direct + 284
50 FrontBoardServices 0x1a35e9378 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 52
51 FrontBoardServices 0x1a35e92f8 -[FBSMainRunLoopSerialQueue _targetQueue_performNextIfPossible] + 240
52 FrontBoardServices 0x1a35e91d0 -[FBSMainRunLoopSerialQueue _performNextFromRunLoopSource] + 28
53 CoreFoundation 0x189b08f4c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
54 CoreFoundation 0x189b08ee0 __CFRunLoopDoSource0 + 176
55 CoreFoundation 0x189b0bba4 __CFRunLoopDoSources0 + 344
56 CoreFoundation 0x189b0ad3c __CFRunLoopRun + 840
57 CoreFoundation 0x189b5d284 CFRunLoopRunSpecific + 588
58 GraphicsServices 0x1d6dc94c0 GSEventRunModal + 164
59 UIKitCore 0x18c6a6674 -[UIApplication _run] + 816
60 UIKitCore 0x18c2cce88 UIApplicationMain + 340
61 UIKitCore 0x18ca0915c 0x18c2b8000 + 7672156
62 MyApp 0x1026b0d80 main + 120
63 dyld 0x1afdb5de8 start + 2724
In the above stack trace, there is clear an re-entrance of method flutter::PlatformViewIOS::SetOwnerViewController(fml::WeakNSObject<FlutterViewController> const&) (in Flutter) (platform_view_ios.mm:84)
The implementation of this method
void PlatformViewIOS::SetOwnerViewController(__weak FlutterViewController* owner_controller) {
FML_DCHECK(task_runners_.GetPlatformTaskRunner()->RunsTasksOnCurrentThread());
std::lock_guard<std::mutex> guard(ios_surface_mutex_);
if (ios_surface_ || !owner_controller) {
NotifyDestroyed();
ios_surface_.reset();
accessibility_bridge_.Clear();
}
std::mutex is not reentrant.
It seems a bug in the flutter engine itself? As it starts to appear after we recently upgraded the flutter engine to 3.27.3
You can temporarily fix it by disabling the warmUpEngine @zhaolijiu
let options = FlutterBoostSetupOptions.createDefault()
options?.warmUpEngine = false
FlutterBoost.instance().setup(
application,
delegate: self,
callback: { engine in /* ... */ },
options: options
)
same issue
You can temporarily fix it by disabling the warmUpEngine @zhaolijiu
let options = FlutterBoostSetupOptions.createDefault() options?.warmUpEngine = false FlutterBoost.instance().setup( application, delegate: self, callback: { engine in /* ... */ }, options: options )
it works for me
You can temporarily fix it by disabling the warmUpEngine @zhaolijiu
let options = FlutterBoostSetupOptions.createDefault() options?.warmUpEngine = false FlutterBoost.instance().setup( application, delegate: self, callback: { engine in /* ... */ }, options: options )it works for me
and there is a short white screen
您可以通过禁用 warmUpEngine 来暂时修复此问题@zhaolijiu
let options = FlutterBoostSetupOptions.createDefault() options?.warmUpEngine = false FlutterBoost.instance().setup( application, delegate: self, callback: { engine in /* ... */ }, options: options )
Thank you. That's it. White screen time is acceptable
I found one consistent way (at least on my phone) to reproduce this issue. In "Settings | Accessibility" Turn on the "Switch Control" or "Voice over". And the example app of the flutter_boost will hang on launch.
Probably related to the following code in FlutterViewController
bool enabled = _isVoiceOverRunning || UIAccessibilityIsSwitchControlRunning();
// If this is enabled, the app will hang
- (void)onAccessibilityStatusChanged:(NSNotification*)notification {
if (!_engine) {
return;
}
auto platformView = [_engine.get() platformView];
int32_t flags = [self accessibilityFlags];
#if TARGET_OS_SIMULATOR
// There doesn't appear to be any way to determine whether the accessibility
// inspector is enabled on the simulator. We conservatively always turn on the
// accessibility bridge in the simulator, but never assistive technology.
platformView->SetSemanticsEnabled(true);
platformView->SetAccessibilityFeatures(flags);
#else
_isVoiceOverRunning = UIAccessibilityIsVoiceOverRunning();
bool enabled = _isVoiceOverRunning || UIAccessibilityIsSwitchControlRunning();
if (enabled) {
flags |= static_cast<int32_t>(flutter::AccessibilityFeatureFlag::kAccessibleNavigation);
}
platformView->SetSemanticsEnabled(enabled || UIAccessibilityIsSpeakScreenEnabled());
platformView->SetAccessibilityFeatures(flags);
#endif
}
OK, from the code. This will hang in simulator, too.
You can temporarily fix it by disabling the warmUpEngine @zhaolijiu
let options = FlutterBoostSetupOptions.createDefault() options?.warmUpEngine = false FlutterBoost.instance().setup( application, delegate: self, callback: { engine in /* ... */ }, options: options )it works for me
and there is a short white screen
It solved my problem. Thank you.