Bug 503020 - Scale tools cause oom
Summary: Scale tools cause oom
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: Tools/Transform (other bugs)
Version First Reported In: 5.2.9
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Lukas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-19 14:36 UTC by FelixAgairu
Modified: 2025-06-20 03:47 UTC (History)
1 user (show)

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


Attachments
Infos in Submit Bug Report (306.57 KB, text/plain)
2025-04-19 14:36 UTC, FelixAgairu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FelixAgairu 2025-04-19 14:36:09 UTC
Created attachment 180405 [details]
Infos in Submit Bug Report

SUMMARY
In certain use cases the scale set width or height to -10000 %, which cause scale layers to 100x. And use lots of resource, then OOM.

STEPS TO REPRODUCE
1. Create a image.
2. Draw some things on it.
3. Make some copy of that layer.
4. Select these layers.
5. Use Transform tools.
6. Select Scale in tool options.
7. Unlink the width and height.
8. Clear, Delete or Enter 0 in to both of Width or Height.
9. Link the width and height.
10. Gain values using Up arrow, Scroll Up, the other value will change to -10000 %.
11. After that, it will use lots of RAM and CPU, but finally cause out of memory.

OBSERVED RESULT
Krita uses 100% CPUs and tons of RAM, finally out of memory.

EXPECTED RESULT
The width or height should keep 0 but -10000.

SOFTWARE/OS VERSIONS
Windows: 11 24H2 26100.3775
macOS: N/A
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: N/A
KDE Plasma Version: N/A
KDE Frameworks Version: N/A
Qt Version: 
  Version (compiled): 5.15.7
  Version (loaded): 5.15.7

ADDITIONAL INFORMATION
more in krita_info.txt
Comment 1 Lukas 2025-05-21 13:14:07 UTC
Hello Felix, thank you for your report and your detailed description. I tried to reproduce it following your exact steps, but I could not reproduce the increase in CPU and RAM usage. I tested on 5.2.9 and 5.2.5 on Windows 10.

I can confirm the incorrect setting of the scaling dimensions to -10000 though, so these might be two seperate issues, but its too early to tell.

Your system information shows that you are using Windows 10 rather than 11, which you put into your description. Can you check this again and confirm which is correct? 

Can you please add more detailed steps to your discription, if there is anything I might have missed, like which exact tool you used to draw in step 2, or enabling a specific setting or something like that.

If you can, record a video of it happening, as I could not even observe my layers being transformed while setting scale to -10000.
Comment 2 Bug Janitor Service 2025-06-05 03:47:58 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2025-06-20 03:47:47 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.