Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failure when redoing a selection transformation #1839

Open
scribblemaniac opened this issue Apr 29, 2024 · 0 comments
Open

Assertion failure when redoing a selection transformation #1839

scribblemaniac opened this issue Apr 29, 2024 · 0 comments
Labels
Bug Canvas Crash UI Related to the visual appearance of the program Undo

Comments

@scribblemaniac
Copy link
Member

Issue Summary

If a selection is transformed and the undo/redo mechanism is used in a specific order, then this assert will be triggered, and crash on debug builds.

Steps to reproduce

  1. Create a selection with the select tool.
  2. Switch to the move tool.
  3. Transform the selection.
  4. Undo the selection transformation.
  5. Switch to the pen tool.
  6. Redo the selection transformation.
  7. Attempt to draw through the selection.

Actual Results

The program assert fails on debug builds when following the steps outlined in the section above. On release builds, the selection does not get applied before drawing and the drawing tool will behave as if the selection has not been transformed. This will result in some visual anomalies as the brush data conflicts with the selection data. After each stroke is finished, the program behaves as if the stroke had been drawn before the selection was transformed, and the selection remains active with a transformation.

Expected Results

It is expected that the assert does not fail obviously. When redoing a selection, it should probably apply the transform if the move tool is not active, or perhaps just if there is no active selection transform.

System Information

  • Operating System: 22.04
  • RAM Size: 16GB
  • Graphics Tablet: N/A

Developer Notes

This has many similarities to #1838, likely the selection is in a similar state but through different means. There may be one fix for both issues, or separate fixes depending on where the fix is applied to.

@scribblemaniac scribblemaniac added Bug Undo Canvas UI Related to the visual appearance of the program Crash labels Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Canvas Crash UI Related to the visual appearance of the program Undo
Projects
None yet
Development

No branches or pull requests

1 participant