Created attachment 104498 [details] java class file When I import the class in the zip 1 by 1 it worked without problem. When importing all together umbrello crashes
To be sure: In the crash case you did set the active language to 'Java' and selected "Import from directory" from the "sourcecode" menu ? To be able to get some more informations it would be nice if you would download and install drmingw from https://github.com/jrfonseca/drmingw. Additional to get symbols it is required to download umbrello debug symbols with the same architecture (win32 or win64) as installed umbrello from http://download.kde.org/stable/umbrello/2.21.2 (debug symbols are in the *debug.7z packages) and unpack them in the umbrello install root e.g. the directory where the bin dir is located) Now you can run umbrello and if it crashes drmingw will open a related window. Please copy and paste the content of the mentioned into this bug as additional comment. To get even more informations you can download dbgview from https://download.sysinternals.com/files/DebugView.zip. Unpack the file and start dbgview before starting umbrello. It will reports umbrello's internal debug messages.
Git commit 9144401c6475f91d24f92d2d303cf860e635c2d2 by Ralf Habacker. Committed on 12/03/2017 at 19:32. Pushed by habacker into branch 'Applications/16.12'. Fix 'Crash when importing code java' Do not call name() of deleted UMLObject instance. FIXED-IN:2.21.3 (KDE Applications 16.12.3) M +9 -8 umbrello/codeimport/import_utils.cpp https://commits.kde.org/umbrello/9144401c6475f91d24f92d2d303cf860e635c2d2
From my observations crashes only the WIN32 package, not the WIN64 package, so a workaround it s use the 64bit packages instead. The windows release 2.21.3 containing this fix will be released soon.
Created attachment 104534 [details] dbgview output
Efectively the language is set to java and I run code importing wizard from the code menu. I try to installed drmingw (drmingw -i) but nothing pops up when umbrello is crashing. Then I have installed dbgview that give the attached file as output
(In reply to Pascal Deville from comment #5) > Efectively the language is set to java and I run code importing wizard from > the code menu. > > I try to installed drmingw (drmingw -i) but nothing pops up when umbrello is > crashing. Then I have installed dbgview that give the attached file as output Thanks for this info. From the dbgview info I saw Model_Utils::findUMLObject: type mismatch for "AclTypeEnum" (seeking type: "ot_Enum" , found type: "ot_Class" ). which gave me an idea what's going wrong. Fix has been applied and will be included in the next release.