Bug: BVH import exception failure if bad input file #35358
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#35358
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Project: Blender Extensions
Tracker: Py Scripts Release
Blender: 2.66
Python: 3.3
Script name: io_anim_bvh
Wiki page: http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Import-Export/MotionCapture_BVH
Author(s): Campbell Barton
Category: Import Export
SVN Download: https://svn.blender.org/svnroot/bf-extensions/trunk/py/scripts/addons/io_anim_bvh/
Status: Open
%%%If you try to import a bad file via console, the following exception error occurs:
Traceback (most recent call last):
RuntimeError: Error: Traceback (most recent call last):
TypeError: exceptions must derive from BaseException
location: C:\Program Files\Blender Foundation\Blender\2.67\scripts\modules\bpy\ops.py:188
In addition, the Wiki link doesn't exist:
http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Import-Export/MotionCapture_BVH%%%
Changed status to: 'Open'
Added subscriber: @brecht
Should be
or maybe
Two more scripts with Py 2.x raise:
startup\bl_operators\uvcalc_lightmap.py
startup\bl_operators\uvcalc_smart_project.py
Committed a patch to fix the TypeError, but it will now raise Exception(...) with info why the script fails (it won't continue).
Leaving this report open since there may be a better way to handle the exceptions in bvh importer.
The files
startup\bl_operators\uvcalc_lightmap.py
startup\bl_operators\uvcalc_smart_project.py
remained unchanged, since I don't have commit rights for that path.
Patch to fix the TypeErrors, may require nice-ification too.
raise_exceptions.patch
Added subscriber: @BrendonMurphy
Changed status from 'Open' to: 'Resolved'
hi, closing as resolved, committed some time ago