Bug 463020

Summary: copy merge on a group layer can crash krita
Product: [Applications] krita Reporter: Squeaky Pancakes <squeakypancakes>
Component: Layer StackAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: dimula73, halla
Priority: NOR    
Version First Reported In: 5.1.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Squeaky Pancakes 2022-12-13 19:03:15 UTC
SUMMARY
***
using copy merge on a group layer can sometimes cause krita to crash. Not sure it, but I reproduced it 3 times in a row with keybord shortcut, but when I went to check with menu action I couldn't reproduce it again even with the shortcut.
***


STEPS TO REPRODUCE
1. Create a layer group
2. use copy merge on gruop layer
3. paste

OBSERVED RESULT
Krita crashes

EXPECTED RESULT
Not do that

SOFTWARE/OS VERSIONS
Operating System: Artix Linux
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7
Kernel Version: 5.15.77-1-lts (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-3550 CPU @ 3.30GHz
Memory: 7.7 GiB of RAM
Graphics Processor: AMD Radeon RX 580 Series

ADDITIONAL INFORMATION
Comment 1 Halla Rempt 2022-12-13 19:04:48 UTC
* Can you please also provide a crash log.
* Does this also happen if you use the appimage instead of a distribution package?
Comment 2 Squeaky Pancakes 2022-12-13 19:11:02 UTC
(In reply to Halla Rempt from comment #1)
> * Can you please also provide a crash log.
> * Does this also happen if you use the appimage instead of a distribution
> package?

Arch doesn't provide debugging, I would have to build from source. The appimage also doesn't seem to reliably crash
Comment 3 Squeaky Pancakes 2022-12-13 19:17:50 UTC
(In reply to Squeaky Pancakes from comment #2)
> (In reply to Halla Rempt from comment #1)
> > * Can you please also provide a crash log.
> > * Does this also happen if you use the appimage instead of a distribution
> > package?
> 
> Arch doesn't provide debugging, I would have to build from source. The
> appimage also doesn't seem to reliably crash

Ok just did more testing, this works in the appimage as well.
It only happens when the clipboard is empty and you use the keyboard shortcut for copy merge but not the menu action.
Comment 4 Squeaky Pancakes 2022-12-13 19:28:29 UTC
(In reply to Squeaky Pancakes from comment #3)
> (In reply to Squeaky Pancakes from comment #2)
> > (In reply to Halla Rempt from comment #1)
> > > * Can you please also provide a crash log.
> > > * Does this also happen if you use the appimage instead of a distribution
> > > package?
> > 
> > Arch doesn't provide debugging, I would have to build from source. The
> > appimage also doesn't seem to reliably crash
> 
> Ok just did more testing, this works in the appimage as well.
> It only happens when the clipboard is empty and you use the keyboard
> shortcut for copy merge but not the menu action.

Maybe this is 2 issues
+ The copy merged shortcut doesn't work without a selection but the menu action does. 
+ Krita crashes when trying to paste with an empty clipboard.
Comment 5 Bug Janitor Service 2022-12-14 05:14:25 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 6 Dmitry Kazakov 2023-01-24 14:12:34 UTC
Hi, Squeaky!

Could you please make a backtrace with this appimage? Run it under GDB and when it crashes type 'thread apply all bt' in the terminal:

https://disk.yandex.ru/d/sfX-ObfZ7a7hoA
Comment 7 Bug Janitor Service 2023-02-08 03:53:21 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2023-02-23 03:45:50 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!