PrePoMax fails under Linux since 2.4.4

Hello Matej,

urgent question: Did you change somerthing in the windows dll’ or graphic subsystem from 2.4.3 to 2.4.4? 2.4.3 works without problems in Windows emulators under Linux like wine or proton. From 2.4.4 on, the program shuts down after logo, befor opening the main window.

As far as I remember, there are no such changes. But I will have to look into it.

Linux what??? how are you running it on linux? I haven’t attempted it but that sounds awesome. I only use linux at home and this being one of my most useful and favorite work/pastime programs…I’m interested.

Hi,

if you are using Steam under Linux, best option is to use Proton.

Just unpack prepomax in a folder, go to steam, under libaries left side → add non steam program →

set program path to prepomax.exe, under settings, compatibility option choose “proton experimental”

create a link on desktop.

Or you use the old wine emulator. Thats a bit more work.

1 Like

There are some instructions for Wine here: GitHub - jcugnoni/PrePoMax_on_Linux_with_wine: A set of instructions to install PrePoMax FEA software (a great Calculix prepost) on Linux using Wine

On the forum, there are a few threads discussing the possible approaches to run PrePoMax on Linux. Of course, a Virtual Machine with Windows would be another option.

1 Like

Thank you both. Yeah, at home I’m mostly on linux. It gets annoying having to restart to go to windows and then come back.

Did you use the entire PrePoMax package from the internet or did you modify some files - settings, materials, …

And can someone else confirm this behaviour?

Hello Matey,

i only unpacked the zip file, no modifications.

As i say, all versions up to 2.4.3 run fine.

Br,

Frank

I have found one possible reason. There are some missing dll files in the PrePoMax/lib folder.

Can you try to copy the files:

msvcp140d.dll
Newtonsoft.Json.dll
ucrtbased.dll
vcruntime140d.dll

from the version that works (v2.4.3) to the newest version?

And in order for the Gmsh to work, copy:

msvcp140.dll
vcruntime140.dll

from the NetGen folder to the lib folder (these are not the same as above).

Hello Matey,

i had the same idea and tried this already, but sadly it don’t work.

In a log file of the program start, i maybe identified an error message:

file:///run/media/systSystem.Runtime.InteropServices.COMException (0x800706BA)
Mär 02 02:00:58 xxx.de steam[22152]:
Unhandled exception in Xalia:em/data/Programme/PrePoMax v2.5.0

That means trouble with a RPC.

I will have to set up a virtual Linux environment to test that…

I’ve never tried running PrePoMax on Linux, but I do have a virtual Ubuntu machine (set up using VirtualBox) so I can try running ppm with these steps and testing the issue or at least I can help you prepare such a virtual machine.

I went through all the code changes I made from 2.4.3 to 2.4.4 and I can not determine which could be so problematic. So the only way would be to have a live testing environment. I am afraid I will not be able to do that until this weekend, when I release a new PrePoMax version with bug fixes.

1 Like

@febing, can you try running the bottom code proposed by GPT and look into the resulting file access output?

WINEDEBUG=+file wine PrePoMax.exe

1 Like

Hello Matej,

here are the log files for program start of 2.4.0 and 2.5.0

2.4.log.zip (128.1 KB)

2.5.log.zip (120.0 KB)

It seems that mono fails.

New version of .NET Framework 4.8?

… or a new - not yet used - windows form in 2.4.4 that causes trouble?

→GTK+?

I have successfully created a testing environment for PrePoMax in Wine and found out that all versions work for me. I created the testing environment using VirtualBox and the latest Ubuntu, with a lot of help from GPT. I had no idea what I was doing, but below are the main commands I think are needed. I had to recreate some things multiple times…

Install wine

sudo dpkg --add-architecture i386
sudo apt update
sudo apt install wine64

Create prefix

wineserver -k
WINEARCH=win64 WINEPREFIX="$HOME/wine_prepomax64" wineboot --init

Open the prefix config and set the windows wersion to Windows 10

WINEPREFIX="$HOME/wine_prepomax64" winecfg

Install .NET 4.8 into that prefix

WINEPREFIX="$HOME/wine_prepomax64" winetricks dotnet48

Go int PrePoMAx folder and run PrePoMax.exe

WINEPREFIX="$HOME/wine_prepomax64" wine PrePoMax.exe

2 Likes