Hello everyone.
First, please note that I am asking this question here because the UCX library is required by OpenMPI, which is itself required by VTK. The problem may not be intrinsically related to VTK, but I only encounter it when using VTK. In any case, if you think this isn’t related, please let me know (and accept my apologies).
I’m encountering a bug that I’m having trouble determining the source of. At first glance, it seems to be a segmentation error in the libucs library that crashes the JVM.
I am working on a Debian 13 (trixie) system with VTK9.3 and OpenJDK21. I am using VTK via the Java JNI interface. My UI is Swing. The problem does not always occur in the same place. I therefore think it is a thread or thread synchronization issue.
Most of the time, the error displayed is:
[debian:622989:0:622995] Caught signal 11 (Erreur de segmentation: address not mapped to object at address 0xc)
==== backtrace (tid: 622995) ====
0 /lib/x86_64-linux-gnu/libucs.so.0(ucs_handle_error+0x2bc) [0x7fb28555e64c]
1 /lib/x86_64-linux-gnu/libucs.so.0(+0x3182f) [0x7fb28555e82f]
2 /lib/x86_64-linux-gnu/libucs.so.0(+0x319fa) [0x7fb28555e9fa]
3 [0x7fb3444a7a05]
=================================
followed by the JVM crash message.
But sometimes the display is more verbose (see attached file)
error.txt (4.8 KB)
In any case, this concerns the UCX library which is required by OpenMPI which is required by VTK9.
My opinion is that the problem comes from:
- either my thread model, which is too messy (most likely)
- or a problem with Debian packages
- or a problem in the VTK / java interface
In any case, any help or advice would be greatly appreciated, as I am really out of ideas.
Thank you in advance.
jMax