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.
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 ***
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?
You would need to delete the <codegenerators> tag in the saved file again to keep memory down.