Bug 415989 - Dosnt Open/Delete class Diagram element
Summary: Dosnt Open/Delete class Diagram element
Status: REPORTED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 2.30.0 (KDE Applications 19.12.0)
Platform: Microsoft Windows Microsoft Windows
: NOR major
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-08 07:20 UTC by Hamid Sahraiee
Modified: 2020-01-08 18:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
_ClassDiagram_UI is a class diagram in the SahraCore/UI folder. it doesn't open or delete. (31.02 KB, text/xml)
2020-01-08 07:20 UTC, Hamid Sahraiee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hamid Sahraiee 2020-01-08 07:20:34 UTC
Created attachment 124964 [details]
_ClassDiagram_UI is a class diagram in the SahraCore/UI folder. it doesn't open or delete.

SUMMARY

Hi, I'm work on my own Game project. it's a little big project. so I create /rename/ delete so many elements in the Umbrello.

when I want to load a class diagram, it doesn't open(neither deleted )

STEPS TO REPRODUCE
I attach my project file (unnecessary elements are removed)

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: win 10 64bit/ 1903 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Ralf Habacker 2020-01-08 09:20:44 UTC
Comment on attachment 124964 [details]
_ClassDiagram_UI is a class diagram in the SahraCore/UI folder. it doesn't open or delete.

The appended xmi file is somehow corrupted. It contains one class diagram named 'class diagram': 

<diagram showopsig="1" linecolor="#ff0000" snapx="25" showattribassocs="1" snapy="25" linewidth="0" showattsig="1" textcolor="#000000" isopen="1" showpackage="1" showpubliconly="0" showstereotype="1" name="class diagram" font="Sans Serif,10,-1,0,50,0,0,0,0,0" canvasheight="0" canvaswidth="0" localid="-1" snapcsgrid="0" showgrid="0" showops="1" griddotcolor="#f6f6f6" backgroundcolor="#bdbdbd" usefillcolor="1" fillcolor="#ffffc0" zoom="100" xmi.id="uwbRU2dwxj3QB" documentation="" showscope="1" snapgrid="0" showatts="1" type="1"><widgets/><messages/><associations/></diagram>

which is referenced later in the section for the tree view

<listview>
... 
<listitem open="0" type="807" id="uwbRU2dwxj3QB" label="class diagram"/>

a few line below there is also the class diagram you are missing:

<listitem open="0" type="807" id="ucJia8aOVztKv" label="_ClassDiagram_UI"/>

but there is no related <diagram> tag in the file.

I suggest to open the xmi file in an editor, remove the mentioned line, save the file, load it with umbrello and recreate the diagram _ClassDiagram_UI.

If you can give some information how to reproduce this issue, it would be possible to fix this isssue inside the umbrello source code.
Comment 2 Hamid Sahraiee 2020-01-08 18:48:32 UTC
Thanks a lot.

by removing that line, my problem fixed.

I work on this project for more than two months, therefore I don't remember what I do that cause this corruption.

Is there any tool to check the Umbrello file [xmi] and find the failure issues?
Is there a log file in the Windows platform that can be accessible after the crash?

I think there is more issue in my project file.
when I try to Generate C# code on some codes (Not all), the Application will be crashed.or inheritance will not be applied in the generated C# codes.

I started the project with Umbrello V 2.29 and then upgraded the Umbrello to V 2.30.0 and continued the development.