MonkeyRecorde启动报错
报错信息如下:
D:\Android\android-sdk\tools\bin>monkeyrunner monkey_recorder.py
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] Unable to take snapshot
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce]java.io.IOException: EOF
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at com.android.ddmlib.AdbHelper.read(AdbHelper.java:874)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at com.android.ddmlib.AdbHelper.getFrameBuffer(AdbHelper.java:333)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at com.android.ddmlib.Device.getScreenshot(Device.java:545)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at com.android.ddmlib.Device.getScreenshot(Device.java:539)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at com.android.chimpchat.adb.AdbChimpDevice.takeSnapshot(AdbChimpDevice.
java:210)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at com.android.monkeyrunner.recorder.MonkeyRecorderFrame.refreshDisplay(
MonkeyRecorderFrame.java:115)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at com.android.monkeyrunner.recorder.MonkeyRecorderFrame.access$000(Monk
eyRecorderFrame.java:60)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at com.android.monkeyrunner.recorder.MonkeyRecorderFrame$2.run(MonkeyRec
orderFrame.java:109)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventQueue.access$500(EventQueue.java:97)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventQueue$3.run(EventQueue.java:709)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventQueue$3.run(EventQueue.java:703)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.security.AccessController.doPrivileged(Native Method)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP
rivilege(ProtectionDomain.java:80)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:201)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:116)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:105)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
190423 11:08:34.054:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Exception in thread
at com.android.monkeyrunner.recorder.MonkeyRecorderFrame.refreshDisplay(
MonkeyRecorderFrame.java:116)
at com.android.monkeyrunner.recorder.MonkeyRecorderFrame.access$000(Monk
eyRecorderFrame.java:60)
at com.android.monkeyrunner.recorder.MonkeyRecorderFrame$2.run(MonkeyRec
orderFrame.java:109)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP
rivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] Unable to take snapshot
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce]java.io.IOException: EOF
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at com.android.ddmlib.AdbHelper.read(AdbHelper.java:874)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at com.android.ddmlib.AdbHelper.getFrameBuffer(AdbHelper.java:333)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at com.android.ddmlib.Device.getScreenshot(Device.java:545)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at com.android.ddmlib.Device.getScreenshot(Device.java:539)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at com.android.chimpchat.adb.AdbChimpDevice.takeSnapshot(AdbChimpDevice.
java:210)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at com.android.monkeyrunner.recorder.MonkeyRecorderFrame.refreshDisplay(
MonkeyRecorderFrame.java:115)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at com.android.monkeyrunner.recorder.MonkeyRecorderFrame.access$000(Monk
eyRecorderFrame.java:60)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at com.android.monkeyrunner.recorder.MonkeyRecorderFrame$1.actionPerform
ed(MonkeyRecorderFrame.java:89)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at javax.swing.Timer.fireActionPerformed(Timer.java:313)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventQueue.access$500(EventQueue.java:97)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventQueue$3.run(EventQueue.java:709)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventQueue$3.run(EventQueue.java:703)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.security.AccessController.doPrivileged(Native Method)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP
rivilege(ProtectionDomain.java:80)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:201)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:116)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:105)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
190423 11:08:35.201:S [AWT-EventQueue-0] [com.android.chimpchat.adb.AdbChimpDevi
ce] at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.android.monkeyrunner.recorder.MonkeyRecorderFrame.refreshDisplay(
MonkeyRecorderFrame.java:116)
at com.android.monkeyrunner.recorder.MonkeyRecorderFrame.access$000(Monk
eyRecorderFrame.java:60)
at com.android.monkeyrunner.recorder.MonkeyRecorderFrame$1.actionPerform
ed(MonkeyRecorderFrame.java:89)
at javax.swing.Timer.fireActionPerformed(Timer.java:313)
at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP
rivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)