View Single Post
Old 05-09-2018, 10:29 AM   #1
tjgrant
Junior Member
 
Join Date: Apr 2017
Posts: 4
Default 4.3 Beta 3: Java Apps crash on launch if connected to external DisplayLink device

Hi there,

4.3 beta 3 looks good so far, except I noticed some Java apps I normally use failed to launch. I even figured it was Java itself and re-installed it many times with the same issues.

As it turns out, when the DisplayLink device is not connected, the Java apps will launch correctly.

How to reproduce:

1. Connect first monitor as normal
2. Connect second monitor via Diamond BVU 195
3. Ensure DisplayLink 4.3 beta 3 software driver is installed
4. Properly set up as "Using separate display" in AirPlay
5. Go to "System Preferences" app
6. Open "Java" preference pane
* Notice Java Control Panel should open, but doesn't
7. Click "Reopen the Java Control Panel" button
* Again notice Java Control Panel does not open
8. Try with other AWT-based Java apps (one example below with crash log)
9. Disconnect DisplayLink device
10. Click "Reopen the Java Control Panel" button
* Notice now this opens without issues

Example output from command line attempt to run yEd graph editor from: https://www.yworks.com/products/yed/download

Code:
xxx-MacBook-Pro:Applications xxx$ ./yEd.app/Contents/MacOS/yEd 
Exception in thread "main" java.lang.NullPointerException
	at java.awt.Window.init(Window.java:497)
	at java.awt.Window.<init>(Window.java:537)
	at java.awt.Frame.<init>(Frame.java:420)
	at java.awt.Frame.<init>(Frame.java:385)
	at com.yworks.A.P.R.<init>(Unknown Source)
	at com.yworks.A.D.ć(Unknown Source)
	at com.yworks.A.D.Ă(Unknown Source)
	at com.yworks.A.D.ā(Unknown Source)
	at com.yworks.A.yEd.ā(Unknown Source)
	at com.yworks.A.yEd.main(Unknown Source)
2018-05-09 02:15:57.135 yEd[14949:336028] yEd:Failed to launch JVM
So again-- this seems to be an issue relevant to the new DisplayLink driver, and not related either to Java itself nor the Java apps I'm trying to run.

If you could provide a solution, I would appreciate it. Thank you.

Last edited by tjgrant; 05-09-2018 at 10:32 AM.
tjgrant is offline   Reply With Quote