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.
When opened, the sequence diagram is erased by netbeans. I explain : I made a sequence digram, then I shutdown netbeans. When I opened netbeans and wanted to edit the diagram, I saw my diagram during 2 sec and then it was erased. The file was marked as "modified" but I can't go back to get my diagram back. It makes it 4 times on windows XP, ubuntu and kubuntu.
Did you save all changes when shutdown netbeans? Is it possible not to save changes for "modified" cleared diagram close netbeans with discard all and got behavior again on the same project? Could you provide your project? data loss -> p1, but I can't repproduce it right now -> incomplete
Created attachment 41226 [details] project in which this issue occurs
When i load the project, the sequence diagram loads and dissapear a few milliseconds afterwards. The diagram is then marked "modified". When i quit, it asks for save confirmation, but i didn't modify *anything*. When i choose not to save, this occurs again when i restart netbeans. When i choose to save, i have a blank diagram. In this case, it behaves weird : for example when I add a synchronous message, it won't draw the arrow... No problem to report with the class diagrams. The problem occurs in the diagrams : Koinche/Diagrams/Jeu and Koinche/Diagrams/Enchere
This sounds like you save the model before you shut down the IDE. If you expand the model node in the project tree, does it have any data? Are you using the version that was shipped at the end of March? THe reason I asked the last question is that starting with that release you are able to use the Save All button to save the model.
I just noticed that you included your project. I will look at the project to get some answers to my questoins.
Created attachment 41289 [details] generated report with original sequence diagrams
The root cause is inconsistency in model data, validation is performed upon diagram loading, as a result, those invalid elements on the diagram will be removed, the diagram is hence marked "dirty". See issue 91395. Did you modify your model after the sequence diagrams were created? For your reference, I attached a generated model report with diagram validation logic turned off, so you can have a record of your original sequence diagram presentation. I can see that your model and those two sequence diagrams are totally out of sync.
No I didn't modified it after my first shutdown of netbeans since the erase happend at the first time I wanted to open it again. But I made several savings during the building of the diagram.
Thank you for your reports. In fact I had to remake my diagrams so I act safely : I generate images befor I quit netbeans. ;)
If this happened after your first attempt to open the diagram after IDE shutdown, it seems to indicate there's a problem in persisting model information in your situation, some more info would help us diagnose. 1. Which build were you using? You can find out by going to Tools -> Module Manager -> UML, right click on UML Projects module and bring up property panel, look for version number under Expert -> Version (Implementation) 2. Was it a manual shut down or crash? In former case, did you 'Save All' before shutting down IDE? Did IDE prompt you to save any modified files? With recent fix to issue 79527, issue 86633, issue 86648, issue 78587 we hope users will not be paranoid about losing data, please file a P1 with a reproducible case if you ever encounter any issues with data persistence.
ok so : 1. this is version 070322 (implementation) 2. My first shutdown was totally normal. It didn't crash. If that can help : I made a diagram using messages instead of operations (ie : I didn't refer to operations of the Class diagram but write messages) and that diagram wasn't erased when I re-opened it.
This has been marked as incomplete for a long time now.