Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onlyKilledRE error #140

Open
chenshifei opened this issue Apr 20, 2015 · 2 comments
Open

onlyKilledRE error #140

chenshifei opened this issue Apr 20, 2015 · 2 comments

Comments

@chenshifei
Copy link

Hi, I'm now using SONY Z1 with stock Lollipop 5.0.2. Everytime when I execute dump it fails with these messages,

Traceback (most recent call last):
  File "dump", line 175, in <module>
    vc.dump(window=options[WINDOW])
  File "/Users/johnchen/Repo/AndroidViewClient/src/com/dtmilano/android/viewclient.py", line 3073, in dump
    raise RuntimeError('''ERROR: UiAutomator output contains no valid information. UiAutomator was killed, no reason given.''' + extraInfo)
RuntimeError: ERROR: UiAutomator output contains no valid information. UiAutomator was killed, no reason given.

Here's a part of the original received message from UIAutomator,

...bounds="[809,1603][1078,1768]"><node index="0" text="??" resource-id="android:id/title" class="android.widget.TextView" package="com.dianping.v1" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="true" bounds="[821,1600][1066,1759]" /></node></node></node><node index="1" text="" resource-id="com.dianping.v1:id/iv_titleshadow" class="android.widget.ImageView" package="com.dianping.v1" content-desc="???title??" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,225][1080,234]" /></node></hierarchy>Killed

As you can see "Killed" was appended and causes onlyKilledRE to raise an exception.

I suppose onlyKilledRE is used to detect whether the output contains "Killed" only. Could you take a look at this? Thanks in advance!

@dtmilano
Copy link
Owner

Are you setting ignoreuiautomatorkilled=True when creating the ViewClient object?

@chenshifei
Copy link
Author

Yes, kwargs2 shows below,

{'startviewserver': True, 'forceviewserveruse': False, 'autodump': False, 'ignoreuiautomatorkilled': True}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants