-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2, 1.4.2_07, 5.0, 6
-
01
-
x86
-
windows_nt, windows_2000, windows_xp
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2120179 | 6 | Alexander Gerasimov | P3 | Resolved | Fixed | b08 |
JDK-2121822 | 1.4.2_09 | Chris Phillips | P2 | Closed | Not an Issue |
Name: rmT116609 Date: 07/21/2004
FULL PRODUCT VERSION :
java version "1.5.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b57)
Java HotSpot(TM) Client VM (build 1.5.0-beta3-b57, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
Hi,
There are numerous JNI bugs in sun.awt.windows.WToolkit.eventLoop() both in JDK 1.4.2 and JDK 5.0 beta 3 releases. If you run the attached testcase with -Xcheck:jni, then close the JFrame that pops up you will get:
FATAL ERROR in native method: Bad global or local ref passed to JNI
at sun.awt.windows.WToolkit.eventLoop(Native Method)
at sun.awt.windows.WToolkit.run(WToolkit.java:269)
at java.lang.Thread.run(Thread.java:595)
This is a minimalistic example of the sort of errors I am getting in my more-complex application. The problem is that in my more complicated application this bug actually causes hangs/crashes to appear at random. .
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.*;
public class Test
{
public static void main(String[] args)
{
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
f.setVisible( true );
}
}
---------- END SOURCE ----------
(Incident Review ID: 286708)
======================================================================
FULL PRODUCT VERSION :
java version "1.5.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b57)
Java HotSpot(TM) Client VM (build 1.5.0-beta3-b57, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
Hi,
There are numerous JNI bugs in sun.awt.windows.WToolkit.eventLoop() both in JDK 1.4.2 and JDK 5.0 beta 3 releases. If you run the attached testcase with -Xcheck:jni, then close the JFrame that pops up you will get:
FATAL ERROR in native method: Bad global or local ref passed to JNI
at sun.awt.windows.WToolkit.eventLoop(Native Method)
at sun.awt.windows.WToolkit.run(WToolkit.java:269)
at java.lang.Thread.run(Thread.java:595)
This is a minimalistic example of the sort of errors I am getting in my more-complex application. The problem is that in my more complicated application this bug actually causes hangs/crashes to appear at random. .
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.*;
public class Test
{
public static void main(String[] args)
{
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
f.setVisible( true );
}
}
---------- END SOURCE ----------
(Incident Review ID: 286708)
======================================================================
- backported by
-
JDK-2120179 JNI bugs in sun.awt.windows.WToolkit.eventLoop()
- Resolved
-
JDK-2121822 JNI bugs in sun.awt.windows.WToolkit.eventLoop()
- Closed
- duplicates
-
JDK-4895175 Need to Fix problem with deleteLocalReference in awt_Component.cpp
- Closed
- relates to
-
JDK-6209692 Warning: Calling other JNI functions in the scope of Get/ReleasePrimitiveArra! message in-Xcheck:jni
- Resolved
-
JDK-5082481 normal DnD program causes "FATAL ERROR in native method"
- Resolved
-
JDK-6327297 OutOfMemoryError after running a few SwingSet2 Applet
- Closed
(1 relates to)