PDA

View Full Version : Java (jre8) crash with dedicated display adapter


DonJuape
08-02-2020, 04:44 PM
When I start a java application on my second screen using displaylink, java crashes (in this case the application is Minecraft). This only happens when I use my dedicated NVDIA GPU not when I am using internal (Intel Graphics).
Work-around is to start the application on my main (laptop) screen and after the application started switch to the second screen (using displaylink).

This error was reported on this forum for Displaylink 4.3 Beta and never solved: https://www.displaylink.org/forum/showthread.php?t=66114

It was also reported specifically for Minecraft on this forum and never solved: https://www.displaylink.org/forum/showthread.php?t=66470

MikoLone
04-15-2022, 05:28 PM
In my case the java 8 app threw a null pointer exception on the following line.

GraphicsEnvironment.getLocalGraphicsEnvironment(). getDefaultScreenDevice().getDefaultConfiguration() .getBounds();

For some reason getDefaultConfiguration() returns null if the main monitor is set to a monitor that is connected to the dock.

I am not sure if it has anything to do with the graphics card or not. I only have 1 graphics card to choose from.