← Back to team overview

openjdk team mailing list archive

[Bug 432677] Re: Java JComboBox callback freezes Xorg

 

IntelliJ IDEA *always* runs on Jetbrains JDK. It's made to run it's own
bundled JDK. The JDK can be overridden but it screws with font rendering
(purple edges) and possibly other things.

The application under debug, however, should *not* run on de Jetbrains
JDK. While possible, the Jetbrains themselves discourages it. In project
settings you look at the list of installed SDKs and see if the project
uses OpenJDK or not. This is the case in my case.

It seems indeed that OpenJDK-11.0.4 which I run is affected buy this
"fixed in JDK 7" bug 6714678 you linked. They talk about adding a VM
argument `-Dsun.awt.disablegrab=true` and this indeeds prevents Xorg
from freezing.

Simple steps to reproduce (I hope):

- sudo apt install openjdk-11-jdk
- Download IntelliJ IDEA Community edition, Extract somewhere, run
- Create new project (all settings default)
- File > Project Structure... > SDKs > Check for or add OpenJDK
- Put XLock.java in the src directory
- Remove the line `package xlock;` which is now an error
- Click next to line number 24 to toggle a breakpoint there
- Debug (green cocroach button)

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in Ubuntu.
https://bugs.launchpad.net/bugs/432677

Title:
  Java JComboBox callback freezes Xorg

Status in Sun Java:
  New
Status in openjdk-6 package in Ubuntu:
  Incomplete

Bug description:
  My machine is a desktop with an Intel Core 2 Quad, 2Gb and a video board Intel(R) 965G.
  I am using Ubuntu 9.04 32 bits, Eclipse 3.5 (Galileo), Sun Java 1.6.0_16 provided by sun-java6-* packages.

  Steps to reproduce (please read it until the end before trying):
   * Create a Java project in Eclipse.
   * Add the attached XLock Java class in this project
   * Put a breakpoint in the method actionPerformed()
   * Run this class (note that it has a method main()) in debug mode
   * A tiny window will appear
   * Select another animal in the combo box
   * Eclipse should stop in the breakpoint
   * All your Xorg is locked now. You can move your mouse, but nothing responds any more
   * To unlock it press CONTROL+ALT+F1, login to the terminal and kill the latest Java process
   * Everything gets back to normal

  I don't know exactly where the problem is, but Xorg should never lock
  because of a problem in an application.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sun-java/+bug/432677/+subscriptions