Bug 440944 - Crash on new document from clipboard for PNGs
Summary: Crash on new document from clipboard for PNGs
Status: RESOLVED DUPLICATE of bug 438426
Alias: None
Product: krita
Classification: Applications
Component: Usability (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: Appimage Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-13 21:33 UTC by Know Zero
Modified: 2021-08-16 10:51 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Know Zero 2021-08-13 21:33:52 UTC
SUMMARY
I tried copying a PNG file from chromium and create a new document, and it crashes for the latest appimage. There is not much in the log. Copy and paste works fine if the document already exists. I tried from kgwenview to see if it is a chromium thing and same issue.

For the master build, it doesn't crash. But I just get a blank canvas. That said, I will note a difference in GUI as well (for the master build). When I click OK on the create from clipboard for JPGs, it asks me if I want to import it as web. For PNGs, after hitting OK, it gives a context menu asking if I want to import it into a new layer, file layer (same context menu when you do regular copy and paste)

Though it seems that overall there is a different UI for JPG imports and PNGs. Cause even if I copy and paste into an existing document, a JPG, it gives a dialog while PNG gives the context menu.

STEPS TO REPRODUCE
1. Copy a PNG into clipboard
2. File->new->from clipboard->OK
 

OBSERVED RESULT
Nightly appimage build: crash
Master: Blank document

EXPECTED RESULT
The PNG to show on the document

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenSuse 15.3
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

Appimage is latest: e89467b
Master is from Aug 6th: 527355ca
Comment 1 Ahab Greybeard 2021-08-16 08:45:58 UTC
Testing with 5.0.0-prealpha appimages on Debian 10:

Aug 14 (git afacd70) has no problem with a .png image from the clipboard but crashes with a New Image with a .jpg image from the clipboard giving a segmentation fault message in the terminal.

Aug 15 (git c98w3cb) has no problem with .png or .jpg from the clipboard but with a New Image and .jpg from the clipboard, it opens up an optiopns list for New Layer, New Image, etc.
Comment 2 Halla Rempt 2021-08-16 10:51:02 UTC

*** This bug has been marked as a duplicate of bug 438426 ***