OmooLab / BioxelNodes

For scientific volumetric data visualization in Blender.
https://omoolab.github.io/BioxelNodes/latest
MIT License
262 stars 21 forks source link

Importing from Visible Human Project crashes Blender: #39

Closed MirtoBusico closed 3 months ago

MirtoBusico commented 3 months ago

Seems that Blender crashes when Bioxel try to import the first image.

I'm using Blender 4.2.0 downloaded from the Blender site. Operating system is Debian Trixie (testing) updated daily Bioxel version is 0.3.3 The image set I'm trying to import is taken from here

https://data.lhncbc.nlm.nih.gov/public/Visible-Human/Male-Images/PNG_format/thorax/index.html

I'm doing something wrong?

Below the blender log and the crash.txt file

mirto@bianco500:~$ /usr/local/bin/blender-4.2.0-linux-x64/blender-launcher
Reloading external rigs...
Reloading external metarigs...
register_class(...):
Info: Registering operator class: 'OBJECT_OT_AlignOperator', bl_idname 'object.align' has been registered before, unregistering previous
Read blend: "/BIANCO-SATA1/BLENDER-DICOM/test01.blend"
Collecting Meta Data...
WARN (bpy.rna): source/blender/python/intern/bpy_rna.cc:1360 pyrna_enum_to_py: current value '0' matches no enum in 'BIOXELNODES_OT_parse_volumetric_data', '(null)', 'series_id'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.cc:1360 pyrna_enum_to_py: current value '0' matches no enum in 'BIOXELNODES_OT_parse_volumetric_data', '(null)', 'series_id'
Parsing with SimpleITK...
name: a_vm
description: 
spacing: (1.0, 1.0, 1.0)
affine: [[1. 0. 0. 0.]
 [0. 1. 0. 0.]
 [0. 0. 1. 0.]
 [0. 0. 0. 1.]]
xyz_shape: (2048, 1216, 409)
frame_count: 1
channel_count: 3
WARN (bpy.rna): source/blender/python/intern/bpy_rna.cc:1360 pyrna_enum_to_py: current value '0' matches no enum in 'BIOXELNODES_OT_parse_volumetric_data', '(null)', 'series_id'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.cc:1360 pyrna_enum_to_py: current value '0' matches no enum in 'BIOXELNODES_OT_parse_volumetric_data', '(null)', 'series_id'
Info: Successfully Readed.
Parsing with SimpleITK...
Saving the Cache of Scalar...
Loading the Cache of Scalar...
Creating Node for Scalar...
Info: Successfully Imported
Writing: /BIANCO-SSD2/ssd2-mirto/DOCUMENTI_CORRENTI/Blender_Bianco500/TEMP/test01.crash.txt
Errore di segmentazione (core dump creato)
mirto@bianco500:~$ cat /BIANCO-SSD2/ssd2-mirto/DOCUMENTI_CORRENTI/Blender_Bianco500/TEMP/test01.crash.txt
# Blender 4.2.0, Commit date: 2024-07-16 06:20, Hash a51f293548ad
Successfully Readed.  # Info
bpy.ops.mesh.primitive_cube_add(enter_editmode=False, align='WORLD', location=(0, 0, 0), scale=(1, 1, 1))  # Operator
bpy.ops.node.new_geometry_nodes_modifier()  # Operator
bpy.ops.object.volume_import(filepath="/home/mirto/.bioxelnodes/VDBs/2e2c0b7b-0325-4ef3-9de4-a90dfbd9fa57.vdb", align='WORLD', location=(0, 0, 0), scale=(1, 1, 1))  # Operator
bpy.ops.node.new_geometry_nodes_modifier()  # Operator
Successfully Imported  # Info

# backtrace
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0xf3d790]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0x842f60]
/lib/x86_64-linux-gnu/libc.so.6(+0x3f590) [0x7fd1fd656590]
/lib/x86_64-linux-gnu/libc.so.6(+0x1592c7) [0x7fd1fd7702c7]
/usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so(+0x6a9628) [0x7fd1aeca9628]
/usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so(+0x132f8b) [0x7fd1ae732f8b]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0x56c0baf]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0x56c0420]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0x56a2529]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0x56a257f]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0x56a2672]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0x12c3740]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0x128fc53]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0x128fc1f]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0x128f1cf]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0x11efb43]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0x11e7e5e]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0x11e81b9]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0x113fb32]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0x113ffe7]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0x20d5fa5]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0x1631937]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0xf89f32]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0xf852e0]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0x72f084]
/lib/x86_64-linux-gnu/libc.so.6(+0x29c8a) [0x7fd1fd640c8a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7fd1fd640d45]
/usr/local/bin/blender-4.2.0-linux-x64/blender() [0x83e7fe]

# Python backtrace
mirto@bianco500:~$ 
icrdr commented 3 months ago

Thank you for the report! From the blender log list info. It seems data was imported successfully. 🤔 So, maybe is was caused by the node... I'll let you know if I figured out

MirtoBusico commented 3 months ago

Thanks

MirtoBusico commented 3 months ago

Hi @icrdr I don't qnow if it can be useful, but here is the system-info file generated with Blender system-info.txt

MirtoBusico commented 3 months ago

Hi @icrdr I tried again with the new 4.2.1 Blender version.

Nothing changes; but I noticed that there is an error message in the import dialog bioxel-error

Any idea?

MirtoBusico commented 3 months ago

Hi @icrdr success!!

Using Blender 4.2.1, ignoring the error and wait five minutes (sorry I don't have a recognized gpu) the loading copletes without erors.

To see something in the wireframe panel I hade to lower the treshold to 32 bioxel-loaded

Thanks