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

React Native demo project fails in debug mode #158

Closed
rumax opened this issue Jun 8, 2017 · 13 comments
Closed

React Native demo project fails in debug mode #158

rumax opened this issue Jun 8, 2017 · 13 comments

Comments

@rumax
Copy link

rumax commented Jun 8, 2017

Steps:

  • cd examples/demo-react-native
  • npm install
  • detox build --configuration ios.sim.debug
  • detox test --configuration ios.sim.debug

Branch master, latest commit 6cdbc7f2aa8b2d858edd608b03afe8ce125ce19f.

Expected result:

Example
    ✓ should have welcome screen
    ✓ should show hello screen after tap
    ✓ should show world screen after tap

Actual result in Debug mode:

$ detox test --configuration ios.sim.debug
node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration ios.sim.debug    


detox-server info 21:05:30: server listening on localhost:57587...
detox info 1: Listing devices... 
detox info 2: trying to boot device... 
detox info 2: device 1AB297A3-07D8-4034-9486-D38745514466 booted 
detox info 3: Uninstalling com.wix.demo.react.native... 
detox info 3: com.wix.demo.react.native uninstalled 
detox info 4: Installing /Users/max/projects/detox/examples/demo-react-native/ios/build/Build/Products/Debug-iphonesimulator/example.app... 
detox info 4: /Users/max/projects/detox/examples/demo-react-native/ios/build/Build/Products/Debug-iphonesimulator/example.app installed 
detox info 5: Launching com.wix.demo.react.native... 
detox info 5: com.wix.demo.react.native launched 
  Example
    1) should have welcome screen

  2) "after all" hook

  0 passing (4m)
  2 failing

  1) Example should have welcome screen:
     Error: Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
  

  2)  "after all" hook:
     Error: Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
  




  0 passing (4m)
  2 failing

  1) Example should have welcome screen:
     Error: Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
  

  2)  "after all" hook:
     Error: Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
  



child_process.js:524
    throw err;
    ^

Error: Command failed: node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration ios.sim.debug    
    at checkExecSyncError (child_process.js:481:13)
    at Object.execSync (child_process.js:521:13)
    at Object.<anonymous> (/Users/max/projects/detox/examples/demo-react-native/node_modules/detox/local-cli/detox-test.js:43:4)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:427:7)

Release mode is OK

$ detox test --configuration ios.sim.release
node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration ios.sim.release    


detox-server info 21:16:16: server listening on localhost:57666...
detox info 1: Listing devices... 
detox info 2: trying to boot device... 
detox info 2: device 27464664-FC90-4536-BFF0-6C55E8D25784 booted 
detox info 3: Uninstalling com.wix.demo.react.native... 
detox info 4: Installing /Users/max/projects/detox/examples/demo-react-native/ios/build/Build/Products/Release-iphonesimulator/example.app... 
detox info 4: /Users/max/projects/detox/examples/demo-react-native/ios/build/Build/Products/Release-iphonesimulator/example.app installed 
detox info 5: Launching com.wix.demo.react.native... 
detox info 5: com.wix.demo.react.native launched 
  Example
    ✓ should have welcome screen (1332ms)
    ✓ should show hello screen after tap (1830ms)
    ✓ should show world screen after tap (325ms)


  3 passing (17s)

@LeoNatan
Copy link
Contributor

LeoNatan commented Jun 8, 2017

@rumax
Copy link
Author

rumax commented Jun 8, 2017

$ detox test --configuration ios.sim.debug -l verbose --debug-synchronization 1000
node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration ios.sim.debug --loglevel verbose   --debug-synchronization 1000


detox-server info 22:37:15: server listening on localhost:58477...
detox verb ws onOpen [object Object]
detox verb ws send: {"type":"login","params":{"sessionId":"214a251f-9eda-7155-4af6-fff03e354ac5","role":"tester"},"messageId":0}
detox verb 1: fbsimctl --json "iPhone 7 Plus" --first 1 --simulators list 
detox info 1: Listing devices... 
detox verb 2: fbsimctl --json --state=shutdown --state=shutting-down 27464664-FC90-4536-BFF0-6C55E8D25784 boot 
detox info 2: trying to boot device... 
detox info 2: device 27464664-FC90-4536-BFF0-6C55E8D25784 booted 
detox verb 3: fbsimctl --json 27464664-FC90-4536-BFF0-6C55E8D25784 uninstall com.wix.demo.react.native 
detox info 3: Uninstalling com.wix.demo.react.native... 
detox info 3: com.wix.demo.react.native uninstalled 
detox verb 4: fbsimctl --json 27464664-FC90-4536-BFF0-6C55E8D25784 install /Users/max/projects/detox/examples/demo-react-native/ios/build/Build/Products/Debug-iphonesimulator/example.app 
detox info 4: Installing /Users/max/projects/detox/examples/demo-react-native/ios/build/Build/Products/Debug-iphonesimulator/example.app... 
detox info 4: /Users/max/projects/detox/examples/demo-react-native/ios/build/Build/Products/Debug-iphonesimulator/example.app installed 
detox verb 5: export FBSIMCTL_CHILD_DYLD_INSERT_LIBRARIES="/Users/max/projects/detox/examples/demo-react-native/node_modules/detox/Detox.framework/Detox" && fbsimctl --json 27464664-FC90-4536-BFF0-6C55E8D25784 launch --stderr com.wix.demo.react.native -detoxServer ws://localhost:58477 -detoxSessionId 214a251f-9eda-7155-4af6-fff03e354ac5 
detox info 5: Launching com.wix.demo.react.native... 
detox info 5: com.wix.demo.react.native launched 
detox verb ws send: {"type":"isReady","params":{},"messageId":-1000}
detox verb ws onMessage: {"type":"ready","messageId":-1000,"params":{}}
detox verb ws  
  Example
detox verb ws send: {"type":"reactNativeReload","params":{},"messageId":-1000}
detox verb ws onMessage: {"type":"ready","messageId":-1000,"params":{}}
detox verb ws  
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":["welcome"]}}]}},"method":"assertWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]},"messageId":1}
detox verb ws send: {"type":"currentStatus","params":{},"messageId":2}
    1) should have welcome screen

detox verb ws send: {"type":"cleanup","params":{},"messageId":3}
  2) "after all" hook

  0 passing (4m)
  2 failing

  1) Example should have welcome screen:
     Error: Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
  

  2)  "after all" hook:
     Error: Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
  




  0 passing (4m)
  2 failing

  1) Example should have welcome screen:
     Error: Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
  

  2)  "after all" hook:
     Error: Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
  



child_process.js:524
    throw err;
    ^

Error: Command failed: node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration ios.sim.debug --loglevel verbose   --debug-synchronization 1000
    at checkExecSyncError (child_process.js:481:13)
    at Object.execSync (child_process.js:521:13)
    at Object.<anonymous> (/Users/max/projects/detox/examples/demo-react-native/node_modules/detox/local-cli/detox-test.js:43:4)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:427:7)

Another strange behaviour is that the app goes to background when (at the same time or after) this command is executed:

detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":["welcome"]}}]}},"method":"assertWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]},"messageId":1}

@rotemmiz
Copy link
Member

rotemmiz commented Jun 8, 2017

Looks like the app is crashing, we need to see its crash stack trace.
Please provide your simulator log , tail the log while the crash is happening and paste the result here:
tail -100 -f ~/Library/Logs/CoreSimulator/{simulator udid}/system.log

@rumax
Copy link
Author

rumax commented Jun 9, 2017

Today I checked the demo on another PC and got the same problem. It seems like you can reproduce it. And it is only with --configuration ios.sim.debug.

Log:

$ tail -100 -f ~/Library/Logs/CoreSimulator/03F75586-8E9C-48BD-B3C0-15242A81186B/system.log 
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: Sending `websocketFailed` with no listeners registered.
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: Warning: View: React.createClass is deprecated and will be removed in version 16. Use plain JavaScript classes instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement.
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: Running application example ({
	    initialProps =     {
	    };
	    rootTag = 1;
	})
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: Running application "example" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️ DETOX:: Observing timer: 1 d: 0.001 r: 0
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️ DETOX:: Removing observed timer 1
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️ DETOX:: Detox Action Sent: ready
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️ DETOX:: Detox Action Received: reactNativeReload
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: Initializing <RCTBatchedBridge: 0x618000189cd0> (parent: <RCTBridge: 0x6080000bcb60>, executor: RCTJSCExecutor)
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️ Adding idling resource for queue: <OS_dispatch_queue: com.facebook.react.JSCExecutorQueue[0x6080000e7400]>
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️ Adding idling resource for queue: <OS_dispatch_queue: com.facebook.react.SourceCodeQueue[0x6080000e7480]>
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️ Adding idling resource for queue: <OS_dispatch_queue: com.facebook.react.AccessibilityManagerQueue[0x6180000e7180]>
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️ Adding idling resource for queue: <OS_dispatch_queue: com.facebook.react.DevLoadingViewQueue[0x6180000e7300]>
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️ Adding idling resource for queue: <OS_dispatch_queue: com.facebook.react.IOSConstantsQueue[0x6180000e7280]>
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️ Adding idling resource for queue: <OS_dispatch_queue: com.facebook.react.I18nManagerQueue[0x6180000e7200]>
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️ Adding idling resource for queue: <OS_dispatch_queue: com.facebook.react.SettingsManagerQueue[0x6180000e6a80]>
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️ Adding idling resource for queue: <OS_dispatch_queue: com.facebook.react.WebSocketModuleQueue[0x6000000e5680]>
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: [] __nw_connection_get_connected_socket_block_invoke 6 Connection has no connected handler
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: Sending `websocketFailed` with no listeners registered.
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: Warning: View: React.createClass is deprecated and will be removed in version 16. Use plain JavaScript classes instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement.
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: Running application example ({
	    initialProps =     {
	    };
	    rootTag = 1;
	})
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: Running application "example" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️ DETOX:: Observing timer: 1 d: 0.001 r: 0
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️ DETOX:: Removing observed timer 1
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️ DETOX:: Detox Action Sent: ready
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️ DETOX:: Detox Action Received: invoke
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️☣️ DETOX:: Timed -> busy animateWithDuration:delay:options:animations:completion:
Jun 12 08:11:21 --- last message repeated 1189 times ---
Jun 12 08:11:21 Maksyms-MacBook-Pro AppleIDAuthAgent[3521]: objc[3521]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x1153cf998) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x11296a880). One of the two will be used. Which one is undefined.
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️☣️ DETOX:: Timed -> busy animateWithDuration:delay:options:animations:completion:
Jun 12 08:11:21 --- last message repeated 82 times ---
Jun 12 08:11:21 Maksyms-MacBook-Pro medialibraryd[3581]: [Service] Database already validated. Returning immediately.
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️☣️ DETOX:: Timed -> busy animateWithDuration:delay:options:animations:completion:
Jun 12 08:11:21 --- last message repeated 3 times ---
Jun 12 08:11:21 Maksyms-MacBook-Pro medialibraryd[3581]: [Service] Database already validated. Returning immediately.
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️☣️ DETOX:: Timed -> busy animateWithDuration:delay:options:animations:completion:
Jun 12 08:11:21 --- last message repeated 6 times ---
Jun 12 08:11:21 Maksyms-MacBook-Pro tccd[3545]: [access] Refusing client without bundle identifier (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/MusicLibrary.framework/Support/medialibraryd)
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️☣️ DETOX:: Timed -> busy animateWithDuration:delay:options:animations:completion:
Jun 12 08:11:21 Maksyms-MacBook-Pro tccd[3545]: [access] Refusing TCCAccessRequest for service kTCCServiceAddressBook from invalid client with pid 3581
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️☣️ DETOX:: Timed -> busy animateWithDuration:delay:options:animations:completion:
Jun 12 08:11:21 --- last message repeated 14 times ---
Jun 12 08:11:21 Maksyms-MacBook-Pro tccd[3545]: [access] Refusing client without bundle identifier (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/MusicLibrary.framework/Support/medialibraryd)
Jun 12 08:11:21 Maksyms-MacBook-Pro tccd[3545]: [access] Refusing TCCAccessRequest for service kTCCServiceAddressBook from invalid client with pid 3581
Jun 12 08:11:21 Maksyms-MacBook-Pro example[3609]: ☣️☣️ DETOX:: Timed -> busy animateWithDuration:delay:options:animations:completion:
Jun 12 08:11:22 --- last message repeated 1785 times ---
Jun 12 08:11:22 Maksyms-MacBook-Pro example[3609]: ☣️☣️ DETOX:: Timed -> busy performSelector @selector(_accessibilitySetUpQuickSpeak) on UIApplication
Jun 12 08:11:22 --- last message repeated 1018 times ---
Jun 12 08:11:22 Maksyms-MacBook-Pro example[3609]: *** Assertion failure in RCTBridgeModuleNameForClass(), /Users/max/projects/detox/examples/demo-react-native/node_modules/react-native/React/Base/RCTBridge.m:62
Jun 12 08:11:22 Maksyms-MacBook-Pro example[3609]: Uncaught exception: Bridge module `(null)` does not conform to RCTBridgeModule; Stack trace:
	0   CoreFoundation                      0x00000001028cad4b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x000000010175921e objc_exception_throw + 48
	2   CoreFoundation                      0x00000001028cee42 +[NSException raise:format:arguments:] + 98
	3   Foundation                          0x0000000101324599 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 166
	4   example                             0x0000000100c3c3b8 RCTBridgeModuleNameForClass + 280
	5   example                             0x0000000100c3d344 -[RCTBridge moduleForClass:] + 36
	6   Detox                               0x0000000100efbf54 -[WXAnimatedDisplayLinkIdlingResource isIdleNow] + 89
	7   Detox                               0x0000000100ef8312 __WXFixupIdlingResourceClasses_block_invoke_2 + 45
	8   EarlGrey                            0x0000000111346714 -[GREYUIThreadExecutor grey_busyResourcesReturnEarly:] + 548
	9   EarlGrey                            0x00000001113461fd -[GREYUIThreadExecutor grey_areAllResourcesIdle] + 45
	10  EarlGrey                            0x0000000111345f36 __59-[GREYUIThreadExecutor executeSyncWithTimeout:block:error:]_block_invoke.98 + 38
	11  EarlGrey                            0x000000011130391e __77-[GREYRunLoopSpinner grey_drainRunLoopInActiveModeAndCheckCondition:forTime:]_block_invoke + 78
	12  EarlGrey                            0x0000000111304691 __89-[GREYRunLoopSpinner grey_setupObserverInMode:withBeforeSourcesBlock:beforeWaitingBlock:]_block_invoke + 177
	13  CoreFoundation                      0x000000010286f267 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
	14  CoreFoundation                      0x000000010286f1d7 __CFRunLoopDoObservers + 391
	15  CoreFoundation                      0x0000000102853e5a __CFRunLoopRun + 890
	16  CoreFoundation                      0x0000000102853884 CFRunLoopRunSpecific + 420
	17  EarlGrey                            0x000000011130367c -[GREYRunLoopSpinner grey_drainRunLoopInActiveModeAndCheckCondition:forTime:] + 636
	18  EarlGrey                            0x0000000111302fdf -[GREYRunLoopSpinner spinWithStopConditionBlock:] + 1055
	19  EarlGrey                            0x00000001113455cd -[GREYUIThreadExecutor executeSyncWithTimeout:block:error:] + 1485
	20  EarlGrey                            0x000000011131b55c -[GREYElementInteraction assert:error:] + 2236
	21  EarlGrey                            0x000000011131cdf4 -[GREYElementInteraction assertWithMatcher:error:] + 164
	22  EarlGrey                            0x000000011131ccfe -[GREYElementInteraction assertWithMatcher:] + 62
	23  CoreFoundation                      0x000000010285144c __invoking___ + 140
	24  CoreFoundation                      0x00000001028512d1 -[NSInvocation invoke] + 289
	25  Detox                               0x0000000100efdde6 +[MethodInvocation invoke:onError:] + 829
	26  Detox                               0x0000000100efadcc __35-[TestRunner invoke:withMessageId:]_block_invoke + 135
	27  CoreFoundation                      0x000000010286f6ac __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
	28  CoreFoundation                      0x00000001028546f4 __CFRunLoopDoBlocks + 356
	29  CoreFoundation                      0x0000000102854236 __CFRunLoopRun + 1878
	30  CoreFoundation                      0x0000000102853884 CFRunLoopRunSpecific + 420
	31  GraphicsServices                    0x0000000108522a6f GSEventRunModal + 161
	32  UIKit                               0x0000000104d2cc68 UIApplicationMain + 159
	33  example                             0x0000000100b89e6f main + 111
	34  libdyld.dylib                       0x00000001066a668d start + 1
Jun 12 08:11:22 Maksyms-MacBook-Pro SpringBoard[3524]: [KeyboardArbiter] HW kbd: Failed to set (null) as keyboard focus
Jun 12 08:11:22 Maksyms-MacBook-Pro com.apple.CoreSimulator.SimDevice.03F75586-8E9C-48BD-B3C0-15242A81186B.launchd_sim[3507] (UIKitApplication:com.wix.demo.react.native[0x3e87][3609]): Service exited with abnormal code: 1
Jun 12 08:11:22 Maksyms-MacBook-Pro backboardd[3525]: [Common] Unable to get short BSD proc info for 3609: No such file or directory
Jun 12 08:11:22 Maksyms-MacBook-Pro backboardd[3525]: [Common] Unable to get proc info for 3609: No such file or directory
Jun 12 08:11:22 Maksyms-MacBook-Pro assertiond[3528]: notify_suspend_pid() failed with error 7
Jun 12 08:11:50 Maksyms-MacBook-Pro mstreamd[3514]: (Note ) PS: Media stream daemon stopping.
Jun 12 08:11:50 Maksyms-MacBook-Pro mstreamd[3514]: (Note ) AS: <MSIOSAlbumSharingDaemon: 0x7f9138c0a680>: Shared Streams daemon has shut down.
Jun 12 08:11:50 Maksyms-MacBook-Pro mstreamd[3514]: (Warn ) mstreamd: mstreamd shutting down.

Git:

$ git status 
On branch master
Your branch is up-to-date with 'origin/master'.

Last commit commit 192e9b4. Sun Jun 11 16:54:11 2017 +0300.

@minhtc
Copy link

minhtc commented Jun 10, 2017

+1

#155

@rumax
Copy link
Author

rumax commented Jun 12, 2017

@rotemmiz Did the log help? And can you reproduce the bug?

Looks like the app is crashing, we need to see its crash stack trace.

Doesn't looks like the app issue, it works fine with release build, I can start debug mode of the app and in my private project after

-    "detox": "5.0.12",
-    "detox-cli": "1.0.1",
+    "detox": "^5.1.2",
+    "detox-cli": "^1.0.2",

I've got the same issue.

@SH-Stark
Copy link

got the same issue :'(
with ios.sim.debug

@rotemmiz
Copy link
Member

We've updated Detox a few times since the bug was initially reported. Our tests could not reproduce this bug (which happens when we try to sync on animations of the Animated native driver). Please try running again with Detox@5.2.0 and up, and report back of it persists (please make sure you provide simulator system.log output if the app crashes)

@LeoNatan
Copy link
Contributor

@rotemmiz Could you please release a new minor version with the debug print? I think it will help with this issue.

@adamski
Copy link

adamski commented Jul 29, 2017

I'm also experiencing this issue,
I'm on detox 5.5.1 and detox-cli 1.0.2

  0 passing (2m)
  1 failing

  1)  "before all" hook:
     Error: Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.




child_process.js:524
    throw err;
    ^

Error: Command failed: node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration ios.sim.debug    --debug-synchronization 500
    at checkExecSyncError (child_process.js:481:13)
    at Object.execSync (child_process.js:521:13)
    at Object.<anonymous> (/Users/adamelemental/dev/Phona/sayit/node_modules/detox/local-cli/detox-test.js:46:4)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:427:7)

I get some strange errors at the end of the Simulator logs:

Jul 29 23:43:58 Adams-MBP videosubscriptionsd[30427]: Entering main() for videosubscriptionsd.
Jul 29 23:43:58 Adams-MBP videosubscriptionsd[30427]: Unable to find framework using path: /System/Library/Frameworks/VideoSubscriberAccount.framework
Jul 29 23:43:58 Adams-MBP com.apple.CoreSimulator.SimDevice.134A36A7-072D-4E5C-8D54-40D196E0222A.launchd_sim[21983] (com.apple.videosubscriptionsd[30427]): Service exited with abnormal code: 1

@adamski
Copy link

adamski commented Aug 24, 2017

Looking at my logs, can't find any crashes or anything to give clues as to why Detox can't attach.

@IkerArb
Copy link

IkerArb commented Aug 24, 2017

Same here, it seems to be an issue with Animations I am using detox@5.6.1 and react-native@0.42.3

@rotemmiz
Copy link
Member

rotemmiz commented Sep 9, 2017

This issue seems to have split into a few separate issues.
The original issue referred to the demo-react-native project, I have updated the project and checked that both debug and release configurations work.
I have also added stdout/stderr of all command line tools we use in Detox to the verbose output of Detox --loglevel verbose.

I am closing this issue, If anyone has any issue which is unrelated to demo-react-native, please open a new one.

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

8 participants