Opened 5 years ago

Closed 5 years ago

#5909 closed defect (fixed)

Issue with OMEdit under Windows 10

Reported by: Francesco Casella Owned by: Adeel Asghar
Priority: critical Milestone: 1.16.0
Component: OMEdit Version:
Keywords: Cc: Adrian Pop, gianni.ferretti@…

Description

My colleague Gianni Ferretti reports a strange case: he just bought a new Windows 10 laptop and installed OpenModelica on it. The command-line compiler works fine, as well as other tools like OMNotebook. OMEdit instead shows the splash screen for a while and then dies without further notice.

This happens with the official, stable, and nighly build versions.

Any idea why this could happen, and/or what could we look at to figure out what's wrong?

Change History (6)

comment:1 by Adrian Pop, 5 years ago

We need: %TEMP%/OpenModelica/OMEdit directory as a zip.

You could also try restart, maybe the OPENMODELICAHOME environment variable is not set properly.

comment:2 by Adeel Asghar, 5 years ago

Everything looks fine in the logs. Can you do the following,

  • Delete the %TEMP%/OpenModelica/OMEdit directory
  • Run OMEdit from the command prompt like this OMEdit.exe --Debug=true
  • Resend the newly created %TEMP%/OpenModelica/OMEdit directory.

comment:3 by Adeel Asghar, 5 years ago

Hmmm not sure what is wrong.

What happens if you run it with gdb. There is gdb inside OpenModelica installation folder.

%OPENMODELICAHOME%/tools/msys/mingw64/bin/gdb.exe OMEdit.exe

comment:4 by Adeel Asghar, 5 years ago

I fixed the problem on Gianni's PC. The problem is that the libeay32.dll from msys is crashing and it is the one that is used by default since we set the path for msys mingw when we start omc from OMEdit. I still don't know why it is crashing but as a workaround i renamed the libs in msys mingw so that the libs from OM bin folder are used.

comment:5 by Adeel Asghar, 5 years ago

I have now updated the windows installer to automatically rename the MSYS ssl libs so that the libs inside bin directory are used (https://github.com/OpenModelica/OpenModelicaSetup/commit/0eb066072fd9c40cb498dcc96857dfff1a844a72).

comment:6 by Adeel Asghar, 5 years ago

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