#6406 closed defect (fixed)
OMEdit GUI not working properly
Reported by: | Owned by: | Adrian Pop | |
---|---|---|---|
Priority: | blocker | Milestone: | 1.17.0 |
Component: | OMEdit | Version: | v1.17.0-dev |
Keywords: | Cc: | Adeel Asghar |
Description
Hello,
I have been using OM for some benchmark projects for a while and testing it for custom analyses of mainly 1D thermo-fluid systems. Recently, I came across some GUI problems which I will be summarize below.
I have installed recent version of v1.17.0-dev.beta3 (64-bit) in Win10 wint MSL 4.0.0.
1) Default installation settings are shown in screenshot Cap1.
2) View of Modelica.Fluid.Examples.HeatExchanger.HeatExchangerSimulation: Screenshot Cap2
3) View of Parameters window of the above example: Cap3
4) View of Initialization window of the above example: Cap4
I have enabled the Replaceable Support and restarted OMEdit (Cap1A). I opened the above example (Cap2A).
The issue that I noticed are:
1) Opening of the Parameters window took some time. May be 10-15 seconds. When opened parameters that appear on GUI showed in one window without any tabs or groups (Cap3A).
2) Closed the example tried to open again and during long opening time I closed the OMEdit. Then reopened the HEX example and now the view is as in Cap2B.
I am not sure if these issues can be reproduced or related to my computer settings etc.
Regards,
Ilhan
Attachments (8)
Change History (19)
by , 4 years ago
by , 4 years ago
by , 4 years ago
by , 4 years ago
by , 4 years ago
comment:1 by , 4 years ago
follow-up: 3 comment:2 by , 4 years ago
Please try again, I trained the spam filter with your files. Sorry about that.
by , 4 years ago
by , 4 years ago
by , 4 years ago
comment:3 by , 4 years ago
Replying to adrpo:
Please try again, I trained the spam filter with your files. Sorry about that.
Thanks @adrpo. I have uploaded them.
comment:4 by , 4 years ago
Cc: | added |
---|---|
Milestone: | NeedsInput → 1.17.0 |
Owner: | changed from | to
Priority: | high → blocker |
Status: | new → assigned |
@adrpo, I tried this myself with beta3 on my Windows 10 PC. If I have Enable Replaceable Support turned off, but new frontend API turned on, I see gray boxes instead of the pump icons, but at least I see the connectors on HEX.
If I also activate Enable Replaceable Support, the four connectors of HEX are no longer visible.
It seems we're still not there. This has top priority for 1.17.0.
comment:5 by , 4 years ago
The problem seems to be in MSL 4.0.0 which has *BAD BAD BAD* annotations. For example:
https://github.com/modelica/ModelicaStandardLibrary/blob/master/Modelica/Fluid/Examples/HeatExchanger.mo
has annotation(choicesAllMatching, ...)
but the Modelica specification says that the annotation should be: choicesAllMatching=true
.
https://specification.modelica.org/maint/3.5/inheritance-modification-and-redeclaration.html#annotation-choices-for-suggested-redeclarations-and-modifications
comment:6 by , 4 years ago
The PR: https://github.com/modelica/ModelicaStandardLibrary/pull/3779 will fix the bad annotations in MSL.
There are other issues with this ticket, I will instigate more. As far as I can tell a the moment some parameters showing up in graphical annotations are not evaluated to literals and OMEdit has no clue what to do with them so it fails to display the icons.
comment:7 by , 4 years ago
PR: https://github.com/OpenModelica/OpenModelica/pull/7310 should fix all the icon display issues.
comment:9 by , 4 years ago
PR: https://github.com/OpenModelica/OpenModelica/pull/7312
for maintenance/v1.17
comment:10 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I will upload the rest of the screenshots when Trac allows me to and quits thinking they are spam :)
BR,
Ilhan