Duplicate long shapekey names crash Blender #29337
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#29337
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?
%%%Blender 2.60.5, r42004, Win 7 64 bit
The following code makes Blender hang. The problem is evidently that long shapekey names are not truncated uniquely.
import bpy
def makeShapeKey(name):
makeShapeKey("Basis")
makeShapeKey("This-is-a-very-long-shape-key-name-number-1")
makeShapeKey("This-is-a-very-long-shape-key-name-number-2")
%%%
Changed status to: 'Open'
%%%Will look into this issue.%%%
%%%Hrm, noticed two things. First is that it's not so simle to assign bugs to myself in google chrome - "Assigned To" is getting reset when focus is leaing combobox, but it's side note.
About this hung. Looks like it's old issue in code which makes names unique. Attached patch should solve this, but it's code used all over so extra eyes on checing it are welcome. Mabe Campbell can help here?%%%
%%%Discussed with Campbell. Its more complicated fix which chould be performed here: at every string clamp itteration string should be verified if it's still a valid utf8 sequence.
Just a not which should be taken into account if somebod would want to commit or use this patch.%%%
%%%Seems this was fixed but the report not closed yet.
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42029%%%
Changed status from 'Open' to: 'Resolved'