[Uml-devel] Suggestions

Sebastian Stein s5228 at informatik.htw-dresden.de
Sun Nov 17 11:18:03 UTC 2002


Jonathan Riddell <jr at jriddell.org> [021117 16:43]:
> > - crash: load the attached .xmi file, grab the class, drag it around a
> >   while, be sure to move the mouse outside of the umbrello window;
> >   sometimes "only" the associations are messed up, sometimes it crashes
> >   with a SIGFPE; the backtrace doesn't show anything useful
> 
> I'm stuck on this one.  The backtrace shows it crashes on
> updateAssociations at the line:
> 
> assocwidget -> updateRegionLineCount(index++, totalCount, region, true);
> 
> which doesn't have a Floating point number anywhere near it.
> 
> Any suggestions?

Mmh, I can't reproduce the crash by myself. I can only messup the assocs.
But try to insert some debug statments in
associationwidget::updateRegionLineCount where it crashes there. I think it
won't crash at this line.

In the function updateRegionLineCount we find e.g. lines like:

ch = static_cast<int>(( wh * index / totalCount));

I think if totalCount is 0, the crash would occur.

Steinchen
-- 
Umbrello UML Modeller
Description     : UML diagram drawing tool for KDE with code generation
Homepage        : http://uml.sourceforge.net/
Bug report      : http://sourceforge.net/tracker/?group_id=24919&atid=382951
Feature request : http://sourceforge.net/tracker/?group_id=24919&atid=382954




More information about the umbrello-devel mailing list