Opened 4 years ago

Closed 4 years ago

#6091 closed defect (fixed)

OpenModelica stopped working on Windows Build 20190

Reported by: bartlomiej.tokarzewski@… Owned by: somebody
Priority: blocker Milestone: 1.16.0
Component: *unknown* Version: v1.16.0-dev
Keywords: Windows, Windows Insider, OMEdit Cc: Andreas Heuermann

Description

I was using 1.16.0-dev.03 64bit already for some time, everything worked.
But now, out of nowhere, it stopped working.
I reinstalled it, but it didn't help.

Shell, notebook and plot executables do not open, no reaction.
Connection editor initializes (small blue screen only) but then shortly shuts down.
The only tool that opens is OMOptim.

OMPython module loads but can't find omc executable.
I manually added C:\OpenModelica\bin dir to Path, but not much changed.

Where can I find some kind of log/debug file?

Attachments (1)

OMEdit.zip (796 bytes ) - added by bartlomiej.tokarzewski@… 4 years ago.
OMEdit logs

Download all attachments as: .zip

Change History (9)

comment:1 by Adrian Pop, 4 years ago

This might be due to some Windows updates. One of our developers has reported something similar.
Are you on the Windows Insider Program?

See the logs in %TEMP%\OpenModelica\OMEdit
Zip all the files there and attach them here, maybe we can spot the issue.

in reply to:  1 comment:2 by bartlomiej.tokarzewski@…, 4 years ago

Replying to adrpo:

This might be due to some Windows updates. One of our developers has reported something similar.
Are you on the Windows Insider Program?

Yes I am, my current windows build is 20190.rs_prerelease.200807-1609

See the logs in %TEMP%\OpenModelica\OMEdit
Zip all the files there and attach them here, maybe we can spot the issue.

I have 4 files and all of them are empty - 0 bytes

by bartlomiej.tokarzewski@…, 4 years ago

Attachment: OMEdit.zip added

OMEdit logs

comment:3 by Adrian Pop, 4 years ago

Ouch, I expected something to be in the logs.

It seems I need to get access to one of these systems so I can debug something as I cannot use my own which is managed by the IT department.

comment:4 by Andreas Heuermann, 4 years ago

Thanks @bartlomiej.tokarzewski for reporting the issue. I was not sure if this bug was only on my machine or a general bug with the latest Windows Insider build.

Running gdb on OMEdit.exe:

$ gdb "C:\Program Files\OpenModelica1.16.0-dev-64bit\bin\OMEdit.exe"
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from C:\Program Files\OpenModelica1.16.0-dev-64bit\bin\OMEdit.exe...done.
(gdb) set break pending on
(gdb) b main
Breakpoint 1 at 0x8ffda0: file C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crt0_c.c, line 17.
(gdb) r
Starting program: C:\Program Files\OpenModelica1.16.0-dev-64bit\bin\OMEdit.exe
[New Thread 15416.0x1b18]
[New Thread 15416.0x4a28]
[New Thread 15416.0x3808]
[New Thread 15416.0x10dc]
[New Thread 15416.0x304c]
[New Thread 15416.0xb78]
[New Thread 15416.0x42b0]

Thread 1 hit Breakpoint 1, main (flags=1, cmdline=0x237f9240, inst=0x238d2460)
    at C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crt0_c.c:17
17      C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crt0_c.c: No such file or directory.
(gdb) c
Continuing.
[New Thread 15416.0x4104]
[New Thread 15416.0x2928]
[New Thread 15416.0x2c48]
[New Thread 15416.0x393c]
[New Thread 15416.0x2194]
[New Thread 15416.0x2ab8]
[New Thread 15416.0x2c0c]
[New Thread 15416.0x4380]
[New Thread 15416.0x3b94]
[New Thread 15416.0x2af0]

Thread 1 received signal SIGSEGV, Segmentation fault.
0x00007ff8d6ebc0c8 in ntdll!RtlVirtualUnwind ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
(gdb) bt
#0  0x00007ff8d6ebc0c8 in ntdll!RtlVirtualUnwind ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#1  0x00007ff8d6ebb96e in ntdll!RtlVirtualUnwind ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#2  0x00007ff8d6ebb1ab in ntdll!RtlUnwindEx ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#3  0x00007ff8d6eba72d in ntdll!RtlUnwind ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#4  0x00007ff8d6ce664b in msvcrt!_setjmpex ()
   from C:\WINDOWS\System32\msvcrt.dll
#5  0x00000000165a58d4 in omc_Ceval_cevalBuiltin (threadData=0x471c1663,
    threadData@entry=0xb4ccd48, _inCache=<optimized out>,
    _inEnv=<optimized out>, _inExp=<optimized out>,
    _inBoolean=_inBoolean@entry=1 '\001', _inMsg=<optimized out>,
    _inMsg@entry=0x471c1663, _numIter=1, _numIter@entry=370202106,
    out_outValue=0xb4cc918, out_outValue@entry=0xb4cc950)
    at C:/dev/OM64bit/OMCompiler/Compiler/boot/build/tmp/Ceval.c:21072
#6  0x00000000165aa27d in omc_Ceval_cevalWork2 (threadData=0xb4ccd48,
    threadData@entry=0xb4cfb60, _inCache=0xb4cfb60, _inEnv=0x471be0f3,
    _inExp=0x471c1683, _inBoolean=_inBoolean@entry=1 '\001',
    _inMsg=_inMsg@entry=0x471c1663, _numIter=0, _numIter@entry=1193007491,
    out_outValue=<optimized out>, out_outValue@entry=0xb4ccd70)
    at C:/dev/OM64bit/OMCompiler/Compiler/FrontEnd/Ceval.mo:335
#7  0x00000000165ab522 in omc_Ceval_cevalWork1 (
    threadData=threadData@entry=0xb4cfb60, _inCache=<optimized out>,
    _inEnv=<optimized out>, _inExp=<optimized out>,
    _inBoolean=_inBoolean@entry=1 '\001', _inMsg=0x471c1663,
    _inMsg@entry=0x100000000, _numIter=_numIter@entry=0,
    _iterReached=0 '\000', out_outValue=0xb4cce18,
    out_outValue@entry=0xb4cce38)
    at C:/dev/OM64bit/OMCompiler/Compiler/FrontEnd/Ceval.mo:128
#8  0x0000000016594012 in omc_Ceval_ceval (threadData=0xb4cfb60,
    threadData@entry=0x471be0f3, _inCache=_inCache@entry=0x471be1b3,
    _inEnv=_inEnv@entry=0x1, _inExp=_inExp@entry=0x31491fa3,
    _inBoolean=1 '\001', _inBoolean@entry=0 '\000', _inMsg=0x471c1663,
    _numIter=_numIter@entry=0, out_outValue=0xb4ccec8,
    out_outValue@entry=0xb4ccee0)
    at C:/dev/OM64bit/OMCompiler/Compiler/FrontEnd/Ceval.mo:108
#9  0x00000000165a5fb7 in omc_Ceval_cevalIfConstant (threadData=0x471be0f3,
    threadData@entry=0xb4cfb60, __omcQ_24in_5Fcache=0x471be1b3,
    __omcQ_24in_5Fcache@entry=0x471bd983, _inEnv=0x1,
    _inEnv@entry=0x470846c3, __omcQ_24in_5Fexp=0x31491fa3,
    __omcQ_24in_5Fprop=<optimized out>, _impl=<optimized out>,
    _impl@entry=1 '\001', _inInfo=<optimized out>, _inInfo@entry=0x0,
    out_exp=0xb4cd0e8, out_exp@entry=0xb4cd120,
    out_prop=out_prop@entry=0xb4cd108)
    at C:/dev/OM64bit/OMCompiler/Compiler/FrontEnd/Ceval.mo:822
#10 0x00000000163b98e1 in omc_Static_elabCallArgs3 (threadData=0xb4cfb60,
    threadData@entry=0x4708d163, _inCache=_inCache@entry=0x7ff850000163,
    _inEnv=0x470846c3, _inEnv@entry=0x0,
    _typelist=_typelist@entry=0x4718a043, _fn=0x470845a3,
    _fn@entry=0x4708c2c3, _args=_args@entry=0x16f74d3b <mmc_nil+3>,
    _nargs=_nargs@entry=0x16f74d3b <mmc_nil+3>, _impl=_impl@entry=1 '\001',
    _pre=_pre@entry=0x16ed5d73 <_OMC_LIT_STRUCT70+3>, _info=0x31491fa3,
    _info@entry=0x0, out_expProps=0xb4cd2e0, out_expProps@entry=0xb4cd318)
    at C:/dev/OM64bit/OMCompiler/Compiler/FrontEnd/Static.mo:7452
#11 0x00000000163bbd0c in omc_Static_elabCallArgs2 (threadData=0x4708d163,
    threadData@entry=0xb4cfb60, _inCache=_inCache@entry=0x4708c2c3,
    _inEnv=_inEnv@entry=0x470846c3, _inPath=_inPath@entry=0x0,
    _inAbsynExpLst=0x16f74d3b <mmc_nil+3>, _inAbsynExpLst@entry=0x0,
    _inAbsynNamedArgLst=0x16f74d3b <mmc_nil+3>,
    _inAbsynNamedArgLst@entry=0x0, _inBoolean=_inBoolean@entry=1 '\001',
    _stopElab=<optimized out>,
    _inPrefix=_inPrefix@entry=0x16ed5d73 <_OMC_LIT_STRUCT70+3>,
    _info=_info@entry=0x31491fa3, _numErrors=_numErrors@entry=0,
    out_expProps=0xb4cd690, out_expProps@entry=0xb4cd6c8)
    at C:/dev/OM64bit/OMCompiler/Compiler/FrontEnd/Static.mo:7264
#12 0x00000000163bc78f in omc_Static_elabCallArgs (threadData=0xb4cfb60,
    threadData@entry=0x16f74d3b <mmc_nil+3>, _inCache=0x4708c2c3,
    _inCache@entry=0x16f74d3b <mmc_nil+3>, _inEnv=0x470846c3,
    _inEnv@entry=0x1, _inPath=<optimized out>,
    _inAbsynExpLst=0x16f74d3b <mmc_nil+3>, _inAbsynExpLst@entry=0x31491fa3,
    _inAbsynNamedArgLst=0x16f74d3b <mmc_nil+3>,
    _inAbsynNamedArgLst@entry=0xb4cdaa0, _inBoolean=1 '\001',
    _inBoolean@entry=0 '\000', _inPrefix=0x16ed5d73 <_OMC_LIT_STRUCT70+3>,
    _inPrefix@entry=0x47084603, _info=0x31491fa3, _info@entry=0x1,
    out_outExp=0xb4cd7b0, out_outExp@entry=0xb4cd7d0,
    out_outProperties=0xb4cd7b8, out_outProperties@entry=0xb4cd7d8)
    at C:/dev/OM64bit/OMCompiler/Compiler/FrontEnd/Static.mo:6982
#13 0x00000000163beffd in omc_Static_elabCall (
    threadData=0x16f74d3b <mmc_nil+3>, threadData@entry=0xb4cfb60,
    __omcQ_24in_5Fcache=0x16f74d3b <mmc_nil+3>, _env=0x1,
    _fn=0x16ed5d73 <_OMC_LIT_STRUCT70+3>, _args=<optimized out>,
    _nargs=<optimized out>, _impl=<optimized out>, _impl@entry=1 '\001',
    _pre=<optimized out>, _pre@entry=0x100000000, _info=0x31491fa3,
    _info@entry=0x0, out_e=0xb4cdaa0, out_e@entry=0xb4cdad0,
    out_prop=0xb4cdaa8, out_prop@entry=0xb4cdad8)
    at C:/dev/OM64bit/OMCompiler/Compiler/FrontEnd/Static.mo:6730
#14 0x00000000163cd1a0 in omc_Static_elabExp__Call (threadData=0xb4cfb60,
    _inCache=<optimized out>, _inEnv=<optimized out>, _inExp=0x47084603,
    _inImplicit=1 '\001', _inDoVect=0 '\000',
    _inPrefix=0x16ed5d73 <_OMC_LIT_STRUCT70+3>, _inInfo=0x31491fa3,
    out_outExp=0xb4cdb80, out_outProperties=0xb4cdb88)
    at C:/dev/OM64bit/OMCompiler/Compiler/FrontEnd/Static.mo:526
#15 0x00000000163b114a in omc_Static_elabExp (threadData=0x4708c2c3,
    threadData@entry=0x16ed5d73 <_OMC_LIT_STRUCT70+3>, _inCache=0x470846c3,
    _inCache@entry=0x4708c2c3, _inEnv=0x0, _inEnv@entry=0x470846c3,
    _inExp=<optimized out>, _inImplicit=_inImplicit@entry=1 '\001',
    _inDoVect=_inDoVect@entry=0 '\000',
    _inPrefix=_inPrefix@entry=0x16ed5d73 <_OMC_LIT_STRUCT70+3>,
    _inInfo=0x31491fa3, _inInfo@entry=
    0x1664ef19 <ErrorImpl__getNumErrorMessages(threadData_t*)+9>,
    out_outExp=0xb4cdd78, out_outExp@entry=0xb4cddb0,
    out_outProperties=0xb4cdd90, out_outProperties@entry=0xb4cddc8)
    at C:/dev/OM64bit/OMCompiler/Compiler/FrontEnd/Static.mo:333
#16 0x000000001628419c in omc_StaticScript_elabCallInteractive__work (
    threadData=0x16ed5d73 <_OMC_LIT_STRUCT70+3>, threadData@entry=0xb4cfb60,
    _inCache=<optimized out>, _inEnv=<optimized out>,
    _inComponentRef=<optimized out>, _inExps=0x16f74d3b <mmc_nil+3>,
    _inExps@entry=0x31491fa3, _inNamedArgs=0x16f74d3b <mmc_nil+3>,
    _inNamedArgs@entry=0x0, _inImplInst=_inImplInst@entry=1 '\001',
    _inPrefix=<optimized out>, _inPrefix@entry=0xb4ce088, _info=0x31491fa3,
    _info@entry=0x470877e3, out_outExp=0xb4cdf88, out_outExp@entry=0xb4cdfa8,
    out_outProperties=0xb4cdf90, out_outProperties@entry=0xb4cdfb0)
    at C:/dev/OM64bit/OMCompiler/Compiler/Script/StaticScript.mo:346
#17 0x0000000016284715 in omc_StaticScript_elabCall (threadData=0xb4cfb60,
    threadData@entry=0x31491fa3, _inCache=_inCache@entry=0x4708c2c3,
    _inEnv=_inEnv@entry=0x470846c3,
    _inComponentRef=_inComponentRef@entry=0x31486f63,
    _inAbsynExpLst=_inAbsynExpLst@entry=0x16f74d3b <mmc_nil+3>,
    _inAbsynNamedArgLst=_inAbsynNamedArgLst@entry=0x16f74d3b <mmc_nil+3>,
    _inImplInst=_inImplInst@entry=1 '\001',
    _inPrefix=_inPrefix@entry=0x16ed5d73 <_OMC_LIT_STRUCT70+3>,
    _info=0x31491fa3, _info@entry=0x0, _numErrorMessages=0,
    out_outExp=0xb4ce080, out_outExp@entry=0xb4ce0b8,
    out_outProperties=0xb4ce088, out_outProperties@entry=0xb4ce0c0)
    at C:/dev/OM64bit/OMCompiler/Compiler/Script/StaticScript.mo:609
#18 0x0000000016284e77 in omc_StaticScript_elabExp2 (threadData=0x31491fa3,
    threadData@entry=0xb4cfb60, _inCache=_inCache@entry=0x4708c2c3,
    _inEnv=_inEnv@entry=0x470846c3, _inExp=_inExp@entry=0x31480383,
    _inImplicit=_inImplicit@entry=1 '\001',
    _performVectorization=_performVectorization@entry=1 '\001',
    _inPrefix=0x16ed5d73 <_OMC_LIT_STRUCT70+3>, _inPrefix@entry=0xb16115292,
    _info=<optimized out>, _info@entry=0x31486ea3, _numErrorMessages=0,
    out_outExp=0xb4ce290, out_outExp@entry=0xb4ce2c8,
    out_outProperties=0xb4ce298, out_outProperties@entry=0xb4ce2d0)
    at C:/dev/OM64bit/OMCompiler/Compiler/Script/StaticScript.mo:566
#19 0x0000000016284fba in omc_StaticScript_elabExp (threadData=0xb4cfb60,
    threadData@entry=0x172c8a00 <level+160>, _inCache=0x4708c2c3,
    _inEnv=_inEnv@entry=0x470846c3, _inExp=_inExp@entry=0x31486f03,
    _inImplicit=_inImplicit@entry=1 '\001',
    _performVectorization=_performVectorization@entry=1 '\001',
    _inPrefix=_inPrefix@entry=0x16ed5d73 <_OMC_LIT_STRUCT70+3>,
    _info=_info@entry=0x31491fa3, out_outExp=0xb4ce3a0,
    out_outExp@entry=0xb4ce3d0, out_outProperties=0xb4ce3a8,
    out_outProperties@entry=0xb4ce3d8)
    at C:/dev/OM64bit/OMCompiler/Compiler/Script/StaticScript.mo:532
#20 0x00000000162db276 in omc_Interactive_evaluateAlgStmt (
    threadData=0x172c8a00 <level+160>, threadData@entry=0x45d62970,
    _inAlgorithmItem=_inAlgorithmItem@entry=0x31486ea3)
    at C:/dev/OM64bit/OMCompiler/Compiler/Script/Interactive.mo:459
#21 0x00000000162dc734 in omc_Interactive_evaluate2 (threadData=0x45d62970,
    threadData@entry=0x20b4cec30, _inStatements=<optimized out>)
    at C:/dev/OM64bit/OMCompiler/Compiler/Script/Interactive.mo:349
#22 0x00000000162dd497 in omc_Interactive_evaluate (threadData=0x20b4cec30,
    threadData@entry=0x16e81f33 <mmc_none+3>, _inStatements=<optimized out>,
    _inBoolean=_inBoolean@entry=0 '\000')
    at C:/dev/OM64bit/OMCompiler/Compiler/Script/Interactive.mo:163
#23 0x0000000016123ad0 in omc_Main_handleCommand2 (
    threadData=0x16e81f33 <mmc_none+3>, threadData@entry=0xb4cfb60,
    _inStatements=0x3fcd2f43, _inProgram=0xb4cfb60,
    _inCommand=0x16e81f33 <mmc_none+3>, _inCommand@entry=0x3fcd2f43)
    at C:/dev/OM64bit/OMCompiler/Compiler/Main/Main.mo:185
#24 0x0000000016124241 in omc_Main_handleCommand (
    threadData=threadData@entry=0xb4cfb60, _inCommand=0x3fcd2f43,
    out_outResult=0xb4cec28, out_outResult@entry=0xb4cec40)
    at C:/dev/OM64bit/OMCompiler/Compiler/Main/Main.mo:162
#25 0x000000000043150d in OMCProxy::sendCommand (this=0xb4cf650,
    this@entry=0x398a2350, expression=...,
    saveToHistory=saveToHistory@entry=false) at OMC/OMCProxy.cpp:303
#26 0x00000000004318e7 in OMCProxy::getMessagesStringInternal (
    this=this@entry=0x398a2350) at OMC/OMCProxy.cpp:539
#27 0x0000000000431fbb in OMCProxy::printMessagesStringInternal (
    this=this@entry=0x398a2350) at OMC/OMCProxy.cpp:520
#28 0x0000000000434350 in OMCProxy::getModelicaPath (this=0x398a2350,
    this@entry=0x40000060) at OMC/OMCProxy.cpp:2730
#29 0x00000000004349f3 in OMCProxy::initializeOMC (this=0x40000060,
    this@entry=0x398a2350, threadData=0x0, threadData@entry=0xb4cfb60)
    at OMC/OMCProxy.cpp:263
#30 0x00000000004403e1 in OMCProxy::OMCProxy (this=0x398a2350,
    threadData=0xb4cfb60, pParent=<optimized out>) at OMC/OMCProxy.cpp:130
#31 0x00000000004cdbd1 in MainWindow::setUpMainWindow (
    this=this@entry=0x3970d2e0, threadData=threadData@entry=0xb4cfb60)
    at MainWindow.cpp:163
#32 0x0000000000403ef5 in OMEditApplication::OMEditApplication (
    this=0xb4cfb40, argc=<optimized out>, argv=<optimized out>,
    threadData=0xb4cfb60, testsuiteRunning=false) at OMEditApplication.cpp:146
#33 0x00000000004018d8 in qMain (argc=595563072, argv=0x2383be30)
    at main.cpp:192
#34 0x0000000000403016 in WinMain ()
#35 0x00000000004013ed in __tmainCRTStartup ()
    at C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:334
#36 0x00000000004014fb in WinMainCRTStartup ()
    at C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:184
(gdb)

OMC version:

$ "C:\Program Files\OpenModelica1.16.0-dev-64bit\bin\omc.exe" --version
OpenModelica v1.16.0-dev-590-g8f5710f752 (64-bit)

As you reported it was running perfectly fine until I installed an Windows update last week.

comment:5 by Andreas Heuermann, 4 years ago

I reported an issue at the Windows Feedback-Hub:
https://aka.ms/AA9c2zd

If you have the same problem you can report the bug as well:
Providing feedback - Windows Insider
More reports and information can only be a good thing to get this fixed.

comment:6 by Andreas Heuermann, 4 years ago

Cc: Andreas Heuermann added
Keywords: Windows Windows Insider OMEdit added
Priority: highblocker
Summary: Nothing worksOpenModelica stopped working on Windows Build 20190

comment:7 by bartlomiej.tokarzewski@…, 4 years ago

The issue seems to be resolved in Windows build 20201.200822-1922 :)

comment:8 by Francesco Casella, 4 years ago

Milestone: Future1.16.0
Resolution: fixed
Status: newclosed

Good to hear!

I'm closing this ticket for the time being. Please reopen if there are still issues

Note: See TracTickets for help on using tickets.