Skip to content

[KK/KKS][Timeline] Plugin crashes when Alt+click moving keyframes (under specific condition) #205

Description

@AX-MMD

For Timeline 1.5.5.1

Describe the bug
Timeline crash when moving keyframes (with Alt+click and move) and the final destination of a moved keyframe coincides with the previous position of another currently moving keyframe. After the crash some Timeline functions may become unusable until Studio is restarted (usually Left-Click selection and Alt+click Move just won't register anymore).

This happens specifically when moving forward with Alt+click Move, especially when holding Shift to snap to an exact time.

This happens with or without ShalltyUtils and its Timeline "Performance mode", though the logged error is slightly different (logs attached below).

It does not happen:

  • When Alt+click moving backwards
  • With cut-paste
  • With the "Drag at current time" button, because it won't allow to move a keyframe on top of another keyframe

Expected behavior
Alt+click Move displaces the keyframes forward and handles whatever "ghost" keyframes there might be without crashing Timeline.

NOTE:
This also happens if you move a keyframe on top of another, but I'm not sure what the behaviour should be for that case (squash the keyframe, or don't allow the move?)

To Reproduce
Steps to reproduce the behavior:

  1. Place 2 keyframes, at 00:01 and 00:02 (can use the Camera interpolable)
  2. Select both keyframes, then move with Alt+click so that the left keyframe lands on the right keyframe's previous location exactly (easier by holding Shift while moving to snap)
  3. Timeline crash in log, if you try to select of move the keyframes again it becomes funky

Screencap

20260629-1036-26.1653378.mp4

Additional information

  • KK and KKS
  • Win 11
  • Timeline v1.5.5.1, KKAPI 1.46.1

Error log with ShalltyUtils installed and its Timeline "Performance Mode" enabled
kks_studio_log.txt
Error log without ShalltyUtils installed
kks_studio_log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions