Open Nantris opened 2 years ago
I guess it happens a lot on 0.166.0
too, but maybe half as much.
You can see below what an absolute nightmare this makes debugging React Native. Basically, we can't. Entire days are wasted like this - note the roughly one crash PER MINUTE. This is the "better" version 0.166.0
where it only crashes 50% of the time when you restart instead of every time.
For me, 0.171.1 does nothing at all. It loads and shows a blank white screen (WIndows 11).
For me, 0.171.1 does nothing at all. It loads and shows a blank white screen (WIndows 11).
Same here, Windows 10, blank screen.
@nibblesnbits @firegate you'll have better luck if you make a new issue for that particular bug.
{"app_name":"nomad","timestamp":"2022-10-26 16:41:00.00 +0300","app_version":"1.0","slice_uuid":"66dbe2c3-f184-3604-aacf-0b722ec5c3a6","build_version":"1","platform":7,"bundleID":"com.nomad.debug","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.0 (22A380)","roots_installed":0,"name":"nomad","incident_id":"95547A23-C216-4F7C-B8BF-B1022E4FB416"}
{
"uptime" : 63000,
"procRole" : "Foreground",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "MacBookPro18,3",
"coalitionID" : 13346,
"osVersion" : {
"train" : "macOS 13.0",
"build" : "22A380",
"releaseType" : "User"
},
"captureTime" : "2022-10-26 16:40:59.6122 +0300",
"incident" : "95547A23-C216-4F7C-B8BF-B1022E4FB416",
"pid" : 67613,
"translated" : false,
"cpuType" : "ARM-64",
"roots_installed" : 0,
"bug_type" : "309",
"procLaunch" : "2022-10-26 16:33:03.4282 +0300",
"procStartAbsTime" : 1523884271489,
"procExitAbsTime" : 1535312250831,
"procName" : "nomad",
"procPath" : "\/Users\/USER\/Library\/Developer\/CoreSimulator\/Devices\/C16A6DE9-9152-40EA-BD46-70444E0E8E96\/data\/Containers\/Bundle\/Application\/490C5164-BC2D-4363-AE69-92E1B62EB3A4\/nomad.app\/nomad",
"bundleInfo" : {"CFBundleShortVersionString":"1.0","CFBundleVersion":"1","CFBundleIdentifier":"com.sugarcrm.nomad.debug"},
"storeInfo" : {"deviceIdentifierForVendor":"42411983-0509-5B56-9F8B-DF559734C2E2","thirdParty":true},
"parentProc" : "launchd_sim",
"parentPid" : 50871,
"coalitionName" : "com.apple.CoreSimulator.SimDevice.C16A6DE9-9152-40EA-BD46-70444E0E8E96",
"crashReporterKey" : "83583FE4-B931-B1CC-CF8F-5DA51E50458B",
"responsiblePid" : 12270,
"responsibleProc" : "SimulatorTrampoline",
"wakeTime" : 10208,
"sleepWakeUUID" : "F144C352-A225-4942-AF50-1A215BD37294",
"sip" : "enabled",
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
"asiBacktraces" : ["0 CoreFoundation 0x00000001803f25e4 exceptionPreprocess + 236\n1 libobjc.A.dylib 0x000000018019813c objc_exception_throw + 56\n2 Foundation 0x0000000180758490 -[NSMutableDictionary(NSMutableDictionary) classForCoder] + 0\n3 nomad 0x0000000101065794 -[RCTCxxBridge ensureOnJavaScriptThread:] + 236\n4 nomad 0x000000010106ea48 -[RCTCxxBridge dispatchBlock:queue:] + 104\n5 nomad 0x00000001011805bc -[RCTEventDispatcher sendEvent:] + 1472\n6 nomad 0x0000000100f4a41c -[REAEventDispatcher sendEvent:] + 172\n7 nomad 0x000000010105437c createEventSetter_block_invoke_2 + 312\n8 nomad 0x0000000100ff2610 -[RNSScreenView notifyWillDisappear] + 148\n9 nomad 0x0000000100ff4604 -[RNSScreen viewWillDisappear:] + 816\n10 UIKitCore 0x0000000184631864 -[UIViewController _setViewAppearState:isAnimating:] + 928\n11 UIKitCore 0x00000001846322d0 -[UIViewController viewWillDisappear:] + 92\n12 UIKitCore 0x000000018455a118 -[UINavigationController viewWillDisappear:] + 116\n13 UIKitCore 0x0000000184631864 -[UIViewController _setViewAppearState:isAnimating:] + 928\n14 UIKitCore 0x00000001846322d0 -[UIViewController __viewWillDisappear:] + 92\n15 UIKitCore 0x00000001846330bc -[UIViewController viewWillMoveToWindow:] + 628\n16 UIKitCore 0x00000001852d4c3c -[UIView(Hierarchy) _willMoveToWindow:] + 476\n17 UIKitCore 0x00000001852d5390 _makeSubTreePerformSelector + 452\n18 UIKitCore 0x00000001852d53ac _makeSubTreePerformSelector + 480\n19 UIKitCore 0x00000001852d53ac _makeSubTreePerformSelector + 480\n20 UIKitCore 0x00000001852d53ac _makeSubTreePerformSelector + 480\n21 UIKitCore 0x00000001852d53ac _makeSubTreePerformSelector + 480\n22 UIKitCore 0x00000001852d53ac _makeSubTreePerformSelector + 480\n23 UIKitCore 0x00000001852d3664 UIViewWillBeRemovedFromSuperview + 772\n24 UIKitCore 0x00000001852d31f8 -[UIView(Hierarchy) removeFromSuperview] + 92\n25 nomad 0x00000001010f6a54 -[RCTRootView contentViewInvalidated] + 48\n26 nomad 0x00000001010f3f04 -[RCTRootContentView invalidate] + 108\n27 nomad 0x000000010111f848 26-[RCTUIManager invalidate]_block_invoke + 424\n28 nomad 0x0000000101131794 RCTExecuteOnMainQueue_block_invoke + 40\n29 libdispatch.dylib 0x000000018010d244 _dispatch_call_block_and_release + 24\n30 libdispatch.dylib 0x000000018010ea98 _dispatch_client_callout + 16\n31 libdispatch.dylib 0x000000018011c41c _dispatch_main_queue_drain + 976\n32 libdispatch.dylib 0x000000018011c03c _dispatch_main_queue_callback_4CF + 40\n33 CoreFoundation 0x0000000180360218 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12\n34 CoreFoundation 0x000000018035a69c CFRunLoopRun + 2432\n35 CoreFoundation 0x0000000180359804 CFRunLoopRunSpecific + 572\n36 GraphicsServices 0x000000018c23660c GSEventRunModal + 160\n37 UIKitCore 0x0000000184d7bd2c -[UIApplication _run] + 992\n38 UIKitCore 0x0000000184d808c8 UIApplicationMain + 112\n39 nomad 0x00000001009f85ec main + 100\n40 dyld 0x00000001054d9cd8 start_sim + 20\n41 ??? 0x0000000105711e50 0x0 + 4386266704\n42 ??? 0xa148800000000000 0x0 + 11621679575917920256"],
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":2,"task_for_pid":10},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"lastExceptionBacktrace" : [{"imageOffset":1144272,"symbol":"exceptionPreprocess","symbolLocation":216,"imageIndex":6},{"imageOffset":139580,"symbol":"objc_exception_throw","symbolLocation":56,"imageIndex":4},{"imageOffset":373904,"symbol":"-[NSMutableDictionary(NSMutableDictionary) classForCoder]","symbolLocation":0,"imageIndex":12},{"imageOffset":6756244,"sourceLine":374,"sourceFile":"RCTCxxBridge.mm","symbol":"-[RCTCxxBridge ensureOnJavaScriptThread:]","imageIndex":9,"symbolLocation":236},{"imageOffset":6793800,"sourceLine":1230,"sourceFile":"RCTCxxBridge.mm","symbol":"-[RCTCxxBridge dispatchBlock:queue:]","imageIndex":9,"symbolLocation":104},{"imageOffset":7914940,"sourceLine":166,"sourceFile":"RCTEventDispatcher.mm","symbol":"-[RCTEventDispatcher sendEvent:]","imageIndex":9,"symbolLocation":1472},{"imageOffset":5596188,"sourceLine":10,"sourceFile":"REAEventDispatcher.m","symbol":"-[REAEventDispatcher sendEvent:]","imageIndex":9,"symbolLocation":172},{"imageOffset":6685564,"sourceLine":136,"sourceFile":"RCTComponentData.m","symbol":"createEventSetter_block_invoke_2","imageIndex":9,"symbolLocation":312},{"imageOffset":6284816,"sourceLine":350,"sourceFile":"RNSScreen.mm","symbol":"-[RNSScreenView notifyWillDisappear]","imageIndex":9,"symbolLocation":148},{"imageOffset":6292996,"sourceLine":777,"sourceFile":"RNSScreen.mm","symbol":"-[RNSScreen viewWillDisappear:]","imageIndex":9,"symbolLocation":816},{"imageOffset":4995172,"symbol":"-[UIViewController _setViewAppearState:isAnimating:]","symbolLocation":928,"imageIndex":8},{"imageOffset":4997840,"symbol":"-[UIViewController __viewWillDisappear:]","symbolLocation":92,"imageIndex":8},{"imageOffset":4112664,"symbol":"-[UINavigationController viewWillDisappear:]","symbolLocation":116,"imageIndex":8},{"imageOffset":4995172,"symbol":"-[UIViewController _setViewAppearState:isAnimating:]","symbolLocation":928,"imageIndex":8},{"imageOffset":4997840,"symbol":"-[UIViewController viewWillDisappear:]","symbolLocation":92,"imageIndex":8},{"imageOffset":5001404,"symbol":"-[UIViewController viewWillMoveToWindow:]","symbolLocation":628,"imageIndex":8},{"imageOffset":18246716,"symbol":"-[UIView(Hierarchy) _willMoveToWindow:]","symbolLocation":476,"imageIndex":8},{"imageOffset":18248592,"symbol":"_makeSubTreePerformSelector","symbolLocation":452,"imageIndex":8},{"imageOffset":18248620,"symbol":"_makeSubTreePerformSelector","symbolLocation":480,"imageIndex":8},{"imageOffset":18248620,"symbol":"_makeSubTreePerformSelector","symbolLocation":480,"imageIndex":8},{"imageOffset":18248620,"symbol":"_makeSubTreePerformSelector","symbolLocation":480,"imageIndex":8},{"imageOffset":18248620,"symbol":"_makeSubTreePerformSelector","symbolLocation":480,"imageIndex":8},{"imageOffset":18248620,"symbol":"_makeSubTreePerformSelector","symbolLocation":480,"imageIndex":8},{"imageOffset":18241124,"symbol":"UIViewWillBeRemovedFromSuperview","symbolLocation":772,"imageIndex":8},{"imageOffset":18239992,"symbol":"-[UIView(Hierarchy) removeFromSuperview]","symbolLocation":92,"imageIndex":8},{"imageOffset":7350868,"sourceLine":373,"sourceFile":"RCTRootView.m","symbol":"-[RCTRootView contentViewInvalidated]","imageIndex":9,"symbolLocation":48},{"imageOffset":7339780,"sourceLine":98,"sourceFile":"RCTRootContentView.m","symbol":"-[RCTRootContentView invalidate]","imageIndex":9,"symbolLocation":108},{"imageOffset":7518280,"sourceLine":108,"sourceFile":"RCTUIManager.m","symbol":"26-[RCTUIManager invalidate]_block_invoke","imageIndex":9,"symbolLocation":424},{"imageOffset":7591828,"sourceLine":266,"sourceFile":"RCTUtils.m","symbol":"RCTExecuteOnMainQueue_block_invoke","imageIndex":9,"symbolLocation":40},{"imageOffset":8772,"symbol":"_dispatch_call_block_and_release","symbolLocation":24,"imageIndex":5},{"imageOffset":15000,"symbol":"_dispatch_client_callout","symbolLocation":16,"imageIndex":5},{"imageOffset":70684,"symbol":"_dispatch_main_queue_drain","symbolLocation":976,"imageIndex":5},{"imageOffset":69692,"symbol":"_dispatch_main_queue_callback_4CF","symbolLocation":40,"imageIndex":5},{"imageOffset":545304,"symbol":"CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE","symbolLocation":12,"imageIndex":6},{"imageOffset":521884,"symbol":"__CFRunLoopRun","symbolLocation":2432,"imageIndex":6},{"imageOffset":518148,"symbol":"CFRunLoopRunSpecific","symbolLocation":572,"imageIndex":6},{"imageOffset":13836,"symbol":"GSEventRunModal","symbolLocation":160,"imageIndex":7},{"imageOffset":12639532,"symbol":"-[UIApplication _run]","symbolLocation":992,"imageIndex":8},{"imageOffset":12658888,"symbol":"UIApplicationMain","symbolLocation":112,"imageIndex":8},{"imageOffset":17900,"sourceLine":8,"sourceFile":"main.m","symbol":"main","imageIndex":9,"symbolLocation":100},{"imageOffset":7384,"symbol":"start_sim","symbolLocation":20,"imageIndex":10},{"imageOffset":24144,"symbol":"start","symbolLocation":2544,"imageIndex":11},{"imageOffset":11621679575917920256,"imageIndex":19}],
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":1969616,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":6444818481},{"value":6161469120},{"value":110},{"value":18446744069414627328},{"value":4386865728,"symbolLocation":0,"symbol":"_main_thread"},{"value":5648040271849290655},{"value":512},{"value":11},{"value":0},{"value":1080041472},{"value":16},{"value":0},{"value":328},{"value":2},{"value":0},{"value":6},{"value":4386865728,"symbolLocation":0,"symbol":"_main_thread"},{"value":259},{"value":4386865952,"symbolLocation":224,"symbol":"_main_thread"},{"value":7955631424,"symbolLocation":0,"symbol":"_dispatch_main_q"},{"value":15},{"value":105553170413056},{"value":105553170474048},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":7711814120},"cpsr":{"value":1073745920},"fp":{"value":6161468976},"sp":{"value":6161468944},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":7711465760,"matchesCrashFrame":1},"far":{"value":6444746632}},"queue":"com.apple.main-thread","frames":[{"imageOffset":37152,"symbol":"pthread_kill","symbolLocation":8,"imageIndex":0},{"imageOffset":29160,"symbol":"pthread_kill","symbolLocation":256,"imageIndex":1},{"imageOffset":480244,"symbol":"abort","symbolLocation":124,"imageIndex":2},{"imageOffset":69300,"symbol":"abort_message","symbolLocation":128,"imageIndex":3},{"imageOffset":5740,"symbol":"demangling_terminate_handler()","symbolLocation":300,"imageIndex":3},{"imageOffset":20096,"symbol":"_objc_terminate()","symbolLocation":124,"imageIndex":4},{"imageOffset":66404,"symbol":"std::terminate(void (*)())","symbolLocation":16,"imageIndex":3},{"imageOffset":66316,"symbol":"std::terminate()","symbolLocation":60,"imageIndex":3},{"imageOffset":15020,"symbol":"_dispatch_client_callout","symbolLocation":36,"imageIndex":5},{"imageOffset":70684,"symbol":"_dispatch_main_queue_drain","symbolLocation":976,"imageIndex":5},{"imageOffset":69692,"symbol":"_dispatch_main_queue_callback_4CF","symbolLocation":40,"imageIndex":5},{"imageOffset":545304,"symbol":"CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE","symbolLocation":12,"imageIndex":6},{"imageOffset":521884,"symbol":"CFRunLoopRun","symbolLocation":2432,"imageIndex":6},{"imageOffset":518148,"symbol":"CFRunLoopRunSpecific","symbolLocation":572,"imageIndex":6},{"imageOffset":13836,"symbol":"GSEventRunModal","symbolLocation":160,"imageIndex":7},{"imageOffset":12639532,"symbol":"-[UIApplication _run]","symbolLocation":992,"imageIndex":8},{"imageOffset":12658888,"symbol":"UIApplicationMain","symbolLocation":112,"imageIndex":8},{"imageOffset":17900,"sourceLine":8,"sourceFile":"main.m","symbol":"main","imageIndex":9,"symbolLocation":100},{"imageOffset":7384,"symbol":"start_sim","symbolLocation":20,"imageIndex":10},{"imageOffset":24144,"symbol":"start","symbolLocation":2544,"imageIndex":11}]},{"id":1969690,"name":"com.apple.uikit.eventfetch-thread","frames":[{"imageOffset":4876,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":74092,"symbol":"mach_msg2_internal","symbolLocation":76,"imageIndex":0},{"imageOffset":38156,"symbol":"mach_msg_overwrite","symbolLocation":536,"imageIndex":0},{"imageOffset":5756,"symbol":"mach_msg","symbolLocation":20,"imageIndex":0},{"imageOffset":544088,"symbol":"CFRunLoopServiceMachPort","symbolLocation":368,"imageIndex":6},{"imageOffset":520548,"symbol":"CFRunLoopRun","symbolLocation":1096,"imageIndex":6},{"imageOffset":518148,"symbol":"CFRunLoopRunSpecific","symbolLocation":572,"imageIndex":6},{"imageOffset":1209788,"symbol":"-[NSRunLoop(NSRunLoop) runMode:beforeDate:]","symbolLocation":232,"imageIndex":12},{"imageOffset":1210484,"symbol":"-[NSRunLoop(NSRunLoop) runUntilDate:]","symbolLocation":88,"imageIndex":12},{"imageOffset":13386092,"symbol":"-[UIEventFetcher threadMain]","symbolLocation":472,"imageIndex":8},{"imageOffset":1381132,"symbol":"NSThreadstart","symbolLocation":792,"imageIndex":12},{"imageOffset":29924,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":1},{"imageOffset":9932,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":1969694,"frames":[{"imageOffset":28288,"symbol":"kevent","symbolLocation":8,"imageIndex":0},{"imageOffset":11062840,"sourceLine":315,"sourceFile":"kqueue.c","symbol":"kq_dispatch","imageIndex":9,"symbolLocation":508},{"imageOffset":10988712,"sourceLine":1992,"sourceFile":"event.c","symbol":"event_base_loop","imageIndex":9,"symbolLocation":672},{"imageOffset":1633108,"sourceLine":73,"sourceFile":"EventBase.cpp","symbol":"(anonymous namespace)::EventBaseBackend::eb_event_base_loop(int)","imageIndex":9,"symbolLocation":36},{"imageOffset":1594300,"sourceLine":359,"sourceFile":"EventBase.cpp","symbol":"folly::EventBase::loopBody(int, bool)","imageIndex":9,"symbolLocation":1444},{"imageOffset":1592788,"sourceLine":283,"sourceFile":"EventBase.cpp","symbol":"folly::EventBase::loop()","imageIndex":9,"symbolLocation":96},{"imageOffset":1601900,"sourceLine":497,"sourceFile":"EventBase.cpp","symbol":"folly::EventBase::loopForever()","imageIndex":9,"symbolLocation":96},{"imageOffset":2708700,"sourceLine":40,"sourceFile":"ScopedEventBaseThread.cpp","symbol":"folly::run(folly::EventBaseManager, folly::EventBase, folly::Baton<true, std::__1::atomic>, folly::Range<char const> const&)","imageIndex":9,"symbolLocation":120},{"imageOffset":2726876,"sourceLine":3918,"sourceFile":"type_traits","symbol":"decltype(static_cast<void (>(fp)(static_cast<folly::EventBaseManager>(fp0), static_cast<folly::EventBase*>(fp0), static_cast<folly::Baton<true, std::1::atomic>>(fp0), static_cast<folly::Range<char const>>(fp0))) std::1::invoke<void ()(folly::EventBaseManager, folly::EventBase, folly::Baton<true, std::__1::atomic>, folly::Range<char const> const&), folly::EventBaseManager, folly::EventBase, folly::Baton<true, std::__1::atomic>, folly::Range<char const> >(void (&&)(folly::EventBaseManager, folly::EventBase, folly::Baton<true, std::1::atomic>, folly::Range<char const> const&), folly::EventBaseManager&&, folly::EventBase&&, folly::Baton<true, std::1::atomic>&&, folly::Range<char const>&&)","imageIndex":9,"symbolLocation":72},{"imageOffset":2726728,"sourceLine":287,"sourceFile":"thread","symbol":"void std::1::thread_execute<std::1::unique_ptr<std::1::thread_struct, std::1::default_delete
},
"deploymentId" : 240000201
},
{
"rolloutId" : "6112d17137f5d11121dcd4e2",
"factorPackIds" : {
},
"deploymentId" : 240000140
}
], "experiments" : [
] } }
🐛 Bug Report
After pausing execution for any amount of time, reloading the app crashes with this error:
SamplingProfiler should be destroyed on the same thread it is created'
Also reported at: https://github.com/facebook/react-native/issues/35030
To Reproduce
Pause your app in Hermes Debugger for anywhere from a millisecond up. Now reload the app. It will crash, whether execution is paused before resuming or not.
This occurs whether experimental web server is enabled or not. This does not occur with Flipper 0.166.0.
Environment
Android SDK 31 - Ubuntu 22.04 - Flipper 0.171.1