IndexError when importing a VRML file #101604

Open
opened 2022-10-05 02:15:20 +02:00 by Derek Chaplin · 5 comments

System Information
Operating system: Windows-10-10.0.19043-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.59

Blender Version
Broken: version: 3.3.1 Release Candidate, branch: master, commit date: 2022-10-03 11:17, hash: blender/blender@fb499916bb
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
The .wrl (VRML) File import does not correctly import the type of VRML file created by EAT's 3D Weave Tech. It opens fine in the 3D Builder app found in Microsoft Windows 10.
This has been happening since version 2.8 onwards as far as I can remember.

Traceback (most recent call last):
  File "D:\BlenderDev\blender\release\scripts\addons\io_scene_x3d\__init__.py", line 60, in execute
    return import_x3d.load(context, **keywords)
  File "D:\BlenderDev\blender\release\scripts\addons\io_scene_x3d\import_x3d.py", line 3635, in load
    load_web3d(context, filepath,
  File "D:\BlenderDev\blender\release\scripts\addons\io_scene_x3d\import_x3d.py", line 3534, in load_web3d
    importShape(bpycollection, node, ancestry, global_matrix)
  File "D:\BlenderDev\blender\release\scripts\addons\io_scene_x3d\import_x3d.py", line 3148, in importShape
    bpydata = geom_fn(geom, ancestry)
  File "D:\BlenderDev\blender\release\scripts\addons\io_scene_x3d\import_x3d.py", line 1985, in importMesh_IndexedFaceSet
    cco = [cco for f in processPerVertexIndex(color_index)
  File "D:\BlenderDev\blender\release\scripts\addons\io_scene_x3d\import_x3d.py", line 1987, in <listcomp>
    for cco in rgb[v]]
IndexError: list index out of range
VRML import - result in Blender.PNG VRML import - proper view.PNG

Exact steps for others to reproduce the error

  • Open Blender, delete default cube
  • File, Import X3D Extensible 3D (x3d/wrl)

Only a small portion of 3D model gets imported

TAD 10 - 435 100 TWISTER.wrl

**System Information** Operating system: Windows-10-10.0.19043-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.59 **Blender Version** Broken: version: 3.3.1 Release Candidate, branch: master, commit date: 2022-10-03 11:17, hash: `blender/blender@fb499916bb` 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** The .wrl (VRML) File import does not correctly import the type of VRML file created by EAT's 3D Weave Tech. It opens fine in the 3D Builder app found in Microsoft Windows 10. This has been happening since version 2.8 onwards as far as I can remember. ``` Traceback (most recent call last): File "D:\BlenderDev\blender\release\scripts\addons\io_scene_x3d\__init__.py", line 60, in execute return import_x3d.load(context, **keywords) File "D:\BlenderDev\blender\release\scripts\addons\io_scene_x3d\import_x3d.py", line 3635, in load load_web3d(context, filepath, File "D:\BlenderDev\blender\release\scripts\addons\io_scene_x3d\import_x3d.py", line 3534, in load_web3d importShape(bpycollection, node, ancestry, global_matrix) File "D:\BlenderDev\blender\release\scripts\addons\io_scene_x3d\import_x3d.py", line 3148, in importShape bpydata = geom_fn(geom, ancestry) File "D:\BlenderDev\blender\release\scripts\addons\io_scene_x3d\import_x3d.py", line 1985, in importMesh_IndexedFaceSet cco = [cco for f in processPerVertexIndex(color_index) File "D:\BlenderDev\blender\release\scripts\addons\io_scene_x3d\import_x3d.py", line 1987, in <listcomp> for cco in rgb[v]] IndexError: list index out of range ``` |![VRML import - result in Blender.PNG](https://archive.blender.org/developer/F13615750/VRML_import_-_result_in_Blender.PNG)|![VRML import - proper view.PNG](https://archive.blender.org/developer/F13615743/VRML_import_-_proper_view.PNG) | -- | -- | **Exact steps for others to reproduce the error** - Open Blender, delete default cube - File, Import X3D Extensible 3D (x3d/wrl) # Only a small portion of 3D model gets imported [TAD 10 - 435 100 TWISTER.wrl](https://archive.blender.org/developer/F13615742/TAD_10_-_435_100_TWISTER.wrl)
Author

Added subscriber: @bollycanuk

Added subscriber: @bollycanuk
Germano Cavalcante changed title from VRML file import feature does not correctly import 3D model to IndexError when importing a VRML file 2022-10-05 14:53:09 +02:00

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

I can confirm the error.
As the same file is imported without problem in other applications, this seems to indicate that it is valid and the error is in Blender.

I can confirm the error. As the same file is imported without problem in other applications, this seems to indicate that it is valid and the error is in Blender.
Author

To clarify, the file imports into Microsoft 3D Builder and the model is fully and correctly displayed but then reports errors and requires automatic repair.

To clarify, the file imports into Microsoft 3D Builder and the model is fully and correctly displayed but then reports errors and requires automatic repair.
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#101604
No description provided.