tianxiaogu / ape Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
[APE] rInternal erro
java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
at android.os.Handler.(Handler.java:204)
at android.os.Handler.(Handler.java:118)
at com.meizu.nightmode.MzNightModeManager.(MzNightModeManager.java:156)
at com.meizu.nightmode.MzNightModeManager.getDefault(MzNightModeManager.java:318)
at android.graphics.BaseCanvas.(BaseCanvas.java:1072)
at android.graphics.Canvas.(Canvas.java:114)
at android.app.UiAutomation.takeScreenshot(UiAutomation.java:741)
at com.android.commands.monkey.MonkeySourceApe.captureBitmap(MonkeySourceApe.java:1315)
at com.android.commands.monkey.ape.agent.StatefulAgent.captureBitmap(StatefulAgent.java:452)
at com.android.commands.monkey.ape.agent.StatefulAgent.buildAndValidateNewState(StatefulAgent.java:573)
at com.android.commands.monkey.ape.agent.StatefulAgent.updateStateInternal(StatefulAgent.java:586)
at com.android.commands.monkey.ape.agent.ApeAgent.updateStateWrapper(ApeAgent.java:265)
at com.android.commands.monkey.ape.agent.ApeAgent.updateState(ApeAgent.java:252)
at com.android.commands.monkey.MonkeySourceApe.generateEvents(MonkeySourceApe.java:782)
at com.android.commands.monkey.MonkeySourceApe.getNextEvent(MonkeySourceApe.java:1278)
at com.android.commands.monkey.Monkey.runMonkeyCycles(Monkey.java:1395)
at com.android.commands.monkey.Monkey.run(Monkey.java:771)
at com.android.commands.monkey.Monkey.main(Monkey.java:613)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:285)
[APE] Please report this bug to developers.
请问一下有没有办法获取到systemUI的xml信息呢?
java.lang.RuntimeException: An unvisited state has non-empty transitions.
at com.android.commands.monkey.ape.agent.StatefulAgent.checkAndRefreshNewState(StatefulAgent.java:525)
at com.android.commands.monkey.ape.agent.StatefulAgent.preCheckTrivialNewState(StatefulAgent.java:565)
at com.android.commands.monkey.ape.agent.StatefulAgent.buildAndValidateNewState(StatefulAgent.java:574)
at com.android.commands.monkey.ape.agent.StatefulAgent.updateStateInternal(StatefulAgent.java:586)
at com.android.commands.monkey.ape.agent.ApeAgent.updateStateWrapper(ApeAgent.java:264)
at com.android.commands.monkey.ape.agent.ApeAgent.updateState(ApeAgent.java:251)
at com.android.commands.monkey.MonkeySourceApe.generateEvents(MonkeySourceApe.java:782)
at com.android.commands.monkey.MonkeySourceApe.getNextEvent(MonkeySourceApe.java:1277)
at com.android.commands.monkey.Monkey.runMonkeyCycles(Monkey.java:1377)
at com.android.commands.monkey.Monkey.run(Monkey.java:770)
at com.android.commands.monkey.Monkey.main(Monkey.java:612)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:359)
Originally posted by @sdhuie in #4 (comment)
Tool stopped at beginning because of the Security Exception on Android R (11), when launch the activity of test package.
[APE] *** INFO *** Let's wait for activity loading...
** Error: SecurityException while injecting event.
HI, I revise some code in ape, but I don't know how to debug this. Could you tell me how you debug this code? Thank you very much !
New exception on the last build.
[APE] *** INFO *** Refinement takes 730380 ms.
[APE] >>>>>>>> SATA end step [16148][22766344531421]
[APE] Internal error
java.lang.NullPointerException: Attempt to invoke virtual method 'int com.android.commands.monkey.ape.naming.Naming$NamingResult.getNameSize()' on a null object reference
[APE] Please report this bug to developers.
at com.android.commands.monkey.ape.naming.Naming.naming(Naming.java:474)
at com.android.commands.monkey.ape.naming.Naming.getNames(Naming.java:399)
at com.android.commands.monkey.ape.tree.GUITreeBuilder.getStateKey(GUITreeBuilder.java:628)
at com.android.commands.monkey.ape.naming.AbstractPredicate.getState(AbstractPredicate.java:42)
at com.android.commands.monkey.ape.naming.AssertStatesFewerThan.eval(AssertStatesFewerThan.java:31)
at com.android.commands.monkey.ape.naming.NamingFactory.checkPredicate(NamingFactory.java:409)
at com.android.commands.monkey.ape.naming.NamingFactory.stateRefinement(NamingFactory.java:357)
at com.android.commands.monkey.ape.naming.NamingFactory.refine(NamingFactory.java:173)
at com.android.commands.monkey.ape.naming.NamingFactory.refine(NamingFactory.java:269)
at com.android.commands.monkey.ape.naming.NamingFactory.refine(NamingFactory.java:257)
at com.android.commands.monkey.ape.naming.NamingFactory.resolveNonDeterminism(NamingFactory.java:135)
at com.android.commands.monkey.ape.naming.AbstractNamingManager.resolveNonDeterminism(AbstractNamingManager.java:42)
at com.android.commands.monkey.ape.model.Model.resolveNonDeterministicTransitions(Model.java:330)
at com.android.commands.monkey.ape.agent.StatefulAgent.checkNonDeterministicTransitions(StatefulAgent.java:628)
at com.android.commands.monkey.ape.agent.StatefulAgent.updateStateInternal(StatefulAgent.java:597)
at com.android.commands.monkey.ape.agent.ApeAgent.updateStateWrapper(ApeAgent.java:265)
at com.android.commands.monkey.ape.agent.ApeAgent.updateState(ApeAgent.java:252)
at com.android.commands.monkey.MonkeySourceApe.generateEvents(MonkeySourceApe.java:788)
at com.android.commands.monkey.MonkeySourceApe.getNextEvent(MonkeySourceApe.java:1284)
at com.android.commands.monkey.Monkey.runMonkeyCycles(Monkey.java:1377)
at com.android.commands.monkey.Monkey.run(Monkey.java:770)
at com.android.commands.monkey.Monkey.main(Monkey.java:612)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:359)
Originally posted by @sdhuie in #4 (comment)
[APE] >>>>>>>> SATA end step [644][10414526109924]
[APE] Internal error
java.lang.RuntimeException: Conflict: not implement yet!
at com.android.commands.monkey.ape.naming.StateNamingManager.updateNaming(StateNamingManager.java:142)
at com.android.commands.monkey.ape.naming.StateNamingManager.updateNaming(StateNamingManager.java:75)
at com.android.commands.monkey.ape.naming.StateNamingManager.updateNaming(StateNamingManager.java:126)
at com.android.commands.monkey.ape.naming.StateNamingManager.updateNaming(StateNamingManager.java:75)
at com.android.commands.monkey.ape.naming.AbstractNamingManager.updateNaming(AbstractNamingManager.java:120)
at com.android.commands.monkey.ape.naming.NamingFactory.rebuild(NamingFactory.java:425)
at com.android.commands.monkey.ape.naming.NamingFactory.checkActionRefinement(NamingFactory.java:1070)
at com.android.commands.monkey.ape.naming.NamingFactory.actionRefinement(NamingFactory.java:1119)
at com.android.commands.monkey.ape.naming.AbstractNamingManager.actionRefinement(AbstractNamingManager.java:46)
at com.android.commands.monkey.ape.model.Model.actionRefinement(Model.java:464)
at com.android.commands.monkey.ape.agent.StatefulAgent.checkAndRefineOverAbstractedState(StatefulAgent.java:748)
at com.android.commands.monkey.ape.agent.StatefulAgent.checkOverAbstractedState(StatefulAgent.java:696)
at com.android.commands.monkey.ape.agent.StatefulAgent.preEvolveModel(StatefulAgent.java:679)
at com.android.commands.monkey.ape.agent.StatefulAgent.updateStateInternal(StatefulAgent.java:587)
at com.android.commands.monkey.ape.agent.ApeAgent.updateStateWrapper(ApeAgent.java:264)
at com.android.commands.monkey.ape.agent.ApeAgent.updateState(ApeAgent.java:251)
at com.android.commands.monkey.MonkeySourceApe.generateEvents(MonkeySourceApe.java:782)
at com.android.commands.monkey.MonkeySourceApe.getNextEvent(MonkeySourceApe.java:1277)
at com.android.commands.monkey.Monkey.runMonkeyCycles(Monkey.java:1377)
at com.android.commands.monkey.Monkey.run(Monkey.java:770)
at com.android.commands.monkey.Monkey.main(Monkey.java:612)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:359)
[APE] Please report this bug to developers.
When testing Fing on Pixel 4 (Android 10 API 29), an exception occured:
java.lang.NoSuchMethodError: No interface method setInputMethod(Landroid/os/IBinder;Ljava/lang/String;)V in class Lcom/android/internal/view/IInputMethodManager; or its super classes (declaration of 'com.android.internal.view.IInputMethodManager' appears in /system/framework/framework.jar!classes2.dex)
at com.android.commands.monkey.ape.AndroidDevice.checkAndSetInputMethod(AndroidDevice.java:198)
at com.android.commands.monkey.ape.AndroidDevice.sendIMEIntent(AndroidDevice.java:397)
at com.android.commands.monkey.ape.AndroidDevice.sendText(AndroidDevice.java:433)
at com.android.commands.monkey.MonkeySourceApe.doInput(MonkeySourceApe.java:1243)
at com.android.commands.monkey.MonkeySourceApe.generateEventsForActionInternal(MonkeySourceApe.java:851)
at com.android.commands.monkey.MonkeySourceApe.generateEventsForAction(MonkeySourceApe.java:891)
at com.android.commands.monkey.MonkeySourceApe.generateEvents(MonkeySourceApe.java:809)
at com.android.commands.monkey.MonkeySourceApe.getNextEvent(MonkeySourceApe.java:1284)
at com.android.commands.monkey.Monkey.runMonkeyCycles(Monkey.java:1377)
at com.android.commands.monkey.Monkey.run(Monkey.java:770)
at com.android.commands.monkey.Monkey.main(Monkey.java:612)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:399)
It seems that this error is triggered when ape is trying to input something.
Run cmd: adb shell CLASSPATH=/data/local/tmp/ape.jar /system/bin/app_process /data/local/tmp/ com.android.commands.monkey.Monkey -p com.contextlogic.wish --running-minutes 2 --ape sata
[APE] Rename /sdcard/sata-com.contextlogic.wish-ape-sata-running-minutes-2 to /sdcard/sata-com.contextlogic.wish-ape-sata-running-minutes-2.2
[APE] *** INFO *** InputMethod ID: com.android.inputmethod.latin/.LatinIME
[APE] Power Manager says we are interactive
[APE] Internal error
java.lang.IllegalStateException: UiAutomationService android.accessibilityservice.IAccessibilityServiceClient$Stub$Proxy@acd9443already registered!
at android.os.Parcel.readException(Parcel.java:1607)
at android.os.Parcel.readException(Parcel.java:1552)
at android.view.accessibility.IAccessibilityManager$Stub$Proxy.registerUiTestAutomationService(IAccessibilityManager.java:352)
at android.app.UiAutomationConnection.registerUiTestAutomationServiceLocked(UiAutomationConnection.java:337)
at android.app.UiAutomationConnection.connect(UiAutomationConnection.java:89)
at android.app.UiAutomation.connect(UiAutomation.java:197)
at com.android.commands.monkey.MonkeySourceApe.connect(MonkeySourceApe.java:161)
at com.android.commands.monkey.MonkeySourceApe.(MonkeySourceApe.java:231)
at com.android.commands.monkey.Monkey.run(Monkey.java:721)
at com.android.commands.monkey.Monkey.main(Monkey.java:607)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:251)
[APE] Please report this bug to developers.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.