Bug 112092 - Crash on application exit
Summary: Crash on application exit
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: 2005-09-05 20:59 UTC by Paco Arjonilla
Modified: 2006-05-10 22:19 UTC (History)
0 users

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


Attachments
Crashing model (24.81 KB, application/x-gzip)
2005-09-05 21:01 UTC, Paco Arjonilla
Details
kde backtrace of umbrello crash at exit (4.09 KB, text/plain)
2005-11-17 10:37 UTC, Sebastian Reitenbach
Details
KDE crash dump (3.25 KB, text/plain)
2006-05-10 16:18 UTC, Piotr Kubowicz
Details
Output from console (649 bytes, text/plain)
2006-05-10 21:39 UTC, Piotr Kubowicz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paco Arjonilla 2005-09-05 20:59:42 UTC
Version:           umbrello-1.4.2 (using KDE KDE 3.3.2)
Installed from:    Compiled From Sources
Compiler:          gcc-4.0.1(debian) 
OS:                Linux

Umbrello crashes on exiting. Open the attached model, and quit. There you are.
I attach also the output of the program and the stack information given by KCrash.
(If it lets me, otherwise drop eme an email and Ill send it to you)
Comment 1 Paco Arjonilla 2005-09-05 21:01:44 UTC
Created attachment 12482 [details]
Crashing model

If you need more info, drop me a note
Comment 2 Oliver Kellogg 2005-09-06 07:52:39 UTC
I don't know the fix for this but at least I know a workaround:
1. Move away your pinball.xmi so that umbrello no longer autoloads it
   on startup
2. Start umbrello, go to the Settings->Configure Umbrello menu,
   deselect "Use tabbed diagrams"
3. Exit and restart umbrello
Comment 3 Sebastian Reitenbach 2005-11-17 10:37:11 UTC
Created attachment 13502 [details]
kde backtrace of umbrello crash at exit

I can confirm this bug with umbrello 1.4.92. see the attached KDE crash report.
Comment 4 Piotr Kubowicz 2006-05-10 16:17:19 UTC
Confirm with umbrello 1.5.2 and KDE 3.5.2.
Comment 5 Piotr Kubowicz 2006-05-10 16:18:37 UTC
Created attachment 16008 [details]
KDE crash dump
Comment 6 Piotr Kubowicz 2006-05-10 16:24:43 UTC
BTW, in my case attached (pinball) model causes crash at start. I have created another model (rather simple) which also causes crash, but at exit (nearly every exit). Turning off tabs does not change anything (except that it is easier to cope with many diagrams).
Comment 7 Piotr Kubowicz 2006-05-10 21:39:20 UTC
Created attachment 16012 [details]
Output from console

Output to console produced by Umbrello at crash when opening a file.
Comment 8 Oliver Kellogg 2006-05-10 22:19:58 UTC
SVN commit 539517 by okellogg:

addDefaultStereotypes(): Guard against derefencing NULL pointer.
BUG:112092


 M  +2 -0      ChangeLog  
 M  +3 -1      umbrello/umldoc.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/ChangeLog #539516:539517
@@ -8,8 +8,10 @@
 * Save autosave file to a more obvious place (72019)
 * Usability and responsiveness improvements to code import (93296)
 * Auto-complete in parameter properties dialog in class diagram (104477)
+* Crash on application exit (112092)
 * Memory problem when importing classes from c++ sources (122668)
 * Nestable components and subsystems in Component diagram (124326)
+* Crash loading xmi file (125331, 126968)
 * User interaction with UMLWidget improvements (126391)
 * Comments are cut short when generating PHP code (126480)
 
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/umldoc.cpp #539516:539517
@@ -2566,7 +2566,9 @@
 }
 
 void UMLDoc::addDefaultStereotypes() {
-    UMLApp::app()->getGenerator()->createDefaultStereotypes();
+    CodeGenerator *gen = UMLApp::app()->getGenerator();
+    if (gen)
+        gen->createDefaultStereotypes();
 }
 
 const UMLStereotypeList& UMLDoc::getStereotypes() {