Description of problem:
Trying to get a screenshot from phantomjs when running selenium tests when running inside wayland.
Version-Release number of selected component:
cmdline: java -Dphantomjs.binary.path=/home/mtiihone/angular-main-app/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs -jar /home/mtiihone/angular-main-app/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-3.0.1.jar -port 45038
runlevel: N 5
Created attachment 1242667 [details]
Created attachment 1242668 [details]
Created attachment 1242669 [details]
Created attachment 1242670 [details]
Created attachment 1242671 [details]
Created attachment 1242672 [details]
Created attachment 1242673 [details]
Created attachment 1242674 [details]
Created attachment 1242675 [details]
Created attachment 1242676 [details]
Created attachment 1242677 [details]
Created attachment 1242678 [details]
There is an issue with java.awt.Robot.createScreenCapture() when running on wayland.
#11 Java_sun_awt_X11_XRobotPeer_getRGBPixelsImpl (env=0x7f2628017258, cls=<optimized out>, xgc=<optimized out>, x=0, y=0, width=3840, height=2160, pixelArray=0x7f2698b284c8) at /usr/src/debug/java-1.8.0-openjdk-22.214.171.124-5.b16.fc26.x86_64/openjdk/jdk/src/solaris/native/sun/awt/awt_Robot.c:268
Seems to suggest it's originating from that call. Marking as duplicate of 1402819. The workaround so far is running Gnome on X until there is proper wayland support in OpenJDK.
*** This bug has been marked as a duplicate of bug 1402819 ***