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.

Bug 101695 - Sequence diagram is erased when opened after a restart of netbeans
Summary: Sequence diagram is erased when opened after a restart of netbeans
Status: RESOLVED WORKSFORME
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Sequence (show other bugs)
Version: 5.x
Hardware: PC All
: P1 blocker (vote)
Assignee: Yang Su
URL:
Keywords:
Depends on: 91395
Blocks:
  Show dependency tree
 
Reported: 2007-04-19 08:20 UTC by heynenn
Modified: 2007-06-18 22:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
project in which this issue occurs (548.74 KB, application/octet-stream)
2007-04-19 10:16 UTC, heynenn
Details
generated report with original sequence diagrams (1.29 MB, application/octet-stream)
2007-04-19 20:40 UTC, Yang Su
Details

Note You need to log in before you can comment on or make changes to this bug.
Description heynenn 2007-04-19 08:20:08 UTC
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.
Comment 1 Sergey Petrov 2007-04-19 09:18:48 UTC
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
Comment 2 heynenn 2007-04-19 10:16:22 UTC
Created attachment 41226 [details]
project in which this issue occurs
Comment 3 heynenn 2007-04-19 10:31:22 UTC
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
Comment 4 Trey Spiva 2007-04-19 17:35:56 UTC
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.
Comment 5 Trey Spiva 2007-04-19 17:37:02 UTC
I just noticed that you included your project.  I will look at the project to get some answers to my 
questoins.
Comment 6 Yang Su 2007-04-19 20:40:37 UTC
Created attachment 41289 [details]
generated report with original sequence diagrams
Comment 7 Yang Su 2007-04-19 20:42:19 UTC
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.

Comment 8 heynenn 2007-04-20 06:39:13 UTC
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.
Comment 9 heynenn 2007-04-20 06:43:00 UTC
Thank you for your reports. 

In fact I had to remake my diagrams so I act safely : I generate images befor I
quit netbeans. ;)
Comment 10 Yang Su 2007-04-24 20:04:50 UTC
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.
Comment 11 heynenn 2007-04-25 18:25:53 UTC
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.
Comment 12 Trey Spiva 2007-06-18 22:21:30 UTC
This has been marked as incomplete for a long time now.