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

RCTScreenSize deadlock #26630

Closed
ccbrown opened this issue Sep 28, 2019 · 4 comments
Closed

RCTScreenSize deadlock #26630

ccbrown opened this issue Sep 28, 2019 · 4 comments
Labels
Bug Resolution: Locked This issue was locked by the bot.

Comments

@ccbrown
Copy link

ccbrown commented Sep 28, 2019

React Native version:

System:
    OS: macOS 10.14.6
    CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
    Memory: 66.07 MB / 16.00 GB
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 12.10.0 - /usr/local/bin/node
    Yarn: 1.17.3 - /usr/local/bin/yarn
    npm: 6.11.3 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
    Android SDK:
      API Levels: 23, 25, 26, 27
      Build Tools: 23.0.1, 25.0.0, 25.0.1, 25.0.2, 26.0.1, 26.0.2, 27.0.3
      System Images: android-27 | Google APIs Intel x86 Atom
  IDEs:
    Android Studio: 3.0 AI-171.4443003
    Xcode: 11.0/11A420a - /usr/bin/xcodebuild
  npmPackages:
    react: 16.8.6 => 16.8.6 
    react-native: 0.60.4 => 0.60.4 
  npmGlobalPackages:
    react-native-cli: 2.0.1

Steps To Reproduce

This seems to be a race condition, so I can't reproduce it 100% of the time, but it happens pretty often in our app in debug mode when we launch and immediately display an SVG on the screen. Unfortunately I can't share the entire codebase, and deleting code in an attempt to get a minimal reproduction just unpredictably makes the issue go away. I'm really hoping someone more familiar with RN's internals will have an idea of what's going on here as this function is known to have pitfalls (#18096).

Here are the stack traces:

Thread 1 Queue : com.apple.main-thread (serial)
#0	0x00007fff513749de in __ulock_wait ()
#1	0x000000010f0bb6c8 in _dlock_wait ()
#2	0x000000010f0bb647 in _dispatch_once_wait ()
#3	0x000000010dcaaadc in _dispatch_once [inlined] at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/usr/include/dispatch/once.h:84
#4	0x000000010dcaaac1 in RCTScreenSize at /Users/chris/my-app/node_modules/react-native/React/Base/RCTUtils.m:311
#5	0x000000010dd3c14b in -[RCTTextView configureLayer] at /Users/chris/my-app/node_modules/react-native/Libraries/Text/Text/RCTTextView.m:130
#6	0x000000010dd3c0a2 in -[RCTTextView setTextStorage:contentFrame:descendantViews:] at /Users/chris/my-app/node_modules/react-native/Libraries/Text/Text/RCTTextView.m:118
#7	0x000000010dd38bf0 in __49-[RCTTextShadowView uiManagerWillPerformMounting]_block_invoke.36 at /Users/chris/my-app/node_modules/react-native/Libraries/Text/Text/RCTTextShadowView.m:122
#8	0x000000010dca1284 in __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke at /Users/chris/my-app/node_modules/react-native/React/Modules/RCTUIManager.m:1129
#9	0x000000010dca15e3 in __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke.467 at /Users/chris/my-app/node_modules/react-native/React/Modules/RCTUIManager.m:1150
#10	0x000000010dcaa74d in __RCTExecuteOnMainQueue_block_invoke at /Users/chris/my-app/node_modules/react-native/React/Base/RCTUtils.m:257
#11	0x000000010f0b9df0 in _dispatch_call_block_and_release ()
#12	0x000000010f0bad64 in _dispatch_client_callout ()
#13	0x000000010f0c8e1c in _dispatch_main_queue_callback_4CF ()
#14	0x00007fff23afb699 in __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ ()
#15	0x00007fff23af62f9 in __CFRunLoopRun ()
#16	0x00007fff23af56b6 in CFRunLoopRunSpecific ()
#17	0x00007fff3815cbb0 in GSEventRunModal ()
#18	0x00007fff47162a67 in UIApplicationMain ()
#19	0x000000010daac690 in main at /Users/chris/my-app/ios/main.m:14
#20	0x00007fff5123bcf5 in start ()
#21	0x00007fff5123bcf5 in start ()

Thread 3 Queue : com.apple.root.default-qos (concurrent)
#0	0x00007fff513749de in __ulock_wait ()
#1	0x000000010f0bb6c8 in _dlock_wait ()
#2	0x000000010f0bb647 in _dispatch_once_wait ()
#3	0x000000010dcaaadc in _dispatch_once [inlined] at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/usr/include/dispatch/once.h:84
#4	0x000000010dcaaac1 in RCTScreenSize at /Users/chris/my-app/node_modules/react-native/React/Base/RCTUtils.m:311
#5	0x000000010dd0166a in __80-[RCTImageLoader decodeImageData:size:scale:clipped:resizeMode:completionBlock:]_block_invoke_3.270 at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:741
#6	0x000000010f0b9df0 in _dispatch_call_block_and_release ()
#7	0x000000010f0bad64 in _dispatch_client_callout ()
#8	0x000000010f0bd20b in _dispatch_queue_override_invoke ()
#9	0x000000010f0cc29a in _dispatch_root_queue_drain ()
#10	0x000000010f0ccba4 in _dispatch_worker_thread2 ()
#11	0x00007fff5141c6b3 in _pthread_wqthread ()
#12	0x00007fff5141c3fd in start_wqthread ()
Enqueued from com.facebook.react.ImageLoaderURLRequestQueue (Thread 0) Queue : com.facebook.react.ImageLoaderURLRequestQueue (serial)
#0	0x000000010f0bec79 in dispatch_async ()
#1	0x000000010dd0153f in __80-[RCTImageLoader decodeImageData:size:scale:clipped:resizeMode:completionBlock:]_block_invoke_2.269 at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:733
#2	0x000000010dd01bef in __80-[RCTImageLoader decodeImageData:size:scale:clipped:resizeMode:completionBlock:]_block_invoke.279 at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:784
#3	0x000000010f0b9df0 in _dispatch_call_block_and_release ()
#4	0x000000010f0bad64 in _dispatch_client_callout ()
#5	0x000000010f0c160b in _dispatch_lane_serial_drain ()
#6	0x000000010f0c219b in _dispatch_lane_invoke ()
#7	0x000000010f0cda59 in _dispatch_workloop_worker_thread ()
#8	0x00007fff5141c611 in _pthread_wqthread ()
#9	0x00007fff5141c3fd in start_wqthread ()
Enqueued from com.facebook.react.ImageLoaderURLRequestQueue (Thread 0) Queue : com.facebook.react.ImageLoaderURLRequestQueue (serial)
#0	0x000000010f0bec79 in dispatch_async ()
#1	0x000000010dd00b2b in -[RCTImageLoader decodeImageData:size:scale:clipped:resizeMode:completionBlock:] at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:772
#2	0x000000010dcfff6e in __119-[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:progressBlock:partialLoadBlock:completionBlock:]_block_invoke_2 at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:669
#3	0x000000010dcfd620 in __118-[RCTImageLoader _loadImageOrDataWithURLRequest:size:scale:resizeMode:progressBlock:partialLoadBlock:completionBlock:]_block_invoke at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:421
#4	0x000000010dcfee44 in __64-[RCTImageLoader _loadURLRequest:progressBlock:completionBlock:]_block_invoke at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:550
#5	0x000000010dcff26f in __64-[RCTImageLoader _loadURLRequest:progressBlock:completionBlock:]_block_invoke_2 at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:579
#6	0x000000010f0b9df0 in _dispatch_call_block_and_release ()
#7	0x000000010f0bad64 in _dispatch_client_callout ()
#8	0x000000010f0c160b in _dispatch_lane_serial_drain ()
#9	0x000000010f0c219b in _dispatch_lane_invoke ()
#10	0x000000010f0cda59 in _dispatch_workloop_worker_thread ()
#11	0x00007fff5141c611 in _pthread_wqthread ()
#12	0x00007fff5141c3fd in start_wqthread ()
Enqueued from com.facebook.react.NetworkingQueue (Thread 0) Queue : com.facebook.react.NetworkingQueue (serial)
#0	0x000000010f0bec79 in dispatch_async ()
#1	0x000000010dcff155 in __64-[RCTImageLoader _loadURLRequest:progressBlock:completionBlock:]_block_invoke.243 at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:577
#2	0x000000010dd2213c in __50-[RCTNetworkTask URLRequest:didCompleteWithError:]_block_invoke at /Users/chris/my-app/node_modules/react-native/Libraries/Network/RCTNetworkTask.m:194
#3	0x000000010f0b9df0 in _dispatch_call_block_and_release ()
#4	0x000000010f0bad64 in _dispatch_client_callout ()
#5	0x000000010f0c160b in _dispatch_lane_serial_drain ()
#6	0x000000010f0c219b in _dispatch_lane_invoke ()
#7	0x000000010f0cda59 in _dispatch_workloop_worker_thread ()
#8	0x00007fff5141c611 in _pthread_wqthread ()
#9	0x00007fff5141c3fd in start_wqthread ()
Enqueued from  (Thread 0) Queue :  (serial)
#0	0x000000010f0bec79 in dispatch_async ()
#1	0x000000010dd21213 in -[RCTNetworkTask dispatchCallback:] at /Users/chris/my-app/node_modules/react-native/Libraries/Network/RCTNetworkTask.m:61
#2	0x000000010dd22051 in -[RCTNetworkTask URLRequest:didCompleteWithError:] at /Users/chris/my-app/node_modules/react-native/Libraries/Network/RCTNetworkTask.m:193
#3	0x000000010dd100e4 in __50-[RCTDataRequestHandler sendRequest:withDelegate:]_block_invoke at /Users/chris/my-app/node_modules/react-native/Libraries/Network/RCTDataRequestHandler.m:60
#4	0x00007fff25654583 in __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ ()
#5	0x00007fff2565447b in -[NSBlockOperation main] ()
#6	0x00007fff25657408 in __NSOPERATION_IS_INVOKING_MAIN__ ()
#7	0x00007fff2565367b in -[NSOperation start] ()
#8	0x00007fff25657d62 in __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ ()
#9	0x00007fff2565786c in __NSOQSchedule_f ()
#10	0x000000010f0c93ff in _dispatch_block_async_invoke2 ()
#11	0x000000010f0bad64 in _dispatch_client_callout ()
#12	0x000000010f0bd6d6 in _dispatch_continuation_pop ()
#13	0x000000010f0bcae1 in _dispatch_async_redirect_invoke ()
#14	0x000000010f0cc29a in _dispatch_root_queue_drain ()
#15	0x000000010f0ccba4 in _dispatch_worker_thread2 ()
#16	0x00007fff5141c6b3 in _pthread_wqthread ()
#17	0x00007fff5141c3fd in start_wqthread ()
Enqueued from com.facebook.react.ImageLoaderURLRequestQueue (Thread 9) Queue : com.facebook.react.ImageLoaderURLRequestQueue (serial)
#0	0x000000010f0bec79 in dispatch_async ()
#1	0x00007fff25651832 in __NSOQSchedule ()
#2	0x00007fff2565568e in __addOperations ()
#3	0x000000010dd0fb81 in -[RCTDataRequestHandler sendRequest:withDelegate:] at /Users/chris/my-app/node_modules/react-native/Libraries/Network/RCTDataRequestHandler.m:64
#4	0x000000010dd212c5 in -[RCTNetworkTask start] at /Users/chris/my-app/node_modules/react-native/Libraries/Network/RCTNetworkTask.m:73
#5	0x000000010dcfc39b in __30-[RCTImageLoader dequeueTasks]_block_invoke at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:358
#6	0x000000010f0b9df0 in _dispatch_call_block_and_release ()
#7	0x000000010f0bad64 in _dispatch_client_callout ()
#8	0x000000010f0c160b in _dispatch_lane_serial_drain ()
#9	0x000000010f0c219b in _dispatch_lane_invoke ()
#10	0x000000010f0cda59 in _dispatch_workloop_worker_thread ()
#11	0x00007fff5141c611 in _pthread_wqthread ()
#12	0x00007fff5141c3fd in start_wqthread ()
Enqueued from com.facebook.react.ImageLoaderURLRequestQueue (Thread 9) Queue : com.facebook.react.ImageLoaderURLRequestQueue (serial)
#0	0x000000010f0bec79 in dispatch_async ()
#1	0x000000010dcfbbd8 in -[RCTImageLoader dequeueTasks] at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:306
#2	0x000000010dcfe88b in -[RCTImageLoader _loadURLRequest:progressBlock:completionBlock:] at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:597
#3	0x000000010dcfdcf9 in __118-[RCTImageLoader _loadImageOrDataWithURLRequest:size:scale:resizeMode:progressBlock:partialLoadBlock:completionBlock:]_block_invoke.206 at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:477
#4	0x000000010f0b9df0 in _dispatch_call_block_and_release ()
#5	0x000000010f0bad64 in _dispatch_client_callout ()
#6	0x000000010f0c160b in _dispatch_lane_serial_drain ()
#7	0x000000010f0c219b in _dispatch_lane_invoke ()
#8	0x000000010f0cda59 in _dispatch_workloop_worker_thread ()
#9	0x00007fff5141c611 in _pthread_wqthread ()
#10	0x00007fff5141c3fd in start_wqthread ()
Enqueued from com.apple.main-thread (Thread 1) Queue : com.apple.main-thread (serial)
#0	0x000000010f0bec79 in dispatch_async ()
#1	0x000000010dcfcfcb in -[RCTImageLoader _loadImageOrDataWithURLRequest:size:scale:resizeMode:progressBlock:partialLoadBlock:completionBlock:] at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:445
#2	0x000000010dcff906 in -[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:progressBlock:partialLoadBlock:completionBlock:] at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:680
#3	0x000000010dcfbb28 in -[RCTImageLoader loadImageWithURLRequest:callback:] at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:294
#4	0x000000010db5d6aa in -[RNSVGImage setSrc:] at /Users/chris/my-app/node_modules/react-native-svg/ios/Elements/RNSVGImage.m:43
#5	0x000000010dbb1bfb in __49-[RCTComponentData createPropBlock:isShadowView:]_block_invoke.97 at /Users/chris/my-app/node_modules/react-native/React/Views/RCTComponentData.m:296
#6	0x000000010dbb2288 in __49-[RCTComponentData createPropBlock:isShadowView:]_block_invoke_2.98 at /Users/chris/my-app/node_modules/react-native/React/Views/RCTComponentData.m:314
#7	0x000000010dbb28b8 in __49-[RCTComponentData propBlockForKey:isShadowView:]_block_invoke_2 at /Users/chris/my-app/node_modules/react-native/React/Views/RCTComponentData.m:334
#8	0x000000010dc20fb4 in ::RCTPerformBlockWithLogFunction(void (^)(), RCTLogFunction) at /Users/chris/my-app/node_modules/react-native/React/Base/RCTLog.mm:131
#9	0x000000010dc2116f in ::RCTPerformBlockWithLogPrefix(void (^)(), NSString *) at /Users/chris/my-app/node_modules/react-native/React/Base/RCTLog.mm:139
#10	0x000000010dbb2816 in __49-[RCTComponentData propBlockForKey:isShadowView:]_block_invoke at /Users/chris/my-app/node_modules/react-native/React/Views/RCTComponentData.m:333
#11	0x000000010dbb2bcd in __37-[RCTComponentData setProps:forView:]_block_invoke at /Users/chris/my-app/node_modules/react-native/React/Views/RCTComponentData.m:350
#12	0x00007fff23c211f7 in __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ ()
#13	0x00007fff23bfa48e in -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] ()
#14	0x000000010dbb2ac2 in -[RCTComponentData setProps:forView:] at /Users/chris/my-app/node_modules/react-native/React/Views/RCTComponentData.m:349
#15	0x000000010dc9f2a5 in __50-[RCTUIManager createView:viewName:rootTag:props:]_block_invoke.411 at /Users/chris/my-app/node_modules/react-native/React/Modules/RCTUIManager.m:992
#16	0x000000010dca1284 in __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke at /Users/chris/my-app/node_modules/react-native/React/Modules/RCTUIManager.m:1129
#17	0x000000010dca15e3 in __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke.467 at /Users/chris/my-app/node_modules/react-native/React/Modules/RCTUIManager.m:1150
#18	0x000000010dcaa74d in __RCTExecuteOnMainQueue_block_invoke at /Users/chris/my-app/node_modules/react-native/React/Base/RCTUtils.m:257
#19	0x000000010f0b9df0 in _dispatch_call_block_and_release ()
#20	0x000000010f0bad64 in _dispatch_client_callout ()
#21	0x000000010f0c8e1c in _dispatch_main_queue_callback_4CF ()
#22	0x00007fff23afb699 in __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ ()
#23	0x00007fff23af62f9 in __CFRunLoopRun ()
#24	0x00007fff23af56b6 in CFRunLoopRunSpecific ()
#25	0x00007fff3815cbb0 in GSEventRunModal ()
#26	0x00007fff47162a67 in UIApplicationMain ()
#27	0x000000010daac690 in main at /Users/chris/my-app/ios/main.m:14
#28	0x00007fff5123bcf5 in start ()
Enqueued from com.facebook.react.ShadowQueue (Thread 0) Queue : com.facebook.react.ShadowQueue (serial)
#0	0x000000010f0bec79 in dispatch_async ()
#1	0x000000010dcaa6ef in RCTExecuteOnMainQueue at /Users/chris/my-app/node_modules/react-native/React/Base/RCTUtils.m:256
#2	0x000000010dca0ff0 in -[RCTUIManager flushUIBlocksWithCompletion:] at /Users/chris/my-app/node_modules/react-native/React/Modules/RCTUIManager.m:1144
#3	0x000000010dca0b81 in -[RCTUIManager _layoutAndMount] at /Users/chris/my-app/node_modules/react-native/React/Modules/RCTUIManager.m:1102
#4	0x000000010dca07ec in -[RCTUIManager batchDidComplete] at /Users/chris/my-app/node_modules/react-native/React/Modules/RCTUIManager.m:1078
#5	0x000000010dbd58a2 in ::__32-[RCTCxxBridge batchDidComplete]_block_invoke() at /Users/chris/my-app/node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm:1365
#6	0x000000010f0b9df0 in _dispatch_call_block_and_release ()
#7	0x000000010f0bad64 in _dispatch_client_callout ()
#8	0x000000010f0c160b in _dispatch_lane_serial_drain ()
#9	0x000000010f0c219b in _dispatch_lane_invoke ()
#10	0x000000010f0cda59 in _dispatch_workloop_worker_thread ()
#11	0x00007fff5141c611 in _pthread_wqthread ()
#12	0x00007fff5141c3fd in start_wqthread ()

Thread 9 Queue : com.apple.root.default-qos (concurrent)
#0	0x00007fff513749de in __ulock_wait ()
#1	0x000000010f0bb6c8 in _dlock_wait ()
#2	0x000000010f0bb527 in _dispatch_thread_event_wait_slow ()
#3	0x000000010f0c9d3f in __DISPATCH_WAIT_FOR_QUEUE__ ()
#4	0x000000010f0c979c in _dispatch_sync_f_slow ()
#5	0x000000010dcaa81f in RCTUnsafeExecuteOnMainQueueSync at /Users/chris/my-app/node_modules/react-native/React/Base/RCTUtils.m:269
#6	0x000000010dcaab3f in __RCTScreenSize_block_invoke at /Users/chris/my-app/node_modules/react-native/React/Base/RCTUtils.m:312
#7	0x000000010f0bad64 in _dispatch_client_callout ()
#8	0x000000010f0bc2b3 in _dispatch_once_callout ()
#9	0x000000010dcaaadc in _dispatch_once [inlined] at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/usr/include/dispatch/once.h:84
#10	0x000000010dcaaac1 in RCTScreenSize at /Users/chris/my-app/node_modules/react-native/React/Base/RCTUtils.m:311
#11	0x000000010dd0166a in __80-[RCTImageLoader decodeImageData:size:scale:clipped:resizeMode:completionBlock:]_block_invoke_3.270 at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:741
#12	0x000000010f0b9df0 in _dispatch_call_block_and_release ()
#13	0x000000010f0bad64 in _dispatch_client_callout ()
#14	0x000000010f0bd20b in _dispatch_queue_override_invoke ()
#15	0x000000010f0cc29a in _dispatch_root_queue_drain ()
#16	0x000000010f0ccba4 in _dispatch_worker_thread2 ()
#17	0x00007fff5141c6b3 in _pthread_wqthread ()
#18	0x00007fff5141c3fd in start_wqthread ()
Enqueued from com.facebook.react.ImageLoaderURLRequestQueue (Thread 0) Queue : com.facebook.react.ImageLoaderURLRequestQueue (serial)
#0	0x000000010f0bec79 in dispatch_async ()
#1	0x000000010dd0153f in __80-[RCTImageLoader decodeImageData:size:scale:clipped:resizeMode:completionBlock:]_block_invoke_2.269 at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:733
#2	0x000000010dd01bef in __80-[RCTImageLoader decodeImageData:size:scale:clipped:resizeMode:completionBlock:]_block_invoke.279 at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:784
#3	0x000000010f0b9df0 in _dispatch_call_block_and_release ()
#4	0x000000010f0bad64 in _dispatch_client_callout ()
#5	0x000000010f0c160b in _dispatch_lane_serial_drain ()
#6	0x000000010f0c219b in _dispatch_lane_invoke ()
#7	0x000000010f0cda59 in _dispatch_workloop_worker_thread ()
#8	0x00007fff5141c611 in _pthread_wqthread ()
#9	0x00007fff5141c3fd in start_wqthread ()
Enqueued from com.facebook.react.ImageLoaderURLRequestQueue (Thread 0) Queue : com.facebook.react.ImageLoaderURLRequestQueue (serial)
#0	0x000000010f0bec79 in dispatch_async ()
#1	0x000000010dd00b2b in -[RCTImageLoader decodeImageData:size:scale:clipped:resizeMode:completionBlock:] at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:772
#2	0x000000010dcfff6e in __119-[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:progressBlock:partialLoadBlock:completionBlock:]_block_invoke_2 at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:669
#3	0x000000010dcfd620 in __118-[RCTImageLoader _loadImageOrDataWithURLRequest:size:scale:resizeMode:progressBlock:partialLoadBlock:completionBlock:]_block_invoke at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:421
#4	0x000000010dcfee44 in __64-[RCTImageLoader _loadURLRequest:progressBlock:completionBlock:]_block_invoke at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:550
#5	0x000000010dcff26f in __64-[RCTImageLoader _loadURLRequest:progressBlock:completionBlock:]_block_invoke_2 at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:579
#6	0x000000010f0b9df0 in _dispatch_call_block_and_release ()
#7	0x000000010f0bad64 in _dispatch_client_callout ()
#8	0x000000010f0c160b in _dispatch_lane_serial_drain ()
#9	0x000000010f0c219b in _dispatch_lane_invoke ()
#10	0x000000010f0cda59 in _dispatch_workloop_worker_thread ()
#11	0x00007fff5141c611 in _pthread_wqthread ()
#12	0x00007fff5141c3fd in start_wqthread ()
Enqueued from com.facebook.react.NetworkingQueue (Thread 9) Queue : com.facebook.react.NetworkingQueue (serial)
#0	0x000000010f0bec79 in dispatch_async ()
#1	0x000000010dcff155 in __64-[RCTImageLoader _loadURLRequest:progressBlock:completionBlock:]_block_invoke.243 at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:577
#2	0x000000010dd2213c in __50-[RCTNetworkTask URLRequest:didCompleteWithError:]_block_invoke at /Users/chris/my-app/node_modules/react-native/Libraries/Network/RCTNetworkTask.m:194
#3	0x000000010f0b9df0 in _dispatch_call_block_and_release ()
#4	0x000000010f0bad64 in _dispatch_client_callout ()
#5	0x000000010f0c160b in _dispatch_lane_serial_drain ()
#6	0x000000010f0c219b in _dispatch_lane_invoke ()
#7	0x000000010f0cda59 in _dispatch_workloop_worker_thread ()
#8	0x00007fff5141c611 in _pthread_wqthread ()
#9	0x00007fff5141c3fd in start_wqthread ()
Enqueued from  (Thread 3) Queue :  (serial)
#0	0x000000010f0bec79 in dispatch_async ()
#1	0x000000010dd21213 in -[RCTNetworkTask dispatchCallback:] at /Users/chris/my-app/node_modules/react-native/Libraries/Network/RCTNetworkTask.m:61
#2	0x000000010dd22051 in -[RCTNetworkTask URLRequest:didCompleteWithError:] at /Users/chris/my-app/node_modules/react-native/Libraries/Network/RCTNetworkTask.m:193
#3	0x000000010dd100e4 in __50-[RCTDataRequestHandler sendRequest:withDelegate:]_block_invoke at /Users/chris/my-app/node_modules/react-native/Libraries/Network/RCTDataRequestHandler.m:60
#4	0x00007fff25654583 in __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ ()
#5	0x00007fff2565447b in -[NSBlockOperation main] ()
#6	0x00007fff25657408 in __NSOPERATION_IS_INVOKING_MAIN__ ()
#7	0x00007fff2565367b in -[NSOperation start] ()
#8	0x00007fff25657d62 in __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ ()
#9	0x00007fff2565786c in __NSOQSchedule_f ()
#10	0x000000010f0c93ff in _dispatch_block_async_invoke2 ()
#11	0x000000010f0bad64 in _dispatch_client_callout ()
#12	0x000000010f0bd6d6 in _dispatch_continuation_pop ()
#13	0x000000010f0bcae1 in _dispatch_async_redirect_invoke ()
#14	0x000000010f0cc29a in _dispatch_root_queue_drain ()
#15	0x000000010f0ccba4 in _dispatch_worker_thread2 ()
#16	0x00007fff5141c6b3 in _pthread_wqthread ()
#17	0x00007fff5141c3fd in start_wqthread ()
Enqueued from com.facebook.react.ImageLoaderURLRequestQueue (Thread 9) Queue : com.facebook.react.ImageLoaderURLRequestQueue (serial)
#0	0x000000010f0bec79 in dispatch_async ()
#1	0x00007fff25651832 in __NSOQSchedule ()
#2	0x00007fff2565568e in __addOperations ()
#3	0x000000010dd0fb81 in -[RCTDataRequestHandler sendRequest:withDelegate:] at /Users/chris/my-app/node_modules/react-native/Libraries/Network/RCTDataRequestHandler.m:64
#4	0x000000010dd212c5 in -[RCTNetworkTask start] at /Users/chris/my-app/node_modules/react-native/Libraries/Network/RCTNetworkTask.m:73
#5	0x000000010dcfc39b in __30-[RCTImageLoader dequeueTasks]_block_invoke at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:358
#6	0x000000010f0b9df0 in _dispatch_call_block_and_release ()
#7	0x000000010f0bad64 in _dispatch_client_callout ()
#8	0x000000010f0c160b in _dispatch_lane_serial_drain ()
#9	0x000000010f0c219b in _dispatch_lane_invoke ()
#10	0x000000010f0cda59 in _dispatch_workloop_worker_thread ()
#11	0x00007fff5141c611 in _pthread_wqthread ()
#12	0x00007fff5141c3fd in start_wqthread ()
Enqueued from com.facebook.react.ImageLoaderURLRequestQueue (Thread 9) Queue : com.facebook.react.ImageLoaderURLRequestQueue (serial)
#0	0x000000010f0bec79 in dispatch_async ()
#1	0x000000010dcfbbd8 in -[RCTImageLoader dequeueTasks] at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:306
#2	0x000000010dcfe88b in -[RCTImageLoader _loadURLRequest:progressBlock:completionBlock:] at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:597
#3	0x000000010dcfdcf9 in __118-[RCTImageLoader _loadImageOrDataWithURLRequest:size:scale:resizeMode:progressBlock:partialLoadBlock:completionBlock:]_block_invoke.206 at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:477
#4	0x000000010f0b9df0 in _dispatch_call_block_and_release ()
#5	0x000000010f0bad64 in _dispatch_client_callout ()
#6	0x000000010f0c160b in _dispatch_lane_serial_drain ()
#7	0x000000010f0c219b in _dispatch_lane_invoke ()
#8	0x000000010f0cda59 in _dispatch_workloop_worker_thread ()
#9	0x00007fff5141c611 in _pthread_wqthread ()
#10	0x00007fff5141c3fd in start_wqthread ()
Enqueued from com.apple.main-thread (Thread 1) Queue : com.apple.main-thread (serial)
#0	0x000000010f0bec79 in dispatch_async ()
#1	0x000000010dcfcfcb in -[RCTImageLoader _loadImageOrDataWithURLRequest:size:scale:resizeMode:progressBlock:partialLoadBlock:completionBlock:] at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:445
#2	0x000000010dcff906 in -[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:progressBlock:partialLoadBlock:completionBlock:] at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:680
#3	0x000000010dcfbb28 in -[RCTImageLoader loadImageWithURLRequest:callback:] at /Users/chris/my-app/node_modules/react-native/Libraries/Image/RCTImageLoader.m:294
#4	0x000000010db5d6aa in -[RNSVGImage setSrc:] at /Users/chris/my-app/node_modules/react-native-svg/ios/Elements/RNSVGImage.m:43
#5	0x000000010dbb1bfb in __49-[RCTComponentData createPropBlock:isShadowView:]_block_invoke.97 at /Users/chris/my-app/node_modules/react-native/React/Views/RCTComponentData.m:296
#6	0x000000010dbb2288 in __49-[RCTComponentData createPropBlock:isShadowView:]_block_invoke_2.98 at /Users/chris/my-app/node_modules/react-native/React/Views/RCTComponentData.m:314
#7	0x000000010dbb28b8 in __49-[RCTComponentData propBlockForKey:isShadowView:]_block_invoke_2 at /Users/chris/my-app/node_modules/react-native/React/Views/RCTComponentData.m:334
#8	0x000000010dc20fb4 in ::RCTPerformBlockWithLogFunction(void (^)(), RCTLogFunction) at /Users/chris/my-app/node_modules/react-native/React/Base/RCTLog.mm:131
#9	0x000000010dc2116f in ::RCTPerformBlockWithLogPrefix(void (^)(), NSString *) at /Users/chris/my-app/node_modules/react-native/React/Base/RCTLog.mm:139
#10	0x000000010dbb2816 in __49-[RCTComponentData propBlockForKey:isShadowView:]_block_invoke at /Users/chris/my-app/node_modules/react-native/React/Views/RCTComponentData.m:333
#11	0x000000010dbb2bcd in __37-[RCTComponentData setProps:forView:]_block_invoke at /Users/chris/my-app/node_modules/react-native/React/Views/RCTComponentData.m:350
#12	0x00007fff23c211f7 in __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ ()
#13	0x00007fff23bfa48e in -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] ()
#14	0x000000010dbb2ac2 in -[RCTComponentData setProps:forView:] at /Users/chris/my-app/node_modules/react-native/React/Views/RCTComponentData.m:349
#15	0x000000010dc9f2a5 in __50-[RCTUIManager createView:viewName:rootTag:props:]_block_invoke.411 at /Users/chris/my-app/node_modules/react-native/React/Modules/RCTUIManager.m:992
#16	0x000000010dca1284 in __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke at /Users/chris/my-app/node_modules/react-native/React/Modules/RCTUIManager.m:1129
#17	0x000000010dca15e3 in __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke.467 at /Users/chris/my-app/node_modules/react-native/React/Modules/RCTUIManager.m:1150
#18	0x000000010dcaa74d in __RCTExecuteOnMainQueue_block_invoke at /Users/chris/my-app/node_modules/react-native/React/Base/RCTUtils.m:257
#19	0x000000010f0b9df0 in _dispatch_call_block_and_release ()
#20	0x000000010f0bad64 in _dispatch_client_callout ()
#21	0x000000010f0c8e1c in _dispatch_main_queue_callback_4CF ()
#22	0x00007fff23afb699 in __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ ()
#23	0x00007fff23af62f9 in __CFRunLoopRun ()
#24	0x00007fff23af56b6 in CFRunLoopRunSpecific ()
#25	0x00007fff3815cbb0 in GSEventRunModal ()
#26	0x00007fff47162a67 in UIApplicationMain ()
#27	0x000000010daac690 in main at /Users/chris/my-app/ios/main.m:14
#28	0x00007fff5123bcf5 in start ()
Enqueued from com.facebook.react.ShadowQueue (Thread 0) Queue : com.facebook.react.ShadowQueue (serial)
#0	0x000000010f0bec79 in dispatch_async ()
#1	0x000000010dcaa6ef in RCTExecuteOnMainQueue at /Users/chris/my-app/node_modules/react-native/React/Base/RCTUtils.m:256
#2	0x000000010dca0ff0 in -[RCTUIManager flushUIBlocksWithCompletion:] at /Users/chris/my-app/node_modules/react-native/React/Modules/RCTUIManager.m:1144
#3	0x000000010dca0b81 in -[RCTUIManager _layoutAndMount] at /Users/chris/my-app/node_modules/react-native/React/Modules/RCTUIManager.m:1102
#4	0x000000010dca07ec in -[RCTUIManager batchDidComplete] at /Users/chris/my-app/node_modules/react-native/React/Modules/RCTUIManager.m:1078
#5	0x000000010dbd58a2 in ::__32-[RCTCxxBridge batchDidComplete]_block_invoke() at /Users/chris/my-app/node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm:1365
#6	0x000000010f0b9df0 in _dispatch_call_block_and_release ()
#7	0x000000010f0bad64 in _dispatch_client_callout ()
#8	0x000000010f0c160b in _dispatch_lane_serial_drain ()
#9	0x000000010f0c219b in _dispatch_lane_invoke ()
#10	0x000000010f0cda59 in _dispatch_workloop_worker_thread ()
#11	0x00007fff5141c611 in _pthread_wqthread ()
#12	0x00007fff5141c3fd in start_wqthread ()

com.facebook.react.JavaScript (12)#0	0x00007fff5137222a in mach_msg_trap ()
#1	0x00007fff5137276c in mach_msg ()
#2	0x00007fff23afb345 in __CFRunLoopServiceMachPort ()
#3	0x00007fff23af6067 in __CFRunLoopRun ()
#4	0x00007fff23af56b6 in CFRunLoopRunSpecific ()
#5	0x000000010dbc4c43 in ::+[RCTCxxBridge runRunLoop]() at /Users/chris/my-app/node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm:272
#6	0x00007fff256830ed in __NSThread__start__ ()
#7	0x00007fff5141d2eb in _pthread_body ()
#8	0x00007fff51420249 in _pthread_start ()
#9	0x00007fff5141c40d in thread_start ()

com.squareup.SocketRocket.NetworkThread (13)#0	0x00007fff5137222a in mach_msg_trap ()
#1	0x00007fff5137276c in mach_msg ()
#2	0x00007fff23afb345 in __CFRunLoopServiceMachPort ()
#3	0x00007fff23af6067 in __CFRunLoopRun ()
#4	0x00007fff23af56b6 in CFRunLoopRunSpecific ()
#5	0x00007fff2566d0df in -[NSRunLoop(NSRunLoop) runMode:beforeDate:] ()
#6	0x000000010dd4d629 in -[_RCTSRRunLoopThread main] at /Users/chris/my-app/node_modules/react-native/Libraries/WebSocket/RCTSRWebSocket.m:1621
#7	0x00007fff256830ed in __NSThread__start__ ()
#8	0x00007fff5141d2eb in _pthread_body ()
#9	0x00007fff51420249 in _pthread_start ()
#10	0x00007fff5141c40d in thread_start ()

I'm not sure if this occurs in production. It might just be a problem in dev mode, as some of the above calls are wrapped by RCT_DEV conditionals.

@react-native-bot
Copy link
Collaborator

It looks like you are using an older version of React Native. Please update to the latest release, v0.61 and verify if the issue still exists.

The "Resolution: Old Version" label will be removed automatically once you edit your original post with the results of running `react-native info` on a project using the latest release.

@ccbrown
Copy link
Author

ccbrown commented Oct 14, 2019

Haven't seen this since updating React. Closing for now.

@ccbrown ccbrown closed this as completed Oct 14, 2019
@noway
Copy link

noway commented Mar 10, 2021

Experiencing the same issue on RN 0.60.6. RN info:

warn Your project is using deprecated "rnpm" config that will stop working from next release. Please use a "react-native.config.js" file to configure the React Native CLI. Migration guide: https://github.com/react-native-community/cli/blob/master/docs/configuration.md
warn The following packages use deprecated "rnpm" config that will stop working from next release:
  - react-native-comparison-slider: https://npmjs.com/package/react-native-comparison-slider
  - react-native-fetch-blob: https://npmjs.com/package/react-native-fetch-blob
  - react-native-music-control: https://npmjs.com/package/react-native-music-control
  - react-native-orientation: https://github.com/yamill/react-native-orientation#readme
  - react-native-vector-icons: https://github.com/oblador/react-native-vector-icons
  - react-native-video: https://npmjs.com/package/react-native-video
  - react-native-zip-archive: https://github.com/mockingbot/react-native-zip-archive
Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide.
info Fetching system and libraries information...
System:
    OS: macOS 11.2.2
    CPU: (8) x64 Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz
    Memory: 568.70 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.7.0 - /usr/local/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.8 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
  IDEs:
    Android Studio: 3.6 AI-192.7142.36.36.6308749
    Xcode: 12.4/12D4e - /usr/bin/xcodebuild
  npmPackages:
    react: 16.8.6 => 16.8.6
    react-native: 0.60.6 => 0.60.6

@noway
Copy link

noway commented Mar 10, 2021

We've upgraded to 0.61 and so far haven't encountered the issue. Tested it on 2 iphones by installing it through TestFlight. If I don't report back, it's likely the issue went away with the 0.61 upgrades.

@facebook facebook locked as resolved and limited conversation to collaborators Oct 3, 2021
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants