While inspecting iOS app with Appium, app is freezing. And also while running app with eclipse, app is freezing.
Can someone help me to resolve this issue. IT’S REALLY URGENT.
Thanks in advance
While inspecting iOS app with Appium, app is freezing. And also while running app with eclipse, app is freezing.
Can someone help me to resolve this issue. IT’S REALLY URGENT.
Thanks in advance
disable ALL logging in app and give a try
I tired it but still remains the same
are you 100% checked in simulator that nothing logging when your app starting? just menu Debug -> open System log -> now start your app without appium staff.
also look into appium logs what happens… maybe helps
App is freezing after 3 to 4 taps. I dono why.
Yeah. I have commented all the NsLog in the app.
Please find the appium log for the issue
LOG
info: [debug] Socket data received (25 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {“status”:0,“value”:""}
info: [debug] Responding to client with success: {“status”:0,“value”:"",“sessionId”:“e82dbc35-adbb-4f19-a68e-824edb0a415f”}
info: <-- POST /wd/hub/session/e82dbc35-adbb-4f19-a68e-824edb0a415f/element/0/click 200 294.463 ms - 74 {“status”:0,“value”:"",“sessionId”:“e82dbc35-adbb-4f19-a68e-824edb0a415f”}
info: --> POST /wd/hub/session/e82dbc35-adbb-4f19-a68e-824edb0a415f/element/0/click {“id”:“0”}
info: [debug] Pushing command to appium work queue: “au.tapById(‘0’)”
info: [debug] Sending command to instruments: au.tapById(‘0’)
info: [debug] [INST] 2016-06-03 12:57:41 +0000 Debug: Got new command 6 from instruments: au.tapById(‘0’)
info: [debug] [INST] 2016-06-03 12:57:41 +0000 Debug: evaluating au.tapById(‘0’)
info: [debug] [INST] 2016-06-03 12:57:41 +0000 Debug: UIAButton.tap()
info: [IOS_SYSLOG_ROW ] Jun 3 18:27:41 Vigneshs-Mac-mini.local nbcbayarea[13431]: Unable to simultaneously satisfy constraints.
info: [IOS_SYSLOG_ROW ] Probably at least one of the constraints in the following list is one you don’t want. Try this: (1) look at each constraint and try to figure out which you don’t expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you’re seeing NSAutoresizingMaskLayoutConstraints that you don’t understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
info: [IOS_SYSLOG_ROW ] (
info: [IOS_SYSLOG_ROW ] “<NSLayoutConstraint:0x7fd2cba699d0 H:[UIActivityIndicatorView:0x7fd2cba69330(37)]>”,
info: [IOS_SYSLOG_ROW ] “<NSLayoutConstraint:0x7fd2cb9c8290 UIActivityIndicatorView:0x7fd2cba69330.leading == UIView:0x7fd2cb9c7820.leadingMargin + 126>”,
info: [IOS_SYSLOG_ROW ] “<NSLayoutConstraint:0x7fd2cb9c8330 UIView:0x7fd2cb9c7820.trailingMargin == UIActivityIndicatorView:0x7fd2cba69330.trailing + 125>”,
info: [IOS_SYSLOG_ROW ] “<NSLayoutConstraint:0x7fd2cb9cbc80 ‘UIView-Encapsulated-Layout-Width’ H:[UIView:0x7fd2cb9c7820(414)]>”
info: [IOS_SYSLOG_ROW ] )
info: [IOS_SYSLOG_ROW ] Will attempt to recover by breaking constraint
info: [IOS_SYSLOG_ROW ] <NSLayoutConstraint:0x7fd2cba699d0 H:[UIActivityIndicatorView:0x7fd2cba69330(37)]>
info: [IOS_SYSLOG_ROW ] Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
info: [IOS_SYSLOG_ROW ] The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
info: [IOS_SYSLOG_ROW ] Jun 3 18:27:42 Vigneshs-Mac-mini.local lsd[13416]: LaunchServices: Currently 0 installed placeholders: (
info: [IOS_SYSLOG_ROW ] )
info: [debug] [INST] 2016-06-03 12:57:44 +0000 Debug: UIAButton could not be tapped
info: [debug] Socket data received (57 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {“status”:13,“value”:“elementId 0 could not be tapped”}
info: [debug] Responding to client with error: {“status”:13,“value”:{“message”:“An unknown server-side error occurred while processing the command.”,“origValue”:“elementId 0 could not be tapped”},“sessionId”:“e82dbc35-adbb-4f19-a68e-824edb0a415f”}
info: <-- POST /wd/hub/session/e82dbc35-adbb-4f19-a68e-824edb0a415f/element/0/click 500 3446.351 ms - 200
info: [debug] [INST] 2016-06-03 12:57:44 +0000 Error: VerboseError: elementId 0 could not be tapped
info: [debug] [INST] 2016-06-03 12:57:45 +0000 Error: Error during eval: tapById@file:///Volumes/Appium/Appium.app/Contents/Resources/node_modules/appium/440AF4AC-BBFC-4BD4-8FE1-BCBCF3A6E1C7/bootstrap-168def4604c6c9fc.js:1114:25
eval code
eval@[native code]
startProcessing@file:///Volumes/Appium/Appium.app/Contents/Resources/node_modules/appium/440AF4AC-BBFC-4BD4-8FE1-BCBCF3A6E1C7/bootstrap-168def4604c6c9fc.js:2710:30
bootstrap@file:///Volumes/Appium/Appium.app/Contents/Resources/node_modules/appium/440AF4AC-BBFC-4BD4-8FE1-BCBCF3A6E1C7/bootstrap-168def4604c6c9fc.js:2778:31
global code@file:///Volumes/Appium/Appium.app/Contents/Resources/node_modules/appium/440AF4AC-BBFC-4BD4-8FE1-BCBCF3A6E1C7/bootstrap-168def4604c6c9fc.js:2787:10
info: [debug] [INST] 2016-06-03 12:57:45 +0000 Debug: responding with:
info: [debug] [INST] 2016-06-03 12:57:45 +0000 Debug: Running system command #7: /Volumes/Appium/Appium.app/Contents/Resources/node/bin/node /Volumes/Appium/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:13,“value”:“elementId 0 could not be tapped”}…
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”},“isShuttingDown”:false},“sessionId”:“e82dbc35-adbb-4f19-a68e-824edb0a415f”}
info: <-- GET /wd/hub/status 200 1.193 ms - 179 {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”},“isShuttingDown”:false},“sessionId”:“e82dbc35-adbb-4f19-a68e-824edb0a415f”}
info: [IOS_SYSLOG_ROW ] Jun 3 18:27:53 Vigneshs-Mac-mini.local mstreamd[13395]: (Note ) PS: Media stream daemon stopping.
info: [IOS_SYSLOG_ROW ] Jun 3 18:27:53 Vigneshs-Mac-mini.local mstreamd[13395]: (Note ) AS: <MSIOSAlbumSharingDaemon: 0x7ff600706290>: Shared Streams daemon has shut down.
info: [IOS_SYSLOG_ROW ] Jun 3 18:27:53 Vigneshs-Mac-mini.local mstreamd[13395]: (Warn ) mstreamd: mstreamd shutting down.
according to logs it just fails to tap - elementId 0 could not be tapped
Yeah. Its because while clicking the previous button app freezes and could not tap the further buttons
if you manually can’t reproduce try to narrow problem. only you know you application better.
try to set let say delay 1 sec between clicks and see if it helps (later need remove it after solving issue).
manually in simulator you can’t reproduce freeze is it?
set Appium server to ERROR logging.
Yes. In simulator its working fine. Only if I run in appium, app is freezing.
And how to set appium server to ERROR logging?
Even delay is not working.
Can you please help me. Its really urgent
Hi,
We’re also facing the same freezing issue with iOS app. While automating our application, App gets freezing and the device is usually hanging and turns into unresponsive state.
Has anyone workaround on this issue, please let us know.
Configuration used:
Mac osx 10.9.5v
iOS 9.3.2v
Appium 1.5.3v
Xcode 7.2.1v
Node 6.3v.
Regards,
Bhaskar.
The freezing issue is still existing even though after disabled all the logging. Hope will have more suggestions other than logging.!!
Thanks,
Bhaskar.
Please check whether it is staging build. It happens when build is in staging
Did anyone find any solution to this?
It is known issue. Disable json logging in client.
so no solution other than disabling logging in the iOS application itself?
The iOS automation goes fine on my machine with 1.5.3 on OSX 10.11.4 but it does not work with OSX 10.11.5 with 1.5.3