Bug 374811

Summary: umbrello does not accept void operations
Product: [Applications] umbrello Reporter: Andre Hasekamp <hasecomp>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal CC: okellogg, ralf.habacker
Priority: NOR    
Version: 2.21.0 (KDE Applications 16.12.0)   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 2.12.2 (KDE Applications 16.12.2)
Bug Depends on: 374415    
Bug Blocks:    

Description Andre Hasekamp 2017-01-09 13:39:44 UTC
Start umbrello.

Enter a new class, MyClass.

Try to enter a new operation myOperation, type void. Umbrello crashes.

stdout output:

umbrello: Modified file= "Untitled"
umbrello: setZoom 100
umbrello: Object_Factory::createUMLObject( "" ):  parentPkg is not set, assuming Model_Type  "Logical"
umbrello: "Create UML object : MyClass"  [ 1 ]
umbrello: Modified file= "Untitled"
umbrello: scene= "class diagram"  / object= "MyClass"
umbrello: Modified file= "Untitled"
umbrello: "Create widget : MyClass"  [ 1 ]
umbrello: Modified file= "Untitled"
umbrello: widget =  "MyClass"  / type =  "wt_Class"
umbrello: "Rename object :  to new_operation"  [ 2 ]
umbrello: Modified file= "Untitled"
umbrello: "Rename object : new_operation to myOperation"  [ 3 ]
umbrello: Modified file= "Untitled"
Segmentation fault (core dumped)

If you tell me where I can find the core dump (not in /var/log) I can add the dump to this bug report.

New operations of other types (e.g. bool, int) seem to be OK.

Archlinux distribution.

umbrello 2.21.0

KDE Frameworks 5.29.0
Qt 5.7.1 (built against 5.7.1)
The xcb windowing system

Kind regards,
Andre Hasekamp.
Comment 1 Ralf Habacker 2017-01-09 15:25:33 UTC
> If you tell me where I can find the core dump (not in /var/log) I can add the dump to this bug report.
If there is no KDE crash dialog you can generate a backtrace by starting umbrello from gdb e.g.

gdb umbrello
r

BTW: For Archlinux there is a dedicated page for https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces
Comment 2 Ralf Habacker 2017-01-09 15:35:23 UTC
With bug 374530 another crash bug on Archlinux has been reported caused by a gcc 6.2 issue. This bug has been fixed with umbrello version 2.21.1 and may solve this bug also. Is it possible to check this version ?
Comment 3 Andre Hasekamp 2017-01-17 13:50:46 UTC
Indeed, the bug is fixed in umbrello 2.21.1.

Thank you,
Andre Hasekamp.
Comment 4 Oliver Kellogg 2020-11-02 04:37:20 UTC
Can this be closed?
Comment 5 Ralf Habacker 2020-11-02 07:14:30 UTC
In reply to Andre Hasekamp from comment #3)
> Indeed, the bug is fixed in umbrello 2.21.1.

Andre confirmed that.
Comment 6 Ralf Habacker 2020-11-02 09:47:02 UTC
In reply to Andre Hasekamp from comment #3)
> Indeed, the bug is fixed in umbrello 2.21.1.
According to bug 374530 the specified release version must be 2.21.2.