{"action":"created","issue":{"url":"https://api.github.com/repos/wix/detox/issues/678","repository_url":"https://api.github.com/repos/wix/detox","labels_url":"https://api.github.com/repos/wix/detox/issues/678/labels{/name}","comments_url":"https://api.github.com/repos/wix/detox/issues/678/comments","events_url":"https://api.github.com/repos/wix/detox/issues/678/events","html_url":"https://github.com/wix/detox/issues/678","id":316139753,"node_id":"MDU6SXNzdWUzMTYxMzk3NTM=","number":678,"title":"Detox server connection fails","user":{"login":"vignesarul","id":30304333,"node_id":"MDQ6VXNlcjMwMzA0MzMz","avatar_url":"https://avatars2.githubusercontent.com/u/30304333?v=4","gravatar_id":"","url":"https://api.github.com/users/vignesarul","html_url":"https://github.com/vignesarul","followers_url":"https://api.github.com/users/vignesarul/followers","following_url":"https://api.github.com/users/vignesarul/following{/other_user}","gists_url":"https://api.github.com/users/vignesarul/gists{/gist_id}","starred_url":"https://api.github.com/users/vignesarul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vignesarul/subscriptions","organizations_url":"https://api.github.com/users/vignesarul/orgs","repos_url":"https://api.github.com/users/vignesarul/repos","events_url":"https://api.github.com/users/vignesarul/events{/privacy}","received_events_url":"https://api.github.com/users/vignesarul/received_events","type":"User","site_admin":false},"labels":[{"id":859627744,"node_id":"MDU6TGFiZWw4NTk2Mjc3NDQ=","url":"https://api.github.com/repos/wix/detox/labels/%F0%9F%8F%9A%20stale","name":"🏚 stale","color":"e6e6e6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-20T06:10:08Z","updated_at":"2018-06-21T23:47:03Z","closed_at":null,"author_association":"NONE","body":"#### Description\r\nTest execution stops at **connectToServer - retrying...** loop (check adb logs). \r\n\r\n#### Version\r\n* Detox: 7.3.3\r\n* React Native: 0.51.0\r\n* Node: 9.2.1\r\n* Device: Nexus 5 (android-22)\r\n* OS: Ubuntu 14 \r\n\r\n#### ADB log\r\n  ```\r\nD/ReactNative( 1740): [CodePush] Loading JS bundle from \"assets://index.android.bundle\"\r\nD/ReactNative( 1740): ReactInstanceManager.ctor()\r\nI/Choreographer(  851): Skipped 36 frames!  The application may be doing too much work on its main thread.\r\nI/Choreographer(  851): Skipped 34 frames!  The application may be doing too much work on its main thread.\r\nD/ReactNative( 1740): ReactInstanceManager.createReactContextInBackground()\r\nD/ReactNative( 1740): ReactInstanceManager.recreateReactContextInBackgroundInner()\r\nI/Choreographer(  404): Skipped 55 frames!  The application may be doing too much work on its main thread.\r\nD/LifecycleMonitor( 1740): Lifecycle status change: com.myappcart.MainActivity@39bed498 in: CREATED\r\nD/LifecycleMonitor( 1740): Lifecycle status change: com.myappcart.MainActivity@39bed498 in: STARTED\r\nD/LifecycleMonitor( 1740): Lifecycle status change: com.myappcart.MainActivity@39bed498 in: RESUMED\r\nV/WindowManager(  404): Adding window Window{8cbe8e8 u0 com.myappcart/com.myappcart.MainActivity} at 3 of 7 (before Window{30671af6 u0 Starting com.myappcart})\r\nD/gralloc_goldfish( 1740): Emulator without host-side GPU emulation detected.\r\nI/ActivityManager(  404): Displayed com.myappcart/.MainActivity: +1s806ms\r\nI/Choreographer(  404): Skipped 34 frames!  The application may be doing too much work on its main thread.\r\nW/art     (  404): Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.run() from WindowAnimator.java:124 waiters=0 for 140ms\r\nI/Choreographer(  404): Skipped 33 frames!  The application may be doing too much work on its main thread.\r\nW/unknown:InspectorPackagerConnection( 1740): Couldn't connect to packager, will silently retry\r\nW/art     (  404): Long monitor contention event with owner method=int com.android.server.wm.WindowManagerService.relayoutWindow(com.android.server.wm.Session, android.view.IWindow, int, android.view.WindowManager$LayoutParams, int, int, int, int, android.graphics.Rect, android.graphics.Rect, android.graphics.Rect, android.graphics.Rect, android.graphics.Rect, android.content.res.Configuration, android.view.Surface) from WindowManagerService.java:3012 waiters=0 for 218ms\r\nI/DetoxManager( 1740): DetoxServerUrl : ws://localhost:35797\r\nI/DetoxManager( 1740): DetoxSessionId : a926764a-3f2d-8532-b70a-4acce439d9ab\r\nD/ReactNative( 1740): ReactInstanceManager.onJSBundleLoadedFromServer()\r\nD/ReactNative( 1740): ReactInstanceManager.recreateReactContextInBackground()\r\nD/ReactNative( 1740): ReactInstanceManager.runCreateReactContextOnNewThread()\r\nI/art     ( 1740): Thread[24,tid=1771,WaitingForJniOnLoad,Thread*=0xb4ae1400,peer=0x12c0b340,\"Thread-173\"] recursive attempt to load library \"/data/app/com.myappcart-1/lib/arm/libfb.so\"\r\nD/ReactNative( 1740): ReactInstanceManager.createReactContext()\r\nI/art     ( 1740): Background partial concurrent mark sweep GC freed 16861(1099KB) AllocSpace objects, 0(0B) LOS objects, 40% free, 3MB/6MB, paused 4.305ms total 297.343ms\r\nE/Vold    (   53): Failed to find mounted volume for /storage/sdcard/Android/data/com.myappcart/cache/\r\nW/Vold    (   53): Returning OperationFailed - no handler for errno 0\r\nW/ContextImpl( 1740): Failed to ensure directory: /storage/sdcard/Android/data/com.myappcart/cache\r\nD/ReactNative( 1740): Initializing React Xplat Bridge.\r\nD/ReactNative( 1740): Initializing React Xplat Bridge before initializeBridge\r\nD/ReactNative( 1740): Initializing React Xplat Bridge after initializeBridge\r\nD/ReactNative( 1740): CatalystInstanceImpl.runJSBundle()\r\nD/ReactNative( 1740): ReactInstanceManager.setupReactContext()\r\nD/ReactNative( 1740): CatalystInstanceImpl.initialize()\r\nW/unknown:ReactNative( 1740): Packager connection already open, nooping.\r\nD/ReactNative( 1740): ReactInstanceManager.attachRootViewToInstance()\r\nD/Detox   ( 1740): Got reactContext directly\r\nI/Detox   ( 1740): Removing Espresso IdlingResources for React Native.\r\nI/Detox   ( 1740): Setting up Espresso Idling Resources for React Native.\r\nI/Detox   ( 1740): Got react context through listener.\r\nI/WebViewFactory( 1740): Loading com.android.webview version 39 (3079158-arm) (code 300001)\r\nI/LibraryLoader( 1740): Time to load native libraries: 191 ms (timestamps 8542-8733)\r\nI/LibraryLoader( 1740): Expected native library version number \"\",actual native library version number \"\"\r\nW/art     ( 1740): Attempt to remove local handle scope entry from IRT, ignoring\r\nI/Detox   ( 1740): mqt_js looper is busy\r\nI/Choreographer( 1740): Skipped 2833 frames!  The application may be doing too much work on its main thread.\r\nI/ReactNativeJS( 1740): Running application \"myappcart\" with appParams: {\"rootTag\":1}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF\r\nI/Detox   ( 1740): mqt_native_modules looper is busy\r\nI/WebSocketClient( 1740): At connectToServer\r\nI/ReactNativeJS( 1740): [CodePush] Sync already in progress.\r\nD/WebSocketClient( 1740): Retrying...\r\nI/WebSocketClient( 1740): At connectToServer\r\nI/ReactNativeJS( 1740): [CodePush] Checking for update.\r\nI/ReactNativeJS( 1740): [CodePush] Reporting binary update (1.0)\r\nI/art     ( 1740): Background sticky concurrent mark sweep GC freed 22556(1134KB) AllocSpace objects, 4(64KB) LOS objects, 23% free, 4MB/6MB, paused 4.008ms total 242.527ms\r\nI/ReactNativeJS( 1740): [CodePush] An unknown error occurred.\r\nI/ReactNativeJS( 1740): [CodePush] 400: An update check must include a valid deployment key - please check that your app has been configured correctly. To view available deployment keys, run 'code-push deployment ls <appName> -k'.\r\nI/ReactNativeJS( 1740): [CodePush] Report status failed: {\"appVersion\":\"1.0\"}\r\nD/WebSocketClient( 1740): Retrying...\r\nI/WebSocketClient( 1740): At connectToServer\r\nI/art     ( 1740): Background partial concurrent mark sweep GC freed 2344(161KB) AllocSpace objects, 0(0B) LOS objects, 32% free, 8MB/12MB, paused 2.389ms total 146.657ms\r\nI/Choreographer( 1740): Skipped 52 frames!  The application may be doing too much work on its main thread.\r\nD/WebSocketClient( 1740): Retrying...\r\nI/WebSocketClient( 1740): At connectToServer\r\nI/Choreographer( 1740): Skipped 34 frames!  The application may be doing too much work on its main thread.\r\nD/WebSocketClient( 1740): Retrying...\r\nI/WebSocketClient( 1740): At connectToServer\r\nD/WebSocketClient( 1740): Retrying...\r\nI/WebSocketClient( 1740): At connectToServer\r\nD/WebSocketClient( 1740): Retrying...\r\nI/WebSocketClient( 1740): At connectToServer\r\nD/WebSocketClient( 1740): Retrying...\r\nI/WebSocketClient( 1740): At connectToServer\r\nD/WebSocketClient( 1740): Retrying...\r\nI/WebSocketClient( 1740): At connectToServer\r\nD/WebSocketClient( 1740): Retrying...\r\nI/WebSocketClient( 1740): At connectToServer\r\nD/WebSocketClient( 1740): Retrying...\r\nI/WebSocketClient( 1740): At connectToServer\r\nD/WebSocketClient( 1740): Retrying...\r\n```\r\n\r\n\r\n#### Detox logs\r\n  ```detox verb 10: stdout: [ 88%] /data/local/tmp/app-debug-androidTest.apk\r\ndetox verb 10: stdout: [ 91%] /data/local/tmp/app-debug-androidTest.apk\r\ndetox verb 10: stdout: [ 95%] /data/local/tmp/app-debug-androidTest.apk\r\ndetox verb 10: stdout: [ 98%] /data/local/tmp/app-debug-androidTest.apk\r\ndetox verb 10: stdout: [100%] /data/local/tmp/app-debug-androidTest.apk\r\ndetox verb 10: stdout: /home/travis/build/myappcart/myappcart-app/android/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk: 1 file pushed. 4.4 MB/s (1998541 bytes in 0.438s)\r\ndetox verb 10: stdout: \tpkg: /data/local/tmp/app-debug-androidTest.apk\r\ndetox verb 10: stdout: Success\r\ndetox verb 10: stdout: \r\ndetox verb 11: /usr/local/android-sdk/platform-tools/adb -s emulator-5554 shell am force-stop com.myappcartnative \r\ndetox verb /usr/local/android-sdk/platform-tools/adb -s emulator-5554 shell am instrument -w -r -e detoxServer ws://localhost:42868 -e detoxSessionId 6a06352e-fc05-53d2-43c9-feefdc9100ef -e debug false com.myappcartnative.test/android.support.test.runner.AndroidJUnitRunner \r\ndetox verb Instrumentation spawned, childProcess.pid:  24273\r\ndetox verb ws send: {\"type\":\"isReady\",\"params\":{},\"messageId\":-1000}\r\ndetox verb Instrumentation stdout:  INSTRUMENTATION_STATUS: numtests=1\r\ndetox verb Instrumentation stdout:  INSTRUMENTATION_STATUS: stream=\r\ndetox verb Instrumentation stdout:  com.myappcartnative.DetoxTest:\r\ndetox verb Instrumentation stdout:  INSTRUMENTATION_STATUS: id=AndroidJUnitRunner\r\ndetox verb Instrumentation stdout:  INSTRUMENTATION_STATUS: test=runDetoxTests\r\ndetox verb Instrumentation stdout:  INSTRUMENTATION_STATUS: class=com.myappcartnative.DetoxTest\r\ndetox verb Instrumentation stdout:  INSTRUMENTATION_STATUS: current=1\r\ndetox verb Instrumentation stdout:  INSTRUMENTATION_STATUS_CODE: 1\r\ndetox verb Instrumentation stdout:  \r\nBundling `index.js`  [development, non-minified]  ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  100.0% (1072/1072)\r\n\r\nNo output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.\r\nCheck the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received\r\nThe build has been terminated\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/wix/detox/issues/comments/399277348","html_url":"https://github.com/wix/detox/issues/678#issuecomment-399277348","issue_url":"https://api.github.com/repos/wix/detox/issues/678","id":399277348,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTI3NzM0OA==","user":{"login":"stale[bot]","id":26384082,"node_id":"MDM6Qm90MjYzODQwODI=","avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-06-21T23:47:03Z","updated_at":"2018-06-21T23:47:03Z","author_association":"NONE","body":"The issue has been closed for inactivity.\n"}}
{"actor":{"display_login":"stale"}}