libvtk issue on Windows (I think)

47 views
Skip to first unread message

Steffen Hansen

unread,
Dec 15, 2023, 11:47:21 AM12/15/23
to InsightCAE
Hi. Total newbie, so please bear with me.

Installed InsightCAE on Windows 11 as pr. the guide (have done this on 2 machines - same result).

After it completes simulating a ball in a wind tunnel at 100km/h - and after OpenFOAM starts, I get the following error(s) in the log window:

[From Log]**********************************************************
Create time

[E] Could not load module library "libgenericmodules.so"!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library "libtestcases.so"!
[E] Reason: /opt/insightcae/lib/libtestcases.so: undefined symbol: _ZN20vtkDebugLeaksManagerD1Ev
127.0.0.1 - - [2023-Dec-15 17:20:00.356] "GET /all HTTP/1.1" 200 1877
[E] Could not load module library libvtkFiltersCore-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkFiltersGeneral-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkFiltersSources-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkFiltersGeneric-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkFiltersExtraction-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkFiltersPoints-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkFiltersFlowPaths-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkCommonCore-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkCommonDataModel-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkCommonMisc-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkCommonExecutionModel-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkIOLegacy-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkIOGeometry-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkIOExport-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkIOImage-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkIOXML-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkImagingCore-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkRenderingOpenGL2-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkRenderingAnnotation-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkInteractionWidgets-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libvtkInteractionStyle-pvisoffscreen.so.5.8!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
[E] Could not load module library libtoolkit.so!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
Create mesh for time = 1000

Time = 1000

Projected area of patch 6 = 0.78548443

Projected area at time 1000 = 0.78548443

End

[/From Log]**********************************************************


And then nothing - no CPU or disk activity.

As far as I can see, all the libvtk* files are present in the /opt/insightcae/lib folder.

Looking at the "Windows install issue VTK lib not found" thread in this here group, figured it was worth trying to install libvtk, however, it's be surpassed by libvtk7.1 which installed with no issues after a "sudo apt update && sudo apt upgrade -y" (and a reboot).

Still the same issue though. After clicking "Write now", I get the following in the log and then back to silence.

+------------------------------ Warning follows -------------------------------+

| |

| Could not detect any usable OpenFOAM environment. Running remote command |

| with no OpenFOAM environment loaded. |

| |

+------------------------------------------------------------------------------+


################################################################################


+============================= *** ERROR [1] *** ==============================+

| |

| internal error: there is already a transaction in progress |

| |

+------------------------------------------------------------------------------+


I have attached the full log file.
Added a screenshot of the terminal - not sure it has anything to say though as /home/user/irYeuy1h is written to in the logfile

BR - and thank you.
/Steffen

InsightCAE_Terminal.png
InsightCAE.zip

Steffen Hansen

unread,
Dec 19, 2023, 3:36:35 AM12/19/23
to InsightCAE
I think either I'm doing something wrong - or there's something going on with the WSL in Windows 11. I'm tempted to take the laptop and install a vanilla Windows 10 on it just to see if that makes a difference.

I created a second WSL instance with Ubuntu 22.04. Ran all the updates. Installed insightcae-ce after manually editing sources (removing entry under /etc/apt/sources.list.d and adding:
to /apt/etc/sources.list

After sudo apt update, insightcae installed with no errors.

Manually created insight_update.sh and insight_version.sh files in /usr/bin (copied from the original insightcae-ubuntu-18.04 instance)
Added source /opt/insightcae/bin/insight_setenv.sh to /home/user/.bashrc

^^ I should mention I created a user called "user" which has full sudo access without asking for password (sudo visudo) as in the original WSL instance

So now everything looked ok (or at least as it does in the original instance), so fingers crossed:

Same thing though - after creating the mesh(es), OpenFOAM crashes out with the same error as it does for me in the 18.04 installation:

[From_log] ****************************************************************

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

Create time


[E] Could not load module library "libtestcases.so"!

[E] Reason: /opt/insightcae/lib/libtestcases.so: undefined symbol: _ZN20vtkDebugLeaksManagerD1Ev

[E] Could not load module library "libgenericmodules.so"!

[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev

Create mesh for time = 1000

[/From_log] ****************************************************************


Thinking it could be environment related (long shot), I did find a small issue in insight_setenv.sh:
This line:
>> export PATH=$PATH${ORG_PATH}

results in the PATH ENV variable being doubled. With added \cr\lf, it looked like this:

[ENV PATH] **********************************************************
PATH=/opt/insightcae/bin:
/usr/local/sbin:
/usr/local/bin:
/usr/sbin:
/usr/bin:
/sbin:
/bin:
/usr/games:
/usr/local/games:
/usr/lib/wsl/lib:
/mnt/c/Program Files/Microsoft MPI/Bin/:
/mnt/c/WINDOWS/system32:
/mnt/c/WINDOWS:
/mnt/c/WINDOWS/System32/Wbem:
/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:
/mnt/c/WINDOWS/System32/OpenSSH/:
/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:
/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:
/mnt/c/Program Files/PowerShell/7/:
/mnt/c/Program Files/PuTTY/:
/mnt/c/Program Files/MiKTeX/miktex/bin/x64/:
/mnt/c/Users/stha/AppData/Local/Microsoft/WindowsApps:
/snap/bin:
/opt/insightcae/bin:
/usr/local/sbin:
/usr/local/bin:
/usr/sbin:
/usr/bin:
/sbin:
/bin:
/usr/games:
/usr/local/games:
/usr/lib/wsl/lib:
/mnt/c/Program Files/Microsoft MPI/Bin/:
/mnt/c/WINDOWS/system32:
/mnt/c/WINDOWS:
/mnt/c/WINDOWS/System32/Wbem:
/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:
/mnt/c/WINDOWS/System32/OpenSSH/:
/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:
/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:
/mnt/c/Program Files/PowerShell/7/:
/mnt/c/Program Files/PuTTY/:
/mnt/c/Program Files/MiKTeX/miktex/bin/x64/:
/mnt/c/Users/stha/AppData/Local/Microsoft/WindowsApps:
/snap/bin
[/ENV PATH] **********************************************************

After changing the line in insight_setenv.sh to read only
>> export PATH=$PATH$

You only get the first half. Shouldn't have anything to say really, but it does make things more readable.


Anyway - no further details your honor. Still stuck : (

BR - and thank you,
/Steffen

Hannes Kröger

unread,
Dec 19, 2023, 6:40:49 AM12/19/23
to insig...@googlegroups.com
Dear Steffen,

thank you for your feedback!

The dynamic linker errors with VTK are a nasty problem; meanwhile I overcame them but the patch did not make it yet into the insightcae-ce package. 
Though they are not fatal: they prevent that the OpenFOAM additions which are linked to libtoolkit, can load the addons. But they do not need them actually, so this is not fatal. The simulation should run anyway. (I see that OpenFOAM tool runs until it writes "End", which denotes success).

I guess the problem is somewhere else. Can you send a full log?

PS: there is a larger revision ongoing with the Windows port and installation. I need to update the installation instructions soon.

Regards, Hannes

Am 19.12.23 um 09:36 schrieb Steffen Hansen:
--
You received this message because you are subscribed to the Google Groups "InsightCAE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to insightcae+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/insightcae/6ef321ae-57d5-4d54-a2ee-d2442a5a3236n%40googlegroups.com.


Steffen Hansen

unread,
Dec 19, 2023, 9:31:58 AM12/19/23
to InsightCAE
Thank you Hannes - most excellent news regarding the new package!

 I made two runs, one with the pre-build 18.04  WSL and one with the 22.04 WSL instance I managed to get working. As far as I can see, they're pretty much identical - both logs attached.

Also included screenshot of the Workbench after each run. When they get to the state they're in in the screenshots, nothing more happens. CPU usage drops to idle, same for memory and disk I/O.

Workbench - 18.04 run
1804_Workbench_Finished.png

Workbench - 22.04 run
2204_Workbench_Finished.png

BR - and again, thank you.
/Steffen
1804_Log_Finished.txt
2204_Log_Finished.txt

Hannes Kroeger

unread,
Dec 20, 2023, 3:02:28 AM12/20/23
to InsightCAE
Dear Steffen,

it looks like the simulation is successfully done but the evalution or the transfer of the results hangs somewhere.

If you switch to the tab "output", there is nothing shown?

Steffen Hansen

unread,
Dec 20, 2023, 4:50:42 AM12/20/23
to InsightCAE
Thank you again for looking into this Hannes.

And I think you're right. There's 104 and 105 Mb respectively in the simulation folders on the two WSLs (/home/user/if0FcXJH on 18.04 and /home/user/irrlBAlp on 22.04) but nothing in the Output tab. 

If I look in the Working directory in AppData\Local\Temp\****** it's empty except for a meta.foam file.

Meta.foam file in Temp dir (on Windows).png

Tried a couple times more - First thing I want to bring up is the "Access is denied" error I get in the terminal when I run the simulation. Never did pay it much attention since the Temp directories, both in Windows and the WSL instance are created:
Workbench Terminal - Access is denied.png
It does this every time on both instances.


- After the run finishes - depending on what "Stop" button I click,  I get a different entry in the log:

When clicking "Write+Stop":
2204_Workbench_Finished_(output_tab)-WriteStop Button pressed.png

When pressing "Kill":
2204_Workbench_Finished_(output_tab)-Kill Button pressed.png

And finally when pressing "Write now":
2204_Workbench_Finished_(output_tab)-Write now Button pressed.png

Even though it says there's a transaction in progress, the Temp directory on Windows still only contains the meta.foam file which is then deleted because the workbench crashes out without clicking OK on the messagebox.

That got a bit picture heavy - sorry about that ( :

BR, /Steffen

18.04 run / Output
1804_Workbench_Finished_(output_tab).png


22.04 run / Output
2204_Workbench_Finished_(output_tab).png

Reply all
Reply to author
Forward
0 new messages