Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

App crashes when Detox navigates to a Webview #1240

Closed
alexmngn opened this issue Mar 27, 2019 · 3 comments
Closed

App crashes when Detox navigates to a Webview #1240

alexmngn opened this issue Mar 27, 2019 · 3 comments

Comments

@alexmngn
Copy link

alexmngn commented Mar 27, 2019

Describe the bug
When the app runs with the Detox layer and it navigates to a screen that has a WebView, the application just crashes.

When I'm doing exactly the same without the Detox layer, it navigates fine to the WebView.

It was working fine with Detox 9 but upgrading to 12.1 made this happen, not sure why

To Reproduce

  1. Make a Detox build
  2. Navigate to a screen which contains a WebView

In the below recording, the first time I use the Detox layer, the second time I don't use it. You can see it crashes the first time but works fine the second time (the webview is the screen with the DC characters)

Detox

Environment (please complete the following information):

  • Detox: 12.1
  • React Native: 0.59
  • Device: iOS Simulator
  • Xcode: 10.1

Device and Verbose Detox Logs

detox[79705] DEBUG: [DetoxServer.js/#] role=testee, sessionId=7309eb1f-577c-eab6-1e5e-d92d93295994
detox[79705] DEBUG: [DetoxServer.js/#_SUCCESS] role=testee, sessionId=7309eb1f-577c-eab6-1e5e-d92d93295994
detox[79705] ERROR: [index.js/DETOX_INIT_ERROR]
 Signal 4 was raised
(
	0   Detox                               0x00000001034ae4f6 _ZL16__DTXHandleCrashP11NSExceptionP8NSNumberP8NSString + 497
	1   Detox                               0x00000001034ae27b _ZL17__DTXHandleSignali + 61
	2   libsystem_platform.dylib            0x0000000109c40b3d _sigtramp + 29
	3   ???                                 0x0000000000000020 0x0 + 32
	4   CoreFoundation                      0x0000000106f1aaa2 +[NSCalendar initialize] + 34
	5   libobjc.A.dylib                     0x00000001051612fe CALLING_SOME_+initialize_METHOD + 19
	6   libobjc.A.dylib                     0x0000000105161691 _class_initialize + 270
	7   libobjc.A.dylib                     0x0000000105168248 lookUpImpOrForward + 196
	8   libobjc.A.dylib                     0x0000000105175814 _objc_msgSend_uncached + 68
@alexmngn alexmngn changed the title Webview crashes the app when running Detox App crashes when Detox navigates to a Webview Mar 27, 2019
@LeoNatan
Copy link
Contributor

I've managed to reproduce this. It's related to the fix for #1234. Investigating.

@LeoNatan
Copy link
Contributor

Fixed. Please upgrade to 12.1.1

@micabe
Copy link

micabe commented Mar 27, 2019

@LeoNatan great thanks for the new version. I confirm issue is resolved !

@lock lock bot locked as resolved and limited conversation to collaborators Mar 30, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

4 participants