Bug 453833 - import gradients bundle but gradients don't show, + svg import fails
Summary: import gradients bundle but gradients don't show, + svg import fails
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Filter Layers (other bugs)
Version First Reported In: nightly build (please specify the git hash!)
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: regression
: 453624 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-05-15 14:54 UTC by fae
Modified: 2022-05-20 12:26 UTC (History)
2 users (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 fae 2022-05-15 14:54:46 UTC
SUMMARY
I imported Rakurri's 90 Gradients Set. It shows as imported, but the gradients don't appear. As well as two attempts from both github and gumroad versions, I tried extracting the bundle and manually importing an svg, but that brought up a failed message. 
(No problems with Rakurri v2 brush bundle, and creating/importing own backup bundles). 

STEPS TO REPRODUCE
1. import gradients bundle successfully
2. reboot and unable to find imported gradients within Krita. 

SOFTWARE/OS VERSIONS
MX Linux 21 (bullseye), running Mate. 
krita-5.1.0-prealpha-a71bfe56c5-x86_64.appimage
Comment 1 Ahab Greybeard 2022-05-15 16:01:07 UTC
I can confirm this problem for the May 14th 5.1.0-prealpha (git ceof851dc7) appimage with Debian 10 MATE.
The 5.0.6 appimage does not have this problem, hence regression.

A bundle containing .svg gradients gives no error message when imported but the gradients in it do not show in the gradient chooser.

If an .svg gradient file is individually Imported then an error message is shown stating that it could not be opened as a resource.

If a new gradient is created then there is a message to say that the file name is already in use (which it is not) and if you say 'Yes' to the offer of Overwrite then it says "Failed to overwrite the resource.
Comment 2 Ahab Greybeard 2022-05-15 18:48:59 UTC
*** Bug 453624 has been marked as a duplicate of this bug. ***
Comment 3 fae 2022-05-16 17:30:34 UTC
Just to add that I've found another issue with svg today ... added a fully working button to KanvasBuddy, but the svg icon doesn't show on KB. Not 100% sure it's linked, but mentioning it incase.
Comment 4 fae 2022-05-16 20:15:38 UTC
Sorry, a different icon worked, so may not be linked.
Comment 5 Bug Janitor Service 2022-05-20 12:19:40 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/1450
Comment 6 Halla Rempt 2022-05-20 12:26:49 UTC
Git commit 110498db8a27d7b682cc224cfc96f3ccd0022443 by Halla Rempt, on behalf of Sharaf Zaman.
Committed on 20/05/2022 at 12:26.
Pushed by rempt into branch 'master'.

Bugfix: Can't import SVG gradients

Loading QIODevice* using QBuffer(QObject *) is invalid. It treats
IODevice as its parent, but not as an input buffer.

M  +1    -2    libs/pigment/resources/KoStopGradient.cpp

https://invent.kde.org/graphics/krita/commit/110498db8a27d7b682cc224cfc96f3ccd0022443