Bug 79558 - Corrupted XMI file (empty!)
Summary: Corrupted XMI file (empty!)
Status: RESOLVED NOT A BUG
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 1.2.1
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-13 14:07 UTC by Jaakko Holster
Modified: 2004-06-23 14:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
ChangeableAutoSave.diff.gz (1.72 KB, application/x-gzip)
2004-05-19 11:22 UTC, Achim Spangler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaakko Holster 2004-04-13 14:07:33 UTC
Version:           1.2.1 (using KDE 3.2.1,  (testing/unstable))
Compiler:          gcc version 3.3.3 (Debian)
OS:          Linux (i686) release 2.6.4-1-k7

I was playing with an XMI class diagram file, which contained totally ~20 classes and few hundred attributes. Suddenly umbrello began to crash everytime when I tried to save the file. After few closing & re-opening umbrello said "error when loading file" etc. I found that the file was empty, i.e its size was 0 bytes! Wow, I lost work of several days. I'm not sure if the file was overwritten when it was saved or loaded.

This is not my first umbrello 1.2.1 related problem: once it crashed when I modified attributes, and it regularly losts my custom colors & fonts.

I'm sorry this bug report is not very informative. I just want to let you know, that there is a risk of getting your XMI file destroyed.
Comment 1 Piotr Kolaczkowski 2004-04-13 16:16:09 UTC
Hello,

Automatic backups would be a nice feature. I also sometimes experience some 
"accidental" crashes.

Regards,
Piotr Kolaczkowski

Comment 2 Jonathan Riddell 2004-04-14 19:08:48 UTC
>Automatic backups would be a nice feature.

Settings->Configure Umbrello, turn on autosave.
Comment 3 Jonathan Riddell 2004-04-14 19:31:22 UTC
I'm sorry for your loss of data, Umbrello isn't perfect yet.

A backtrace would help us pin point the problem as would a copy of the file.
Comment 4 James Hughes 2004-05-19 00:27:24 UTC
>>Automatic backups would be a nice feature.

>Settings->Configure Umbrello, turn on autosave. 

This just happened to me as well (I made my own backup file, but I got a little lax--it's 5 days old :-( ). Unfortunately the above suggestion doesn't cut it, as I had autosave turned on. I think something more like the emacs idea of periodically creating a backup file with a '~' on the end; dia does something similar, creating <filename>.autosave at regular intervals.

 Unfortunately I didn't grab a backtrace, as it took a new instance of the program to discover that the file size was suddenly zero. 
Comment 5 Achim Spangler 2004-05-19 11:22:40 UTC
Hi,
I created a new global config option for umbrello, where the user can define 
the suffix for the Autosave. The default is - at the moment - ".xmi".
Thus the user can change it for example to ".auto.xmi". Now umbrello stores 
the autosave file always to a file which is different from the main file.

Dear main developers - please check this patch and apply it, if acceptable.

Bye,
Achim

Am Mittwoch, 19. Mai 2004 00:27 schrieb James Hughes:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> http://bugs.kde.org/show_bug.cgi?id=79558
>
>
>
>
> ------- Additional Comments From jhughes chspr ubc ca  2004-05-19 00:27
> -------
>
> >>Automatic backups would be a nice feature.
> >
> >Settings->Configure Umbrello, turn on autosave.
>
> This just happened to me as well (I made my own backup file, but I got a
> little lax--it's 5 days old :-( ). Unfortunately the above suggestion
> doesn't cut it, as I had autosave turned on. I think something more like
> the emacs idea of periodically creating a backup file with a '~' on the
> end; dia does something similar, creating <filename>.autosave at regular
> intervals.
>
>  Unfortunately I didn't grab a backtrace, as it took a new instance of the
> program to discover that the file size was suddenly zero.
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: SourceForge.net Broadband
> Sign-up now for SourceForge Broadband and get the fastest
> 6.0/768 connection for only $19.95/mo for the first 3 months!
> http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
> _______________________________________________
> Uml-devel mailing list
> Uml-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/uml-devel


Created an attachment (id=6055)
ChangeableAutoSave.diff.gz
Comment 6 Jaakko Holster 2004-06-23 14:21:23 UTC
It happened again - I moved one object by mouse, which caused umbrello to hang for a while (maybe because it was partially swapped to disk) and then crash. After that I found that the size of my .xmi file was 0 bytes. Lucky me, I've made daily backups of it.