java - Android Device Monitor fails with "unexpected error while parsing input: Invalid uiautomator hierarchy file -
i looked through others questions similar issue error log , stack trace different. in case running on osx 10.11.6. android device monitor, version: 25.2.2.
when start android device monitor (monitor) @ command line, error dialog displayed:
in stack dump, it's looking file
/var/folders/5g/8_lp975j6h3d67sc32sqkq3c0000gp/t/uiautomatorviewer_6077102350746730072/dump_7454833342327499247.uix
i looked in directory , it's right, file doesn't exist.
the gui display, unusable. how can fix this?
here full stack dump.
$ monitor java.io.filenotfoundexception: /var/folders/5g/8_lp975j6h3d67sc32sqkq3c0000gp/t/uiautomatorviewer_6077102350746730072/dump_7454833342327499247.uix (no such file or directory) @ java.io.fileinputstream.open0(native method) @ java.io.fileinputstream.open(fileinputstream.java:195) @ java.io.fileinputstream.(fileinputstream.java:138) @ java.io.fileinputstream.(fileinputstream.java:93) @ sun.net.www.protocol.file.fileurlconnection.connect(fileurlconnection.java:90) @ sun.net.www.protocol.file.fileurlconnection.getinputstream(fileurlconnection.java:188) @ com.sun.org.apache.xerces.internal.impl.xmlentitymanager.setupcurrententity(xmlentitymanager.java:622) @ com.sun.org.apache.xerces.internal.impl.xmlversiondetector.determinedocversion(xmlversiondetector.java:189) @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(xml11configuration.java:812) @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(xml11configuration.java:777) @ com.sun.org.apache.xerces.internal.parsers.xmlparser.parse(xmlparser.java:141) @ com.sun.org.apache.xerces.internal.parsers.abstractsaxparser.parse(abstractsaxparser.java:1213) @ com.sun.org.apache.xerces.internal.jaxp.saxparserimpl$jaxpsaxparser.parse(saxparserimpl.java:649) @ com.sun.org.apache.xerces.internal.jaxp.saxparserimpl.parse(saxparserimpl.java:333) @ javax.xml.parsers.saxparser.parse(saxparser.java:328) @ com.android.uiautomator.tree.uihierarchyxmlloader.parsexml(uihierarchyxmlloader.java:130) @ com.android.uiautomator.uiautomatormodel.(uiautomatormodel.java:51) @ com.android.ide.eclipse.ddms.editors.uiautomatorviewer.createpartcontrol(uiautomatorviewer.java:105) @ org.eclipse.ui.internal.e4.compatibility.compatibilitypart.createpartcontrol(compatibilitypart.java:138) @ org.eclipse.ui.internal.e4.compatibility.compatibilityeditor.createpartcontrol(compatibilityeditor.java:96) @ org.eclipse.ui.internal.e4.compatibility.compatibilitypart.create(compatibilitypart.java:313) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:497) @ org.eclipse.e4.core.internal.di.methodrequestor.execute(methodrequestor.java:56) @ org.eclipse.e4.core.internal.di.injectorimpl.processannotated(injectorimpl.java:861) @ org.eclipse.e4.core.internal.di.injectorimpl.processannotated(injectorimpl.java:841) @ org.eclipse.e4.core.internal.di.injectorimpl.inject(injectorimpl.java:113) @ org.eclipse.e4.core.internal.di.injectorimpl.internalmake(injectorimpl.java:321) @ org.eclipse.e4.core.internal.di.injectorimpl.make(injectorimpl.java:242) @ org.eclipse.e4.core.contexts.contextinjectionfactory.make(contextinjectionfactory.java:161) @ org.eclipse.e4.ui.internal.workbench.reflectioncontributionfactory.createfrombundle(reflectioncontributionfactory.java:102) @ org.eclipse.e4.ui.internal.workbench.reflectioncontributionfactory.docreate(reflectioncontributionfactory.java:71) @ org.eclipse.e4.ui.internal.workbench.reflectioncontributionfactory.create(reflectioncontributionfactory.java:53) @ org.eclipse.e4.ui.workbench.renderers.swt.contributedpartrenderer.createwidget(contributedpartrenderer.java:141) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.createwidget(partrenderingengine.java:894) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:629) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:731) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.access$2(partrenderingengine.java:702) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine$7.run(partrenderingengine.java:696) @ org.eclipse.core.runtime.saferunner.run(saferunner.java:42) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.creategui(partrenderingengine.java:681) @ org.eclipse.e4.ui.workbench.renderers.swt.stackrenderer.showtab(stackrenderer.java:1115) @ org.eclipse.e4.ui.workbench.renderers.swt.lazystackrenderer.postprocess(lazystackrenderer.java:98) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:645) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:731) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.access$2(partrenderingengine.java:702) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine$7.run(partrenderingengine.java:696) @ org.eclipse.core.runtime.saferunner.run(saferunner.java:42) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.creategui(partrenderingengine.java:681) @ org.eclipse.e4.ui.workbench.renderers.swt.swtpartrenderer.processcontents(swtpartrenderer.java:59) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:641) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine$6.run(partrenderingengine.java:520) @ org.eclipse.core.runtime.saferunner.run(saferunner.java:42) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.creategui(partrenderingengine.java:505) @ org.eclipse.e4.ui.workbench.renderers.swt.elementreferencerenderer.createwidget(elementreferencerenderer.java:74) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.createwidget(partrenderingengine.java:894) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:629) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:731) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.access$2(partrenderingengine.java:702) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine$7.run(partrenderingengine.java:696) @ org.eclipse.core.runtime.saferunner.run(saferunner.java:42) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.creategui(partrenderingengine.java:681) @ org.eclipse.e4.ui.workbench.renderers.swt.swtpartrenderer.processcontents(swtpartrenderer.java:59) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:641) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:731) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.access$2(partrenderingengine.java:702) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine$7.run(partrenderingengine.java:696) @ org.eclipse.core.runtime.saferunner.run(saferunner.java:42) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.creategui(partrenderingengine.java:681) @ org.eclipse.e4.ui.workbench.renderers.swt.swtpartrenderer.processcontents(swtpartrenderer.java:59) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:641) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:731) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.access$2(partrenderingengine.java:702) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine$7.run(partrenderingengine.java:696) @ org.eclipse.core.runtime.saferunner.run(saferunner.java:42) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.creategui(partrenderingengine.java:681) @ org.eclipse.e4.ui.workbench.renderers.swt.swtpartrenderer.processcontents(swtpartrenderer.java:59) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:641) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:731) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.access$2(partrenderingengine.java:702) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine$7.run(partrenderingengine.java:696) @ org.eclipse.core.runtime.saferunner.run(saferunner.java:42) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.creategui(partrenderingengine.java:681) @ org.eclipse.e4.ui.workbench.renderers.swt.swtpartrenderer.processcontents(swtpartrenderer.java:59) @ org.eclipse.e4.ui.workbench.renderers.swt.perspectiverenderer.processcontents(perspectiverenderer.java:59) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:641) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:731) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.access$2(partrenderingengine.java:702) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine$7.run(partrenderingengine.java:696) @ org.eclipse.core.runtime.saferunner.run(saferunner.java:42) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.creategui(partrenderingengine.java:681) @ org.eclipse.e4.ui.workbench.renderers.swt.perspectivestackrenderer.showtab(perspectivestackrenderer.java:103) @ org.eclipse.e4.ui.workbench.renderers.swt.lazystackrenderer.postprocess(lazystackrenderer.java:98) @ org.eclipse.e4.ui.workbench.renderers.swt.perspectivestackrenderer.postprocess(perspectivestackrenderer.java:77) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:645) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:731) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.access$2(partrenderingengine.java:702) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine$7.run(partrenderingengine.java:696) @ org.eclipse.core.runtime.saferunner.run(saferunner.java:42) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.creategui(partrenderingengine.java:681) @ org.eclipse.e4.ui.workbench.renderers.swt.swtpartrenderer.processcontents(swtpartrenderer.java:59) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:641) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:731) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.access$2(partrenderingengine.java:702) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine$7.run(partrenderingengine.java:696) @ org.eclipse.core.runtime.saferunner.run(saferunner.java:42) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.creategui(partrenderingengine.java:681) @ org.eclipse.e4.ui.workbench.renderers.swt.swtpartrenderer.processcontents(swtpartrenderer.java:59) @ org.eclipse.e4.ui.workbench.renderers.swt.wbwrenderer.processcontents(wbwrenderer.java:644) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:641) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.safecreategui(partrenderingengine.java:731) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.access$2(partrenderingengine.java:702) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine$7.run(partrenderingengine.java:696) @ org.eclipse.core.runtime.saferunner.run(saferunner.java:42) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.creategui(partrenderingengine.java:681) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine$9.run(partrenderingengine.java:987) @ org.eclipse.core.databinding.observable.realm.runwithdefault(realm.java:332) @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.run(partrenderingengine.java:942) @ org.eclipse.e4.ui.internal.workbench.e4workbench.createandrunui(e4workbench.java:86) @ org.eclipse.ui.internal.workbench$5.run(workbench.java:588) @ org.eclipse.core.databinding.observable.realm.runwithdefault(realm.java:332) @ org.eclipse.ui.internal.workbench.createandrunworkbench(workbench.java:543) @ org.eclipse.ui.platformui.createandrunworkbench(platformui.java:149) @ com.android.ide.eclipse.monitor.monitorapplication.start(monitorapplication.java:86) @ org.eclipse.equinox.internal.app.eclipseapphandle.run(eclipseapphandle.java:196) @ org.eclipse.core.runtime.internal.adaptor.eclipseapplauncher.runapplication(eclipseapplauncher.java:110) @ org.eclipse.core.runtime.internal.adaptor.eclipseapplauncher.start(eclipseapplauncher.java:79) @ org.eclipse.core.runtime.adaptor.eclipsestarter.run(eclipsestarter.java:353) @ org.eclipse.core.runtime.adaptor.eclipsestarter.run(eclipsestarter.java:180) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:497) @ org.eclipse.equinox.launcher.main.invokeframework(main.java:629) @ org.eclipse.equinox.launcher.main.basicrun(main.java:584) @ org.eclipse.equinox.launcher.main.run(main.java:1438) null rootnode after parsing.
you need first kill monitor.exe
if exists, , remove $home/.android/monitor-workspace
.
corresponding issue: https://code.google.com/p/android/issues/detail?id=72420
see question: unexpected error while parsing input invalid uiautomator hierarchy file
Comments
Post a Comment