Opened 6 years ago
Last modified 6 years ago
#5603 closed defect
OMEdit crashes on opening record with array creation in ternary operator — at Version 2
| Reported by: | Owned by: | Adrian Pop | |
|---|---|---|---|
| Priority: | critical | Milestone: | Future |
| Component: | Frontend | Version: | v1.14.0-dev-nightly |
| Keywords: | Cc: |
Description (last modified by )
Dear developer team,
when I open the following two files:
ErrorRecord.mo
record ErrorRecord parameter Boolean someBool = true; final parameter Real someValue = 0.05; parameter SimpleRecord simpleRecord(recordValue1 = someValue - simpleRecord.recordValue2); final parameter Real[1] crash = if true then {1} else array(simpleRecord.recordValue2 for i in 1:1) annotation (Dialog(enable=someBool)); end ErrorRecord;
and
SimpleRecord.mo
record SimpleRecord parameter Real recordValue1 = 1; parameter Real recordValue2 = 1; end SimpleRecord;
in OMEdit and I double click on ErrorRecord.mo, OMEdit crashes.
Oddly enough, if I change some things in ErrorRecord.mo, OMEdit doesn't crash. Those changes are:
- line 4: Change
enable=someBooltoenable=truein the annotation - line 4: Remove the annotation alltogether
- line 5: Remove the definition of
recordValue - line 5: Remove
someValuefrom the definition ofrecordValue
Can you reproduce this behaviour? I'm using the new frontend with -d=newInst
Any help is much appreciated!
Change History (2)
comment:1 by , 6 years ago
| Owner: | changed from to |
|---|---|
| Priority: | high → critical |
| Status: | new → assigned |
comment:2 by , 6 years ago
| Description: | modified (diff) |
|---|---|
| Status: | assigned → accepted |
Note:
See TracTickets
for help on using tickets.

@adrpo, not sure if this is a nfAPI, old API, or NF issue. Can you please have a look and dispatch to the appropriate person?
Thanks!