[Uml-devel] Crash on project load: caused by AssocWidget
Achim Spangler
Achim.Spangler at mnet-online.de
Thu Sep 25 07:20:03 UTC 2003
Hi,
the current CVS version crashes on load of a class diagram.
The last executed line before breakdown is:
associationwidget.cpp,
AssociationWidget::loadFromXMI( QDomElement & qElement )
-> switch ( role )
-> case Uml::tr_RoleAName:
-> variant: NOT ( AssocRules::allowRole( getAssocType()) )
----> breakdown on try to "delete ft;"
The corresponding AssocWidget definition of the XMI file is:
-----------------------------------------------------------------------
<UML:AssocWidget totalcounta="5" indexa="4" visibilityB="200"
totalcountb="2" indexb="1" widgetbid="994" widgetaid="1058" roleBdoc=""
roleAdoc="" type="502" changeabilityA="900" changeabilityB="900"
visibilityA="200" >
<linepath>
<startpoint startx="552" starty="584" />
<endpoint endx="748" endy="364" />
<point x="619" y="381" />
</linepath>
<UML:FloatingTextWidget usesdiagramfillcolour="1" width="8"
usesdiagramusefillcolour="1" x="398" linecolour="none" y="47" instancename=""
posttext="" usesdiagramlinecolour="1" role="703" fillcolour="none"
height="21" usefillcolor="1" pretext="" isinstance="0" xmi.id="-1" text=""
font="Nimbus Sans l,12,-1,5,50,0,0,0,0,0" />
<UML:FloatingTextWidget usesdiagramfillcolour="1" width="8"
usesdiagramusefillcolour="1" x="13" linecolour="none" y="-218"
instancename="" posttext="" usesdiagramlinecolour="1" role="701"
fillcolour="none" height="21" usefillcolor="1" pretext="" isinstance="0"
xmi.id="-1" text="" font="Nimbus Sans l,12,-1,5,50,0,0,0,0,0" />
<UML:FloatingTextWidget usesdiagramfillcolour="1" width="8"
usesdiagramusefillcolour="1" x="1" linecolour="none" y="1" instancename=""
posttext="" usesdiagramlinecolour="1" role="702" fillcolour="none"
height="21" usefillcolor="1" pretext="" isinstance="0" xmi.id="-1" text=""
font="Nimbus Sans l,12,-1,5,50,0,0,0,0,0" />
<UML:FloatingTextWidget usesdiagramfillcolour="1" width="16"
usesdiagramusefillcolour="1" x="-19" linecolour="none" y="-193"
instancename="" posttext="" usesdiagramlinecolour="1" role="709"
fillcolour="none" height="21" usefillcolor="1" pretext="+" isinstance="0"
xmi.id="-1" text="" font="Nimbus Sans l,12,-1,5,50,0,0,0,0,0" />
<UML:FloatingTextWidget usesdiagramfillcolour="1" width="16"
usesdiagramusefillcolour="1" x="-19" linecolour="none" y="1" instancename=""
posttext="" usesdiagramlinecolour="1" role="710" fillcolour="none"
height="21" usefillcolor="1" pretext="+" isinstance="0" xmi.id="-1" text=""
font="Nimbus Sans l,12,-1,5,50,0,0,0,0,0" />
<UML:FloatingTextWidget usesdiagramfillcolour="1" width="8"
usesdiagramusefillcolour="1" x="190" linecolour="none" y="537"
instancename="" posttext="" usesdiagramlinecolour="1" role="711"
fillcolour="none" height="21" usefillcolor="1" pretext="" isinstance="0"
xmi.id="-1" text="" font="Nimbus Sans l,12,-1,5,50,0,0,0,0,0" />
<UML:FloatingTextWidget usesdiagramfillcolour="1" width="8"
usesdiagramusefillcolour="1" x="429" linecolour="none" y="-178"
instancename="" posttext="" usesdiagramlinecolour="1" role="712"
fillcolour="none" height="21" usefillcolor="1" pretext="" isinstance="0"
xmi.id="-1" text="" font="Nimbus Sans l,12,-1,5,50,0,0,0,0,0" />
</UML:AssocWidget>
-----------------------------------------------------------------------
The crash occurs on load of role 709.
The ID's widgetaid and widgetbid are both of regular classes, and not of
placeholders (local-id's).
I can send more details, if needed.
Bye,
Achim
More information about the umbrello-devel
mailing list