WRL Import Throws Error #79966

Closed
opened 2020-08-20 21:58:03 +02:00 by Ilya Methot · 7 comments

System Information
Operating system: all

Blender Version
Broken: 2.8+, blender/blender@d8585e184a
Worked: 2.79

When attempting to import any VRML file I get the following error:

Traceback (most recent call last):
  File "\Text", line 19, in <module>
  File "D:\Program Files\Blender\2.83\scripts\modules\bpy\ops.py", line 201, in __call__
    ret = op_call(self.idname_py(), None, kw)
RuntimeError: Error: Traceback (most recent call last):
  File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\__init__.py", line 78, in execute
    return import_x3d.load(context, **keywords)
  File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\import_x3d.py", line 3633, in load
    global_matrix=global_matrix,
  File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\import_x3d.py", line 3529, in load_web3d
    importShape(bpycollection, node, ancestry, global_matrix)
  File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\import_x3d.py", line 3148, in importShape
    bpydata = geom_fn(geom, ancestry)
  File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\import_x3d.py", line 2036, in importMesh_IndexedFaceSet
    deltas = (x_max - x_min, y_max - y_min, z_max - z_min)
TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'

or this error:

Traceback (most recent call last):
  File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\__init__.py", line 78, in execute
    return import_x3d.load(context, **keywords)
  File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\import_x3d.py", line 3633, in load
    global_matrix=global_matrix,
  File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\import_x3d.py", line 3533, in load_web3d
    importViewpoint(bpycollection, node, ancestry, global_matrix)
  File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\import_x3d.py", line 3283, in importViewpoint
    mtx = Matrix.Translation(Vector(position)) @ translateRotation(orientation)
  File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\import_x3d.py", line 1491, in translateRotation
    return Matrix.Rotation(rot[3], 4, Vector(rot[:3]))
IndexError: list index out of range

location: <unknown location>:-1

This error does not appear in Blender 2.79

PB_Struct_1.wrl

**System Information** Operating system: all **Blender Version** Broken: 2.8+, blender/blender@d8585e184a Worked: 2.79 When attempting to import any VRML file I get the following error: ``` Traceback (most recent call last): File "\Text", line 19, in <module> File "D:\Program Files\Blender\2.83\scripts\modules\bpy\ops.py", line 201, in __call__ ret = op_call(self.idname_py(), None, kw) RuntimeError: Error: Traceback (most recent call last): File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\__init__.py", line 78, in execute return import_x3d.load(context, **keywords) File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\import_x3d.py", line 3633, in load global_matrix=global_matrix, File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\import_x3d.py", line 3529, in load_web3d importShape(bpycollection, node, ancestry, global_matrix) File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\import_x3d.py", line 3148, in importShape bpydata = geom_fn(geom, ancestry) File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\import_x3d.py", line 2036, in importMesh_IndexedFaceSet deltas = (x_max - x_min, y_max - y_min, z_max - z_min) TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType' ``` or this error: ``` Traceback (most recent call last): File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\__init__.py", line 78, in execute return import_x3d.load(context, **keywords) File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\import_x3d.py", line 3633, in load global_matrix=global_matrix, File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\import_x3d.py", line 3533, in load_web3d importViewpoint(bpycollection, node, ancestry, global_matrix) File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\import_x3d.py", line 3283, in importViewpoint mtx = Matrix.Translation(Vector(position)) @ translateRotation(orientation) File "D:\Program Files\Blender\2.83\scripts\addons\io_scene_x3d\import_x3d.py", line 1491, in translateRotation return Matrix.Rotation(rot[3], 4, Vector(rot[:3])) IndexError: list index out of range location: <unknown location>:-1 ``` This error does not appear in Blender 2.79 [PB_Struct_1.wrl](https://archive.blender.org/developer/F8799928/PB_Struct_1.wrl)
Author

Added subscriber: @ilya.methot.3ds

Added subscriber: @ilya.methot.3ds

Added subscriber: @ideasman42

Added subscriber: @ideasman42

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

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

Please include the X3D file causing the error.

Please include the X3D file causing the error.
Member

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

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

Added subscriber: @ankitm

Added subscriber: @ankitm
Ankit Meel changed title from VRML Import Throws Error to WRL Import Throws Error 2020-09-04 19:01:41 +02:00

The attached file works in blender 4.2 with extension version 2.3.3. Seems to be resolved by now.

The attached file works in blender 4.2 with extension version 2.3.3. Seems to be resolved by now.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2024-07-20 04:23:38 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 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#79966
No description provided.