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 150736 - OutOfMemoryError during the save action destorys the UML model
Summary: OutOfMemoryError during the save action destorys the UML model
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Output (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Viktor Lapitski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-20 15:37 UTC by pknakal
Modified: 2008-10-23 16:51 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 pknakal 2008-10-20 15:37:21 UTC
I've reverse engineered web application with +/- 1300 classes. I've created a class diagram for some classes. When I try
to save the diagram the OutOfMemoryError (OOME) occur. So, I've shut down the IDE and start it again and ... the reverse
engineered model has gone. I've played a bit with storing and OOME and found this: The UML module stores the model like:
firstly remove the existing one and then try to store the new one, but when the OOME occur during the module storing,
the model file is lost forever. Is it possible as a first step backup the existing model, then save the updated one and
then remove the old one?

IDE memory setup is: -J-Xms128m -Xmx1024m
Comment 1 Viktor Lapitski 2008-10-21 04:47:08 UTC
http://hg.netbeans.org/uml-main/rev/165abc3d8553
Comment 2 Sergey Petrov 2008-10-22 07:57:39 UTC
pushed to main-golden. should be available in nearest daily build.
Comment 3 Viktor Lapitski 2008-10-22 10:23:08 UTC
added diagram backup
http://hg.netbeans.org/uml-main/rev/a04d869ef2f8
Comment 4 Peter Lam 2008-10-22 18:47:44 UTC
verified in uml-main repo build 20081022 (#164)
Comment 5 Quality Engineering 2008-10-23 04:51:26 UTC
Integrated into 'main-golden', will be available in build *200810230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a04d869ef2f8
User: lvv@netbeans.org
Log: #150736 OutOfMemoryError during the save action destorys the UML model
Comment 6 Sergey Petrov 2008-10-23 13:12:41 UTC
pknakal,
can you try to switch to Files tab in nb 6.1 and restore corrupted zero project file from local history?
Comment 7 Sergey Petrov 2008-10-23 13:24:48 UTC
ok, I tried and it should work, I wasn't able to get oom, but I kill java process during saving then gotcorrupted
diagram file and was able to restore it from local history. the same should be for project files.
Comment 8 Viktor Lapitski 2008-10-23 16:51:14 UTC
reverted backup fix back as local history already provides better solution 
http://hg.netbeans.org/uml-main?cmd=changeset;node=2d329adb8269