question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mobile:backdoor may have an issue in Android 12

See original GitHub issue

The problem

mobile:backdoor test failed on Android 12 by e2e in espresso driver and ruby_lib_core lib test suite

  2) mobile
       mobile: backdoor
         should get element type face:
     {"message":"[execute(\"mobile: backdoor\",{\"target\":\"element\",\"elementId\":\"45a0b286-2f1a-41f9-ab9b-91951e3a161a\",\"methods\":[{\"name\":\"getTypeface\"}]})] Error response status: 13, , UnknownError - An unknown server-side error occurred while processing the command. Selenium error: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up","status":13,"cause":{"status":13,"value":{"me...
  Error: [execute("mobile: backdoor",{"target":"element","elementId":"45a0b286-2f1a-41f9-ab9b-91951e3a161a","methods":[{"name":"getTypeface"}]})] Error response status: 13, , UnknownError - An unknown server-side error occurred while processing the command. Selenium error: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up
      at exports.newError (node_modules/wd/lib/utils.js:152:13)
      at /Users/kazuaki/GitHub/appium-espresso-driver/node_modules/wd/lib/callbacks.js:94:19
      at /Users/kazuaki/GitHub/appium-espresso-driver/node_modules/wd/lib/webdriver.js:205:5
      at Request._callback (node_modules/wd/lib/http-utils.js:89:7)
      at Request.self.callback (node_modules/request/request.js:185:22)
      at Request.<anonymous> (node_modules/request/request.js:1161:10)
      at IncomingMessage.<anonymous> (node_modules/request/request.js:1083:12)
      at endReadableNT (_stream_readable.js:1241:12)
      at processTicksAndRejections (internal/process/task_queues.js:84:21)

Environment

  • Appium version (or git revision) that exhibits the issue: 1.22.0
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium:
  • Node.js version (unless using Appium.app|exe):
  • Npm or Yarn package manager:
  • Mobile platform/version under test:
  • Real device or emulator/simulator: Andorid 12 emulator
  • Appium CLI or Appium.app|exe:

Details

The below is logcat by https://github.com/appium/ruby_lib_core/pull/338/files#diff-085e3c89b00c8cc24570774fb0ac5c5696a336ec6adc773b96740155a8aec45dR216

        # 10-05 18:20:30.419   524  2427 W ActivityManager: Crash of app io.appium.android.apis running instrumentation ComponentInfo{io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner}
        # 10-05 18:20:30.420   524  2427 I ActivityManager: Force stopping io.appium.android.apis appid=10151 user=0: finished inst
        # 10-05 18:20:30.421   524  2798 W WindowManager: Cannot find window which accessibility connection is added to
        # 10-05 18:20:30.424  6066  6078 W Binder  : Caught a RuntimeException from the binder stub implementation.
        # 10-05 18:20:30.424  6066  6078 W Binder  : java.lang.SecurityException: Calling from not trusted UID!
        # 10-05 18:20:30.424  6066  6078 W Binder  : 	at android.app.UiAutomationConnection.throwIfCalledByNotTrustedUidLocked(UiAutomationConnection.java:601)
        # 10-05 18:20:30.424  6066  6078 W Binder  : 	at android.app.UiAutomationConnection.shutdown(UiAutomationConnection.java:505)
        # 10-05 18:20:30.424  6066  6078 W Binder  : 	at android.app.IUiAutomationConnection$Stub.onTransact(IUiAutomationConnection.java:437)
        # 10-05 18:20:30.424  6066  6078 W Binder  : 	at android.os.Binder.execTransactInternal(Binder.java:1184)
        # 10-05 18:20:30.424  6066  6078 W Binder  : 	at android.os.Binder.execTransact(Binder.java:1143)
        # 10-05 18:20:30.433  1366  1366 I A       : onApplyWindowInsets: systemWindowInsets=Insets{left=0, top=83, right=0, bottom=132}
        # 10-05 18:20:30.433  1366  1366 I A       : onApplyWindowInsets: systemWindowInsets=Insets{left=0, top=83, right=0, bottom=132}
        # 10-05 18:20:30.436   329   467 D goldfish-address-space: claimShared: Ask to claim region [0x3f4b32000 0x3f5497000]
        # 10-05 18:20:30.448   329   467 D goldfish-address-space: claimShared: Ask to claim region [0x3f5497000 0x3f5dfc000]

Link to Appium logs

Create a GIST which is a paste of your full Appium logs, and link them here. Do NOT paste your full Appium logs here, as it will make this issue very long and hard to read! If you are reporting a bug, always include Appium logs!

Code To Reproduce Issue [ Good To Have ]

Please remember that with sample code it’s easier to reproduce the bug and it’s much faster to fix it.

Please git clone https://github.com/appium/appium and from the sample-code directory, use one of your favourite languages and sample apps to reproduce the issue.

In case a similar scenario is missing in sample-code, please submit a PR with one of the sample apps provided.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
KazuCocoacommented, Oct 6, 2021

I see, okay. Thank you!

note: We should mention this point in releasenote users who use backdoor should tune their query.

0reactions
mykola-mokhnachcommented, Oct 6, 2021

Thanks for the update @rajdeepv Feel free to raise a PR if you know how to fix this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Android 12 problems and how to fix them
Step 6: Choose Phone, then select Storage and cache (on some phones, this may just be Storage), then choose Clear storage/cache. Neither ...
Read more >
Behavior changes: Apps targeting Android 12
Like earlier releases, Android 12 includes behavior changes that may affect your app. The following behavior changes apply exclusively to apps that are ......
Read more >
Fix an installed Android app that isn't working
Try the following steps if an app installed on your phone has any of these problems: Crashing. Won't open. Won't respond. Isn't working...
Read more >
Troubleshoot OneDrive for Android app problems
For all OneDrive mobile sync, sharing, and upload issues, make sure you can connect to the Internet. Some apps and features may only...
Read more >
Android 12 vs. Android 11: The differences you'll want to ...
And If you're still waiting on Google's new OS to make its way to your device, you can download and install the Android...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found