This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When im using jdk1.4.1 (b21 i.e. FCS version) im not able to debug. It always freezes and I have to restart whole ide. System info: jdk 1.4.1 b21 win2000 Im able to reproduce it with last sierra (020923) and sierrafixes (021001) builds but I was not able to reproduce it with last netbeans dev build (200210010100) Reproducible case: 1. Run S1S 2. Create new class with main and compile it 3. Start debugging 4. Ide switches to debugger workspace, prints 'debugger staring', 'debugger running' and 'debugger finished' messages and then hangs.
Can you provide a thread-dump? Thanks in advance.
Created attachment 7671 [details] Thread dump
I tried to replicate this issue with Sierra downloaded as a co-bundle with jdk1.4.1 and could not. Everything worked fine each out of five times I tried. Also tried on w2k sp2. I did spot this problem on the Forte mailing lists a few times. Downgrading to jdk1.4.0 resolved the problem. This was for S1S4, not 4.1. Just FYI, Jirka
I guess you were trying to debug a very simple non-GUI application. Could you try to debug any GUI application, e.g. from the "sampledir" directory?
OK. I can reliably reproduce it on a certain computer with Windows 2000, JDK 1.4.1 and Sun ONE Studio 4 update 1. Two people tried to reproduce it on a co-bundle of the above two products and failed (i.e. they could not reproduce it). The bug is reproducible even if almost all modules are uninstalled.
*** Issue 28775 has been marked as a duplicate of this issue. ***
A customer provided this feedback: When I changed the following property from False to True, it fixed this problem: Menu > Tools > Options > Debugger and Executing > Debugger Types > Default Debugging > "Classic Switch"
4773152 is a Sun ONE Studio Mobile Edition kjava bug with a similar sounding Synopsis and Description: Synopsis: debugging doesn't work for jdk1.4.1 Description: Sometimes debugger doesn't stop on breakpoint. IDE hangs. On the JDC BugParade, six users have added comments to this ME bug that appear to be CE-related so I am including that feedback here. http://developer.java.sun.com/developer/bugParade/bugs/4773152.html SAT NOV 16 12:51 P.M. 2002 cjohannsen This is possibly related to an IDE hang I observe with S1S4u1 CE (build 020923) and J2SDK1.4.1_01. Debugging anything hangs the IDE. Debugging with no breakpoint hangs after run has completed Debugging with a breakpoint hangs after debugger has stopped at first breakpoint. A different workaround is to use an older JDK, such as 1.3.1_02. SUN NOV 24 06:00 A.M. 2002 hfmanson I have the problem described in the description. The state of the bug seems to be 'Closed, fixed'. Does anyone know how to fix this problem? THU DEC 05 04:48 P.M. 2002 gculik I have the same problem. What is the solution if this is Closed and Fixed? FRI DEC 06 01:38 P.M. 2002 eblomeyer I also have the same problem. I am basically unable to use this product for debugging, making it fairly useless. I have S1S4u1, CE and am using j2sdk1.4.1. SAT DEC 07 05:54 A.M. 2002 agatton2 I have the same problem/symptons as eblomeyer. What are we to do downgrade JDK's? If the problem is fixed what is the solution? SAT DEC 14 04:23 P.M. 2002 tracebond My debugger hangs too (on both my Win98 & NT4 machines). I'm using S1S4u1 CE (Build 020923): do I need a newer build that includes the fix mentioned in 'bugParade' ?
Marian, you said that you were able reproduce this problem. What do you know about the root cause of this bug? It appears to be related to JDK 1.4.1. Do we have a solution for it?
Since we can "reliably reproduce it on a certain computer with Windows 2000, JDK 1.4.1 and Sun ONE Studio 4 update 1", it would be good to know if this can be reproduced with EE as well as CE.
I can reproduce it on: NetBeans IDE 3.3.2 (Build 200206050332) Windows 2000 version 5.0 running on x86 1.4.1-beta; Java HotSpot(TM) Client VM 1.4.1-beta-b14; My thread-dump is similair. It looks like problem in openide.utils.IconManager. Can sombody from core team look at it, please?
Created attachment 8421 [details] thread dump2
IMO this is a bug in JDK not in NB code. We are calling into Swing code which in turns asks AWT to load the image resource (async). We use MediaTracker to wait for the async image loading (being done in an AWT internal thread called "Image Fetcher") to finish. The wait takes forever, probably because the "Image Fetcher" thread is dead, I don't see it in Hanz' thread dump. I suggest redirecting this bug to the JDK team.
As I know this bug is not reproducible in trunk version of IconManager. Is not it already fixed? IconM. is different in trunk...
I tried to reproduce this issue on different JDKs on my computer - Windows 2000 SP 1, Sun ONE Studio 4 update 1 CE (Build 020923). I used the similar testcase as described above and I focused on the MDI mode of IDE. Test case: 1. run S1S (fresh userdir) 2. choose a MDI mode in the Setup Wizard 3. create a new executable class and compile it 4. start debugging J2sdk1.4.0_01 and j2sdk1.4.0_02 work as expected and debugger is possible to use more when a current debugger session is finished, BUT j2sdk1.4.1,j2sdk1.4.1_01 and j2sdk1.4.2-build10 cause that IDE hangs at the end of current debugger session. The debugger is not affected by any JDK if IDE uses SDI window mode. FYI, this bug http://developer.java.sun.com/developer/bugParade/bugs/4799339.html was created and has described a similar situation.
Indeed no more debugger freezing when using SDI mode as suggested by Marek Grummich. I have no problems with the IDE with JDK 1.4.1_01 using SDI or MDI mode with Linux.
Hi, I would like to ask what's about this bug. Is it a dup of JDK bug, is it fixed, or is it unevaluated?
IMO this is a bug in JDK. I don't know if there is a similar bug already filed. In any case we should let them know
Ok, if it's a bug in JDK, have anyone logged it? Has anyone found an existing bug corresponding to this one? Without a JDK bug ID, this evaluation is useless.
bug filed against JDK/AWT #4809173: "java.awt.MediaTracker.waitForID() never returns"
JDK team has confirmed that this is indeed a bug in JDK code. http://developer.java.sun.com/developer/bugParade/bugs/4789067.html This piece of evaluation taken from the bug report explains why the bug happens in NB 3.3.x based IDEs (S1S4u1 for example) but not in NB 3.4 or later --------8<--------- The fetcher can be interrupted, for example, when ImageWatcher becomes uninterested in the image (ImageWathed.newInfo()), i.e, when imageUpdate returns false, which some of the classes in SunOne studio code do: org.openide.awt.ToolbarToggleButton, for example, returns false from imageUpdate, presumably when the button in question becomes invisible or something. Note that the NetBeans 3.4 use only ImageIcon class to fetch the images, which doesn't interrupt reading until it's done - this can explain why NetBeans 3.4 do not exhibit the problem. --------8<--------- This JDK bug should be fixed in a subsequent release of JDK (1.4.2) I am closing this one as WONTFIX because it's not in NB code.
*** Issue 28599 has been marked as a duplicate of this issue. ***
It's JDK bug - verifying, closing.