On running more than 70-80 no.of test lines in a test case then it shows "socket hang up error"

On running more than 70-80 no.of test lines in a test case then it shows “socket hang up error”. If I make 2 individual test cases with 60 lines each then both of them gets completed successfully without giving any error but if i merge both of the test cases and run a single test case with 120 lines then it usually stops after 70-80th line. Again if I comment out 10 lines at the top then the test case runs till 80-90th line and then stops again.
I can’t find out what the actual issue is. It seems like an appium issue.

The error is like this always:

" io.appium.java_client.NoSuchContextException: An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: ‘Command ‘/Users/akashpopat/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s 3d999502 shell cat /proc/net/unix’ exited with code 1’; Stderr: ‘error: device ‘3d999502’ not found’; Code: ‘1’ (WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 0 milliseconds

Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’

System info: host: ‘Akashs-MacBook-Air.local’, ip: ‘2405:201:8800:5780:41ec:a975:bea1:ef0e%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.14.4’, java.version: ‘1.8.0_181’

Driver info: com.kms.katalon.core.appium.driver.SwipeableAndroidDriver

Capabilities {app: /Users/akashpopat/Downloads…, appPackage: com.lc_seenit.elsie_dev, autoGrantPermissions: true, automationName: uiautomator2, databaseEnabled: false, desired: {app: /Users/akashpopat/Downloads…, autoGrantPermissions: true, automationName: uiautomator2, deviceName: OnePlus ONEPLUS A5000 (Andr…, fullReset: false, newCommandTimeout: 1800, noReset: true, platform: ANDROID, platformName: Android, udid: 3d999502}, deviceApiLevel: 28, deviceManufacturer: OnePlus, deviceModel: ONEPLUS A5000, deviceName: 3d999502, deviceScreenDensity: 420, deviceScreenSize: 1080x1920, deviceUDID: 3d999502, fullReset: false, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: true, newCommandTimeout: 1800, noReset: true, pixelRatio: 2.375, platform: ANDROID, platformName: ANDROID, platformVersion: 9, statBarHeight: 57, takesScreenshot: true, udid: 3d999502, viewportRect: {height: 1863, left: 0, top: 57, width: 1080}, warnings: {}, webStorageEnabled: false}

Session ID: 8f568d19-2f40-473c-b37d-cf83ca3c74cd

at io.appium.java_client.AppiumDriver.context(AppiumDriver.java:198)

at com.kms.katalon.core.mobile.helper.MobileScreenCaptor.take(MobileScreenCaptor.java:47)

at com.kms.katalon.core.helper.screenshot.ScreenCaptor.takeScreenshotAndGetAttributes(ScreenCaptor.java:37)

at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.stepFailed(MobileKeywordMain.groovy:40)

at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:23)

at com.kms.katalon.core.mobile.keyword.builtin.TapKeyword.tap(TapKeyword.groovy:83)

at com.kms.katalon.core.mobile.keyword.builtin.TapKeyword.execute(TapKeyword.groovy:66)

at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:56)

at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.tap(MobileBuiltInKeywords.groovy:485)

at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$tap$0.call(Unknown Source)

at PreBuild1.run(PreBuild1:220)

at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)

at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)

at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:337)

at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)

at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)

at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)

at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)

at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)

at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)

at TempTestCase1559900613518.run(TempTestCase1559900613518.groovy:21)

Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: ‘Command ‘/Users/akashpopat/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s 3d999502 shell cat /proc/net/unix’ exited with code 1’; Stderr: ‘error: device ‘3d999502’ not found’; Code: ‘1’ (WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 0 milliseconds

Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’

System info: host: ‘Akashs-MacBook-Air.local’, ip: ‘2405:201:8800:5780:41ec:a975:bea1:ef0e%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.14.4’, java.version: ‘1.8.0_181’

Driver info: com.kms.katalon.core.appium.driver.SwipeableAndroidDriver

Capabilities {app: /Users/akashpopat/Downloads…, appPackage: com.lc_seenit.elsie_dev, autoGrantPermissions: true, automationName: uiautomator2, databaseEnabled: false, desired: {app: /Users/akashpopat/Downloads…, autoGrantPermissions: true, automationName: uiautomator2, deviceName: OnePlus ONEPLUS A5000 (Andr…, fullReset: false, newCommandTimeout: 1800, noReset: true, platform: ANDROID, platformName: Android, udid: 3d999502}, deviceApiLevel: 28, deviceManufacturer: OnePlus, deviceModel: ONEPLUS A5000, deviceName: 3d999502, deviceScreenDensity: 420, deviceScreenSize: 1080x1920, deviceUDID: 3d999502, fullReset: false, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: true, newCommandTimeout: 1800, noReset: true, pixelRatio: 2.375, platform: ANDROID, platformName: ANDROID, platformVersion: 9, statBarHeight: 57, takesScreenshot: true, udid: 3d999502, viewportRect: {height: 1863, left: 0, top: 57, width: 1080}, warnings: {}, webStorageEnabled: false}

Session ID: 8f568d19-2f40-473c-b37d-cf83ca3c74cd

at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)

at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)

at org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:40)

at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:80)

at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:44)

at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)

at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:89)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:600)

at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)

at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)

at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)

at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.java:1)

at io.appium.java_client.AppiumDriver.context(AppiumDriver.java:195)

at com.kms.katalon.core.mobile.helper.MobileScreenCaptor.take(MobileScreenCaptor.java:47)

at com.kms.katalon.core.helper.screenshot.ScreenCaptor.takeScreenshotAndGetAttributes(ScreenCaptor.java:37)

at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.stepFailed(MobileKeywordMain.groovy:40)

at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:23)

at com.kms.katalon.core.mobile.keyword.builtin.TapKeyword.tap(TapKeyword.groovy:83)

at com.kms.katalon.core.mobile.keyword.builtin.TapKeyword.execute(TapKeyword.groovy:66)

at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:56)

at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.tap(MobileBuiltInKeywords.groovy:485)

at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$tap$0.call(Unknown Source)

at Script1558722906444.run(Script1558722906444.groovy:220)

… 10 more "

Thanks!

1 Like

I am also facing the same issue. Is there anybody who have a proper solution to this?

Thanks

P.S - Bump to the Top

Hi [akash.popat]

I have teh same issue on macOS , did you get any solution for your problem ?
I will appreciate if you give me some hint
Info: by mines after 66 Test cases Appium process is killed with kill 9 automatically