Community
Participate
Working Groups
Running the SWT JUnit tests on Wayland crashes the JVM, as the library used to take screenshots uses X11 specific calls. The stack trace is below: 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 org.eclipse.test.internal.AwtScreenshot.main([Ljava/lang/String;)V+32 IMO we shouldn't have a dependency on outside libraries in the SWT testing project, but if we must then these two calls should be guarded against Wayland somehow.
(In reply to Eric Williams from comment #0) > Running the SWT JUnit tests on Wayland crashes the JVM, as the library used > to take screenshots uses X11 specific calls. The stack trace is below: > > 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 org.eclipse.test.internal.AwtScreenshot.main([Ljava/lang/String;)V+32 > > IMO we shouldn't have a dependency on outside libraries in the SWT testing > project, but if we must then these two calls should be guarded against > Wayland somehow. +1. (voting feature not working atm).
New Gerrit change created: https://git.eclipse.org/r/114440
Gerrit change https://git.eclipse.org/r/114440 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=9913c5a1d7242c20e4a6f4f111e4d54e5569991f
(In reply to Eclipse Genie from comment #3) > Gerrit change https://git.eclipse.org/r/114440 was merged to [master]. > Commit: > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/ > ?id=9913c5a1d7242c20e4a6f4f111e4d54e5569991f Fix is in master now.
Verified in I20180122-2000.