Pose Library: crash when using partially-keyed quaternions #104591
Closed
opened 2023-05-08 04:53:10 +02:00 by Isiac Dagraca
·
8 comments
No Branch/Tag Specified
main
new-color-presets-addons
blender-v3.3-release
blender-v3.6-release
blender-v3.5-release
brush-assets-project
blender-v2.93-release
blender-v3.4-release
xr-dev
blender-v3.2-release
blender-v3.1-release
screenshots-manual
gltf_vtree
blender-v2.83-release
blender-v3.0-release
xr-controller-support
studio-sprite-fright
asset-browser-poselib
blender-v2.92-release
blender-v2.91-release
blender-v2.90-release
greasepencil-addon
xr-world-navigation
soc-2019-openxr
blender-v2.82-release
blender-v2.81-release
filebrowser_redesign
blender-v2.80-release
blender2.7
blender-v2.79b-release
blender-v2.79a-release
blender-v2.79-release
fbx_experiments
blender-v2.78b-release
collada-2
blender-v2.78-release
rigify_fixes
fbx_io_export_ignore_parents
v3.6.3
v3.3.11
v3.6.2
v3.3.10
v3.6.1
v3.3.9
v3.6.0
v3.3.8
v3.3.7
v2.93.18
v3.5.1
v3.3.6
v2.93.17
v3.5.0
v2.93.16
v3.3.5
v3.3.4
v2.93.15
v2.93.14
v3.3.3
v2.93.13
v2.93.12
v3.4.1
v3.3.2
v3.4.0
v3.3.1
v2.93.11
v3.3.0
v3.2.2
v2.93.10
v3.2.1
v3.2.0
v2.83.20
v2.93.9
v3.1.2
v3.1.1
v3.1.0
v2.83.19
v2.93.8
v3.0.1
v2.93.7
v3.0.0
v2.93.6
v2.93.5
v2.83.18
v2.93.4
v2.93.3
v2.83.17
v2.93.2
v2.93.1
v2.83.16
v2.93.0
v2.83.15
v2.83.14
v2.83.13
v2.92.0
v2.83.12
v2.91.2
v2.83.10
v2.91.0
v2.83.9
v2.83.8
v2.83.7
v2.90.1
v2.83.6
v2.90.0
v2.83.5
v2.83.4
v2.83.3
v2.83.2
v2.83.1
v2.83
v2.82a
v2.82
v2.81a
v2.81
v2.80
v2.80-rc3
v2.80-rc2
v2.80-rc1
v2.79b
v2.79a
v2.79
v2.79-rc2
v2.79-rc1
v2.78b
v2.78a
v2.78
v2.78-rc2
v2.78-rc1
v2.77a
v2.77
v2.77-rc2
v2.77-rc1
v2.76a
v2.76
v2.76-rc3
v2.76-rc1
v2.75
v2.75-rc2
v2.75-rc1
v2.74
v2.74-rc4
v2.74-rc3
v2.74-rc2
v2.74-rc1
v2.73a
v2.73
v2.73-rc1
v2.72
v2.72-rc1
v2.71
v2.71-rc1
v2.70a
v2.70
v2.70-rc
v2.69
v2.68
v2.67b
v2.67a
v2.67
v2.66a
v2.66
v2.65a
v2.65
v2.64a
v2.64
v2.63a
v2.63
v2.62
v2.61
v2.60a
v2.60
v2.59
v2.58a
v2.58
v2.57b
v2.57a
v2.57
v2.56a
v2.56
v2.55
v2.54
v2.53
Labels
Clear labels
Apply labels
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 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
Milestone
Set milestone
Clear milestone
No items
No Milestone
Projects
Set Project
Clear projects
No project
Assignees
Assign users
Clear assignees
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#104591
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 531.61
Blender Version
Broken: version: 3.3.6, branch: master, commit date: 2023-04-17 14:03, hash:
948f8298b982
Worked: (newest version of Blender that worked as expected)
Addon Information
Name: Pose Library (2, 0)
Author: Sybren A. Stüvel
Short description of error
Pose Library seems to confuse certain values if you're using locked values with quaternion. That or it just crashes
Exact steps for others to reproduce the error
Load below file, and configure folder as asset library
in "ApplyPose" file, right click the action in the asset library "FootRotate" and click "Apply Pose" in my case this crashes. But in my other projects this issue causes corrupted looking poses, or a crash.
Tagging @dr.sybren since this seems to be their asset.
Pose Library: Incorrect/corrupted pose or crash when using quaternions with locked axisto Pose Library: crash when using partially-keyed quaternionsThe pose library assumes that when quaternions are keyed, all their channels are keyed to form a complete quaternion. The locking of the channels doesn't matter.
In this case the crash can be resolved by simply keying all channels (so also W, Y, and Z) instead of only the X-component of the quaternion. This will likely result in a more reliable pose as well, as the foot will rotate around the expected axis, and the applied quaternion will also be scaled correctly.
Still it'll be good if Blender doesn't crash on these.
Then is this a fault of the way blender applies keys?
I would try to key all channels but as long as the lock is present the keys don't apply.
No I see the issue, it's that the method of keying I used doesn't do it.
"Whole Character (Selected bones Only)"
Also doesn't do it with "Available"
I don't believe this issue is solved, in my original project I went through every action and made sure the quaternion keyframes were complete and the pose corruption issue still occured.
So i decided to return to the example project and apply the keyframes for the whole quaternion.
And it's mixing the W and X values on the toe.
Before applying the pose

After applying the pose.

When working with quaternions, it doesn't make much sense to only key them partially. By changing only the X-component, you not only change the angle, but also the rotation axis itself. If you want to limit the rotation to a single axis, and want to only put that axis in the pose asset, I would strongly recommend using Euler angles instead.
Blender's pose library assumes that quaternions are keyed in order, which is what would happen when you use the "Create Pose Asset" button. I've just pushed a fix for this (
5532d05622
), so that the FCurves can be in any order (as long as they follow each other without other FCurves in between).Yes I realize this error, the model is old and the project too far along to fix this reasonably. But we can ensure the mistake is not repeated.
And thanks to your fix and explanation if it happens accidentally in the future, it won't cause such sweeping issues!
Well, thanks for the report, it made it clear something had to be fixed ;-)