Bug 74242 - importing C++ code takes enormous amounts of memory
Summary: importing C++ code takes enormous amounts of memory
Status: RESOLVED DUPLICATE of bug 72644
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 1.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-05 16:16 UTC by Boudewijn Rempt
Modified: 2004-02-05 20:56 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boudewijn Rempt 2004-02-05 16:16:07 UTC
Version:           1.2 (using KDE 3.2.0, SuSE)
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS:          Linux (i686) release 2.4.20-4GB-athlon

Im trying to recreate Krita's class diagram -- I lost the previous one-- and am thus trying to import everything in krita/core and subdirs into Umbrello. This quickly brings my computer to its knees, because it appears to be taking really enormous amounts of memory. After a twenty or so imports, Umbrello appears to take about 500mb; when shutting down, starting up again and loading the file, that's down to 50 MB or so.

I think I can complete the task, but only by importing a few classes, shutting down, starting up, importing the next five, lather, shave, rinse, repeat... And when loading the file I get lots of warnings like this:

umbrello: WARNING:  LOAD FROM XMI: MISSING CODE DOCUMENT, plowing ahead with pre-generated one.
umbrello: WARNING:  * findCodeDocumentByID finds NO match to [cppheader2363]

umbrello: ERROR:  DANGER DANGER! DIDNT find code classfield for id:2213 corrupt code generator?
umbrello: ERROR: ERROR: cant find code classfield for ID:2213 do you have a corrupt savefile?

umbrello: ERROR: ERROR! corrupt save file? cant get proper UMLRole for codeparameter:2191 w/role_id:0

And that makes me a little uneasy.
Comment 1 Jonathan Riddell 2004-02-05 16:54:13 UTC
This is due to the code generation and undo/redo.

Delete everything in <codegenerators> in the saved file, start umbrello and change to a code generator which doesn't create code (such as Perl) before opening the diagram or importing the classes.

Hardly ideal I know.


*** This bug has been marked as a duplicate of 72644 ***
Comment 2 Halla Rempt 2004-02-05 20:51:43 UTC
Subject: Re:  importing C++ code takes enormous amounts of memory

On Thursday 05 February 2004 16:54, Jonathan Riddell wrote:
> This is due to the code generation and undo/redo.
>
> Delete everything in <codegenerators> in the saved file, start umbrello and
> change to a code generator which doesn't create code (such as Perl) before
> opening the diagram or importing the classes.
>
> Hardly ideal I know.
>

Eek! But could I switch to a C++ code generator one I have my new classes 
added to the diagram, generate, and switch it off again?

Comment 3 Jonathan Riddell 2004-02-05 20:56:56 UTC
You would need to delete the <codegenerators> tag in the saved file again to keep memory down.