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 226557 - NetBeans won't run - StackOverflowError from org.openide.awt.Toolbar
Summary: NetBeans won't run - StackOverflowError from org.openide.awt.Toolbar
Status: RESOLVED DUPLICATE of bug 221881
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.2
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-22 18:29 UTC by Developer117
Modified: 2013-03-19 11:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Messages.log showing stacktrace (234.82 KB, text/plain)
2013-02-22 18:29 UTC, Developer117
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Developer117 2013-02-22 18:29:13 UTC
Created attachment 131754 [details]
Messages.log showing stacktrace

I'd been having an issue starting NetBeans where, at some point, the splash screen would just disappear, but the editor itself would never load.  (The netbeans.exe process was still running in the Task Manager, though, and there was a lock file in my Application Data directory.)  A few days ago, I tried uninstalling and reinstalling, which allows me to run NetBeans once.  Once I exit the application, any further attempts to run it fail.  The splash screen displays and the application starts to load, but when the progress bar reaches "Done loading modules", it hangs.  When I checked the "...\Application Data\NetBeans\7.2\var\log\messages.log" file, it shows the modules being activated, and then begins showing StackOverflowErrors:
INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.osgi@3.7.1.R37x_v20110808-1106 started
WARNING [org.openide.awt.Toolbar]: Error in AWT task
java.lang.StackOverflowError
	at java.nio.Buffer.<init>(Buffer.java:176)
	at java.nio.ByteBuffer.<init>(ByteBuffer.java:259)
	at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:39)
	at java.nio.ByteBuffer.allocate(ByteBuffer.java:312)
	at sun.font.TrueTypeFont.getTableBuffer(TrueTypeFont.java:733)
	at sun.font.TrueTypeFont.getTableBuffer(TrueTypeFont.java:747)
	at sun.font.TrueTypeFont.getTableBuffer(TrueTypeFont.java:747)
	at sun.font.TrueTypeFont.getTableBuffer(TrueTypeFont.java:747)

The stack trace line for TrueTypeFont.java:747 shows up hundreds of times, and that's just for one attempt.  (I've attached the messages.log file for your reference.)  Also, the installer I've been using is netbeans-7.2-ml-windows.exe, and deleting the install directory doesn't seem to have any affect.

To reproduce the behavior:
1. Run NetBeans 7.2.
2. Exit NetBeans 7.2.
3. Run NetBeans 7.2 a second time.
Expected behavior: The IDE loads and displays the editor.
Actual behavior: The splash screen hangs, and the ide does not load.  The message.log file contains repeated StackOverflowExceptions for org.openide.
Current workaround: 
1. Manually kill the process.
2. Delete the lock file.
3. Uninstall NetBeans.
4. Reinstall NetBeans using netbeans-7.2-ml-windows.exe.  
(This can take over an hour, and is extremely impractical.)

The behavior appears to be similar to Bugs 68318 and especially 183607, where a particular stack trace gets displayed over and over again.
Comment 1 Stanislav Aubrecht 2013-03-19 11:08:10 UTC

*** This bug has been marked as a duplicate of bug 221881 ***