Page MenuHome

Crash when scaling bones
Closed, ResolvedPublic

Description

System Information
Windows 10 Pro 64-bit, GeForce GT 630
Operating system and graphics card

Blender Version
Date: 2018-10-03 23:37
Hash: 3c8c1841d72
Branch: Blender 2.8

Short description of error
When i scale multiple bones (Ctrl+ Alt + S) Blender is crashing.

Exact steps for others to reproduce the error

  1. Press "S" - scale to smaller
  2. Ctrl + Alt + S - scale to smaller
  3. Shift + D - dublicate and press Esc without moving
  4. Press "S" - scale to bigger
  5. Ctrl + Alt + S - scale to bigger
  1. Crash

File scene:

Event Timeline

Artem (florentine3d) updated the task description. (Show Details)
Philipp Oeser (lichtwerk) claimed this task.
Philipp Oeser (lichtwerk) triaged this task as Confirmed, Medium priority.

Can confirm the crash:

1  count_set_pose_transflags transform_conversions.c 795  0x1bc0934 
2  special_aftertrans_update transform_conversions.c 6715 0x1bdabdb 
3  transformEnd              transform.c             2674 0x1b91c7e 
4  transform_modal           transform_ops.c         417  0x1bf30bf

pchan->bone is NULL, will have a look...

(note: goes fine if you leave edit mode after duplication and reenter prior to Ctrl + Alt + S )

found these comments here

/* XXX pchan->bone may be NULL for duplicated bones, see duplicateEditBoneObjects() comment .. Skip in this case too! */

and here

/* WARNING: this creates a new posechannel, but there will not be an attached bone yet as the new bones created here are still 'EditBones' not 'Bones'. */

So I think similar workaround (just skip if NULL) will also solve this bug? Maybe @Brecht Van Lommel (brecht) could check D3777?

(still thinking why we go through the pose stuff in edit mode though, but thats for later...)