Importing .wrl file throws RuntimeError #94097

Open
opened 2021-12-15 06:49:22 +01:00 by memorycard · 8 comments

System Information
Operating system: Windows-10-10.0.19043-SP0 64 Bits
Graphics card: GeForce GTX 1660/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71

Blender Version
Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: blender/blender@f1cca30557
Worked: (newest version of Blender that worked as expected)

Addon Information
Name: Web3D X3D/VRML2 format (2, 3, 0)
Author: Campbell Barton, Bart, Bastien Montagne, Seva Alekseyev

Short description of error
Importing .wrl file will throw runtime error

Exact steps for others to reproduce the error
Import provided .wrl file
car 4.wrl

ImportX3D warning: unable to load texture ['1.bmp']
ImportX3D warning: unable to load texture ['63.bmp']
Error: Array length mismatch (got 1890, expected more)
Python: Traceback (most recent call last):

File "D:\BF_daily_build\3.0.0\blender-3.0.0-stable+v30.f1cca3055776-windows.amd64-release\3.0\scripts\addons\io_scene_x3d_init_.py", line 78, in execute
return import_x3d.load(context, **keywords)
File "D:\BF_daily_build\3.0.0\blender-3.0.0-stable+v30.f1cca3055776-windows.amd64-release\3.0\scripts\addons\io_scene_x3d\import_x3d.py", line 3658, in load
load_web3d(context, filepath,
File "D:\BF_daily_build\3.0.0\blender-3.0.0-stable+v30.f1cca3055776-windows.amd64-release\3.0\scripts\addons\io_scene_x3d\import_x3d.py", line 3557, in load_web3d
importShape(bpycollection, node, ancestry, global_matrix)
File "D:\BF_daily_build\3.0.0\blender-3.0.0-stable+v30.f1cca3055776-windows.amd64-release\3.0\scripts\addons\io_scene_x3d\import_x3d.py", line 3171, in importShape
bpydata = geom_fn(geom, ancestry)
File "D:\BF_daily_build\3.0.0\blender-3.0.0-stable+v30.f1cca3055776-windows.amd64-release\3.0\scripts\addons\io_scene_x3d\import_x3d.py", line 1982, in importMesh_IndexedFaceSet
bpymesh.vertices.foreach_set("normal", co)

RuntimeError: internal error setting the array```
**System Information** Operating system: Windows-10-10.0.19043-SP0 64 Bits Graphics card: GeForce GTX 1660/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71 **Blender Version** Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: `blender/blender@f1cca30557` Worked: (newest version of Blender that worked as expected) **Addon Information** Name: Web3D X3D/VRML2 format (2, 3, 0) Author: Campbell Barton, Bart, Bastien Montagne, Seva Alekseyev **Short description of error** Importing .wrl file will throw runtime error **Exact steps for others to reproduce the error** Import provided .wrl file [car 4.wrl](https://archive.blender.org/developer/F12744736/car_4.wrl) ```ImportX3D warning: unable to load texture ['0.bmp'] ImportX3D warning: unable to load texture ['1.bmp'] ImportX3D warning: unable to load texture ['63.bmp'] Error: Array length mismatch (got 1890, expected more) Python: Traceback (most recent call last): ``` File "D:\BF_daily_build\3.0.0\blender-3.0.0-stable+v30.f1cca3055776-windows.amd64-release\3.0\scripts\addons\io_scene_x3d\__init__.py", line 78, in execute return import_x3d.load(context, **keywords) File "D:\BF_daily_build\3.0.0\blender-3.0.0-stable+v30.f1cca3055776-windows.amd64-release\3.0\scripts\addons\io_scene_x3d\import_x3d.py", line 3658, in load load_web3d(context, filepath, File "D:\BF_daily_build\3.0.0\blender-3.0.0-stable+v30.f1cca3055776-windows.amd64-release\3.0\scripts\addons\io_scene_x3d\import_x3d.py", line 3557, in load_web3d importShape(bpycollection, node, ancestry, global_matrix) File "D:\BF_daily_build\3.0.0\blender-3.0.0-stable+v30.f1cca3055776-windows.amd64-release\3.0\scripts\addons\io_scene_x3d\import_x3d.py", line 3171, in importShape bpydata = geom_fn(geom, ancestry) File "D:\BF_daily_build\3.0.0\blender-3.0.0-stable+v30.f1cca3055776-windows.amd64-release\3.0\scripts\addons\io_scene_x3d\import_x3d.py", line 1982, in importMesh_IndexedFaceSet bpymesh.vertices.foreach_set("normal", co) ``` RuntimeError: internal error setting the array```
Author

Added subscriber: @memorycard77

Added subscriber: @memorycard77
Author

everytime i try to upload a .wrl file i get a python error. before the update my .wrl files would upload fine and i havent changed any settings

everytime i try to upload a .wrl file i get a python error. before the update my .wrl files would upload fine and i havent changed any settings
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Hi, thanks for the report. Please upload .wrl file to test the problem.

Hi, thanks for the report. Please upload .wrl file to test the problem.
Author
[car 4.wrl](https://archive.blender.org/developer/F12744692/car_4.wrl)
Pratik Borhade changed title from wrl files wont upload to Importing .wrl file throws RuntimeError 2021-12-15 08:22:17 +01:00
Member

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'
Member

Thanks, can confirm with your file.

Thanks, can confirm with your file.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#94097
No description provided.