Bug 470719 - Crash fills entire disk with huge log file
Summary: Crash fills entire disk with huge log file
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: * Unknown (other bugs)
Version First Reported In: 5.1.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-06 20:14 UTC by Tim Hutt
Modified: 2024-10-31 14:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.