Bug 416846

Summary: Usage of the colorize masked editing tool leads to file corruption when software crash
Product: [Applications] krita Reporter: spamdotspamy
Component: Tools/ColorizeAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: 4.2.8   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: relevant part of my log, I do not want to post the whole thing

Description spamdotspamy 2020-01-28 03:38:49 UTC
Created attachment 125473 [details]
relevant part of my log, I do not want to post the whole thing

SUMMARY

Twice today I had the problem of file corruption while using the masked editing tool. In both cases Krita crashed on me. I suspect because I tried to undo a change while the colorize masked editing tool was calculating.

STEPS TO REPRODUCE
1. Use the colorize mask editing tool to color parts of the image
2. While the calculation is in progress try to do and undo changes on other parts of the image
3. After a time (about 5 h of work in my case) the system will crash
4. Your file is corrupted
5. Check the logs, you have one longer entry that I attached as a file
6. Whenever you want to open the corrupted file Krita crashes 
7. Check the logs for something like krita.exe caused a Stack Overflow at location 0000000077207C1A in module ntdll.dll and nothing else

OBSERVED RESULT

File and all backup files up to 5 h before the crash are corrupted and will cause krita to crash with the log message "krita.exe caused a Stack Overflow at location 0000000077207C1A in module ntdll.dll." 

EXPECTED RESULT

No crash and no corrupted files. Especially no corrupted back-ups.

SOFTWARE/OS VERSIONS
Windows: 7

ADDITIONAL INFORMATION
I have no idea what exactly triggered this but it happened to me twice today. I strongly suspect my undo/redo commands. But I am not sure. When it happened for the first time my back-ups worked.
Comment 1 spamdotspamy 2020-01-28 03:39:47 UTC
(In reply to spamdotspamy from comment #0)
> Created attachment 125473 [details]
> relevant part of my log, I do not want to post the whole thing
> 
> SUMMARY
> 
> Twice today I had the problem of file corruption while using the masked
> editing tool. In both cases Krita crashed on me. I suspect because I tried
> to undo a change while the colorize masked editing tool was calculating.
> 
> STEPS TO REPRODUCE
> 1. Use the colorize mask editing tool to color parts of the image
> 2. While the calculation is in progress try to do and undo changes on other
> parts of the image
> 3. After a time (about 5 h of work in my case) the system will crash
> 4. Your file is corrupted
> 5. Check the logs, you have one longer entry that I attached as a file
> 6. Whenever you want to open the corrupted file Krita crashes 
> 7. Check the logs for something like krita.exe caused a Stack Overflow at
> location 0000000077207C1A in module ntdll.dll and nothing else
> 
> OBSERVED RESULT
> 
> File and all backup files up to 5 h before the crash are corrupted and will
> cause krita to crash with the log message "krita.exe caused a Stack Overflow
> at location 0000000077207C1A in module ntdll.dll." 
> 
> EXPECTED RESULT
> 
> No crash and no corrupted files. Especially no corrupted back-ups.
> 
> SOFTWARE/OS VERSIONS
> Windows: 7
> 
> ADDITIONAL INFORMATION
> I have no idea what exactly triggered this but it happened to me twice
> today. I strongly suspect my undo/redo commands. But I am not sure. When it
> happened for the first time my back-ups worked.

Important, check the attachment for details. I wasn't able to format the log properly so I uploaded it.
Comment 2 spamdotspamy 2020-01-28 14:52:22 UTC
Same bug as 416864
Please close this!
Comment 3 Halla Rempt 2020-01-28 14:53:47 UTC

*** This bug has been marked as a duplicate of bug 416864 ***