- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » OpenModelica OMEdit Crushed when open...
OpenModelica OMEdit Crushed when open FCsys package
OpenModelica OMEdit Crushed when open FCsys package
Two weeks ago, I installed OpenModelica V1.12.0(64-bit) for Fuel Cell Simulation. There is a package named FCsys in system library.
When it loaded into the OMEdit, it said that "Requested package Modelica of version 3.2.1, but this package was already loaded with version 3.2.2. You might experience problems if these versions are incompatible."
At this time, the FCsys showed normally in the left tree in the panel. When I clicked Nodes "Conditions"-->"Examples"-->"BoundaryCondition", it suddenly crushed without a warning message.
Do you master know how to address this issue? which version of OpenModelica should I installed in my computer?(OS: Win7 Pro.X64).
thank you very much.
Re: OpenModelica OMEdit Crushed when open FCsys package
Unfortunately OpenModelica compiler is crashing hard on command "getComponents(FCSys.Conditions.Environment)". I have made a minimal example for testing,
Code:
loadModel(FCSys);
getErrorString();
getComponents(FCSys.Conditions.Environment);
getErrorString();
Here is the gdb output,
Code:
(gdb) r
Starting program: C:\OpenModelica\build\bin\omc.exe script.mos
[New Thread 3492.0x1038]
[New Thread 3492.0x4024]
[New Thread 3492.0x1b30]
[New Thread 3492.0x28ec]
[New Thread 3492.0xe18]
[New Thread 3492.0x21c8]
[New Thread 3492.0x4748]
[New Thread 3492.0x2c50]
[New Thread 3492.0x2624]
[New Thread 3492.0xd64]
[New Thread 3492.0x3830]
[New Thread 3492.0x4068]
[New Thread 3492.0x9c0]
[New Thread 3492.0x43d4]
[New Thread 3492.0x3db4]
[New Thread 3492.0x20b0]
[New Thread 3492.0x47c]
[New Thread 3492.0x2474]
[Thread 3492.0x1b30 exited with code 0]
[Thread 3492.0x28ec exited with code 0]
[Thread 3492.0x4024 exited with code 0]
Thread 1 received signal SIGSEGV, Segmentation fault.
0x000000006d0bbe41 in omc_InstUtil_splitInnerAndOtherTplLstElementMod ()
from C:\OpenModelica\build\bin\libOpenModelicaCompiler.dll
(gdb)
I suggest to make a bug report (https://trac.openmodelica.org/OpenModelica/newticket) so it can be assigned to the appropriate developer.
Adeel.
- adeas
- 454 Posts
Re: OpenModelica OMEdit Crushed when open FCsys package
adeas wrote:
Unfortunately OpenModelica compiler is crashing hard on command "getComponents(FCSys.Conditions.Environment)". I have made a minimal example for testing
InstUtil.splitInnerAndOtherTplLstElementMod was some old code written in a non-tail recursive way, so it would cause a stack overflow on large inputs. I've fixed that particular issue by rewriting the function to use a for-loop instead, but unfortunately getComponents still segfault. It seems like the instantiation goes into a loop and runs out of stack, which is probably much harder to fix.
And even if that was fixed it doesn't look very good for FCsys on our coverage tests at the moment.
- perost
- 114 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » OpenModelica OMEdit Crushed when open...