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

flipper crash ios allHeaderFields #32

Closed
lukasa1993 opened this issue Apr 2, 2020 · 8 comments
Closed

flipper crash ios allHeaderFields #32

lukasa1993 opened this issue Apr 2, 2020 · 8 comments

Comments

@lukasa1993
Copy link

Environment

info Fetching system and libraries information...
System:
    OS: macOS 10.15.4
    CPU: (12) x64 Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
    Memory: 4.40 GB / 32.00 GB
    Shell: 5.0.16 - /usr/local/bin/bash
  Binaries:
    Node: 13.11.0 - /usr/local/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.13.7 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
    Android SDK:
      API Levels: 19, 20, 21, 22, 24, 25, 26, 27, 28, 29
      Build Tools: 28.0.3, 29.0.3, 30.0.0
      System Images: android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: Not Found
    Xcode: 11.4/11E146 - /usr/bin/xcodebuild
  Languages:
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.11.0 => 16.11.0
    react-native: 0.62.0 => 0.62.0
  npmGlobalPackages:
    *react-native*: Not Found

Upgrading version

0.62

Description

flipper crashes every time

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSURLResponse allHeaderFields]: unrecognized selector sent to instance 0x281b59a80'
*** First throw call stack:
(0x1a99ac164 0x1a96c0c1c 0x1a98aa7e0 0x1a99b085c 0x1a99b2b60 0x1046ded9c 0x1046dec64 0x1046b8eb4 0x1103d1d10 0x1103d318c 0x1103da968 0x1103db580 0x1103e70f0 0x1a96b3714 0x1a96b99c8)

#1	0x00000001046b8ad8 in -[FLEXNetworkRecorder recordLoadingFinishedWithRequestID:responseBody:] at ios/Pods/FlipperKit/iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/FLEXNetworkLib/FLEXNetworkRecorder.mm:183

@ncuillery
Copy link

Probably related to this: facebook/react-native#28454 (comment)

@lucasbento
Copy link
Member

cc @rickhanlonii

@kennetpostigo
Copy link

kennetpostigo commented Apr 10, 2020

I just ran into this as well. My app basically crashes after reaching 100% from the code being bundled. This is the last issue I have to figure out(I hope) to get over the hump and be up to date with react-native versions.
So far what I have done is:

If anyone has any idea why I get this issue below, so far I have followed linked issues point to logbox/flipper image issue. There are no useful instructions or hints on how to fix this issue and/or the issue has been closed. I've spent hours trying to figure this issue out 🥺

I'd be super glad if anyone can point me in the right direction to get this figured out:

Terminating app due to uncaught exception 'NSInvalidArgumentException', 
reason: '-[NSURLResponse allHeaderFields]: 
unrecognized selector sent to instance 0x6000002756e0'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff23e3dcce __exceptionPreprocess + 350
	1   libobjc.A.dylib                     0x00007fff50b3b9b2 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff23e5e9f4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
	3   CoreFoundation                      0x00007fff23e426cc ___forwarding___ + 1436
	4   CoreFoundation                      0x00007fff23e449b8 _CF_forwarding_prep_0 + 120
	5   yotie                               0x00000001091de02c +[SKResponseInfo shouldStripReponseBodyWithResponse:] + 76
	6   yotie                               0x00000001091ddf01 -[SKResponseInfo initWithIndentifier:timestamp:response:data:] + 241
	7   yotie                               0x00000001091b7cd9 __71-[FLEXNetworkRecorder recordLoadingFinishedWithRequestID:responseBody:]_block_invoke + 825
	8   libdispatch.dylib                   0x000000010cf6ff11 _dispatch_call_block_and_release + 12
	9   libdispatch.dylib                   0x000000010cf70e8e _dispatch_client_callout + 8
	10  libdispatch.dylib                   0x000000010cf776fd _dispatch_lane_serial_drain + 788
	11  libdispatch.dylib                   0x000000010cf7828f _dispatch_lane_invoke + 422
	12  libdispatch.dylib                   0x000000010cf83b65 _dispatch_workloop_worker_thread + 719
	13  libsystem_pthread.dylib             0x00007fff51b9ea3d _pthread_wqthread + 290
	14  libsystem_pthread.dylib             0x00007fff51b9db77 start_wqthread + 15
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

@rickhanlonii do you have any insight into this?

@jeswinsimon
Copy link

This is an issue with Flipper and will be fixed once facebook/react-native#28545 is released. In the meantime, you can manually upgrade Flipper version in your iOS project to 0.37.0 for a temporary fix.

@kennetpostigo
Copy link

kennetpostigo commented Apr 14, 2020

@jeswinsimon How do we update that, in xcode?

@jeswinsimon
Copy link

@jeswinsimon How do we update that, in xcode?

Within the ios/ subdirectory of your react native project there is a podfile.
Edit the podfile and update Flipper version on line 5.

versions['Flipper'] ||= '~> 0.37.0'

Remove and reinstall pods by executing the following the same directory

pod deintegrate
pod update
pod install

@kennetpostigo
Copy link

Thanks @jeswinsimon app finally runs :)

@rickhanlonii
Copy link

As mentioned above, this was a bug in Flipper that's been fixed. If you've updated everything to latest and you're still seeing this please file a new issue and we'll take a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants