Bug 491985 - Krita crashes when an image is pasted while no layers are selected
Summary: Krita crashes when an image is pasted while no layers are selected
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: * Unknown (show other bugs)
Version: 5.2.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-08-21 13:03 UTC by Claire
Modified: 2024-08-21 13:10 UTC (History)
1 user (show)

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


Attachments
Backtrace (171.28 KB, text/plain)
2024-08-21 13:03 UTC, Claire
Details
Screen recording (380.48 KB, video/mp4)
2024-08-21 13:07 UTC, Claire
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Claire 2024-08-21 13:03:52 UTC
Created attachment 172810 [details]
Backtrace

SUMMARY
When I paste an image into Krita while there are currently no selected layers, Krita crashes

STEPS TO REPRODUCE
1. Open Krita
2. Do Ctrl+O to activate the Open dialog
3. Select two images
4. Do Ctrl+A, Ctrl+C
5. Navigate to the other image
6. Do Ctrl+V

OBSERVED RESULT
Krita segfaults

EXPECTED RESULT
The image would be pasted as normal

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Frameworks Version: 5.116.0
Qt Version: 5.15.14
Krita Package Version: 5.2.3-1

ADDITIONAL INFORMATION
I could not reproduce this when I was running Krita 5.2.2-10 (the layer would be selected when I navigate to the previous image). Additionally, manually selecting the layer makes it no longer crash
Comment 1 Dmitry Kazakov 2024-08-21 13:06:57 UTC
Hi, Claire!

Could you please test Krita Next package if this bug is still reproducible? I think I have fixed it quite recently:

https://cdn.kde.org/ci-builds/graphics/krita/krita-5.2/linux/
Comment 2 Claire 2024-08-21 13:07:52 UTC
Created attachment 172812 [details]
Screen recording
Comment 3 Claire 2024-08-21 13:10:56 UTC
Oh, it's fixed in Next! Thank you!