Bug 100642 - crash on imported c++ classes
Summary: crash on imported c++ classes
Status: RESOLVED NOT A BUG
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 1.3.2
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-02 13:24 UTC by Jose N Hinckel
Modified: 2005-03-07 20:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
class species (2.27 KB, text/plain)
2005-03-02 13:35 UTC, Jose N Hinckel
Details
header for class Tspeciesdb (507 bytes, text/plain)
2005-03-02 13:36 UTC, Jose N Hinckel
Details
header for class Tspeciesdb (507 bytes, text/plain)
2005-03-02 13:37 UTC, Jose N Hinckel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jose N Hinckel 2005-03-02 13:24:49 UTC
Version:           1.3.2 (using KDE 3.3.2 Level "a" , SUSE 9.2 UNSUPPORTED)
Compiler:          gcc version 3.3.4 (pre 3.3.5 20040809)
OS:                Linux (i686) release 2.6.8-24.11-default

I import code from two header files containing two classes. 
The classes appear correctly in the diagram tree.
Project is saved without problem.
I layout the classes in a class diagram. The relationship does not show.
right-click -> properties 
Attributes... start adding comments to the attributes.
The application crashes and systems dies. Push the reset button to restart system...

PS. Header files attached.
Comment 1 Jose N Hinckel 2005-03-02 13:35:45 UTC
Created attachment 9917 [details]
class species
Comment 2 Jose N Hinckel 2005-03-02 13:36:53 UTC
Created attachment 9919 [details]
header for class Tspeciesdb
Comment 3 Jose N Hinckel 2005-03-02 13:37:03 UTC
Created attachment 9920 [details]
header for class Tspeciesdb
Comment 4 Oliver Kellogg 2005-03-02 18:30:46 UTC
Cannot confirm with 1.4.
Here's what I did:
- Import species.h and the second version of speciesdb.h (attachment 9920 [details])
- Drag Tspecies and Tspeciesdb onto class diagram
- No association is shown... I guess this could use improvement, for example
  we could at least generate a "dependency".
- Drag the datatype "map<string, Tspecies*>" onto the diagram:
  the composition association for "fdb" at Tspeciesdb is shown on the diagram
- Right click on Tspeciesdb on the diagram, select Properties->Attributes,
  select "fdb", add text in the Documentation field
- Save the model, close, load the model
- Everything is fine.
Comment 5 Jose N Hinckel 2005-03-03 20:03:19 UTC
I think I traced the problem!!!!!!!!!!!
Strangely enough after importing the classes the system crashes after approximately 30 seconds even without doing any work at all.

I checked the generated xmi file and found that it was corrupted. It seems that the importer gets confused when it encounters the character "<" which is also a special character for the xmi format.

the "comp" attribute of the Tspecies class (species.h file) is corrupted in the xmi file.

vector<pair<string ,double> > comp;  in header file

type="vector&lt; pair &lt; string , double > > in xmi file
Comment 6 Oliver Kellogg 2005-03-07 20:32:08 UTC
Due to lack of developers, the 1.3.x versions are no longer maintained.
Please use 1.4 (to be released in a few days) or at least 1.4beta2.
Anyway, I took another look and there _is_ a problem: The datatype
for "comp" and other nested-template-instantation attributes is not
promoted to the model properly (truncated to "vector" instead of e.g.
"vector<pair<string,double>>"). Feel free to raise a separate PR for this.