Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#4576 closed defect (fixed)

OMEdit crashes when try to create a transition between two states of a status machine

Reported by: Andrea Bartolini Owned by: Adeel Asghar
Priority: high Milestone: 1.12.0
Component: OMEdit Version: v1.13.0-dev-nightly
Keywords: Cc:

Description

In order to reply the problem:

1) open in OMEdit the attached model TwoStatesMachine2.mo, it contains:

a) two state models (State1 and State2) created using the OMEdit menu File-->NewModelicaClass and marking the model as "State" in the pop-up window

b) a model "Machine" which contains one instance of State1 model and one instance of State2 model

2) open the Machine model and try to generate a transition between the two states: the "Create transition" pop-up is shown...

3) put a condition (e.g. i>10) and press OK

--> OMEdit crashes

OMEdit 1.13.0~dev-18-gf627d10 connected to OpenModelica 1.13.0~dev-192-gd3b895d built for Ubuntu 16.04.3 LTS.
The running OS is Ubuntu 16.04.3 LTS on x86_64.

Attachments (2)

TwoStatesMachine2.mo (1.5 KB ) - added by Andrea Bartolini 7 years ago.
StateMachine.png (9.1 KB ) - added by Andrea Bartolini 7 years ago.

Download all attachments as: .zip

Change History (8)

by Andrea Bartolini, 7 years ago

Attachment: TwoStatesMachine2.mo added

comment:1 by Andrea Bartolini, 7 years ago

Component: *unknown*OMEdit
Milestone: Future1.12.0
Owner: changed from somebody to Adeel Asghar
Priority: highcritical
Version: v1.13.0-dev-nightly

comment:2 by Adeel Asghar, 7 years ago

Resolution: fixed
Status: newclosed

Fixed in d60d43/OMEdit.

comment:3 by Andrea Bartolini, 7 years ago

Priority: criticalhigh
Resolution: fixed
Status: closedreopened

I confirm that now OMEdit create transition, but there are still some issues with the condition visualization, as per shown in attached file.

OMEdit 1.13.0~dev-24-g095b0ef
Connected to OpenModelica 1.13.0~dev-222-ga3c7ea2
sysop - Ubuntu 16.04 - 64 bit

by Andrea Bartolini, 7 years ago

Attachment: StateMachine.png added

comment:4 by Adeel Asghar, 7 years ago

Yeah of course there are issues with the display.
But can you please create a new ticket about it with a milestone 1.13?
I might not be able to fix this issue for 1.12.

comment:5 by Andrea Bartolini, 7 years ago

Resolution: fixed
Status: reopenedclosed

comment:6 by Andrea Bartolini, 7 years ago

moved to new dedicated ticket

Note: See TracTickets for help on using tickets.