Device is Disconnected during execution

Device is Disconnected during execution

Hi

Device is disconnected during the execution

Issue observed : When there is more number of records in a page the device is disconnected.

Example : A customer page may have 500 records but when the page is loaded the device is disconnected.

Please share the Appium Studio logs after you reconstructed the issue.
To find the logs, in Appium Studio, open the ā€˜Helpā€™ menu then ā€˜Open Logs Folderā€™ā€¦

Hello Guy,

I am unable to attach Log , looks like i donā€™t have permission to upload in the web.

Can you share your email id ,so that i can able to attach the log in mail ,

Hello Guy,
Kindly find the log and do needful, This issue is observed most of the times.Whenever i try to spy a particular page i m getting this issue, ā€œDevice Disconnectedā€ and after few minutes Paltiel is restarted

    command = dump;
}
"error" = "Dump timed out.";
"result" = "";
"exceptionInfo" = {
    stacktrace = (
	0   CoreFoundation                      0x23907933 <redacted> + 150
	1   libobjc.A.dylib                     0x230a2e17 objc_exception_throw + 38
	2   ...
 Stack: (
	0   PaltielX                            0x01ef4523 -[EXPXCTestCaseImplementationFailureHoldingProxy setShouldHaltWhenReceivesControl:] + 166
	1   XCTest                              0x002038cd -[XCAXClient_iOS screenshotData] + 788
	2   PaltielX                            0x01eeaccf xcuitest_get_screenshot + 58
	3   PaltielX                            0x01eb14eb -[TestLogic getImage:] + 106
	4   PaltielX                            0x01e8e0e7 -[TestLogic takeImageNow] + 66
	5   PaltielX                            0x01e8e175 -[TestLogic takeImageIfPassedTimeIntervalOfImageRate] + 136
	6   PaltielX                            0x01e88a4d -[TestLogic runMainLoop] + 340
	7   PaltielX                            0x01efd3d3 -[PaltielUITests ourMainLoop] + 2194
	8   PaltielX                            0x01efcad9 -[PaltielUITests testMain] + 1676
	9   CoreFoundation                      0x2390c4c4 <redacted> + 68
	10  CoreFoundation                      0x2383287d <redacted> + 292
	11  XCTest                              0x001f2dd7 __24-[XCTestCase invokeTest]_block_invoke_2 + 242
	12  XCTest                              0x002227cd -[XCTestContext performInScope:] + 304
	13  XCTest                              0x001f2cdb -[XCTestCase invokeTest] + 182
	14  XCTest                              0x001f328b -[XCTestCase performTest:] + 562
	15  XCTest                              0x001f0f21 -[XCTestSuite performTest:] + 468
	16  XCTest                              0x001f0f21 -[XCTestSuite performTest:] + 468
	17  XCTest                              0x001de3b9 __25-[XCTestDriver _runSuite]_block_invoke + 52
	18  XCTest                              0x001fe101 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 660
	19  XCTest                              0x001de2f7 -[XCTestDriver _runSuite] + 486
	20  XCTest                              0x001df091 -[XCTestDriver _checkForTestManager] + 300
	21  XCTest                              0x00223b75 _XCTestMain + 684
	22  CoreFoundation                      0x238c9d21 <redacted> + 12
	23  CoreFoundation                      0x238c97dd <redacted> + 216
	24  CoreFoundation                      0x238c7d51 <redacted> + 784
	25  CoreFoundation                      0x23817229 CFRunLoopRunSpecific + 520
	26  CoreFoundation                      0x23817015 CFRunLoopRunInMode + 108
	27  GraphicsServices                    0x24e07ac9 GSEventRunModal + 160
	28  UIKit                               0x27eeb189 UIApplicationMain + 144
	29  XCTRunner                           0x000c923f XCTRunner + 33343
	30  libdyld.dylib                       0x234bf873 <redacted> + 2
)
Stack: (
	0   PaltielX                            0x01ef4523 -[EXPXCTestCaseImplementationFailureHoldingProxy setShouldHaltWhenReceivesControl:] + 166
	1   XCTest                              0x002038cd -[XCAXClient_iOS screenshotData] + 788
	2   PaltielX                            0x01eeaccf xcuitest_get_screenshot + 58
	3   PaltielX                            0x01eb14eb -[TestLogic getImage:] + 106
	4   PaltielX                            0x01e8e0e7 -[TestLogic takeImageNow] + 66
	5   PaltielX                            0x01e8e175 -[TestLogic takeImageIfPassedTimeIntervalOfImageRate] + 136
	6   PaltielX                            0x01e88a4d -[TestLogic runMainLoop] + 340
	7   PaltielX                            0x01efd3d3 -[PaltielUITests ourMainLoop] + 2194
	8   PaltielX                            0x01efcad9 -[PaltielUITests testMain] + 1676
	9   CoreFoundation                      0x2390c4c4 <redacted> + 68
	10  CoreFoundation                      0x2383287d <redacted> + 292
	11  XCTest                              0x001f2dd7 __24-[XCTestCase invokeTest]_block_invoke_2 + 242
	12  XCTest                              0x002227cd -[XCTestContext performInScope:] + 304
	13  XCTest                              0x001f2cdb -[XCTestCase invokeTest] + 182
	14  XCTest                              0x001f328b -[XCTestCase performTest:] + 562
	15  XCTest                              0x001f0f21 -[XCTestSuite performTest:] + 468
	16  XCTest                              0x001f0f21 -[XCTestSuite performTest:] + 468
	17  XCTest                              0x001de3b9 __25-[XCTestDriver _runSuite]_block_invoke + 52
	18  XCTest                              0x001fe101 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 660
	19  XCTest                              0x001de2f7 -[XCTestDriver _runSuite] + 486
	20  XCTest                              0x001df091 -[XCTestDriver _checkForTestManager] + 300
	21  XCTest                              0x00223b75 _XCTestMain + 684
	22  CoreFoundation                      0x238c9d21 <redacted> + 12
	23  CoreFoundation                      0x238c97dd <redacted> + 216
	24  CoreFoundation                      0x238c7d51 <redacted> + 784
	25  CoreFoundation                      0x23817229 CFRunLoopRunSpecific + 520
	26  CoreFoundation                      0x23817015 CFRunLoopRunInMode + 108
	27  GraphicsServices                    0x24e07ac9 GSEventRunModal + 160
	28  UIKit                               0x27eeb189 UIApplicationMain + 144
	29  XCTRunner                           0x000c923f XCTRunner + 33343
	30  libdyld.dylib                       0x234bf873 <redacted> + 2
), (null)

Feb 12 08:17:13 iPad com.apple.xpc.launchd[1] (UIKitApplication:com.XR3E9PTY8T_com.apple.test.PaltielX-Runner[0xbd0f][1518]) : Service exited with abnormal code: 1
08:17:13: E/assertiond(65): assertion failed: 13G36: assertiond + 60233 [490D29F9-F790-3C02-B1F0-75F21A182589]: 0x3
08:17:13: E/Unknown(65):
08:17:13: W/SpringBoard(48): Application ā€˜UIKitApplication:com.XR3E9PTY8T_com.apple.test.PaltielX-Runner[0xbd0f]ā€™ exited voluntarily.
08:17:13: W/UserEventAgent(23): 4711064455526: id=com.XR3E9PTY8T_com.apple.test.PaltielX-Runner pid=1518, state=0
Feb 12 08:17:18 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1517] : debugserverā€™s event read thread is exiting, detaching from the inferior process.
Feb 12 08:17:18 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1517] : 1 +0.000000 sec [05ed/0a0b]: Disabling breakpoints and watchpoints, and detaching from 1518.
Feb 12 08:17:18 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1517] : 2 +0.000291 sec [05ed/0a0b]: error: ::task_threads ( task = 0x1813, thread_list => 0x0, thread_list_count => 0 ) err = (ipc/send) invalid destination port (0x10000003)
Feb 12 08:17:18 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1517] : 3 +0.000193 sec [05ed/0a0b]: error: ::task_info ( target_task = 0x1813, flavor = TASK_BASIC_INFO, task_info_out => 0x61ce08, task_info_outCnt => 8 ) err = (ipc/send) invalid destination port (0x10000003)
Feb 12 08:17:18 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1517] : 4 +0.000230 sec [05ed/0a0b]: error: kill (pid = 1518, signo = 17) err = No such process (0x00000003)
Feb 12 08:17:18 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1517] : 5 +0.000172 sec [05ed/0a0b]: error: ::task_set_exception_ports ( task = 0x1813, exception_mask = 0x000013fe, new_port = 0x0000, behavior = 0x00000000, new_flavor = 0x00000000 ) err = (ipc/send) invalid destination port (0x10000003)
Feb 12 08:17:18 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1517] : 6 +0.000373 sec [05ed/0a0b]: error: ::ptrace (PT_DETACH, 1518, (caddr_t)1, 0) err = No such process (0x00000003)
Feb 12 08:17:18 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1517] : 7 +0.000167 sec [05ed/0a0b]: error: ::task_info ( target_task = 0x1813, flavor = TASK_BASIC_INFO, task_info_out => 0x61cf08, task_info_outCnt => 8 ) err = (ipc/send) invalid destination port (0x10000003)
Feb 12 08:17:18 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1517] : Exiting.
Feb 12 08:17:26 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1524] : debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
for armv7.
Feb 12 08:17:26 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1524] : Connecting to com.apple.debugserver serviceā€¦
Feb 12 08:17:26 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1524] : Got a connection, waiting for process information for launching or attaching.
Feb 12 08:17:26 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1524] : Sending AppProxy info: sequence no: 679, GUID: C94ED9A4-A769-4DD2-B0FE-A8D015E6D4A9.
Feb 12 08:17:26 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1524] : error: Unrecognized event type: . Ignoring.
Feb 12 08:17:26 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1524] : About to launch process for bundle ID: com.XR3E9PTY8T_com.apple.test.PaltielX-Runner
08:17:26: E/SpringBoard(48): SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
08:17:26: E/SpringBoard(48): SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
08:17:26: E/SpringBoard(48): SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
08:17:26: N/kernel(0): xpcproxy[1525] Container: /private/var/mobile/Containers/Data/Application/F11C3904-2616-4B9A-ACE4-D43C17918E63 (sandbox)
Feb 12 08:17:26 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1524] : In completion handler, got pid for bundle id, pid: 1525.
Feb 12 08:17:26 iPad com.apple.xpc.launchd[1] : assertion failed: 13G36: launchd + 85529 [083E000D-4C31-3B98-A2C4-6FADB4D1940F]: 0x3
Feb 12 08:17:26 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1524] : Got a connection, launched process /private/var/containers/Bundle/Application/7195969A-1BF8-4BAA-B1BA-94BDDE97E587/PaltielX-Runner.app (pid = 1525).
testBundleURL:file:///Users/mirron/Library/Developer/Xcode/DerivedData/Paltiel-cnywtdshzuwfjifagpbrrgfvbdhm/Build/Products/Debug-iphoneos/PaltielUITests-Runner.app/PlugIns/PaltielUITests.xctest
productModuleName:PaltielUITests
testsToSkip:(null)
testsToRun:PaltielUITests/testMain
reportResultsToIDE:YES
sessionIdentifier:<__NSConcreteUUID 0x15e7c480> CB21BCC2-1922-4918-B888-533BFAD81417
pathToXcodeReportingSocket:(null)
disablePerformanceMetrics:no
treatMissingBaselinesAsFailures:no
baselineFileURL:(null)
targetApplicationPath:/Users/mirron/Library/Developer/Xcode/DerivedData/Paltiel-cnywtdshzuwfjifagpbrrgfvbdhm/Build/Products/Debug-iphoneos/Paltiel.app
targetApplicationBundleID:com.experitest.Paltiel
reportActivities:YES
Feb 12 08:17:29 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1524] : debugserverā€™s event read thread is exiting, detaching from the inferior process.
Feb 12 08:17:29 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1524] : 1 +0.000000 sec [05f4/0a0b]: Disabling breakpoints and watchpoints, and detaching from 1525.
Feb 12 08:17:29 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1524] : 2 +0.005180 sec [05f4/0a0b]: error: ::ptrace (request = PT_THUPDATE, pid = 0x05f5, tid = 0x2c03, signal = -1) err = Invalid argument (0x00000016)
Feb 12 08:17:29 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1524] : Exiting.
08:17:29: W/SpringBoard(48): BSXPCMessage received error for message: Connection invalid
08:17:29: W/SpringBoard(48): HW kbd: Failed to set (null) as keyboard focus
08:17:29: E/assertiond(65): assertion failed: 13G36: assertiond + 60233 [490D29F9-F790-3C02-B1F0-75F21A182589]: 0x3
08:17:29: E/Unknown(65):
Feb 12 08:17:29 iPad com.apple.xpc.launchd[1] (UIKitApplication:com.XR3E9PTY8T_com.apple.test.PaltielX-Runner[0xd946][1525]) : Service exited due to signal: Killed: 9
08:17:30: W/SpringBoard(48): Application ā€˜UIKitApplication:com.XR3E9PTY8T_com.apple.test.PaltielX-Runner[0xd946]ā€™ exited abnormally via signal.
08:17:30: W/UserEventAgent(23): 4711468634130: id=com.XR3E9PTY8T_com.apple.test.PaltielX-Runner pid=1525, state=0
Feb 12 08:17:32 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1527] : debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
for armv7.
Feb 12 08:17:32 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1527] : Connecting to com.apple.debugserver serviceā€¦
Feb 12 08:17:32 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1527] : Got a connection, waiting for process information for launching or attaching.
Feb 12 08:17:32 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1527] : Sending AppProxy info: sequence no: 679, GUID: C94ED9A4-A769-4DD2-B0FE-A8D015E6D4A9.
Feb 12 08:17:32 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1527] : error: Unrecognized event type: . Ignoring.
Feb 12 08:17:32 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1527] : About to launch process for bundle ID: com.XR3E9PTY8T_com.apple.test.PaltielX-Runner
08:17:32: E/SpringBoard(48): SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
08:17:32: E/SpringBoard(48): SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
08:17:32: N/kernel(0): xpcproxy[1528] Container: /private/var/mobile/Containers/Data/Application/F11C3904-2616-4B9A-ACE4-D43C17918E63 (sandbox)
Feb 12 08:17:32 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1527] : In completion handler, got pid for bundle id, pid: 1528.
Feb 12 08:17:32 iPad com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[1527] : Got a connection, launched process /private/var/containers/Bundle/Application/7195969A-1BF8-4BAA-B1BA-94BDDE97E587/PaltielX-Runner.app (pid = 1528).
Feb 12 08:17:32 iPad com.apple.xpc.launchd[1] : assertion failed: 13G36: launchd + 85529 [083E000D-4C31-3B98-A2C4-6FADB4D1940F]: 0x3
testBundleURL:file:///Users/mirron/Library/Developer/Xcode/DerivedData/Paltiel-cnywtdshzuwfjifagpbrrgfvbdhm/Build/Products/Debug-iphoneos/PaltielUITests-Runner.app/PlugIns/PaltielUITests.xctest
productModuleName:PaltielUITests
testsToSkip:(null)
testsToRun:PaltielUITests/testMain
reportResultsToIDE:YES
sessionIdentifier:<__NSConcreteUUID 0x16d57cb0> CB21BCC2-1922-4918-B888-533BFAD81417
pathToXcodeReportingSocket:(null)
disablePerformanceMetrics:no
treatMissingBaselinesAsFailures:no
baselineFileURL:(null)
targetApplicationPath:/Users/mirron/Library/Developer/Xcode/DerivedData/Paltiel-cnywtdshzuwfjifagpbrrgfvbdhm/Build/Products/Debug-iphoneos/Paltiel.app
targetApplicationBundleID:com.experitest.Paltiel
reportActivities:YES
Feb 12 08:17:33 iPad com.apple.xpc.launchd[1] (com.apple.testmanagerd) : Service only ran for 5 seconds. Pushing respawn out by 5 seconds.
08:17:40: W/SpringBoard(48): HW kbd: Failed to set (null) as keyboard focus
command = ā€œlaunch_counterā€;
}
ā€œlaunchCounterā€ = 0;
ā€œresultā€ = ā€œā€;
command = pid;
}
command = dump;
}

Hi

It looks like the page that you are trying to get the dump from is crowded with elements

it means that the call to retrieve the dump gets timeout

the solution is to ā€œreduceā€ the number of elements we retrieve

please find the official docs : https://docs.experitest.com/display/TD/SeeTestAutomation-+Failure+to+get+dump

more particularly - from code youā€™ll need to add the following command

driver.executeSciprt("client:client.setProperty('ios.non-instrumented.dump.parameters', '20,1000,50')");

Where

20 - Depth - Define the max depth of an element in the hierarchy tree.
1000 - Total - Define the total amount of elements in the dump.
50 - Children - For each element (node) what are the max nodes successors (children).

Hey Tom,

Thanks a Ton , You saved my work. your solution is properly worked for me
Thanks,
Mali

1 Like