Opened 5 years ago

Closed 5 years ago

#5689 closed defect (fixed)

Setting a wrong flag breaks graphical annotations

Reported by: Adeel Asghar Owned by: Adrian Pop
Priority: high Milestone: 1.16.0
Component: OMEdit Version:
Keywords: Cc: Adrian Pop, Karim Adbdelhak

Description

Set a flag -d=-nfScalarize in OMEdit Tools->Options->Simulation->Additional Translation Flags and restart. Now all the APIs that fetches graphical annotations will return the annotations as it is i.e., in Modelica format. OMEdit can't parse them and crashes.

This is reported via a crash report submitted by Karim Abdelhak. We should fix this both in OMC and OMEdit.

Attachments (2)

Change History (7)

comment:1 by Adrian Pop, 5 years ago

Owner: changed from Adeel Asghar to Adrian Pop
Status: newaccepted

comment:2 by Adrian Pop, 5 years ago

There are many flags that if set will break the model instantiation.
I'm not sure how we should handle this.
For now I will disable this flag when running the NFApi.* functions.

comment:3 by Adeel Asghar, 5 years ago

479e6ff/OpenModelica makes sure that OMEdit won't crash.

comment:4 by Adrian Pop, 5 years ago

8b27e5/OpenModelica makes sure this flag is on default when using the NFApi.

comment:5 by Adrian Pop, 5 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.