SIGTERM Error and appium exit error while context switch

hi

Recently i am seeing lot of failure while trying to switch context

my logs
io.appium.java_client.NoSuchContextException: Appium unexpectedly ended the connection. It may have quit abnormally.
Build info: version: ‘4.5.0’, revision: ‘fe167b119a’
System info: os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘5.4.0-107-generic’, java.version: ‘11.0.14.1’
Driver info: io.appium.java_client.ios.IOSDriver
Command: [c6d22645-e305-4966-ba92-dd1c90fdb230, switchToContext {name=WEBVIEW_463.2}]
Capabilities {appium:additionalWebviewBundleIds: [NXYL3JM8RM.NXYL3JM8RM*], appium:automationName: XCUITest, appium:bundleId: com.sap.epm.fpa, appium:databaseEnabled: false, appium:deviceContextId: eed5c6e5-518a-4a1a-9fdd-ee9…, appium:deviceName: 00008110-001634992151801E, appium:javascriptEnabled: true, appium:jobUuid: d98d8904b4a7418b87af38f73ac…, appium:language: en, appium:locale: en_GB, appium:locationContextEnabled: false, appium:networkConnectionEnabled: false, appium:newCommandTimeout: 180, appium:orientation: PORTRAIT, appium:platformVersion: 15.6, appium:processArguments: {args: [-AppleLanguages, (en-GB), -AppleLocale, en_GB, -NSLanguages, (en), -AppleLanguages, (en), -NSLanguages, (en), -AppleLocale, en_GB], env: {}}, appium:takesScreenshot: true, appium:testobject_device: iPhone_13_15_ap, appium:testobject_device_name: iPhone 13, appium:testobject_device_session_id: dcb2e8f0-f7b8-4331-b2bf-517…, appium:testobject_test_report_api_url: https://api.eu-central-1.sa…, appium:testobject_test_report_url: https://app.eu-central-1.sa…, appium:testobject_user_id: S-A-P, appium:udid: 00008110-001634992151801E, appium:usedCachedDevice: false, appium:webDriverAgentUrl: http://127.0.0.1:5706, appium:webStorageEnabled: false, platformName: IOS, sauce:options: {commandTimeouts: 60000, name: IOS Tests, noReset: true, realDevice: true, sauceLabsNetworkCaptureEnabled: true, tunnelName: sap-intranet, tunnelOwner: S-A-P}}
Session ID: c6d22645-e305-4966-ba92-dd1c90fdb230
at io.appium.java_client.remote.SupportsContextSwitching.context(SupportsContextSwitching.java:48)
at com.sac.mobile.appiumlib.Appium.setDriverContext(Appium.java:3023)
at com.sac.mobile.appiumlib.Appium.tapElement(Appium.java:754)
at com.sac.mobile.ios.FiltersPageIos.tapFilterWebView(FiltersPageIos.java:117)
at com.sac.e2e.test.ios.SacFinalAcceptanceTests.test006storyCheckTransientFilters(SacFinalAcceptanceTests.java:191)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
at org.testng.TestRunner.privateRun(TestRunner.java:764)
at org.testng.TestRunner.run(TestRunner.java:585)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
at org.testng.SuiteRunner.run(SuiteRunner.java:286)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1213)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
at org.testng.TestNG.runSuites(TestNG.java:1069)
at org.testng.TestNG.run(TestNG.java:1037)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:284)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:119)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
Caused by: org.openqa.selenium.WebDriverException: Appium unexpectedly ended the connection. It may have quit abnormally.
Build info: version: ‘4.5.0’, revision: ‘fe167b119a’
System info: os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘5.4.0-107-generic’, java.version: ‘11.0.14.1’
Driver info: io.appium.java_client.ios.IOSDriver
Command: [c6d22645-e305-4966-ba92-dd1c90fdb230, switchToContext {name=WEBVIEW_463.2}]
Capabilities {appium:additionalWebviewBundleIds: [NXYL3JM8RM.NXYL3JM8RM*], appium:automationName: XCUITest, appium:bundleId: com.sap.epm.fpa, appium:databaseEnabled: false, appium:deviceContextId: eed5c6e5-518a-4a1a-9fdd-ee9…, appium:deviceName: 00008110-001634992151801E, appium:javascriptEnabled: true, appium:jobUuid: d98d8904b4a7418b87af38f73ac…, appium:language: en, appium:locale: en_GB, appium:locationContextEnabled: false, appium:networkConnectionEnabled: false, appium:newCommandTimeout: 180, appium:orientation: PORTRAIT, appium:platformVersion: 15.6, appium:processArguments: {args: [-AppleLanguages, (en-GB), -AppleLocale, en_GB, -NSLanguages, (en), -AppleLanguages, (en), -NSLanguages, (en), -AppleLocale, en_GB], env: {}}, appium:takesScreenshot: true, appium:testobject_device: iPhone_13_15_ap, appium:testobject_device_name: iPhone 13, appium:testobject_device_session_id: dcb2e8f0-f7b8-4331-b2bf-517…, appium:testobject_test_report_api_url: https://api.eu-central-1.sa…, appium:testobject_test_report_url: https://app.eu-central-1.sa…, appium:testobject_user_id: S-A-P, appium:udid: 00008110-001634992151801E, appium:usedCachedDevice: false, appium:webDriverAgentUrl: http://127.0.0.1:5706, appium:webStorageEnabled: false, platformName: IOS, sauce:options: {commandTimeouts: 60000, name: IOS Tests, noReset: true, realDevice: true, sauceLabsNetworkCaptureEnabled: true, tunnelName: sap-intranet, tunnelOwner: S-A-P}}
Session ID: c6d22645-e305-4966-ba92-dd1c90fdb230
at jdk.internal.reflect.GeneratedConstructorAccessor27.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:200)
at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:133)
at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:53)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:184)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:189)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:547)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:267)
at io.appium.java_client.remote.SupportsContextSwitching.context(SupportsContextSwitching.java:45)
… 37 more

please suggest me what can be done, i checked with saucelabs team and they said it is an appium issue, let me know if i need to do/try something. I can see webview loads and in app page has loaded but test fails abruptly

Thanks & Regards,
Divita

Is OS really Linux? XCUITest will not work on Linux because, Apple.

oh i need to check on this, i am not sure how can os be linux. this is running on IOS devices and it runs fine even though os is mentioned linux. the logs do say linux even for other genuine failures. i have not paid attention earlier even for pass it says the same. it has run on ios devices all this while.