<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>136940</bug_id>
          
          <creation_ts>2006-11-06 13:16:41 +0000</creation_ts>
          <short_desc>Crashes on closing/opening files created with previous umbrello versions</short_desc>
          <delta_ts>2006-11-19 10:13:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>umbrello</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="gmud">geroxp</reporter>
          <assigned_to name="Umbrello Development Group">umbrello-devel</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>484590</commentid>
    <comment_count>0</comment_count>
    <who name="gmud">geroxp</who>
    <bug_when>2006-11-06 13:16:41 +0000</bug_when>
    <thetext>Version:           1.5.52 (using KDE 3.5.5, Gentoo)
Compiler:          gcc version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)
OS:                Linux (i686) release 2.6.17-suspend2-r6

Deleting associations (or generalizations etc.) leaves references of these in the xmi file. The associations aren&apos;t shown in the class diagrams but codegeneration does show traces of them:
/** Aggregations: */

  var $m_;
  var $m_;
  var $m_;
  var $m_;
  var $m_;
  var $m_;
  var $m_;
  var $m_;

  /** Compositions: */
  var $m_;
  var $m_;
  var $m_;
  var $m_;
  var $m_;
  var $m_;
  var $m_;
  var $m_; 

In the xmi file it looks like this:
       &lt;UML:GeneralizableElement.generalization&gt;
        &lt;UML:Generalization xmi.idref=&quot;17942&quot; /&gt;
        &lt;UML:Generalization xmi.idref=&quot;17942&quot; /&gt;
        &lt;UML:Generalization xmi.idref=&quot;17942&quot; /&gt;
        &lt;UML:Generalization xmi.idref=&quot;17942&quot; /&gt;
        &lt;UML:Generalization xmi.idref=&quot;17942&quot; /&gt;
        &lt;UML:Generalization xmi.idref=&quot;17942&quot; /&gt;
        &lt;UML:Generalization xmi.idref=&quot;17942&quot; /&gt;
        &lt;UML:Generalization xmi.idref=&quot;17942&quot; /&gt;
       &lt;/UML:GeneralizableElement.generalization&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>484594</commentid>
    <comment_count>1</comment_count>
    <who name="gmud">geroxp</who>
    <bug_when>2006-11-06 13:25:42 +0000</bug_when>
    <thetext>It looks like existing associations have duplicate entries, in console there are a lot of errors like this when loading a xmi-file:
umbrello: UMLPackage::addAssocToConcepts: Settings already has association id=18176

Also this could be the reason for a crash when closing umbrello:

[KCrash handler]
#6  0xb6970f9d in __dynamic_cast ()
   from /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6
#7  0x081aff3b in UMLCanvasObject::removeAllAssociationEnds ()
#8  0x081b0d15 in UMLCanvasObject::removeAllChildObjects ()
#9  0x0818dde7 in UMLPackage::removeAllObjects ()
#10 0x0818de21 in UMLPackage::removeAllObjects ()
#11 0x081bf400 in UMLDoc::closeDocument ()
#12 0x081a5670 in UMLApp::queryExit ()
#13 0xb781d147 in KMainWindow::closeEvent ()
   from /usr/kde/3.5/lib/libkdeui.so.4
#14 0xb6f0cf2c in QWidget::event () from /usr/qt/3/lib/libqt-mt.so.3
#15 0xb6fd1d92 in QMainWindow::event () from /usr/qt/3/lib/libqt-mt.so.3
#16 0xb6e6d8ef in QApplication::internalNotify ()
   from /usr/qt/3/lib/libqt-mt.so.3
#17 0xb6e6da9c in QApplication::notify () from /usr/qt/3/lib/libqt-mt.so.3
#18 0xb74bc1e5 in KApplication::notify ()
   from /usr/kde/3.5/lib/libkdecore.so.4
#19 0xb6f0c40b in QWidget::close () from /usr/qt/3/lib/libqt-mt.so.3
#20 0xb6df7b0a in QETWidget::translateCloseEvent ()
   from /usr/qt/3/lib/libqt-mt.so.3
#21 0xb6dfd805 in QApplication::x11ClientMessage ()
   from /usr/qt/3/lib/libqt-mt.so.3
#22 0xb6e04926 in QApplication::x11ProcessEvent ()
   from /usr/qt/3/lib/libqt-mt.so.3
#23 0xb6e18915 in QEventLoop::processEvents ()
   from /usr/qt/3/lib/libqt-mt.so.3
#24 0xb6e842b1 in QEventLoop::enterLoop () from /usr/qt/3/lib/libqt-mt.so.3
#25 0xb6e841f6 in QEventLoop::exec () from /usr/qt/3/lib/libqt-mt.so.3
#26 0xb6e6ca4f in QApplication::exec () from /usr/qt/3/lib/libqt-mt.so.3
#27 0x08171d63 in main ()

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>484994</commentid>
    <comment_count>2</comment_count>
    <who name="Oliver Kellogg">okellogg</who>
    <bug_when>2006-11-07 20:41:26 +0000</bug_when>
    <thetext>&gt; Also this could be the reason for a crash when closing umbrello: 
&gt; [...]

Ouch, I thought I fixed this.
Could you attach a sample file for which this happens? Thanks.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>486582</commentid>
    <comment_count>3</comment_count>
    <who name="gmud">geroxp</who>
    <bug_when>2006-11-14 11:25:20 +0000</bug_when>
    <thetext>I have sent an e-mail to your t-online address (I hope it&apos;s still valid) with an attachment, because I can&apos;t make a testcase at the moment. Now opening the file crashes umbrello and I can&apos;t work with it anymore :(
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>487089</commentid>
    <comment_count>4</comment_count>
    <who name="Oliver Kellogg">okellogg</who>
    <bug_when>2006-11-16 06:53:34 +0000</bug_when>
    <thetext>&gt; Now opening the file crashes umbrello and I can&apos;t work with it anymore

With r604997 at least it doesn&apos;t crash anymore.

I haven&apos;t been able to reproduce the duplications.
It would help very much if you could describe the exact steps
that you did to get this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>487119</commentid>
    <comment_count>5</comment_count>
    <who name="gmud">geroxp</who>
    <bug_when>2006-11-16 10:50:18 +0000</bug_when>
    <thetext>Okay, I checked out the latest version in branch. Now, when I load my project all associations are gone. Umbrello gives me:

umbrello: ERROR: couldn&apos;t loadFromXMI association widget:0x8d77a10, bad XMI file? Deleting from umlview.
umbrello: ERROR: AssociationWidget::loadFromXMI: cannot find UMLObject 3187

Repeated about 100 times.

Also I get:

umbrello: UMLListView::slotObjectCreated([...], id= 16442): item already exists.
where [...] is a method-name, this is also repeated about 100 times.

I will try to make some test cases within this week and upload them here. Perhaps this is more than one bug. If I feel there are different problems I&apos;ll open new bugs. Thanks for paying attention to this issue!

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>487377</commentid>
    <comment_count>6</comment_count>
    <who name="Oliver Kellogg">okellogg</who>
    <bug_when>2006-11-17 01:11:13 +0000</bug_when>
    <thetext>&gt; Okay, I checked out the latest version in branch.
&gt; Now, when I load my project all associations are gone.

Fixed by r605507.
The crash on close resurfaced and is hotfixed by r605508.
It&apos;s not quite clear to me yet why deleteLater() doesn&apos;t crash
while calling the destructor directly does - I&apos;ll try to
further investigate.
Thanks for your valuable input Gero.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>487909</commentid>
    <comment_count>7</comment_count>
    <who name="Oliver Kellogg">okellogg</who>
    <bug_when>2006-11-19 10:13:09 +0000</bug_when>
    <thetext>I am renaming this because the original PR is a duplicate of
#129859, and the new title better reflects the actual work done.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>