• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

How to stop OpenJDK 13 Swing application on MacOS from hanging when displaying the screen?

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an application which I am trying to upgrade from running under Java 8 (pre-licensed version) to OpenJDK 13. This application is started when a user logs in and sleeps for a time interval, then wakes up and calls a web service to see if it should display. The display is full screen, dimensions set by calling getGraphicsDevice().getDisplayMode().getWidth()/getHeight() (getGraphicsDevice().getFullScreenWindow() returns null).

The application runs as expected using OpenJDK 13 on MS Windows.

It is started when the user logs in by using a launch agent plist with the KeepALive set to true.

It is launched with the following command to use the embedded JRE. No other JRE exists on the computer. $CP is intentionally omitted as it is long.

On MacOS over 75% of the time the application hangs when displaying the window.


The custom JRE is built using the following Maven configuration:

Using jstack running in a shell loop in a terminal session I see that there appears to be a deadlock between the AppKit Thread and the AWT Event Queue:

Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic