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

Crash in prettyPrintAppStateTracker in Detox 5.9.3 #391

Closed
Thunderbird7 opened this issue Nov 7, 2017 · 2 comments
Closed

Crash in prettyPrintAppStateTracker in Detox 5.9.3 #391

Thunderbird7 opened this issue Nov 7, 2017 · 2 comments

Comments

@Thunderbird7
Copy link

Description

Run detox with jest is not working and found crash log

Steps to Reproduce

step 1. try to run yarn test:e2e:build and then yarn test:e2e and keep observing terminal log, you will see simulation is not appear

step 2. try to run react-native run-ios instead yarn test:e2e:build and then run test:e2e you will see app is opening and crash.

Detox, Node, Device, Xcode and macOS Versions

  • Detox: 5.9.3
  • Node: 8.9.0
  • Device: iPhone 7, iOS 11.1
  • Xcode: 9.1
  • macOS: Hight Sierra
  • RN: 0.50.1

Device and verbose Detox logs

  • found in detox.last_launch_app_log.err
2017-11-07 17:45:23.459 E2ETest[34365:1473043] ☣️ DETOX:: Detox Action Sent: invokeResult
2017-11-07 17:45:23.459 E2ETest[34365:1473043] ☣️ DETOX:: Detox Action Received: currentStatus
2017-11-07 17:45:23.472 E2ETest[34365:1473043] Uncaught exception: [<GREYAppStateTracker 0x60c00004c5a0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key elementIDs.; Stack trace:
0   CoreFoundation                      0x00000001069831ab __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x00000001052e6f41 objc_exception_throw + 48
2   CoreFoundation                      0x00000001069830f9 -[NSException raise] + 9
3   Foundation                          0x0000000104dd5ae6 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 226
4   Foundation                          0x0000000104d01500 -[NSObject(NSKeyValueCoding) valueForKey:] + 284
5   Detox                               0x0000000104bdab16 _prettyPrintAppStateTracker + 142
6   Detox                               0x0000000104bda59e __35-[EarlGreyStatistics currentStatus]_block_invoke + 358
7   CoreFoundation                      0x00000001069100bf -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 223
8   Detox                               0x0000000104bda398 -[EarlGreyStatistics currentStatus] + 266
9   Detox                               0x0000000104be10d0 -[DetoxManager websocketDidReceiveAction:withParams:withMessageId:] + 1618
10  Detox                               0x0000000104bd935d -[WebSocket receiveAction:] + 488
11  SocketRocket                        0x0000000116f5dc61 __43-[SRWebSocket _handleFrameWithData:opCode:]_block_invoke.295 + 165
12  EarlGrey                            0x0000000116e007f4 __60-[GREYDispatchQueueTracker grey_dispatchAsyncCallWithBlock:]_block_invoke + 36
13  libdispatch.dylib                   0x000000010b17f273 _dispatch_call_block_and_release + 12
14  libdispatch.dylib                   0x000000010b1802b5 _dispatch_client_callout + 8
15  libdispatch.dylib                   0x000000010b18a496 _dispatch_main_queue_callback_4CF + 1260
16  CoreFoundation                      0x0000000106945ee9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
17  CoreFoundation                      0x000000010690a592 __CFRunLoopRun + 2402
18  CoreFoundation                      0x00000001069099b9 CFRunLoopRunSpecific + 409
19  GraphicsServices                    0x000000010dc459c6 GSEventRunModal + 62
20  UIKit                               0x0000000108ee05e8 UIApplicationMain + 159
21  E2ETest                             0x000000010451ffcf main + 111
22  libdyld.dylib                       0x000000010b1f4d81 start + 1
23  ???                                 0x0000000000000006 0x0 + 6

Test repo

https://github.com/Thunderbird7/e2e_with_jest

@LeoNatan
Copy link
Contributor

LeoNatan commented Nov 8, 2017

Are you using the synchronization debug? Could you disable that and see if tests work?

@LeoNatan LeoNatan changed the title i can't run detox test with jest Crash in prettyPrintAppStateTracker in Detox 5.9.3 Nov 8, 2017
@LeoNatan LeoNatan self-assigned this Nov 8, 2017
LeoNatan added a commit that referenced this issue Nov 8, 2017
@LeoNatan
Copy link
Contributor

Fixed.

@wix wix locked and limited conversation to collaborators Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants