VTK Python Examples Segfault on Exit (Ubuntu WSL)
Windows 11 WSL2 Ubuntu 20.04 Python 3.11.4 VTK 9.2.6
(I also see a similar or same segmentation fault with 9.3.0.rc1)
I am building locally from source. However, installing vtk from pypi also gives this segmentation fault.
This is likely a WSL issue but I am submitting here in case it is of any help to the development team. I understand that you may not yet support WSL too. Feel free to close immediately if you feel this is not actionable on your end.
I get a segmentation fault when running python examples (such as the boolean example): the dialog opens and correctly shows the rendered object. I can interact with object in the usual manner. When closing the dialog using the x in the top right corner I get the segmentation fault after the dialog disappears.
The crash does not occur when running the example in gdb, the process exits normally, suggesting a multi-thread timing issue. When I dump a core file I get the following information when loaded into gdb:
Reading symbols from python3...
warning: core file may not match specified executable file.
[New LWP 11528]
[New LWP 11530]
[New LWP 11531]
[New LWP 11532]
[New LWP 11529]
[New LWP 11525]
[Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `python3 boolean.py'.
Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f121e47c1ca in ?? () from /usr/lib/wsl/drivers/nvdm.inf_amd64_47b4de8ce9fa1909/libnvwgf2umx.so
[Current thread is 1 (Thread 0x7f121b9dd700 (LWP 11528))]