Skip to content

Crash on removing child bone #375

Open

Description

@morevnaproject

Synfig version & platform:
1.0.x, 1.2.0, 1.3.3

Issue description:
Removing a bone who have child bones makes Synfig crash.

  1. Add Skeleton Layer (normal or deformation)
  2. Add Child bone (right click on handle or from context menu in parameters panel "add item 'smart' ")
  3. From Parameters Panel, right click on a child bone and choose "Remove Item 'smart' "
  4. Crash.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Activity

  1. 9inpachi commented on Mar 10, 2019

    @9inpachi
    Contributor

    Correction: Deleting the child bone is what makes the program crash.

    Image 1: Only parent bone exists.
    image

    Image 2: Both parent and child bone exist.
    image

    Image 3: Only child bone exists with a parent bone inside it, but no crash.
    image

  2. changed the title [-]Crash on removing parent bone[/-] [+]Crash on removing child bone[/+] on Mar 11, 2019
  3. morevnaproject commented on Mar 11, 2019

    @morevnaproject
    MemberAuthor

    @9inpachi Hey, you right. My mistake. I edited the description now.

  4. morevnaproject commented on Mar 11, 2019

    @morevnaproject
    MemberAuthor

    Steps to avoid the crash:

    • Add Skeleton Layer (normal or deformation)
    • Add Child bone (right click on handle or from context menu in parameters panel "add item 'smart' ")
    • Find the child bone in Parameters Panel and set its parent to "None"
    • Right click on the child bone and choose "Remove Item 'smart' " -> No crash.
  5. 9inpachi commented on Mar 11, 2019

    @9inpachi
    Contributor

    @morevnaproject I followed the instructions in order to avoid a crash, but it still happens.
    Can you please verify again?
    I don't think changing the Parent to "None" is working. It might be an issue related to the creation of child bone and the Parent parameter of that created child bone.

  6. morevnaproject commented on Mar 11, 2019

    @morevnaproject
    MemberAuthor

    Ah, you right. I just found there is one more step required to avoid the crash. Before deleting the ex-child bone you should select another bone in the Parameters Panel.

    So, here is a corrected sequence:

    • Add Skeleton Layer (normal or deformation)
    • Add Child bone (right click on handle or from context menu in parameters panel "add item 'smart' ")
    • Find the child bone in Parameters Panel and set its parent to "None"
    • Click other bone (ex-parent) in Parameters Panel.
    • Right click on the ex-child bone and choose "Remove Item 'smart' " -> No crash.
  7. rodolforg commented on Oct 31, 2019

    @rodolforg
    Contributor

    @morevnaproject , is it still an issue?

  8. morevnaproject commented on Nov 1, 2019

    @morevnaproject
    MemberAuthor

    Hmmm... yes, I cannot reproduce it anymore by following instructions given in issue description.

    But I found a way to make it crash by adding one more step:

    1. Add Skeleton Layer (normal or deformation)
    2. Add Child bone (right click on handle or from context menu in parameters panel "add item 'smart'")
    3. Click on green control point of child bone - it will become highlighted
      screenshot_002
    4. From Parameters Panel, right click on a child bone and choose "Remove Item 'smart' "
    5. Crash.

    Video link - https://www.youtube.com/watch?v=tfWC_LaLdtA

  9. rodolforg commented on Nov 16, 2019

    @rodolforg
    Contributor

    Actually, the problem happens if you click on parameter list item before step 4. :/
    I tried to un-select the item before action performance, but I couldn't do it.

  10. rodolforg commented on Jul 12, 2021

    @rodolforg
    Contributor

    It doesn't crash on 1.4.0

  11. ice0 commented on Jul 13, 2021

    @ice0
    Collaborator

    @rodolforg what about master branch?

  12. rodolforg commented on Jul 13, 2021

    @rodolforg
    Contributor

    Ok too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions