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 105358 - Out of memory, IDE crash opening a form
Summary: Out of memory, IDE crash opening a form
Status: RESOLVED DUPLICATE of bug 105234
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC All
: P1 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2007-06-01 05:44 UTC by John Baker
Modified: 2007-06-06 10:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (46.61 KB, text/plain)
2007-06-01 05:46 UTC, John Baker
Details
form file (7.07 KB, text/xml)
2007-06-01 05:46 UTC, John Baker
Details
sources (13.43 KB, text/plain)
2007-06-01 05:47 UTC, John Baker
Details
bundle.properties (17.38 KB, text/plain)
2007-06-01 05:47 UTC, John Baker
Details
bundle.properties (17.38 KB, text/plain)
2007-06-01 05:51 UTC, John Baker
Details
bundle.properties (17.38 KB, text/plain)
2007-06-01 05:52 UTC, John Baker
Details
2nd messages.log with more exceptions (627.89 KB, application/octet-stream)
2007-06-01 06:02 UTC, John Baker
Details
the expected bundle.properties file (2.43 KB, text/plain)
2007-06-01 06:13 UTC, John Baker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Baker 2007-06-01 05:44:41 UTC
Using Milestone 9 build 

While trying to open a form, IDE crashed.
Even restarting, the IDE crashed again

Attached are form file and source, bundle.properties and messages.log
Comment 1 John Baker 2007-06-01 05:46:02 UTC
Created attachment 43068 [details]
messages.log
Comment 2 John Baker 2007-06-01 05:46:45 UTC
Created attachment 43069 [details]
form file
Comment 3 John Baker 2007-06-01 05:47:14 UTC
Created attachment 43070 [details]
sources
Comment 4 John Baker 2007-06-01 05:47:42 UTC
Created attachment 43071 [details]
bundle.properties
Comment 5 John Baker 2007-06-01 05:51:34 UTC
Created attachment 43072 [details]
bundle.properties
Comment 6 John Baker 2007-06-01 05:52:00 UTC
Created attachment 43073 [details]
bundle.properties
Comment 7 John Baker 2007-06-01 05:56:11 UTC
should have only been 1 bundle.properties files attached.
Issuezilla was not responding for awhile.

Comment 8 John Baker 2007-06-01 06:01:20 UTC
Here's what might have got the editor in a bad state.

The design was refactored-moved to another package which had a similar
bundle.properties file for a form with the same components.

However, some of the keys in the bundle.property files that are referenced in
the form file do not exist in the bundle.properties file. 

This may be a corner-case, but the IDE should not crash.  And I cannot start the
IDE.  Also, out of memory dialogs keep popping up

I'll attach a 2nd messages.log file updated with more exceptions
Comment 9 John Baker 2007-06-01 06:02:50 UTC
Created attachment 43074 [details]
2nd messages.log with more exceptions
Comment 10 John Baker 2007-06-01 06:12:43 UTC
By editing the form file and reverting the change back to the expected
bundle.properties (with the expected keys) I could start the IDE successfully.

To reproduce this out of memory error:
1) Create a form 
2) Edit a component to use keys from a bundle.properties file
3) In the bundle.properties file, change the key name referenced in the form
4) Close and reopen the form ? or restart the IDE 
should reproduce the out of memory error

I will attache the other bundle.properties file with expected keys
Comment 11 John Baker 2007-06-01 06:13:29 UTC
Created attachment 43075 [details]
the expected bundle.properties file
Comment 12 John Baker 2007-06-01 06:50:12 UTC
this exception is one area to look into.
Similar result using the "text" property's editor

javax.swing.undo.CannotUndoException
	at org.netbeans.editor.BaseDocumentEvent.undo(BaseDocumentEvent.java:246)
	at org.netbeans.editor.GuardedDocumentEvent.undo(GuardedDocumentEvent.java:47)
	at javax.swing.undo.CompoundEdit.undo(CompoundEdit.java:46)
	at org.netbeans.editor.BaseDocument$AtomicCompoundEdit.undo(BaseDocument.java:1730)
	at org.netbeans.editor.BaseDocument.breakAtomicLock(BaseDocument.java:1472)
	at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:236)
	at org.openide.text.NbDocument.runAtomic(NbDocument.java:366)
	at org.openide.text.CloneableEditorSupport$2.run(CloneableEditorSupport.java:533)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Comment 13 Tomas Pavek 2007-06-06 10:41:02 UTC
Same case as issue 105372...

*** This issue has been marked as a duplicate of 105234 ***