Thank you for the dump file!
<gmic>-0./+input_cached/*if/*local/ Command 'input': arguments = '$url' -> 'https://gmic.eu/gmic_denoise_cnn.gmz'.
[gmic]-0./+input_cached/*if/*local/ Input file 'https://gmic.eu/gmic_denoise_cnn.gmz' at position 0
[gmic]-0./+input_cached/*if/*local/ *** Error *** Command 'input': File 'https://gmic.eu/gmic_denoise_cnn.gmz' is not in .gmz format (magic number not found).
[gmic]-0./+input_cached/*if/*local/ Reach 'onfail' block.
A ‘magic number’ is a short, distinctive number placed at the very start of the file to signify that it is of a definite type. It seems that gmic
is downloading something, but the initial bytes of that something is not what a file of type .gmz
would contain. Possibly communication corruption. Possibly a low-level connection reset, leading to an empty file — it has a file system name, but has zero bytes of content.
A successful run of input_cached
places the obtained file in your cache. Following a successful run here, I have this listing in my `~/.cache/gmic file:
gosgood@bertha ~ $ ls -l ~/.cache/gmic
total 4064
-rw-r--r-- 1 gosgood gosgood 1111349 Apr 22 07:19 gmic_denoise_cnn.gmz <===
-rw-r--r-- 1 gosgood gosgood 799101 Feb 3 06:53 sample_car.png
-rw-r--r-- 1 gosgood gosgood 524736 Nov 24 09:39 sample_cat.png
-rw-r--r-- 1 gosgood gosgood 438447 Nov 27 12:14 sample_lena.png
-rw-r--r-- 1 gosgood gosgood 609594 Feb 3 06:53 sample_monkey.png
-rw-r--r-- 1 gosgood gosgood 273917 Nov 8 07:38 sample_rose.png
-rw-r--r-- 1 gosgood gosgood 387660 Apr 17 06:46 sample_square.png
On your machine, is the file (a) missing? or (b) present, but size zero, or (c) present, but some size other than what I have?
If you have linux, some external tools may be of some use. First, octal dump
od. Here is an alphanumeric dump of the beginning of gmic_denoise_cnn.gmz
$ od -a ~/.cache/gmic/gmic_denoise_cnn.gmz | less
0000000 6 sp u i n t 8 sp l i t t l e _ e
0000020 n d i a n nl 1 sp 3 6 1 7 9 9 sp 1
0000040 sp 1 sp # 3 6 1 9 2 0 nl x fs nul vt @
…
If (c), present, but some size, other than 1111349 bytes, what does your dump look like?
Finally, does wget obtain the file without problems (unlike gmic), or does it too fail for some reason? Here, I can fetch the .gmz
file without issue:
gosgood@bertha ~ $ wget https://gmic.eu/gmic_denoise_cnn.gmz
--2023-04-22 07:08:54-- https://gmic.eu/gmic_denoise_cnn.gmz
Resolving gmic.eu... 213.186.33.40
Connecting to gmic.eu|213.186.33.40|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1111349 (1.1M)
Saving to: ‘gmic_denoise_cnn.gmz’
gmic_denoise_cnn.gm 100%[===================>] 1.06M 182KB/s in 6.0s
2023-04-22 07:09:00 (180 KB/s) - ‘gmic_denoise_cnn.gmz’ saved [1111349/1111349]
What happens in your case? If a fetch fails with wget
, then there is some issue outside of gmic
with which to contend…
Thanks!