Bug 1399344 - Program colorpicker crashes in wayland but not in x.org
Summary: Program colorpicker crashes in wayland but not in x.org
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: wayland
Version: 25
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-28 19:43 UTC by Robert
Modified: 2017-12-12 10:11 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-12 10:11:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Image of dialog referenced in Steps to reproduce (177.38 KB, image/png)
2016-11-28 19:43 UTC, Robert
no flags Details

Description Robert 2016-11-28 19:43:39 UTC
Created attachment 1225457 [details]
Image of dialog referenced in Steps to reproduce

Description of problem:

When running Wayland IntelliJ crashes in the libawt_xawt.so library.

This do not happen when switching to x.org

Version-Release number of selected component (if applicable):

N/A

How reproducible:

Download and install IntelliJ IDEA
https://download.jetbrains.com/idea/ideaIC-2016.3.tar.gz

Steps to Reproduce:

1. Open up IntelliJ Idea
2. Go to Settings -> Editor -> Color & Fonts -> General 
3. Select a Category on the right, for example Errors & Warnings and expand it
4. Select "Warning" in the sublist.
5. On the right most side of the dialog, There is a "Forground" color picker.
6. Click on the color box right of "Forground"
7. IntelliJ will crash

Actual results:

IntelliJ crashes in a call to 

C  [libawt_xawt.so+0x42028]  ReadRegionsInList+0x3b8

Expected results:

Colorpicker dialog should be shown.



Additional info:

Comment 1 Robert Hancock 2017-01-24 21:56:36 UTC
We have seen a similar issue in our own internally developed Java Swing application when running under Wayland. The problem seems to occur when using the JGoodies Looks Plastic3D look and feel with the optional pop-up drop shadows enabled. In this configuration, the JVM frequently segfaults in ReadRegionsInList when trying to display a pop-up tooltip (especially if the tooltip extends past the edge of the window). Turning off the drop shadows fixes the issue.

I'm assuming that this function is somehow involved in trying to read the background screen content in order to composite the drop shadow over top of it, and that is somehow failing under XWayland in order to trigger this error. I can understand how it would due to the additional security restrictions in Wayland preventing apps from accessing other windows' content.

Comment 2 Fedora End Of Life 2017-11-16 19:04:55 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 3 Philippe Lhardy 2017-12-07 10:41:40 UTC
With IntelliJ COMMUNITY EDITION 2017.2.5 under fedora 27 colorpicking does not crash, dialog actualy show.

IntelliJ IDEA 2017.2.5
Build #IC-172.4343.14, built on September 26, 2017
JRE: 1.8.0_152-release-915-b12 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.13.9-300.fc27.x86_64

BUT

I hit crash with GUI application when opening a menu. Application is Using Synthetica library under Fedora 27, this is triggering same wayland bug.

Stack: [0x00007fbd56377000,0x00007fbd56478000],  sp=0x00007fbd56474ea0,  free space=1015k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libawt_xawt.so+0x42028]  ReadRegionsInList+0x3b8
C  [libawt_xawt.so+0x42288]  ReadAreaToImage+0xa8
C  [libawt_xawt.so+0x3a67c]  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  de.javasoft.plaf.synthetica.Popup.createScreenCapture(Ljava/awt/Rectangle;)Ljava/awt/image/BufferedImage;+8
j  de.javasoft.plaf.synthetica.Popup.snapshot()Ljava/awt/image/BufferedImage;+50
j  de.javasoft.plaf.synthetica.Popup.access$2(Lde/javasoft/plaf/synthetica/Popup;)Ljava/awt/image/BufferedImage;+1
j  de.javasoft.plaf.synthetica.Popup$3.run()V+38
J 7286 C1 java.awt.event.InvocationEvent.dispatch()V (69 bytes) @ 0x00007fbd9d76a34c [0x00007fbd9d76a1e0+0x16c]

to avoid this i changed synthetica.xml configuration to not use Robot library for popup : 

        <defaultsProperty key="Synthetica.popup.osShadow.enabled" type="boolean" value="false" />
        <defaultsProperty key="Synthetica.popupType" type="integer" value="2"/>
        <defaultsProperty key="Synthetica.popupMenu.fade-in.enabled" type="boolean" value="false" />
        <defaultsProperty key="Synthetica.popupRobot.enabled" type="boolean" value="false" />
        <defaultsProperty key="Synthetica.popupMenu.showLater" type="boolean" value="false" />
        <defaultsProperty key="Synthetica.popupMenu.window.opaque" type="boolean" value="false" />

Comment 4 Fedora End Of Life 2017-12-12 10:11:50 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.