Bug 83817 - Crash in umbrello when creating new doc with existing doc modified
Summary: Crash in umbrello when creating new doc with existing doc modified
Status: RESOLVED NOT A BUG
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-22 18:41 UTC by Anthony Parent
Modified: 2004-07-05 20:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Parent 2004-06-22 18:41:09 UTC
Version:           1.2.90 (using KDE 3.2.2, compiled sources)
Compiler:          gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
OS:                Linux (i686) release 2.4.20-6

I am using the CVS head as of 06/22/04

I opened an older XMI file that was created with a CVS head from 06/15/04.
Looked at a one diagram
clicked on the "New" button in the toolbar
Umbrello told me the existing document was changed, and asked me if I wanted to save it
I clicked the "No" button
CRASH!

This is repeatable.

The following is the backtrace:

[New Thread 1093907264 (LWP 28433)]
0xffffe002 in ?? ()
#0  0xffffe002 in ?? ()
#1  0x407be4dd in KCrash::defaultCrashHandler(int) ()
   from /home/tonyp/kde3.2.2/lib/libkdecore.so.4
#2  <signal handler called>
#3  0x006e006f in ?? ()
#4  0x0823ab43 in CPPHeaderCodeDocument::~CPPHeaderCodeDocument() ()
#5  0x08232411 in CPPCodeGenerator::~CPPCodeGenerator() ()
#6  0x08155f7d in UMLDoc::removeCodeGenerator(CodeGenerator*) ()
#7  0x08155d04 in UMLDoc::deleteContents() ()
#8  0x08154ebf in UMLDoc::saveModified() ()
#9  0x0814e502 in UMLApp::slotFileNew() ()
#10 0x08152672 in UMLApp::qt_invoke(int, QUObject*) ()
#11 0x40b825b6 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#12 0x40b82414 in QObject::activate_signal(int) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#13 0x40528c8c in KAction::activated() ()
   from /home/tonyp/kde3.2.2/lib/libkdeui.so.4
#14 0x4052833f in KAction::slotActivated() ()
   from /home/tonyp/kde3.2.2/lib/libkdeui.so.4
#15 0x40528e2c in KAction::qt_invoke(int, QUObject*) ()
   from /home/tonyp/kde3.2.2/lib/libkdeui.so.4
#16 0x40b82532 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#17 0x40b82414 in QObject::activate_signal(int) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#18 0x40e42be0 in QButton::clicked() ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#19 0x40bfffd0 in QButton::mouseReleaseEvent(QMouseEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#20 0x40bb011f in QWidget::event(QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#21 0x40b30bed in QApplication::internalNotify(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#22 0x40b30405 in QApplication::notify(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#23 0x4073bd2e in KApplication::notify(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libkdecore.so.4
#24 0x40ad2b1b in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#25 0x40ad0474 in QApplication::x11ProcessEvent(_XEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#26 0x40ae4c16 in QEventLoop::processEvents(unsigned) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#27 0x40b417bb in QEventLoop::enterLoop() ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#28 0x40b41678 in QEventLoop::exec() ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#29 0x40b30e08 in QApplication::exec() ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#30 0x08134a37 in main ()
#31 0x42015504 in __libc_start_main () from /lib/tls/libc.so.6
Comment 1 Sebastian Stein 2004-06-23 09:04:32 UTC
Anthony Parent <tonyp@pegasusda.com> [040623 08:28]:
> I am using the CVS head as of 06/22/04
> 
> I opened an older XMI file that was created with a CVS head from 06/15/04.
> Looked at a one diagram clicked on the "New" button in the toolbar
> Umbrello told me the existing document was changed, and asked me if I
> wanted to save it I clicked the "No" button CRASH!

I was not able to recreate the problem. Could you please provide a XMI file
which makes Umbrello crash?

Sebastian

Comment 2 Anthony Parent 2004-06-23 16:33:38 UTC
Sebastian Stein wrote:

>Anthony Parent <tonyp pegasusda com> [040623 08:28]:
>  
>
>>I am using the CVS head as of 06/22/04
>>
>>I opened an older XMI file that was created with a CVS head from 06/15/04.
>>Looked at a one diagram clicked on the "New" button in the toolbar
>>Umbrello told me the existing document was changed, and asked me if I
>>wanted to save it I clicked the "No" button CRASH!
>>    
>>
>
>I was not able to recreate the problem. Could you please provide a XMI file
>which makes Umbrello crash?
>  
>
I can't seem to reproduce the issue either. I think it had something to 
do with a corrupt file that umbrello was loading at startup. (As the 
last file I was working on when I quit umbrello the last time.) 
Unfortunately umbrello has corrupted that file further and nuked all 
content. (it is now 0 bytes.) So whatever was causing the problem is 
lost at this point. This issue of nuking the contents of an XMI file has 
been reported before. I would suggest making a backup copy prior to 
writing a file. (And make the auto save function save to some other 
file! eg. emacs uses #<filename> as an auto save file.)

Comment 3 Achim Spangler 2004-06-23 17:16:45 UTC
Am Mittwoch 23 Juni 2004 16:33 schrieb Anthony Parent:
> I can't seem to reproduce the issue either. I think it had something to
> do with a corrupt file that umbrello was loading at startup. (As the
> last file I was working on when I quit umbrello the last time.)
> Unfortunately umbrello has corrupted that file further and nuked all
> content. (it is now 0 bytes.) So whatever was causing the problem is
> lost at this point. This issue of nuking the contents of an XMI file has
> been reported before. 

> I would suggest making a backup copy prior to 
> writing a file. (And make the auto save function save to some other
> file! eg. emacs uses #<filename> as an auto save file.)
This is already implemented. You can define the suffix of the autosaved file 
in the configuration dialog of Umbrello. Additionally, you can set an 
individual time period.

I integrated this into Umbrello, as it erased also my project contents some 
time before.

Comment 4 Jonathan Riddell 2004-07-05 20:03:54 UTC
Marked as invalid because we don't have a sample file.