You are not logged in.

#1 2016-12-18 13:17:17

TheSilent
Member
Registered: 2016-11-26
Posts: 3

Crash in Android Studio in Colorpicker

Hello there,

I've a problem each time I click the color picker (choose color for UI components) in android studio it crashes with a fatal error and dumps a log into my home folder. From the log I suggest it's a problem with libawt_xawt.so but I've no clue what it does or what it's part of.
I've tried running android-studio with the open-jdk8 installed on my stystem instead of the jre android studio comes with, but the same problem occurred. So it doesn't seem to be a problem with the jre.

This is part of the log:
I only put in the THREAD part because it would've been to big otherwise. If you need the PROCESS or the SYSTEM part I can provide that too.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fcac80b1d69, pid=23220, tid=0x00007fca84263700
#
# JRE version: OpenJDK Runtime Environment (8.0_112-b15) (build 1.8.0_112-b15)
# Java VM: OpenJDK 64-Bit Server VM (25.112-b15 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libawt_xawt.so+0x3fd69]
#
# Core dump written. Default location: /opt/android-studio/bin/core or core.23220
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  T H R E A D  ---------------

Current thread (0x00007fca8019e000):  JavaThread "AWT-EventQueue-0 2.2#AI-145.3537739 Studio, eap:false, os:Linux 4.8.13-1-arch, java-version:Oracle Corporation 1.8.0_112-b15" [_thread_in_native, id=23246, stack(0x00007fca84163000,0x00007fca84264000)]

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000000068

Registers:
RAX=0x0000000000000000, RBX=0x0000000000000000, RCX=0x000000000000ffff, RDX=0x0000000000000000
RSP=0x00007fca8425f370, RBP=0x00007fca8425f450, RSI=0x0000000000000000, RDI=0x0000000000000000
R8 =0x0000000000000001, R9 =0x00007fca6b010400, R10=0x00007fca8425f414, R11=0x0000000000000002
R12=0x0000000000000000, R13=0x0000000000000000, R14=0x00007fca6b0079e0, R15=0x00007fca6b007990
RIP=0x00007fcac80b1d69, EFLAGS=0x0000000000010246, CSGSFS=0x002b000000000033, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007fca8425f370)
0x00007fca8425f370:   00007fca6b007c80 0001000100000000
0x00007fca8425f380:   0000000000000001 00007fca8425f40c
0x00007fca8425f390:   00007fca8425f418 00007fca8425f414
0x00007fca8425f3a0:   00007fca8425f410 0000000100000002
0x00007fca8425f3b0:   00007fca00000000 00007fca8425f400
0x00007fca8425f3c0:   00007fca00000000 00007fcae8816f30
0x00007fca8425f3d0:   00007fca6b007920 0000000000000000
0x00007fca8425f3e0:   0000000100000000 0000000000000000
0x00007fca8425f3f0:   05a0087000000000 0000000100000000
0x00007fca8425f400:   0000000000000000 0000001000000000
0x00007fca8425f410:   0000000000000008 00007fca6b00eb60
0x00007fca8425f420:   0000001800000000 0000000000000000
0x00007fca8425f430:   0000000000000001 0001000100000000
0x00007fca8425f440:   00007fca8425f4d0 0000000000000000
0x00007fca8425f450:   00007fca8425f540 00007fcac80b23a4
0x00007fca8425f460:   00007fca6b0078e0 00007fcac80b235d
0x00007fca8425f470:   0000000000da0033 0000000000420000
0x00007fca8425f480:   0000000000000000 00007fcae8816f30
0x00007fca8425f490:   00007fcae8812680 00007fca00000001
0x00007fca8425f4a0:   00007fca8425f5e8 00007fcae8816f30
0x00007fca8425f4b0:   00007fca8425f5e8 0000000000000270
0x00007fca8425f4c0:   00007fca8425f500 00007fca8425f4fc
0x00007fca8425f4d0:   0000000000000000 00007fcac80b2231
0x00007fca8425f4e0:   00007fca00000005 0000000000ff0000
0x00007fca8425f4f0:   000000000000ff00 00000000000000ff
0x00007fca8425f500:   0000010000000008 0000000000000000
0x00007fca8425f510:   00007fca8425f530 0000000000000000
0x00007fca8425f520:   00007fcae8816f30 0000000000000000
0x00007fca8425f530:   0000000000000270 00007fca8019e1e0
0x00007fca8425f540:   00007fca8425f630 00007fcac80a9e70
0x00007fca8425f550:   00000000000000f0 00007fca6b00af50
0x00007fca8425f560:   0000000000000000 0000000000000000 

Instructions: (pc=0x00007fcac80b1d69)
0x00007fcac80b1d49:   89 45 a8 0f 8e 94 00 00 00 8b 75 90 45 31 ed 01
0x00007fcac80b1d59:   c6 89 75 a0 0f 1f 00 44 89 ee 8b 55 a8 48 89 df
0x00007fcac80b1d69:   ff 53 68 4d 8b 4f 08 48 98 8b 4d bc 48 89 c2 48
0x00007fcac80b1d79:   89 c7 48 8b 75 c8 49 23 51 18 49 23 79 20 49 23 

Register to memory mapping:

RAX=0x0000000000000000 is an unknown value
RBX=0x0000000000000000 is an unknown value
RCX=0x000000000000ffff is an unknown value
RDX=0x0000000000000000 is an unknown value
RSP=0x00007fca8425f370 is pointing into the stack for thread: 0x00007fca8019e000
RBP=0x00007fca8425f450 is pointing into the stack for thread: 0x00007fca8019e000
RSI=0x0000000000000000 is an unknown value
RDI=0x0000000000000000 is an unknown value
R8 =0x0000000000000001 is an unknown value
R9 =0x00007fca6b010400 is an unknown value
R10=0x00007fca8425f414 is pointing into the stack for thread: 0x00007fca8019e000
R11=0x0000000000000002 is an unknown value
R12=0x0000000000000000 is an unknown value
R13=0x0000000000000000 is an unknown value
R14=0x00007fca6b0079e0 is an unknown value
R15=0x00007fca6b007990 is an unknown value


Stack: [0x00007fca84163000,0x00007fca84264000],  sp=0x00007fca8425f370,  free space=1008k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libawt_xawt.so+0x3fd69]
C  [libawt_xawt.so+0x403a4]
C  [libawt_xawt.so+0x37e70]  Java_sun_awt_X11_XRobotPeer_getRGBPixelsImpl+0x120
j  sun.awt.X11.XRobotPeer.getRGBPixelsImpl(Lsun/awt/X11GraphicsConfig;IIII[I)V+0
j  sun.awt.X11.XRobotPeer.getRGBPixels(Ljava/awt/Rectangle;)[I+33
j  java.awt.Robot.createScreenCapture(Ljava/awt/Rectangle;)Ljava/awt/image/BufferedImage;+50
j  com.android.tools.idea.ui.resourcechooser.ColorPicker$ColorPipette.isAvailable()Z+20
j  com.android.tools.idea.ui.resourcechooser.ColorPicker.buildTopPanel(Z)Ljavax/swing/JComponent;+170
j  com.android.tools.idea.ui.resourcechooser.ColorPicker.<init>(Lcom/intellij/openapi/Disposable;Ljava/awt/Color;Z[Lcom/intellij/ui/ColorPickerListener;Z)V+393
j  com.android.tools.idea.ui.resourcechooser.ColorPicker.<init>(Lcom/intellij/openapi/Disposable;Ljava/awt/Color;Z[Lcom/intellij/ui/ColorPickerListener;)V+7
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog.initializeColorPicker(Ljava/lang/String;Lcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog$ResourceNameVisibility;Lcom/android/ide/common/resources/ResourceResolver;Lcom/android/ide/common/rendering/api/ResourceValue;)V+63
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog.ensurePickersInitialized()V+141
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog.access$2800(Lcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog;)V+1
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$ResourcePanel.showEditorPanel()V+195
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$ResourcePanel.showPreview(Lcom/android/tools/idea/ui/resourcechooser/ResourceChooserItem;Z)V+152
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$ResourcePanel.showPreview(Lcom/android/tools/idea/ui/resourcechooser/ResourceChooserItem;)V+7
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$ResourcePanel.lambda$createListPanel$118(Ljavax/swing/event/ListSelectionEvent;)V+5
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$ResourcePanel$$Lambda$221.valueChanged(Ljavax/swing/event/ListSelectionEvent;)V+5
j  javax.swing.DefaultListSelectionModel.fireValueChanged(IIZ)V+64
j  javax.swing.DefaultListSelectionModel.fireValueChanged(II)V+7
j  javax.swing.DefaultListSelectionModel.fireValueChanged()V+70
j  javax.swing.DefaultListSelectionModel.changeSelection(IIIIZ)V+92
j  javax.swing.DefaultListSelectionModel.changeSelection(IIII)V+7
j  javax.swing.DefaultListSelectionModel.setSelectionInterval(II)V+59
j  javax.swing.JList.setSelectedIndex(I)V+20
j  com.android.tools.idea.ui.resourcechooser.TreeGrid.setSelectedElement(Ljava/lang/Object;)V+73
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$ResourcePanel.setSelectedItem(Lcom/android/tools/idea/ui/resourcechooser/ResourceChooserItem;)V+12
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$ResourcePanel.select(Lcom/android/ide/common/rendering/api/ResourceValue;)Z+152
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$ResourcePanel.access$100(Lcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog$ResourcePanel;Lcom/android/ide/common/rendering/api/ResourceValue;)Z+2
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog.selectResourceValue(Lcom/android/ide/common/rendering/api/ResourceValue;)V+86
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog.<init>(Lorg/jetbrains/android/facet/AndroidFacet;Lcom/android/tools/idea/configurations/Configuration;Lcom/intellij/psi/xml/XmlTag;Ljava/util/EnumSet;Ljava/lang/String;ZLcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog$ResourceNameVisibility;Ljava/lang/String;Z)V+397
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog.<init>(Lorg/jetbrains/android/facet/AndroidFacet;Lcom/android/tools/idea/configurations/Configuration;Lcom/intellij/psi/xml/XmlTag;Ljava/util/EnumSet;Ljava/lang/String;ZLcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog$ResourceNameVisibility;Ljava/lang/String;ZLcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog$1;)V+16
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$Builder.build()Lcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog;+120
j  com.android.tools.idea.uibuilder.property.editors.BrowsePanel.showResourceChooser(Lcom/android/tools/idea/uibuilder/property/NlProperty;)Lcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog;+57
j  com.android.tools.idea.uibuilder.property.editors.BrowsePanel.displayResourcePicker()V+16
j  com.android.tools.idea.uibuilder.property.editors.BrowsePanel.access$100(Lcom/android/tools/idea/uibuilder/property/editors/BrowsePanel;)V+1
j  com.android.tools.idea.uibuilder.property.editors.BrowsePanel$1.actionPerformed(Lcom/intellij/openapi/actionSystem/AnActionEvent;)V+4
j  com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(Lcom/intellij/openapi/actionSystem/AnAction;Lcom/intellij/openapi/actionSystem/AnActionEvent;)V+2
j  com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(Lcom/intellij/openapi/actionSystem/AnActionEvent;)V+126
j  com.intellij.openapi.actionSystem.impl.ActionButton.performAction(Ljava/awt/event/MouseEvent;)V+87
j  com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(Ljava/awt/event/MouseEvent;)V+130
J 10550 C1 java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V (220 bytes) @ 0x00007fcada6ab2dc [0x00007fcada6aadc0+0x51c]
J 7149 C1 java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V (22 bytes) @ 0x00007fcad9b7d284 [0x00007fcad9b7cf60+0x324]
J 19213 C1 java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V (883 bytes) @ 0x00007fcadbd7d314 [0x00007fcadbd77e80+0x5494]
J 18007 C1 java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V (129 bytes) @ 0x00007fcadb9e04a4 [0x00007fcadb9e0360+0x144]
J 15461 C1 java.awt.LightweightDispatcher.retargetMouseEvent(Ljava/awt/Component;ILjava/awt/event/MouseEvent;)V (350 bytes) @ 0x00007fcadb3e30f4 [0x00007fcadb3e0ba0+0x2554]
j  java.awt.LightweightDispatcher.processMouseEvent(Ljava/awt/event/MouseEvent;)Z+155
J 18034 C1 java.awt.LightweightDispatcher.dispatchEvent(Ljava/awt/AWTEvent;)Z (73 bytes) @ 0x00007fcad95bc2b4 [0x00007fcad95bbe80+0x434]
J 18007 C1 java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V (129 bytes) @ 0x00007fcadb9e0444 [0x00007fcadb9e0360+0xe4]
J 17979 C1 java.awt.Window.dispatchEventImpl(Ljava/awt/AWTEvent;)V (23 bytes) @ 0x00007fcadb9a9644 [0x00007fcadb9a9060+0x5e4]
J 10977 C1 java.awt.EventQueue.dispatchEventImpl(Ljava/awt/AWTEvent;Ljava/lang/Object;)V (149 bytes) @ 0x00007fcada94a134 [0x00007fcada948900+0x1834]
J 10975 C1 java.awt.EventQueue$3.run()Ljava/lang/Void; (60 bytes) @ 0x00007fcada93fb04 [0x00007fcada93f900+0x204]
J 10974 C1 java.awt.EventQueue$3.run()Ljava/lang/Object; (5 bytes) @ 0x00007fcada92df4c [0x00007fcada92dec0+0x8c]
v  ~StubRoutines::call_stub
V  [libjvm.so+0x644fe3]
V  [libjvm.so+0x68c254]  JVM_DoPrivileged+0x444
J 5534  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object; (0 bytes) @ 0x00007fcad995ea15 [0x00007fcad995e940+0xd5]
J 15749 C1 java.awt.EventQueue$4.run()Ljava/lang/Object; (5 bytes) @ 0x00007fcadb490ae4 [0x00007fcadb4906c0+0x424]
v  ~StubRoutines::call_stub
V  [libjvm.so+0x644fe3]
V  [libjvm.so+0x68c254]  JVM_DoPrivileged+0x444
J 5534  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object; (0 bytes) @ 0x00007fcad995ea15 [0x00007fcad995e940+0xd5]
J 16406 C1 java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V (80 bytes) @ 0x00007fcadb186354 [0x00007fcadb185500+0xe54]
J 7503 C1 com.intellij.ide.IdeEventQueue.defaultDispatchEvent(Ljava/awt/AWTEvent;)V (52 bytes) @ 0x00007fcada1a80f4 [0x00007fcada1a7ee0+0x214]
J 17191 C1 com.intellij.ide.IdeEventQueue._dispatchEvent(Ljava/awt/AWTEvent;Z)V (787 bytes) @ 0x00007fcadb787a5c [0x00007fcadb7810c0+0x699c]
J 7255 C1 com.intellij.ide.IdeEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V (312 bytes) @ 0x00007fcada15a6f4 [0x00007fcada159e80+0x874]
J 10375 C1 java.awt.EventDispatchThread.pumpOneEventForFilters(I)V (295 bytes) @ 0x00007fcada7f6844 [0x00007fcada7f5f80+0x8c4]
j  java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+35
j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j  java.awt.EventDispatchThread.run()V+9
v  ~StubRoutines::call_stub
V  [libjvm.so+0x644fe3]
V  [libjvm.so+0x642737]
V  [libjvm.so+0x642d07]
V  [libjvm.so+0x67f125]
V  [libjvm.so+0x9d341f]
V  [libjvm.so+0x9d37f5]
V  [libjvm.so+0x883612]
C  [libpthread.so.0+0x7454]  start_thread+0xc4

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  sun.awt.X11.XRobotPeer.getRGBPixelsImpl(Lsun/awt/X11GraphicsConfig;IIII[I)V+0
j  sun.awt.X11.XRobotPeer.getRGBPixels(Ljava/awt/Rectangle;)[I+33
j  java.awt.Robot.createScreenCapture(Ljava/awt/Rectangle;)Ljava/awt/image/BufferedImage;+50
j  com.android.tools.idea.ui.resourcechooser.ColorPicker$ColorPipette.isAvailable()Z+20
j  com.android.tools.idea.ui.resourcechooser.ColorPicker.buildTopPanel(Z)Ljavax/swing/JComponent;+170
j  com.android.tools.idea.ui.resourcechooser.ColorPicker.<init>(Lcom/intellij/openapi/Disposable;Ljava/awt/Color;Z[Lcom/intellij/ui/ColorPickerListener;Z)V+393
j  com.android.tools.idea.ui.resourcechooser.ColorPicker.<init>(Lcom/intellij/openapi/Disposable;Ljava/awt/Color;Z[Lcom/intellij/ui/ColorPickerListener;)V+7
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog.initializeColorPicker(Ljava/lang/String;Lcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog$ResourceNameVisibility;Lcom/android/ide/common/resources/ResourceResolver;Lcom/android/ide/common/rendering/api/ResourceValue;)V+63
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog.ensurePickersInitialized()V+141
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog.access$2800(Lcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog;)V+1
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$ResourcePanel.showEditorPanel()V+195
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$ResourcePanel.showPreview(Lcom/android/tools/idea/ui/resourcechooser/ResourceChooserItem;Z)V+152
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$ResourcePanel.showPreview(Lcom/android/tools/idea/ui/resourcechooser/ResourceChooserItem;)V+7
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$ResourcePanel.lambda$createListPanel$118(Ljavax/swing/event/ListSelectionEvent;)V+5
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$ResourcePanel$$Lambda$221.valueChanged(Ljavax/swing/event/ListSelectionEvent;)V+5
j  javax.swing.DefaultListSelectionModel.fireValueChanged(IIZ)V+64
j  javax.swing.DefaultListSelectionModel.fireValueChanged(II)V+7
j  javax.swing.DefaultListSelectionModel.fireValueChanged()V+70
j  javax.swing.DefaultListSelectionModel.changeSelection(IIIIZ)V+92
j  javax.swing.DefaultListSelectionModel.changeSelection(IIII)V+7
j  javax.swing.DefaultListSelectionModel.setSelectionInterval(II)V+59
j  javax.swing.JList.setSelectedIndex(I)V+20
j  com.android.tools.idea.ui.resourcechooser.TreeGrid.setSelectedElement(Ljava/lang/Object;)V+73
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$ResourcePanel.setSelectedItem(Lcom/android/tools/idea/ui/resourcechooser/ResourceChooserItem;)V+12
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$ResourcePanel.select(Lcom/android/ide/common/rendering/api/ResourceValue;)Z+152
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$ResourcePanel.access$100(Lcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog$ResourcePanel;Lcom/android/ide/common/rendering/api/ResourceValue;)Z+2
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog.selectResourceValue(Lcom/android/ide/common/rendering/api/ResourceValue;)V+86
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog.<init>(Lorg/jetbrains/android/facet/AndroidFacet;Lcom/android/tools/idea/configurations/Configuration;Lcom/intellij/psi/xml/XmlTag;Ljava/util/EnumSet;Ljava/lang/String;ZLcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog$ResourceNameVisibility;Ljava/lang/String;Z)V+397
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog.<init>(Lorg/jetbrains/android/facet/AndroidFacet;Lcom/android/tools/idea/configurations/Configuration;Lcom/intellij/psi/xml/XmlTag;Ljava/util/EnumSet;Ljava/lang/String;ZLcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog$ResourceNameVisibility;Ljava/lang/String;ZLcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog$1;)V+16
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$Builder.build()Lcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog;+120
j  com.android.tools.idea.uibuilder.property.editors.BrowsePanel.showResourceChooser(Lcom/android/tools/idea/uibuilder/property/NlProperty;)Lcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog;+57
j  com.android.tools.idea.uibuilder.property.editors.BrowsePanel.displayResourcePicker()V+16
j  com.android.tools.idea.uibuilder.property.editors.BrowsePanel.access$100(Lcom/android/tools/idea/uibuilder/property/editors/BrowsePanel;)V+1
j  com.android.tools.idea.uibuilder.property.editors.BrowsePanel$1.actionPerformed(Lcom/intellij/openapi/actionSystem/AnActionEvent;)V+4
j  com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(Lcom/intellij/openapi/actionSystem/AnAction;Lcom/intellij/openapi/actionSystem/AnActionEvent;)V+2
j  com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(Lcom/intellij/openapi/actionSystem/AnActionEvent;)V+126
j  com.intellij.openapi.actionSystem.impl.ActionButton.performAction(Ljava/awt/event/MouseEvent;)V+87
j  com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(Ljava/awt/event/MouseEvent;)V+130
J 10550 C1 java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V (220 bytes) @ 0x00007fcada6ab2dc [0x00007fcada6aadc0+0x51c]
J 7149 C1 java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V (22 bytes) @ 0x00007fcad9b7d284 [0x00007fcad9b7cf60+0x324]
J 19213 C1 java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V (883 bytes) @ 0x00007fcadbd7d314 [0x00007fcadbd77e80+0x5494]
J 18007 C1 java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V (129 bytes) @ 0x00007fcadb9e04a4 [0x00007fcadb9e0360+0x144]
J 15461 C1 java.awt.LightweightDispatcher.retargetMouseEvent(Ljava/awt/Component;ILjava/awt/event/MouseEvent;)V (350 bytes) @ 0x00007fcadb3e30f4 [0x00007fcadb3e0ba0+0x2554]
j  java.awt.LightweightDispatcher.processMouseEvent(Ljava/awt/event/MouseEvent;)Z+155
J 18034 C1 java.awt.LightweightDispatcher.dispatchEvent(Ljava/awt/AWTEvent;)Z (73 bytes) @ 0x00007fcad95bc2b4 [0x00007fcad95bbe80+0x434]
J 18007 C1 java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V (129 bytes) @ 0x00007fcadb9e0444 [0x00007fcadb9e0360+0xe4]
J 17979 C1 java.awt.Window.dispatchEventImpl(Ljava/awt/AWTEvent;)V (23 bytes) @ 0x00007fcadb9a9644 [0x00007fcadb9a9060+0x5e4]
J 10977 C1 java.awt.EventQueue.dispatchEventImpl(Ljava/awt/AWTEvent;Ljava/lang/Object;)V (149 bytes) @ 0x00007fcada94a134 [0x00007fcada948900+0x1834]
J 10975 C1 java.awt.EventQueue$3.run()Ljava/lang/Void; (60 bytes) @ 0x00007fcada93fb04 [0x00007fcada93f900+0x204]
J 10974 C1 java.awt.EventQueue$3.run()Ljava/lang/Object; (5 bytes) @ 0x00007fcada92df4c [0x00007fcada92dec0+0x8c]
v  ~StubRoutines::call_stub
J 5534  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object; (0 bytes) @ 0x00007fcad995e9a3 [0x00007fcad995e940+0x63]
J 15749 C1 java.awt.EventQueue$4.run()Ljava/lang/Object; (5 bytes) @ 0x00007fcadb490ae4 [0x00007fcadb4906c0+0x424]
v  ~StubRoutines::call_stub
J 5534  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object; (0 bytes) @ 0x00007fcad995e9a3 [0x00007fcad995e940+0x63]
J 16406 C1 java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V (80 bytes) @ 0x00007fcadb186354 [0x00007fcadb185500+0xe54]
J 7503 C1 com.intellij.ide.IdeEventQueue.defaultDispatchEvent(Ljava/awt/AWTEvent;)V (52 bytes) @ 0x00007fcada1a80f4 [0x00007fcada1a7ee0+0x214]
J 17191 C1 com.intellij.ide.IdeEventQueue._dispatchEvent(Ljava/awt/AWTEvent;Z)V (787 bytes) @ 0x00007fcadb787a5c [0x00007fcadb7810c0+0x699c]
J 7255 C1 com.intellij.ide.IdeEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V (312 bytes) @ 0x00007fcada15a6f4 [0x00007fcada159e80+0x874]
J 10375 C1 java.awt.EventDispatchThread.pumpOneEventForFilters(I)V (295 bytes) @ 0x00007fcada7f6844 [0x00007fcada7f5f80+0x8c4]
j  java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+35
j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j  java.awt.EventDispatchThread.run()V+9
v  ~StubRoutines::call_stub

Please bare with me I'm relatively new to arch.

Kind regards TheSilent

Offline

#2 2016-12-26 18:32:50

epinter
Member
Registered: 2016-12-26
Posts: 2

Re: Crash in Android Studio in Colorpicker

Hi,

I'm a debian user and I have exactly the same crash as you. I think this can be a conflict with some of the x11 libs. I suspect is one of these: libxext6 libx11-6 libxrender1 libxtst6 libxi6 libxcb1 libxau6 libxdmcp6. Because libawt_xawt is linked to them:

$ ldd ./jre/jre/lib/amd64/libawt_xawt.so|grep '/usr/lib/'
	libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f23c6bde000)
	libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f23c689e000)
	libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f23c6694000)
	libXtst.so.6 => /usr/lib/x86_64-linux-gnu/libXtst.so.6 (0x00007f23c6288000)
	libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007f23c6078000)
	libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f23c5881000)
	libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f23c546b000)
	libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f23c5265000)
Stack: [0x00007fc9939dc000,0x00007fc993add000],  sp=0x00007fc993ad85a0,  free space=1009k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libawt_xawt.so+0x42008]
C  [libawt_xawt.so+0x42268]
C  [libawt_xawt.so+0x3a68c]  Java_sun_awt_X11_XRobotPeer_getRGBPixelsImpl+0x17c
j  sun.awt.X11.XRobotPeer.getRGBPixelsImpl(Lsun/awt/X11GraphicsConfig;IIII[I)V+0
j  sun.awt.X11.XRobotPeer.getRGBPixels(Ljava/awt/Rectangle;)[I+33
j  java.awt.Robot.createScreenCapture(Ljava/awt/Rectangle;)Ljava/awt/image/BufferedImage;+50
j  com.android.tools.idea.ui.resourcechooser.ColorPicker$ColorPipette.isAvailable()Z+20
j  com.android.tools.idea.ui.resourcechooser.ColorPicker.buildTopPanel(Z)Ljavax/swing/JComponent;+170
j  com.android.tools.idea.ui.resourcechooser.ColorPicker.<init>(Lcom/intellij/openapi/Disposable;Ljava/awt/Color;Z[Lcom/intellij/ui/ColorPickerListener;Z)V+393
j  com.android.tools.idea.ui.resourcechooser.ColorPicker.<init>(Lcom/intellij/openapi/Disposable;Ljava/awt/Color;Z[Lcom/intellij/ui/ColorPickerListener;)V+7
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog.initializeColorPicker(Ljava/lang/String;Lcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog$ResourceNameVisibility;Lcom/android/ide/common/resources/ResourceResolver;Lcom/android/ide/common/rendering/api/ResourceValue;)V+63
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog.ensurePickersInitialized()V+141
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog.access$2800(Lcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog;)V+1
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$ResourcePanel.showPreview(Lcom/android/tools/idea/ui/resourcechooser/ResourceChooserItem;Z)V+188
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog.selectResourceValue(Lcom/android/ide/common/rendering/api/ResourceValue;)V+102
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog.<init>(Lorg/jetbrains/android/facet/AndroidFacet;Lcom/android/tools/idea/configurations/Configuration;Lcom/intellij/psi/xml/XmlTag;Ljava/util/EnumSet;Ljava/lang/String;ZLcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog$ResourceNameVisibility;Ljava/lang/String;Z)V+397
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog.<init>(Lorg/jetbrains/android/facet/AndroidFacet;Lcom/android/tools/idea/configurations/Configuration;Lcom/intellij/psi/xml/XmlTag;Ljava/util/EnumSet;Ljava/lang/String;ZLcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog$ResourceNameVisibility;Ljava/lang/String;ZLcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog$1;)V+16
j  com.android.tools.idea.ui.resourcechooser.ChooseResourceDialog$Builder.build()Lcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog;+120
j  com.android.tools.idea.uibuilder.property.editors.BrowsePanel.showResourceChooser(Lcom/android/tools/idea/uibuilder/property/NlProperty;)Lcom/android/tools/idea/ui/resourcechooser/ChooseResourceDialog;+57
j  com.android.tools.idea.uibuilder.property.editors.BrowsePanel.displayResourcePicker()V+16
j  com.android.tools.idea.uibuilder.property.editors.BrowsePanel.access$100(Lcom/android/tools/idea/uibuilder/property/editors/BrowsePanel;)V+1
j  com.android.tools.idea.uibuilder.property.editors.BrowsePanel$1.actionPerformed(Lcom/intellij/openapi/actionSystem/AnActionEvent;)V+4
j  com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(Lcom/intellij/openapi/actionSystem/AnAction;Lcom/intellij/openapi/actionSystem/AnActionEvent;)V+2
j  com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(Lcom/intellij/openapi/actionSystem/AnActionEvent;)V+126
j  com.intellij.openapi.actionSystem.impl.ActionButton.performAction(Ljava/awt/event/MouseEvent;)V+87
j  com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(Ljava/awt/event/MouseEvent;)V+130
J 30100 C2 java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V (22 bytes) @ 0x00007fc9f717e4bc [0x00007fc9f717e340+0x17c]
J 30252 C1 java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V (883 bytes) @ 0x00007fc9f9466ae4 [0x00007fc9f9461660+0x5484]
J 26935 C2 java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V (129 bytes) @ 0x00007fc9f8b9cd7c [0x00007fc9f8b9c6a0+0x6dc]
J 28998 C2 java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V (6 bytes) @ 0x00007fc9f855e91c [0x00007fc9f855e8e0+0x3c]
j  javax.swing.plaf.basic.BasicTableUI$Handler.repostEvent(Ljava/awt/event/MouseEvent;)Z+43
j  javax.swing.plaf.basic.BasicTableUI$Handler.mouseReleased(Ljava/awt/event/MouseEvent;)V+57
j  java.awt.AWTEventMulticaster.mouseReleased(Ljava/awt/event/MouseEvent;)V+21
j  java.awt.AWTEventMulticaster.mouseReleased(Ljava/awt/event/MouseEvent;)V+8
j  java.awt.AWTEventMulticaster.mouseReleased(Ljava/awt/event/MouseEvent;)V+8
j  java.awt.AWTEventMulticaster.mouseReleased(Ljava/awt/event/MouseEvent;)V+8
j  java.awt.AWTEventMulticaster.mouseReleased(Ljava/awt/event/MouseEvent;)V+8
j  java.awt.AWTEventMulticaster.mouseReleased(Ljava/awt/event/MouseEvent;)V+8

Offline

#3 2016-12-26 18:46:11

epinter
Member
Registered: 2016-12-26
Posts: 2

Re: Crash in Android Studio in Colorpicker

Tested with Oracle Java 8u77, same problem.

Seems to be a java bug (triggered by java.awt.Robot.createScreenCapture, see the stack) while running on Wayland.
Bug was reported previously here: https://bugs.openjdk.java.net/browse/JDK-8171000

Switched from Wayland to Xorg, and the problem didn't happen again.

Last edited by epinter (2016-12-26 18:46:29)

Offline

Board footer

Powered by FluxBB