| Summary: | GMIC grain degradation produces error: *** Error in ./fx_simulate_grain/__fx_simulate_grain/ *** Command 'input_cached': Unknown filename 'data_film_presets/grain_orwo_np20.cimgz'. | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | healer.harie |
| Component: | G'Mic for Krita | Assignee: | amyspark <amy> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | amy, David.Tschumperle, halla |
| Priority: | NOR | ||
| Version First Reported In: | 5.0.6 | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Microsoft Windows | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
Error
unsupported compressed flag on curl. |
||
|
Description
healer.harie
2022-06-09 11:21:06 UTC
Works here... Created attachment 149575 [details]
Error
(In reply to healer.harie from comment #2) > Created attachment 149575 [details] > Error I have attached a shot of the error. Please take a look. In the supplied screenshot, you have the "Internet" checkbox unchecked. This means G'MIC won't access the Internet to download updates or filter data, and CLUTs are covered in this. If you don't have the file cached already, then the filter will not work. To fix it, just tick the checkbox and re-select the filter. (In reply to amyspark from comment #4) > In the supplied screenshot, you have the "Internet" checkbox unchecked. This > means G'MIC won't access the Internet to download updates or filter data, > and CLUTs are covered in this. If you don't have the file cached already, > then the filter will not work. > > To fix it, just tick the checkbox and re-select the filter. That didn't work unfortunately. But right now, I'm trying to update the filter by clicking the refresh symbol on the left side of the tick box, but it always give: ``` The update could not be achieved because of the following errors: Could not read/decompress https://gmic.eu/update302.gmic Could not read/decompress https://gmic.eu/update302.gmic ``` I hope to try again updating GMIC filters tomorrow. Ok, I tried today and even reinstalling krita but it still didn't work. I tried this again on another Windows 10 machine (lets call this machine B) with Krita 5.0.2, but the problem persisted. I run again Krita (on machine B) but this time with krita.com and I saw that Krita using that bloatware unusable curl shipped in newer version of Windows https://stackoverflow.com/a/16216825 (see attached log). This crapware curl provided by Microsoft doesn't support --compressed flag and I have no way of replacing it as Windows wouldn't even allow me to even with administrative privileges. On machine A (which I originally reported) fortunately doesn't contain this curl as I'm running on build 1703. I updated Machine B krita to 5.0.6 and that curl error stopped showing on /bin/krita.com, perhaps Krita uses its own curl? I tried manually downloading https://gmic.eu/update302.gmic and placing it on `%appdata%/gmic` but error also appears: ``` The update could not be achieved because of the following errors: Could not read/decompress https://gmic.eu/update302.gmic Could not read/decompress https://gmic.eu/update302.gmic ``` Created attachment 149599 [details]
unsupported compressed flag on curl.
I can confirm on my Windows 11 laptop that it's impossible to get updates or download data from the gmic-qt plugin. We don't ship our own copy of curl, it's one of David Tschumperlé's libraries, CImg, that uses CURL if found to download G'MIC components. The order followed by the library is (in descending priority): libcurl, CURL executable, powershell, and wget. I'll make a patch to work around it on our end, but this bug really belongs in https://github.com/dtschump/CImg. Maybe a silly question, but why libcurl is not a required dependency of G'MIC on Krita ? It is for the other versions of the plug-in. > Maybe a silly question, but why libcurl is not a required dependency of G'MIC on Krita ?
Back when I forked the plugin (2.9.2 - 2.9.6) we built ext_gmic (the executable version) without cURL, as the only place that required Internet functionality was c-koi's Updater class, which used Qt infrastructure.
Now there are two places that can access Internet; the updater (via Qt) and G'MIC's own filter infrastructure (via CImg). So when Microsoft decided to ship a barebones cURL...
(In reply to amyspark from comment #11) > > Maybe a silly question, but why libcurl is not a required dependency of G'MIC on Krita ? > > Back when I forked the plugin (2.9.2 - 2.9.6) we built ext_gmic (the > executable version) without cURL, as the only place that required Internet > functionality was c-koi's Updater class, which used Qt infrastructure. > > Now there are two places that can access Internet; the updater (via Qt) and > G'MIC's own filter infrastructure (via CImg). So when Microsoft decided to > ship a barebones cURL... I see. Note that there have always been "two places" that can access Internet : the plug-in and the G'MIC interpreter, even back in 2.9.x (and earlier). Thanks for the clarification anyway. (In reply to Halla Rempt from comment #8) > I can confirm on my Windows 11 laptop that it's impossible to get updates or > download data from the gmic-qt plugin. I've tried to reproduce this with Windows 10 and the latest version I've released. While the cURL binary is certainly a stunted version, the powershell fallback is kicking in successfully. However, on checking the reporter's screenshot, it says they're using 3.0.2. Judging from the Git log of Krita, I believe this is 3.0.2.1. The fallback I'm mentioning was shipped starting with 3.0.2.2 and all upstream versions, none of which were included in our 5.0 branch. Can you check again but with the 5.1 nightly? You can get it from https://binary-factory.kde.org/job/Krita_Stable_Windows_Build/ . (In reply to amyspark from comment #13) I downloaded build 1523 (5.1.0-prealpha (git e1f2591)) and the "Add grain" filter are working right now. I tested all 5 preset and they're working. Ok, then we can close the issue. |