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 69492 - NB 4.1 not responding to Run Main Project or F6 due to StackOverflowError from MDR
Summary: NB 4.1 not responding to Run Main Project or F6 due to StackOverflowError fro...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
: 69291 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-28 19:18 UTC by frankioski
Modified: 2010-09-23 09:14 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log file (42.64 KB, text/plain)
2005-11-28 19:19 UTC, frankioski
Details
Thread dump (8.71 KB, text/plain)
2005-11-30 18:07 UTC, frankioski
Details
messages.log file after having done the Clean and Build Project (18.67 KB, text/plain)
2005-12-01 18:30 UTC, frankioski
Details
Thread dump from the DOS console after having done the Clean and Build Project (6.34 KB, text/plain)
2005-12-01 18:31 UTC, frankioski
Details
First part of the messages.log file after doing a "Run File" (689.54 KB, text/plain)
2005-12-01 20:19 UTC, frankioski
Details
Second part of the messages.log file after doing a "Run File" (679.03 KB, text/plain)
2005-12-01 20:20 UTC, frankioski
Details
BTD file (404.00 KB, application/octet-stream)
2005-12-06 01:15 UTC, frankioski
Details
BTX file (74.00 KB, application/octet-stream)
2005-12-06 01:16 UTC, frankioski
Details
CDX file (22.25 KB, application/octet-stream)
2005-12-06 01:16 UTC, frankioski
Details
Main.BTD (120.00 KB, application/octet-stream)
2005-12-06 01:18 UTC, frankioski
Details
Main.BTX (8.00 KB, application/octet-stream)
2005-12-06 01:19 UTC, frankioski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description frankioski 2005-11-28 19:18:20 UTC
NB 4.1 not responding to Run Main Project or F6 for a java file that was working
fine last week.  I haven't even made any changes to it.  It suddenly stopped
working.  In fact, this one shares also the same problem in the Navigator as
reported in issue 69291.
Comment 1 frankioski 2005-11-28 19:19:04 UTC
Created attachment 27360 [details]
messages.log file
Comment 2 Jan Becicka 2005-11-29 08:47:52 UTC
Please attach full thread dump. Thanks.
Comment 3 frankioski 2005-11-30 18:07:58 UTC
Created attachment 27452 [details]
Thread dump
Comment 4 Jan Becicka 2005-12-01 08:00:30 UTC
I have no idea what might be wrong. I thought I see frozen MDR transaction in
the thread dump, but I don't see any. Reassigning to maintainers of Run Main
Project action.
Comment 5 Tomas Zezula 2005-12-01 09:53:55 UTC
See the related issue #69291.
Neither java/project nor java/j2seproject is on the thread dump, the same hods
for javacore. But it seems that requests to the javacore end with
java.lang.StackOverflowError (the same hods for requests from navigator).

To reporter: Can you try actions like compile project, compile single or clean
if any of them works?
Deleting the MDR caches may help you.
Comment 6 Jan Becicka 2005-12-01 10:44:37 UTC
It is not obvious, that StackOverflowError is thrown from javacore. Anyway: is
anybody able to reproduce this bug in latest 5.0? I'm not. It is probably
duplicate of issue 64879.
Comment 7 Tomas Zezula 2005-12-01 10:54:37 UTC
It is not obvious but it is probable because of the issue #69291 where the same 
problem happens. I am not able to reproduce it in the NB 5.0. Definitelly not 
P1.
Comment 8 Jan Becicka 2005-12-01 17:49:43 UTC
*** Issue 69291 has been marked as a duplicate of this issue. ***
Comment 9 frankioski 2005-12-01 18:18:44 UTC
I just tried Clean and Build Project.  No effect.  F9 (Compile File) works.  F6
(Run File) does not work, not even in the floating menu when right-clicking
directly in the editor.  Alt+O (Goto Source) does not work.  Other files (other
than the one that prompted me to log issue 69291) all work fine.  For some
reason, only these two files are affected, and these two files are very similar
in purpose and structure to the other files that do work.
Comment 10 frankioski 2005-12-01 18:30:09 UTC
Created attachment 27485 [details]
messages.log file after having done the Clean and Build Project
Comment 11 frankioski 2005-12-01 18:31:10 UTC
Created attachment 27486 [details]
Thread dump from the DOS console after having done the Clean and Build Project
Comment 12 frankioski 2005-12-01 18:34:31 UTC
When I said "no effect" in my previous comment, I meant that Clean and Build
Project did appear to take place (from observing the Output panel at the
bottom), but that the action did not have any effect on making the problems go
away for the two files.
Comment 13 Jan Lahoda 2005-12-01 19:29:40 UTC
A few notes:
-the difference between Compile File and Run File (BTW: the default shortcut for
Run File is AFAIK Shift-F6) is that the Run File action needs to check if the
file contains the main method or not (that means, the file needs to be parsed).
-reporter, could you please try to run the IDE with "-J-Xint" command line
option, try to invoke the Run File action and attach the resulting messages.log?
Thanks.
Comment 14 frankioski 2005-12-01 20:17:59 UTC
Sorry. When I first ran with F6, I was really doing a "Run Project", not "Run
File" as I had written.

Per jlahoda's request, I edited the netbeans.conf file to include "-J-Xint" as
one of the default options and started up NetBeans 4.1.  All I did afterwards
was go to the file in question already opened in the Java editor, and do a "Run
File" from the Run menu (synonymous with Shift+F6) just once. The resulting
messages.log file was 1.3 MB long.  I broke it in two parts: messages3_part1.log
and messages3_part2.log.  I attach the files below.
Comment 15 frankioski 2005-12-01 20:19:38 UTC
Created attachment 27487 [details]
First part of the messages.log file after doing a "Run File"
Comment 16 frankioski 2005-12-01 20:20:26 UTC
Created attachment 27488 [details]
Second part of the messages.log file after doing a "Run File"
Comment 17 Jan Becicka 2005-12-02 07:29:53 UTC
OK. StackOverflow comes from mdr module. Dan, please take a look at it. Thanks.
Comment 18 Daniel Prusa 2005-12-05 12:52:41 UTC
Frankioski, I belive the problem can be solved by deleting mdr storage in your
userdir. It seems the storage is corrupted somehow. If deleted it will be
automatically recreated on ide restart.
It would be valuable if you could attach some specific storage files for further
evaluation of the problem. All the files are located in subfolders of
${userdir}\var\cache\mdrstorage. Try to move this directory out of the userdir
and restart netbeans to check whether it helped.
As for the (corrupted) files, I am interested in those that are located in
${userdir}\var\cache\mdrstorage\org-netbeans-java\0.68 (note that, instead of
0.68, there could be another number as well, it is not important) and whose
names ends with the name of directory your project resides in (in addition, this
name is followed by "src"). There should be at least three such files, having
extensions "btd", "btx" and "cdx".
Furthermore, Main.btd and Main.btx are required too.
Comment 19 frankioski 2005-12-06 01:12:41 UTC
dprusa,

Cleaning all the "btd", "btx" and "cdx" in the
${userdir}\var\cache\mdrstorage\org-netbeans-java\0.64 folder caused the IDE to
freeze upon startup.  Very flakey.  I could only shut down the IDE using the
Windows Task Manager.  Doing it this way always causes the next startup to
detect that another instance of NetBeans is running.

Anyway, things look OK now after the second startup.

Comment 20 frankioski 2005-12-06 01:15:24 UTC
Created attachment 27565 [details]
BTD file
Comment 21 frankioski 2005-12-06 01:16:00 UTC
Created attachment 27566 [details]
BTX file
Comment 22 frankioski 2005-12-06 01:16:41 UTC
Created attachment 27567 [details]
CDX file
Comment 23 frankioski 2005-12-06 01:18:07 UTC
Created attachment 27568 [details]
Main.BTD
Comment 24 frankioski 2005-12-06 01:19:08 UTC
Created attachment 27569 [details]
Main.BTX
Comment 25 Daniel Prusa 2005-12-06 13:20:46 UTC
Thanks for the attached storage files! As for the frozen netbeans upon startup,
did you deleted the whole directory ${userdir}\var\cache\mdrstorage? It is not
sufficient only to delete files in
${userdir}\var\cache\mdrstorage\org-netbeans-java\0.64. I probably did not
express myself clearly...

If the deletion of mdr storage and restart of netbeans (well, the second
restart) solved the problem with Run Main Project I think this issue is not P1,
since it was caused by corrupted storage, it is no longer reproducible and we
have not received any other reports of this type -> decreasing priority to P3.
Comment 26 Marian Mirilovic 2006-12-04 22:10:03 UTC
I think all of these issues are going to be closed, aren't they?
Comment 27 David Strupl 2010-09-23 09:14:37 UTC
I am closing all reports in category Java/Unsupported as wontfix. These should
be dead issues --- if the reported cases are against some live part of the
NetBeans IDE please reopen and we can discuss to which category they belong.