Bug 470719

Summary: Crash fills entire disk with huge log file
Product: [Applications] krita Reporter: Tim Hutt <tdhutt>
Component: * UnknownAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: 5.1.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Tim Hutt 2023-06-06 20:14:20 UTC
SUMMARY

On Windows Krita crashed and it just got stuck in a loop writing this line to `~/AppData/Local/krita.log`:

```
31 May 2023 17:01:23 +0100: SAFE ASSERT (krita): "qAbs(row) < 0x7FFF && qAbs(col) < 0x7FFF" in file C:/Packaging/workspace/Krita_Release_Windows64_Build/krita/libs/image/tiles3/kis_tile_hash_table2.h, line 151
```

I had just left Krita open in the background for a few days so I didn't notice until the file got to 130 GB and I ran out of disk space. Quite annoying!

Sorry I don't know how to reproduce it. All I did was do some messing around with paint brushes, not save the file and then leave Krita running in the background for like a week. The PC was suspended and resumed several times if that makes any difference.

SOFTWARE/OS VERSIONS
Windows: 10
Comment 1 Halla Rempt 2023-06-07 06:43:02 UTC
This is going to be really hard to prevent; once krita crashes and gets in an infinite loop, we cannot control what happens anymore. The only way around it would be to fix the actual issue, and for that we need access to (the relevant part of) the log file.
Comment 2 Halla Rempt 2024-10-31 14:14:36 UTC
We have limited the size of the krita log for now.