Summary: | Crash on generating code | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Gerald Senarclens de Grancy <oss> |
Component: | general | Assignee: | Joris Steyn <kde> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | kde, ralf.habacker |
Priority: | NOR | Keywords: | drkonqi |
Version: | 2.11.1 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/umbrello/f9627016 | Version Fixed In: | 4.11.3 |
Sentry Crash Report: | |||
Attachments: |
(nonsensical) xmi file reproducing the crasher
Fix potential crash on code generation |
Description
Gerald Senarclens de Grancy
2013-09-24 12:02:25 UTC
Could you attach the XMI that triggers this behaviour? Created attachment 82524 [details]
(nonsensical) xmi file reproducing the crasher
Added nonsensical xmi file that reproduces the crasher. The file is entirely generated by umbrello and was never hand-modified (not sure how it ended up the way it is, but it reproduces the crasher).
In order to reproduce,
1 open the attached mini.xmi file
2 go to settings->configure umbrello...
3 in the general tab, under 'miscellaneous' select "use new c++/java/ruby generators"
4 save the file and close umbrello (couldn't reproduce the crash w/out closing umbrello after changing the above setting).
5 start umbrello and open mini.xmi
6 go to code->code generation wizard
7 remove all items but std::list<Cluster*>::iterator
8 hit next 'twice' and then 'generate'
expected:
- something (or nothing) is generated or message about the xmi file being nonsense
actual:
- crash
Created attachment 82537 [details]
Fix potential crash on code generation
Indeed I can't make sense out of this one. However, proposed patch makes Umbrello log an error instead of crashing.
|