Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Problem Netgen/NGSolve does not start, no error; any tips?

More
2 years 7 months ago #3935 by Peter_Meshert
Dear Community,

i tried to (re)install Netgen/NGSolve on my Windows 10 PC as described in the Download section. Not the first time on this machine. Why the reinstall? Well, it stopped working, without any strange behaviour. I didn't used the program for weeks and when i tried, it stopped at the following point:
Code:
C:\Windows\system32>netgen NETGEN-6.2.2104 Developed by Joachim Schoeberl at 2010-xxxx Vienna University of Technology 2006-2010 RWTH Aachen University 1996-2006 Johannes Kepler University Linz Including OpenCascade geometry kernel optfile ./ng.opt does not exist - using default values togl-version : 2 C:\Windows\system32>

This happens also after a new installation. I de- and reinstalled Python (3.7.9), Microsoft Visual Studio 2017 Redistributables. Tried different older versions (of Netgen/NGSolve) with the same outcome.
On a different W10-PC it worked (with the same installation files) like a charme.

Can you help me or give me a hint what i can try?
More
2 years 7 months ago #3936 by matthiash
Hi Peter,

what does happen if you import ngsolve from python?
python3
>> import ngsolve

Another try: In the command line, navigate to the netgen bin directory (the one containing netgen.exe) and try to run it from there.

It might be that netgen loads an incompatible version of a .dll and dies without any error message. We had troubles like this when another software provides tcl.dll and the path to the other .dll comes before the netgen directory in the PATH environment variable.

Best,
Matthias
More
2 years 7 months ago #3938 by Peter_Meshert
Hi Matthias,

thank you for your response!

this happens, when i import ngsolve:
Code:
c:\Program Files\Python\Python37>python Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import ngsolve importing NGSolve-6.2.2104 >>>

so, no error message, but also nothing more.

starting netgen (with command line) at the bin directory leads to the same result described in the first post.

I compared the PATH enviroment variables for both W10-PCs. They seem to be the same, on the one with the problem there are a few more entries (Matlab, CMake, TDM-GCC, Miktex, Git).

Is there a way to find the incompatible dll or perhaps do you know another workaround?

Best, Peter
More
2 years 7 months ago #3939 by matthiash
Miktex does ring a bell, maybe that's the issue.

You can check the loaded dlls (and the symbols) with the dependency walker:
dependencywalker.com/
Just load the netgen.exe and see if you get any errors/red library names (don't worry about the ms-api-.... stuff, that's usual).

Best,
Matthias
More
2 years 7 months ago #3943 by Peter_Meshert
Hi Matthias, hi all,

I haven't it figured out yet. I removed Miktex and reinstalled netgen/ngsolve, but it stops at the same time.

dependency walker (as far as I can tell) gives no errors (except these EXT- and API-MS and a few false-positive) regarding ngsolve.

Best,
Peter

Guess guess i'll try a few more combinations this weekend
More
2 years 7 months ago #3944 by christopher
Have you tried removing the path variables that are different? Does it work then? Then you can try adding them one by one and see which causes the problem...

Best
Christopher
Time to create page: 0.155 seconds