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 205146 - Code complete in variables window causes StackOverflowError
Summary: Code complete in variables window causes StackOverflowError
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Actions/Menu/Toolbar (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-15 12:54 UTC by mienamoo
Modified: 2012-04-05 14:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mienamoo 2011-11-15 12:54:24 UTC
NetBeans build 201111130600
JDK 7 build 147

I was debugging a NetBeans platform application. On the Variables window, I clicked on the list to enter a new watch and then pressed Ctrl+Space to code complete. The following error occurred:

java.lang.StackOverflowError
	at javax.swing.undo.CompoundEdit.lastEdit(CompoundEdit.java:88)
	at javax.swing.undo.CompoundEdit.addEdit(CompoundEdit.java:128)
	at javax.swing.undo.CompoundEdit.addEdit(CompoundEdit.java:138)
	at javax.swing.undo.CompoundEdit.addEdit(CompoundEdit.java:138)
Comment 1 Marian Mirilovic 2011-11-15 16:36:23 UTC
Could you please attach the whole stacktrace ... messages.log file ? Thanks in advance.
Comment 2 mienamoo 2011-11-16 06:32:30 UTC
The full exception is:

SEVERE [global]
java.lang.StackOverflowError
	at javax.swing.undo.CompoundEdit.lastEdit(CompoundEdit.java:88)
	at javax.swing.undo.CompoundEdit.addEdit(CompoundEdit.java:128)
	at javax.swing.undo.CompoundEdit.addEdit(CompoundEdit.java:138)
	at javax.swing.undo.CompoundEdit.addEdit(CompoundEdit.java:138)
        ... (1019 more times at the same spot, hence the stack overflow)
[catch] at javax.swing.undo.CompoundEdit.addEdit(CompoundEdit.java:138)

I don't see any other relevant information in the messages.log file. I ran the IDE a few times with different scenarios, and no other warnings or errors appeared every time.

I also see the same exception when debugging just a very simple Java application, so it is not platform application specific.

The same exception happens whether I press Ctrl+Space directly in the table when editing the cell, or on the New Watch or Edit Watch dialogs.
Comment 3 mienamoo 2012-04-05 14:08:27 UTC
I was looking at my old bugs, and this one caught my eye. So I tried it with NetBeans 7.2 build 201203280401, and I am not seeing the exception any more. So I guess it was resolved sometime since last November. :)