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.

Bug 27711 - Cannot debug with jdk1.4.1
Summary: Cannot debug with jdk1.4.1
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: issues@platform
URL:
Keywords: JDK_SPECIFIC
: 28599 28775 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-10-01 15:47 UTC by Jan Kovar
Modified: 2008-12-23 10:25 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (12.97 KB, text/plain)
2002-10-16 10:49 UTC, Jan Kovar
Details
thread dump2 (15.93 KB, text/plain)
2003-01-02 17:04 UTC, Jan Jancura
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kovar 2002-10-01 15:47:39 UTC
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.
Comment 1 Jan Chalupa 2002-10-03 11:26:24 UTC
Can you provide a thread-dump? Thanks in advance.
Comment 2 Jan Kovar 2002-10-16 10:49:18 UTC
Created attachment 7671 [details]
Thread dump
Comment 3 Jiri Prazak 2002-10-22 15:04:40 UTC
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
Comment 4 Marian Petras 2002-10-30 17:11:14 UTC
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?
Comment 5 Marian Petras 2002-11-06 17:08:49 UTC
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.
Comment 6 Marian Petras 2002-11-15 13:14:20 UTC
*** Issue 28775 has been marked as a duplicate of this issue. ***
Comment 7 artibee 2002-12-11 01:38:08 UTC
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"
Comment 8 artibee 2002-12-20 18:47:03 UTC
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' ?
Comment 9 eadams 2002-12-20 21:24:50 UTC
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?
Comment 10 artibee 2002-12-20 22:02:14 UTC
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.
Comment 11 Jan Jancura 2003-01-02 17:03:48 UTC
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?
Comment 12 Jan Jancura 2003-01-02 17:04:41 UTC
Created attachment 8421 [details]
thread dump2
Comment 13 Jan Jancura 2003-01-02 17:07:31 UTC
*** Issue 28775 has been marked as a duplicate of this issue. ***
Comment 14 _ ttran 2003-01-03 14:42:01 UTC
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.
Comment 15 Jan Jancura 2003-01-03 17:15:22 UTC
As I know this bug is not reproducible in trunk version of
IconManager. Is not it already fixed? IconM. is different in trunk...
Comment 16 Marek Grummich 2003-01-07 14:56:33 UTC
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.
Comment 17 hfmanson 2003-01-11 15:55:16 UTC
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.
Comment 18 Jan Lahoda 2003-01-13 13:55:01 UTC
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?
Comment 19 _ ttran 2003-01-17 11:54:41 UTC
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
Comment 20 Jan Chalupa 2003-01-27 13:05:18 UTC
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.
Comment 21 _ ttran 2003-01-28 12:45:30 UTC
bug filed against JDK/AWT #4809173: "java.awt.MediaTracker.waitForID()
never returns"
Comment 22 _ ttran 2003-01-29 09:36:39 UTC
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.
Comment 23 Jan Jancura 2003-02-19 14:10:51 UTC
*** Issue 28599 has been marked as a duplicate of this issue. ***
Comment 24 Marian Mirilovic 2003-07-28 15:28:44 UTC
It's JDK bug - verifying, closing.