Version Infomation
Aseprite v1.2.20
Surface 6 pro/Windows 10 1903
Reproduction procedure
- Execute lua method “app.activeSprite.selection:deselect()” with nothing selected.
- Then Undo (Ctrl+Z) and Aseprite throws an exception and crashes.
(Nothing should have been changed, but Undo will be made.)
Appendix
[appendix 1.]
The methods that raised the exception as follows.
aseprite/src/doc/mask.cpp
void Mask::copyFrom(const Mask* sourceMask)
line 120
The exception that occurred are as follows.
Exception has occurred: W32/0xc0000005
Exception thrown: read access violation.
sourceMask was nullptr.
I actually debugged it and found that the value of sourceMask was nullptr.
[appendix 2.]
When using the “app.command.DeselectMask()” .
no exceptions are raised under the same conditions.
Because nothing has been changed, I can’t Undo.
=================================
Is this a specification?
If so, you might want to include the following information as a supplementary item in documentation.
“Do not execute app.activeSprite.selection:deselect() with nothing selected.”