question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React Native - iOS crashes when Flipper is upgraded above 0.69

See original GitHub issue

šŸ› Bug Report

After upgrading Flipper above version 0.69 in my React Native (0.64rc3) application, it keeps randomly crashing every few seconds. I believe it’s related to an upgrade to FlipperRSocket.

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[fir_7E90EF78-5ABF-438B-AA61-E00EBCD3CAD8_GULNetworkURLSession _flex_swizzle_5d2934b3_URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:]: unrecognized selector sent to instance 0x600000d2c2a0'
terminating with uncaught exception of type NSException
abort() called
CoreSimulator 732.18.6 - Device: iPhone 11 (73AD7B14-C154-4FE6-BF53-5F552D7E83FC) - Runtime: iOS 14.4 (18D46) - DeviceType: iPhone 11
0 CoreFoundation 0x00007fff20421af6 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff20177e78 objc_exception_throw + 48
2 CoreFoundation 0x00007fff204306f7 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 CoreFoundation 0x00007fff20426036 ___forwarding___ + 1489
4 CoreFoundation 0x00007fff20428068 _CF_forwarding_prep_0 + 120
5 Paired 0x000000010965b6ef __71+[FLEXNetworkObserver injectDownloadTaskDidWriteDataIntoDelegateClass:]_block_invoke.383 + 79
6 Paired 0x000000010964f36c +[FLEXNetworkObserver sniffWithoutDuplicationForObject:selector:sniffingBlock:originalImplementationBlock:] + 444
7 Paired 0x000000010965b4b6 __71+[FLEXNetworkObserver injectDownloadTaskDidWriteDataIntoDelegateClass:]_block_invoke_2 + 710
8 CFNetwork 0x00007fff236cffd5 _CFNetworkHTTPConnectionCacheSetLimit + 160777
9 libdispatch.dylib 0x00007fff2010532f _dispatch_call_block_and_release + 12
10 libdispatch.dylib 0x00007fff20106508 _dispatch_client_callout + 8
11 libdispatch.dylib 0x00007fff20112ff7 _dispatch_main_queue_callback_4CF + 1045
12 CoreFoundation 0x00007fff2038fdbb __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
13 CoreFoundation 0x00007fff2038a63e __CFRunLoopRun + 2685
14 CoreFoundation 0x00007fff203896d6 CFRunLoopRunSpecific + 567
15 GraphicsServices 0x00007fff2c257db3 GSEventRunModal + 139
16 UIKitCore 0x00007fff24696cf7 -[UIApplication _run] + 912
17 UIKitCore 0x00007fff2469bba8 UIApplicationMain + 101
18 Paired 0x0000000108f680f0 main + 112
19 libdyld.dylib 0x00007fff2025a3e9 start + 1
20 ??? 0x0000000000000001 0x0 + 1

To Reproduce

  • Upgrade Flipper above 0.69 in a React Native application
  • Launch the application in an iOS simulator

Environment

iOS simulator, I’ve tried with iPhone 11 14 and iPhone 7 13.5, both crash.

Date/Time: 2021-02-17 15:45:46.991 +0000 OS Version: macOS 11.2.1 (20D74) Report Version: 12 Bridge OS Version: 5.2 (18P4346)

For now the only workaround I’ve found is to revert back to 0.69. Let me know if I can provide any additional information.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

6reactions
priteshrnandgaonkarcommented, Feb 26, 2021

Try using Flipper 0.78.0

4reactions
priteshrnandgaonkarcommented, Feb 20, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

ReactNative App Crashes when Deployed to TestFlight
When I download the app from TestFlight on the same device, the app crashes immediately upon opening the app. The app is built...
Read more >
React Native - Manual iOS Setup - Flipper
The code below enables the following integrations: Layout Inspector; Network; Shared Preferences; Crash Reporter. React Native 0.68+​. If using React Native ...
Read more >
React Native 0.69.5 White Screen Crash - Stack Overflow
2 project for update I created new react project then installed expo bareworkflow add all packages 1 by 1 after adding babel and...
Read more >
Flipper Debugging for React Native - Povio
Discover Flipper benefits a popular tool among many Android, iOS and React Native engineers with many features that help the developmentĀ ...
Read more >
Using Hermes - React Native
For many apps, using Hermes will result in improved start-up time, decreased memory usage, and smaller app size when compared toĀ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found