Bug 68701 - crash when creating a new doc after class import
Summary: crash when creating a new doc after class import
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-20 23:59 UTC by Sebastian Stein
Modified: 2003-11-23 12:08 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Stein 2003-11-20 23:59:50 UTC
Version:           1.2-beta (using KDE 3.1.4)
Installed from:    compiled sources
Compiler:          gcc version 3.2.3
OS:          Linux (i686) release 2.4.22

1. create a new document
2. import a cpp header like umldoc.h
3. press the new doc button in the toolbar
4. press no, you don't want to save your changes
-> crash

backtrace:

#4  0x083ec168 in ?? ()
#5  0x08149057 in UMLDoc::saveModified() (this=0xbfffe7fc) at umldoc.cpp:177
#6  0x081428e7 in UMLApp::slotFileNew() (this=0x8345280) at uml.cpp:574
#7  0x08146faa in UMLApp::qt_invoke(int, QUObject*) (this=0x8345280, _id=75,
    _o=0xbfffec90) at uml.moc:236
#8  0x40a88490 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt-3.2.2/lib/libqt-mt.so.3

I wasn't able to make a test run in valgrind, it seems to take very very very very very very long. But if you run Umbrello on a shell you will get a lot of messages like:

findUMLObject: type mismatch for int (actual type: 105)

Maybe this is the reason of the problem.
Comment 1 Oliver Kellogg 2003-11-21 08:28:30 UTC
Hm, it touches on places that I've changed so I guess this one's on me :)
Comment 2 Oliver Kellogg 2003-11-23 12:08:57 UTC
Brian, could you take a look at UMLDoc::deleteContents, I had to
take out a change you made there in umldoc.cpp revision 1.101.