连接ADB设备后,Android Studio界面不会重绘,并且是AVD还是硬件电话/平板电脑都没有关系.连接设备后,Studio窗口变为灰色,然后将鼠标拖动到某些区域(但不是全部)(在下面的屏幕截图中).
事件日志显示具有以下堆栈跟踪的多个Arrayindexoutofboundsexceptions:
java.lang.Arrayindexoutofboundsexception: 300 at com.intellij.openAPI.editor.impl.EditorImpl$CachedFontContent.addContent(EditorImpl.java:2973) at com.intellij.openAPI.editor.impl.EditorImpl$CachedFontContent.access00(EditorImpl.java:2914) at com.intellij.openAPI.editor.impl.EditorImpl.drawCharsCached(EditorImpl.java:3413) at com.intellij.openAPI.editor.impl.EditorImpl.drawCharsCached(EditorImpl.java:3388) at com.intellij.openAPI.editor.impl.EditorImpl.drawtablessstring(EditorImpl.java:3322) at com.intellij.openAPI.editor.impl.EditorImpl.drawTabbedString(EditorImpl.java:3255) at com.intellij.openAPI.editor.impl.EditorImpl.drawString(EditorImpl.java:3206) at com.intellij.openAPI.editor.impl.EditorImpl.drawStringWithSoftWraps(EditorImpl.java:3185) at com.intellij.openAPI.editor.impl.EditorImpl.paintText(EditorImpl.java:2794) at com.intellij.openAPI.editor.impl.EditorImpl.paint(EditorImpl.java:1986) at com.intellij.openAPI.editor.impl.EditorComponentImpl.paintComponent(EditorComponentImpl.java:153) at javax.swing.JComponent.paint(JComponent.java:1054) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JVIEwport.paint(JVIEwport.java:728) at com.intellij.ui.components.JBVIEwport.paint(JBVIEwport.java:119) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JlayeredPane.paint(JlayeredPane.java:586) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at com.intellij.ui.tabs.impl.JBTabsImpl.paintChildren(JBTabsImpl.java:2250) at javax.swing.JComponent.paint(JComponent.java:1063) at com.intellij.ui.tabs.impl.JBTabsImpl.paint(JBTabsImpl.java:2245) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at com.intellij.ui.tabs.impl.JBTabsImpl.paintChildren(JBTabsImpl.java:2250) at javax.swing.JComponent.paint(JComponent.java:1063) at com.intellij.ui.tabs.impl.JBTabsImpl.paint(JBTabsImpl.java:2245) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JlayeredPane.paint(JlayeredPane.java:586) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JlayeredPane.paint(JlayeredPane.java:586) at javax.swing.JComponent.paintChildren(JComponent.java:887) at com.intellij.openAPI.wm.impl.ToolwindowsPane.paintChildren(ToolwindowsPane.java:185) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JlayeredPane.paint(JlayeredPane.java:586) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JlayeredPane.paint(JlayeredPane.java:586) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paintToOffscreen(JComponent.java:5229) at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1572) at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1495) at javax.swing.RepaintManager.paint(RepaintManager.java:1265) at javax.swing.JComponent.paint(JComponent.java:1040) at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39) at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79) at sun.awt.SunGraphicsCallback.runcomponents(SunGraphicsCallback.java:116) at java.awt.Container.paint(Container.java:1973) at java.awt.Window.paint(Window.java:3901) at com.intellij.openAPI.wm.impl.IDeFrameImpl.paint(IDeFrameImpl.java:506) at javax.swing.RepaintManager.run(RepaintManager.java:835) at javax.swing.RepaintManager.run(RepaintManager.java:807) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain.doIntersectionPrivilege(ProtectionDomain.java:75) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:807) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:782) at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:731) at javax.swing.RepaintManager.access00(RepaintManager.java:64) at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1720) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749) at java.awt.EventQueue.access0(EventQueue.java:97) at java.awt.EventQueue.run(EventQueue.java:702) at java.awt.EventQueue.run(EventQueue.java:696) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain.doIntersectionPrivilege(ProtectionDomain.java:75) at java.awt.EventQueue.dispatchEvent(EventQueue.java:719) at com.intellij.IDe.IDeEventQueue.defaultdispatchEvent(IDeEventQueue.java:697) at com.intellij.IDe.IDeEventQueue._dispatchEvent(IDeEventQueue.java:524) at com.intellij.IDe.IDeEventQueue.dispatchEvent(IDeEventQueue.java:335) at java.awt.EventdispatchThread.pumpOneEventForFilters(EventdispatchThread.java:201) at java.awt.EventdispatchThread.pumpEventsForFilter(EventdispatchThread.java:116) at java.awt.EventdispatchThread.pumpEventsForHIErarchy(EventdispatchThread.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)[ 305215] ERROR - llij.IDe.plugins.PluginManager - AndroID Studio 1.0.2 Build #AI-135.1653844 [ 305215] ERROR - llij.IDe.plugins.PluginManager - JDK: 1.8.0_31 [ 305215] ERROR - llij.IDe.plugins.PluginManager - VM: Java HotSpot(TM) 64-Bit Server VM [ 305215] ERROR - llij.IDe.plugins.PluginManager - vendor: Oracle Corporation [ 305215] ERROR - llij.IDe.plugins.PluginManager - OS: linux [ 305215] ERROR - llij.IDe.plugins.PluginManager - Last Action: Run [ 306163] ERROR - llij.IDe.plugins.PluginManager - 300
要么
java.lang.Arrayindexoutofboundsexception: -27786341 at sun.Font.fileFontStrike.getCachedGlyPHPtr(fileFontStrike.java:472) at sun.Font.fileFontStrike.getSlot0GlyphImagePtrs(fileFontStrike.java:438) at sun.Font.CompositeStrike.getGlyphImagePtrs(CompositeStrike.java:115) at sun.Font.GlyphList.mapChars(GlyphList.java:272) at sun.Font.GlyphList.setFromString(GlyphList.java:244) at sun.java2d.pipe.GlyphListPipe.drawString(GlyphListPipe.java:71) at sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java:2928) at com.intellij.openAPI.editor.impl.EditorImpl.drawChars(EditorImpl.java:3426) at com.intellij.openAPI.editor.impl.EditorImpl.access00(EditorImpl.java:132) at com.intellij.openAPI.editor.impl.EditorImpl$CachedFontContent.flushContent(EditorImpl.java:2948) at com.intellij.openAPI.editor.impl.EditorImpl$CachedFontContent.access00(EditorImpl.java:2914) at com.intellij.openAPI.editor.impl.EditorImpl.flushCachedChars(EditorImpl.java:2989) at com.intellij.openAPI.editor.impl.EditorImpl.paintText(EditorImpl.java:2865) at com.intellij.openAPI.editor.impl.EditorImpl.paint(EditorImpl.java:1986) at com.intellij.openAPI.editor.impl.EditorComponentImpl.paintComponent(EditorComponentImpl.java:153) at javax.swing.JComponent.paint(JComponent.java:1054) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JVIEwport.paint(JVIEwport.java:728) at com.intellij.ui.components.JBVIEwport.paint(JBVIEwport.java:119) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JlayeredPane.paint(JlayeredPane.java:586) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at com.intellij.ui.tabs.impl.JBTabsImpl.paintChildren(JBTabsImpl.java:2250) at javax.swing.JComponent.paint(JComponent.java:1063) at com.intellij.ui.tabs.impl.JBTabsImpl.paint(JBTabsImpl.java:2245) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at com.intellij.ui.tabs.impl.JBTabsImpl.paintChildren(JBTabsImpl.java:2250) at javax.swing.JComponent.paint(JComponent.java:1063) at com.intellij.ui.tabs.impl.JBTabsImpl.paint(JBTabsImpl.java:2245) at javax.swing.JComponent.paintToOffscreen(JComponent.java:5222) at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1572) at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1495) at javax.swing.RepaintManager.paint(RepaintManager.java:1265) at javax.swing.JComponent._paintImmediately(JComponent.java:5170) at javax.swing.JComponent.paintImmediately(JComponent.java:4981) at javax.swing.RepaintManager.run(RepaintManager.java:824) at javax.swing.RepaintManager.run(RepaintManager.java:807) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain.doIntersectionPrivilege(ProtectionDomain.java:75) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:807) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:782) at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:731) at javax.swing.RepaintManager.access00(RepaintManager.java:64) at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1720) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749) at java.awt.EventQueue.access0(EventQueue.java:97) at java.awt.EventQueue.run(EventQueue.java:702) at java.awt.EventQueue.run(EventQueue.java:696) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain.doIntersectionPrivilege(ProtectionDomain.java:75) at java.awt.EventQueue.dispatchEvent(EventQueue.java:719) at com.intellij.IDe.IDeEventQueue.defaultdispatchEvent(IDeEventQueue.java:697) at com.intellij.IDe.IDeEventQueue._dispatchEvent(IDeEventQueue.java:524) at com.intellij.IDe.IDeEventQueue.dispatchEvent(IDeEventQueue.java:335) at java.awt.EventdispatchThread.pumpOneEventForFilters(EventdispatchThread.java:201) at java.awt.EventdispatchThread.pumpEventsForFilter(EventdispatchThread.java:116) at java.awt.EventdispatchThread.pumpEventsForHIErarchy(EventdispatchThread.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)
我使用linux x64和Oracle java 1.8.0_31.
接口冻结示例:
是什么原因?我怎样才能解决这个问题?
更新
更新至OpenSUSE 13.2,Oracle Java 1.8.0_40,AndroID Studio 1.1.0. BUG仍然在这里.
解决方法:
如果您还没有找到答案,那么我也遇到了同样的问题,并在此线程中找到了答案:
Android-Studio is unusable with ArrayOutOfBounds exceptions while USB debugging
本质上,sudo zypper rm texlive-arphic-Fonts为我完成了窍门.
总结以上是内存溢出为你收集整理的Java-连接设备后,Android Studio界面不会重绘全部内容,希望文章能够帮你解决Java-连接设备后,Android Studio界面不会重绘所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)