Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Code - OSS turns full red after successful extension install with wallbashcode.sh --reset. Problems with Wallbash. #1781

Open
selselse opened this issue Aug 29, 2024 · 96 comments
Labels
bug Something isn't working

Comments

@selselse
Copy link

Bug Report

Code - OSS ui is unusable and blood red. Spotify theme sync errors.

Steps to Reproduce

  1. Ml4w dotfiles installation.
  2. Deleting ~/.config/hypr , ~/.config/Code - OSS, ~/.config/spotify and ~/.vscode
  3. Launching Code - OSS and spotify after reinstallation so that conf files would reappear.
  4. Hyprdots install

Expected Behavior

For Code - OSS and spotify to sync with the theme

Actual Behavior

Neither of them sync, although wallbashspotify.sh --reset and wallbashcode.sh --reset were successful. Spotify changes its color to red and pink but that is always the case regardless of theme I am using.

Screenshots

image

image

  • Linux Distro: ArchLinux
  • Installation Environment: The Main Hardware

Additional Information

Also, changing Wallbash from theme or auto to dark or light completely breaks hyprland, with multiple errors in color.conf.

@selselse selselse added the bug Something isn't working label Aug 29, 2024
@selselse
Copy link
Author

Besides these issues, everything works perfectly fine.

@selselse selselse changed the title [Bug]: Short description of the issue [Bug]: Code - OSS turns full red after successful extension install with wallbashcode.sh --reset. Problems with Wallbash. Aug 29, 2024
@kRHYME7
Copy link
Collaborator

kRHYME7 commented Aug 29, 2024

Those color errors might be because you lack some cache. You can use the CLI to regenerate the cache Hyde cache rebuild this will take time then run Hyde reload after

My guess is the installation did not finish correctly so you can use the cli to install it. Hyde-install

@selselse
Copy link
Author

selselse commented Aug 29, 2024

I have installed it again through Hyde-install. Even after rebuilding the cache and reloading there doesn't seem to be any noticable changes. At least the mouse icon has changed.

@selselse
Copy link
Author

image
Here, spotify reloads back to its original colors after every theme change.

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Aug 29, 2024

light completely breaks hyprland, with multiple errors in color.conf.

the fix I recommend above is for this. Did it kill hyprland?

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Aug 29, 2024

for code-oss, Maybe it is running on Xwayland
check this as code-oss got some issues in there packaging
#1315

Also play around with flags when running code-oss.

try to run code alone
then try code --disable-gpu
or code --ozone-platform-hint=wayland
or any combination of those

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Aug 29, 2024

wallbashspotify.sh --reset and wallbashcode.sh --reset were successful.

--reset flag for wallbashcode is not a thing.
fo spotify, there might be something overriding the change. Can you try to test the wallbashspotify.sh --reset multiple times

@selselse
Copy link
Author

selselse commented Aug 29, 2024

Sadly, wallbash is still broken:
240829_16h42m47s_screenshot
240829_16h44m23s_screenshot

this is known issue, please refer #1292 (comment)

you'll need to fix /usr/bin/code-oss by removing the quotes from ${codeflags[@]} in the last line.

I have already unquoted the argument, but the two launch arguments still keep appearing as files. I have deemed this to be not the issue, as someone mentioned they still have their vscode synced, even though the launch arguments appear to be files.

for code-oss, Maybe it is running on Xwayland check this as code-oss got some issues in there packaging #1315

Also play around with flags when running code-oss.

try to run code alone then try code --disable-gpu or code --ozone-platform-hint=wayland or any combination of those

Also:
image
Maybe I just switch vscode instead of code - oss.

Applying wallbashspotify.sh --reset over and over yields the same results:
image

@selselse
Copy link
Author

Vscode failed to amuse too...:
image
Only the sidebar follows the themeing:
image

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Aug 29, 2024

@selselse As this repo is recommended to be installed on fresh minimimal arch. And everything leaves unexpected results. Can you make another User? and in that user you can do a fresh installation using Hyde-install .

This might be inconvenient but at least we get to know if this is something to do with your device, Hyprland or HyDE.

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Aug 29, 2024

Vscode still got that red tint?

@selselse
Copy link
Author

@selselse As this repo is recommended to be installed on fresh minimimal arch. And everything leaves unexpected results. Can you make another User? and in that user you can do a fresh installation using Hyde-install .

This might be inconvenient but at least we get to know if this is something to do with your device, Hyprland or HyDE.

I will once I get back to home again.

@selselse
Copy link
Author

selselse commented Aug 31, 2024

Vscode still got that red tint?

I have tried the usual installation with Hyde-insall on a new user. It seems vscode (not code - oss) still has the same theme, whereas spotify is just a blank window.

@selselse
Copy link
Author

selselse commented Aug 31, 2024

Sadly, wallbash is still broken:
240829_16h42m47s_screenshot
240829_16h44m23s_screenshot

this is known issue, please refer #1292 (comment)

you'll need to fix /usr/bin/code-oss by removing the quotes from ${codeflags[@]} in the last line.

I have already unquoted the argument, but the two launch arguments still keep appearing as files. I have deemed this to be not the issue, as someone mentioned they still have their vscode synced, even though the launch arguments appear to be files.

for code-oss, Maybe it is running on Xwayland check this as code-oss got some issues in there packaging #1315

Also play around with flags when running code-oss.

try to run code alone then try code --disable-gpu or code --ozone-platform-hint=wayland or any combination of those

Also:
image
Maybe I just switch vscode instead of code - oss.

Applying wallbashspotify.sh --reset over and over yields the same results:
image

I still have the same issue with wallbash, I am not able to change the wallbash from "theme" to "light" or "dark." So the blank Hyprland seems to not be the issue. At the very least the "--disable-gpu" etc. flags are gone. It is to be deduced that this issue does not concern the .config files. Where else doee wallbash depend on? Does it have its own .config files?

@selselse
Copy link
Author

Vscode still got that red tint?

I have tried the usual installation with Hyde-insall on a new user. It seems vscode (not code - oss) still has the same theme, whereas spotify is just a blank window.

It is blank like the one in this issue:
#1527

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Aug 31, 2024

Okay let's fix the wallbash for now.

Can you run this themeswitch.sh -n this will try to populate the next theme .

@selselse
Copy link
Author

selselse commented Sep 1, 2024

I will! Also quick side note: After switching themes now even vscode has that red tint, not only Code- OSS.

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 1, 2024

do you have errors after running that command?

@selselse
Copy link
Author

selselse commented Sep 3, 2024

Sorry for the late response, it seems I am not getting any fatal errors:
WARNING: No image found in "/home/limonatal/.config/hyde/themes/Paranoid Sweet" WARNING: No image found in "/home/limonatal/.config/hyde/themes/Hack the Box" WARNING: No image found in "/home/limonatal/.config/hyde/themes/Windows 11" WARNING: No image found in "/home/limonatal/.config/hyde/themes/Red Stone" WARNING: No image found in "/home/limonatal/.config/hyde/themes/Sci-fi" WARNING: No image found in "/home/limonatal/.config/hyde/themes/Dracula" :: applying theme :: "Nordic Blue" :: applying wall :: "/home/limonatal/.config/hyde/themes/Nordic Blue/wallpapers/Nordic-Heroin.png" :: deploying Nordic Blue colors :: dark wallpaper detected ~ 01:48:13 ~ 01:48:13

@selselse
Copy link
Author

selselse commented Sep 3, 2024

Good news, theme applies to LibreOffice correctly!

@selselse
Copy link
Author

selselse commented Sep 3, 2024

I have also updated the dotfiles, nothing seems to change...

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 4, 2024

The warnings indicate that some of the themes are not installed successfully. This is actually a serious issue, as the script cannot genearte correct color scheme.

You can reinstall those missing wallpapers using Hyde theme import then select the theme with missing wallpapers.

@selselse
Copy link
Author

selselse commented Sep 4, 2024

There is no Hyde theme import.
Upon running the commands Hyde theme patch, I am still getting the same results with the missing backgrounds:
WARNING: No image found in "/home/limonatal/.config/hyde/themes/Paranoid Sweet" WARNING: No image found in "/home/limonatal/.config/hyde/themes/Hack the Box" WARNING: No image found in "/home/limonatal/.config/hyde/themes/Windows 11" WARNING: No image found in "/home/limonatal/.config/hyde/themes/Red Stone" WARNING: No image found in "/home/limonatal/.config/hyde/themes/Sci-fi" :: applying theme :: "AbyssGreen" :: applying wall :: "/home/limonatal/.config/hyde/themes/AbyssGreen/wallpapers/bg_24.jpg"

`❯ Hyde theme import
[set] ﬌ Set theme

		[next]  ﬌  Next theme

		[prev]  ﬌  Previous theme

		[select]  ﬌  Theme selector

		[patch]  ﬌  Patch a theme from different repository.
		                ﯦ Invoking without args will launch a menu from Hyde-gallery DB `

@selselse
Copy link
Author

selselse commented Sep 4, 2024

Moreover, the .config files of Cava are also broken. I tried to fix them, but whenever I change themes the broken files are restored again:
❯ cava Error loading config. Gradient color 1 is invalid. It must be HTML color of the form '#xxxxxx'.
I think we might be getting somewhere with the problem of Hyde theme import, should it be already existing command? Maybe I should manually install whatever module/script that is..? Lastly, vscode still has that red tint.

@selselse
Copy link
Author

selselse commented Sep 4, 2024

Here are the log files for Hyde theme patch :
`[ENTER] continue [ANY] Exit:
100% 23:0=1m00s Windows 11 https://github.com/kRHYME7/hyde-gallery/tree/Windows-11 --skipcaching false

[cache] generating cache files...
75% 136:43=2s 4a2a7da6bf5d696ea406c7985efeb3ceb52eacf9 /home/limonatal/.config/hyde/themes/Rosé Pine/wallpapers/warm_afternoon.jpeg magick: no decode delegate for this image format GIF' @ error/constitute.c/ReadImage/746. magick: no decode delegate for this image format GIF' @ error/constitute.c/ReadImage/746.
magick: no decode delegate for this image format GIF' @ error/constitute.c/ReadImage/746. magick: unable to open image '/home/limonatal/.cache/hyde/thumbs/d9c8b5d8a8fe329812c8ca0673e24e144756fc37.sqre': Böyle bir dosya ya da dizin yok @ error/blob.c/OpenBlob/3596. magick: no decode delegate for this image format SQRE' @ error/constitute.c/ReadImage/746.
95% 171:8=0s ad21d173db5e83ae91e70d2c9274a2ffab603151 /home/limonatal/.config/hyde/themes/Tokyo Night/wallpapers/street.gif magick: no decode delegate for this image format GIF' @ error/constitute.c/ReadImage/746. magick: no decode delegate for this image format GIF' @ error/constitute.c/ReadImage/746.
magick: no decode delegate for this image format GIF' @ error/constitute.c/ReadImage/746. magick: unable to open image '/home/limonatal/.cache/hyde/thumbs/6d75ae5fc4beab599466eb7d379c50b8036fc680.sqre': Böyle bir dosya ya da dizin yok @ error/blob.c/OpenBlob/3596. magick: no decode delegate for this image format SQRE' @ error/constitute.c/ReadImage/746.
96% 172:7=0s 7cd12a23084b0ad1e02b9053f9322afbd35cfb10 /home/limonatal/.config/hyde/themes/Tokyo Night/wallpapers/tokyo_pink.png magick: no decode delegate for this image format GIF' @ error/constitute.c/ReadImage/746. magick: no decode delegate for this image format GIF' @ error/constitute.c/ReadImage/746.
magick: no decode delegate for this image format GIF' @ error/constitute.c/ReadImage/746. magick: unable to open image '/home/limonatal/.cache/hyde/thumbs/ad21d173db5e83ae91e70d2c9274a2ffab603151.sqre': Böyle bir dosya ya da dizin yok @ error/blob.c/OpenBlob/3596. magick: no decode delegate for this image format SQRE' @ error/constitute.c/ReadImage/746.
100% 179:0=10s 7cd12a23084b0ad1e02b9053f9322afbd35cfb10 /home/limonatal/.config/hyde/themes/Tokyo Night/wallpapers/tokyo_pink.png ``

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 5, 2024

Can you update your cli yay -Sy hyde-cli-git
After delete some of the broken theme folders and patch it again
image

Also please share your version of magick magick -version
image

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 5, 2024

We should fix the file caching first before tackling about cava, code-oss as those errors are more likely caching issues.

Linux Distro: ArchLinux

The minimal arch intallation ?

@selselse
Copy link
Author

selselse commented Sep 5, 2024

Deleting the broken theme files and updating hyde-cli-git fixed the issue of the command Hyde theme import not working. Now I can run it no problem, there are no more problems. My magick is up to date. Here is the output:
❯ magick -version Version: ImageMagick 7.1.1-37 Q16-HDRI x86_64 22381 https://imagemagick.org Copyright: (C) 1999 ImageMagick Studio LLC License: https://imagemagick.org/script/license.php Features: Cipher DPC HDRI Modules OpenCL OpenMP(4.5) Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype heic jbig jng jp2 jpeg jxl lcms lqr ltdl lzma openexr pangocairo png raqm raw rsvg tiff uhdr webp wmf x xml zip zlib zstd Compiler: gcc (14.2)
Here are the outputs of Hyde theme import and Hyde theme set :

I had to run it again because the theme Sci-fi was being difficult:

Hyde theme import [themepatcher] Patching 1 theme/s...

Sci-fi

`[ENTER] continue [ANY] Exit:
Directory /home/limonatal/.cache/hyde/themepatcher/main-KaranRaval123 does not exist. Cloning repository into new directory.

Patching --// Sci-fi //-- from /home/limonatal/.cache/hyde/themepatcher/main-KaranRaval123

[!!] .config/hyde/themes/Sci-fi/gtk/gtk4.theme --> do not exist in /home/limonatal/.cache/hyde/themepatcher/main-KaranRaval123/Configs/
[!!] .config/hyde/themes/Sci-fi/gtk/gtk3.theme --> do not exist in /home/limonatal/.cache/hyde/themepatcher/main-KaranRaval123/Configs/
[OK] .config/hyde/themes/Sci-fi/waybar.theme
[OK] .config/hyde/themes/Sci-fi/kvantum/kvantum.theme
[OK] .config/hyde/themes/Sci-fi/kvantum/kvconfig.theme
[OK] .config/hyde/themes/Sci-fi/rofi.theme
[OK] .config/hyde/themes/Sci-fi/kitty.theme
[OK] .config/hyde/themes/Sci-fi/hypr.theme

[wallpapers]
/wallpapers/cyberpunk-neon-city.jpg
/wallpapers/futuristic-city-tall-buildings-concept-art-4k.jpg
/wallpapers/evening-rush-in-scifi-city-5k.jpg
/wallpapers/cyber-night-boy-standing-on-car-4k.jpg
/wallpapers/phyzik-corp-5k.jpg
/wallpapers/joi-blade-runner-2049.jpg
/wallpapers/a-one-way-ticket-to-the-modern-frontier.jpg
/wallpapers/anime-girl-city-night-neon-cyberpunk-4k.jpg
/wallpapers/blade_runner.jpg
/wallpapers/futuristic-skylines-a-scifi-twist-on-modern-cityscapes.jpg
/wallpapers/my-city.jpg
/wallpapers/cyberpunk-boy-in-scifi-world-mr.jpg
/wallpapers/women-in-pink-long-coat-standing-in-cyberpunk-city-4k.jpg
/wallpapers/lunatic-city.jpg
/wallpapers/neon-city.jpg
/wallpapers/cyberpunk-City.jpg
/wallpapers/save-me.jpg
/wallpapers/city-edge-4k.jpg
/wallpapers/cyberpunk-sci-fi-girl-and-the-urban-maze-synthetic-skylines.jpg
/wallpapers/colony-x-scifi-buildings-5k.jpg

[OK] wallpapers :: [count] 20 (.gif+.jpg+.jpeg+.png)
[OK] hypr.theme :: [gtk] Sci-fi
[OK] ../.tar. :: [gtk] Sci-fi
[!!] hypr.theme :: [Icon] Not Found
[OK] hypr.theme :: [cursor] Bibata-Modern-Classic
[OK] ../.tar. :: [cursor] Bibata-Modern-Classic
[!!] hypr.theme :: [sddm] Not Found
[!!] hypr.theme :: [font] Not Found
[!!] hypr.theme :: [document-font] Not Found
[!!] hypr.theme :: [monospace-font] Not Found

[extracting] /home/limonatal/.cache/hyde/themepatcher/main-KaranRaval123/Source/arcs/Gtk_Sci_fi.tar.gz --> /home/limonatal/.themes
[extracting] /home/limonatal/.cache/hyde/themepatcher/main-KaranRaval123/Source/arcs/Icon_Cyberpunk.tar.gz --> /home/limonatal/.icons
[extracting] /home/limonatal/.cache/hyde/themepatcher/main-KaranRaval123/Source/arcs/Cursor_Bibata_Modern_Classic.tar.gz --> /home/limonatal/.icons

[exec] restore_cfg.sh "/home/limonatal/.cache/hyde/themepatcher/main-KaranRaval123/restore_cfg.lst" "/home/limonatal/.cache/hyde/themepatcher/main-KaranRaval123/Configs" "Sci-fi"

100% 20:0=21s 1141032bce02eec4d8997033719bc939b0e73929 /home/limonatal/.config/hyde/themes/Sci-fi/wallpapers/women-in-pink-long-coat-standing-in-cyberpunk-city-4k.jp`

❯ Hyde theme set took 3m51s fixig link :: /home/limonatal/.config/hyde/themes/Sci-fi/wall.set :: applying theme :: "AbyssGreen" :: applying wall :: "/home/limonatal/.config/hyde/themes/AbyssGreen/wallpapers/bg_24.jpg" .config/hyde/themes 21:22:57 ❯ :: deploying AbyssGreen colors :: dark wallpaper detected took 2s bash: satır 1: /home/limonatal/.local/share/bin/wallbashcode.sh: Erişim engellendi
__> this translates to 'Access denied' Using the command Chmod:

❯ sudo chmod +x /home/limonatal/.local/share/bin/wallbashcode.sh .config/hyde/themes 21:24:13 ❯ Hyde theme set :: applying theme :: "Hack the Box" :: applying wall :: "/home/limonatal/.config/hyde/themes/Hack the Box/wallpapers/Hacker1.jpg" .config/hyde/themes 21:24:21 .config/hyde/themes 21:24:26

Lastly, no this was not a minimal arch install, I installed many other applications as I used to use this computer beforehand.

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 14, 2024

@selselse The log tells me that you got a broken wallpaper. Can you try to use another wallpaper?

change ~/.cache/hyde/wall.set into a different image path
image

@selselse
Copy link
Author

Even changing the wallpaper doesn't fix or differentiate anything. The newly generated .dcol file still lacks the rgb values. I have synced magick with yay but that doesn't seem to change anything either...

@selselse
Copy link
Author

image
Satır 109 translates to line 109. It reads invalid integer constant. (issue number #16) There is maybe something wrong with line 109?

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 14, 2024

TBH, I needed more time to check the wallbash script as I only knew how this works but not the entire thing. It uses too many arrays that debugging it might be hard. Lol

BTW question did you try using the realpath of the wallpaper instead of the symlink ./wall.set?
image

@selselse
Copy link
Author

I tried it with a couple of images 1920x1080 found on my pictures folder. But I am yet to try it with the real path of the wallpaper. (No idea where they are stored either)

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 14, 2024

(No idea where they are stored either)

Try to use a clean image. It's not required to be from the repo.

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 14, 2024

also I did not auto delete some cache so can you run this

magick $HOME/.cache/hyde/wall.set.mpc -colorspace HSL -channel g -separate +channel -format '%[fx:mean]' info:

This is the command that breaks in yout end

@selselse
Copy link
Author

selselse commented Sep 15, 2024

Funnily enough that command seems to work no problem:
image

@selselse
Copy link
Author

Is it possibility for locale to break the bash script? Should I temporarily change it and then run wallbash?

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 15, 2024

@selselse It should return a value without it, you'll get errors .
image

Is it possibility for locale to break the bash script? Should I temporarily change it and then run wallbash?

Not a good fix, but It happened a while back on the HyDE CLI. Something to do with parsing, but I'm not really convinced

BTW I updated the gist can you try it . you can send with "-x" for full debug but I think without -x is enough
https://gist.github.com/kRHYME7/0ddd01a92a6b7c3ae773deb0fed65ab2
Also please use images that are symlink for this
image

@selselse
Copy link
Author

selselse commented Sep 15, 2024

image
image
Magick seems to always have a problem with the rgba_conversion function. (Error at line 141)
Here is the new logfile for bash -x wallbash.sh ~/.cache/hyde/wall.set &>> /tmp/log3.txt 2>&1,
log3.txt
I also tried it with a .png image format with dimensions 1920 to 1080, here it is.
As you can see it gave mostly the same errors:

❯ wallbash.sh ~/Pictures/Screenshots/240908_19h16m38s_screenshot.png

Initial color profile: default
Initial wallbash curve: 32 50\n42 46\n49 40\n56 39\n64 38\n76 37\n90 33\n94 29\n100 20
Initial sort mode: auto
Processing argument: /home/limonatal/Pictures/Screenshots/240908_19h16m38s_screenshot.png
Unknown argument: /home/limonatal/Pictures/Screenshots/240908_19h16m38s_screenshot.png
Final color profile: default
Final wallbash curve: 32 50\n42 46\n49 40\n56 39\n64 38\n76 37\n90 33\n94 29\n100 20
Final sort mode: auto
Input image: /home/limonatal/Pictures/Screenshots/240908_19h16m38s_screenshot.png
Number of colors: 4
Fuzz factor: 70
Raw output file: /home/limonatal/Pictures/Screenshots/240908_19h16m38s_screenshot.png.mpc
Final output file: /home/limonatal/Pictures/Screenshots/240908_19h16m38s_screenshot.png.dcol
Cache file: /home/limonatal/Pictures/Screenshots/240908_19h16m38s_screenshot.png.cache
Dark color modulation values - Brightness: 116, Saturation: 110, Hue: 88
Light color modulation values - Brightness: 100, Saturation: 100, Hue: 114
Text color modulation values - Dark: 188, Light: 16
Checking image format...
wallbash default profile :: auto :: Colors 4 :: Fuzzy 70 :: "/home/limonatal/Pictures/Screenshots/240908_19h16m38s_screenshot.png.dcol"
Quantizing raw primary colors...
Raw colors extracted: 1
Raw color: 
RETRYING :: distinct colors 1 is less than 4 palette color...
New raw colors extracted: 1
New raw color: 
Determining sort mode based on image brightness...
Brightness value for /home/limonatal/Pictures/Screenshots/240908_19h16m38s_screenshot.png.mpc: 
Color /home/limonatal/Pictures/Screenshots/240908_19h16m38s_screenshot.png.mpc is dark
Auto-detected dark image, setting sort mode to dark
Sorted colors:
Checking image brightness...
Warning: Unable to determine image brightness. Using default curve.
Image brightness (greyCheck) value: 0.5
Generating derived colors...
Processing color 1 of 4
Missing primary color detected for index 0
/home/limonatal/.local/share/bin/wallbash.sh: satır 235: dcolHex: hatalı dizilim indisi
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images for write '-write' 'info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Brightness value for xc:#: 
Color xc:# is dark
Using dark modulation values
dcol_pry1 :: regen missing color
/home/limonatal/.local/share/bin/wallbash.sh: satır 248: dcolHex: hatalı dizilim indisi
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images found for operation `-normalize' at CLI arg 4 @ error/operation.c/CLIOption/5481.
Generated missing color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating text color for primary color 
/home/limonatal/.local/share/bin/wallbash.sh: satır 127: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Negative color: 
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images for write '-write' 'info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Brightness value for xc:#: 
Color xc:# is dark
Using dark text brightness: 188
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images found for operation `-normalize' at CLI arg 4 @ error/operation.c/CLIOption/5481.
Generated text color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent colors for primary color 
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Hue value: 
Generating accent color 1 with brightness 32 and saturation 50
magick: unrecognized color `,50%,32%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 2 with brightness 42 and saturation 46
magick: unrecognized color `,46%,42%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 3 with brightness 49 and saturation 40
magick: unrecognized color `,40%,49%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 4 with brightness 56 and saturation 39
magick: unrecognized color `,39%,56%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 5 with brightness 64 and saturation 38
magick: unrecognized color `,38%,64%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 6 with brightness 76 and saturation 37
magick: unrecognized color `,37%,76%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 7 with brightness 90 and saturation 33
magick: unrecognized color `,33%,90%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 8 with brightness 94 and saturation 29
magick: unrecognized color `,29%,94%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 9 with brightness 100 and saturation 20
magick: unrecognized color `,20%,100%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Processing color 2 of 4
Missing primary color detected for index 1
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images for write '-write' 'info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Brightness value for xc:#: 
Color xc:# is dark
Using dark modulation values
dcol_pry2 :: regen missing color
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images found for operation `-normalize' at CLI arg 4 @ error/operation.c/CLIOption/5481.
Generated missing color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating text color for primary color 
/home/limonatal/.local/share/bin/wallbash.sh: satır 127: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Negative color: 
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images for write '-write' 'info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Brightness value for xc:#: 
Color xc:# is dark
Using dark text brightness: 188
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images found for operation `-normalize' at CLI arg 4 @ error/operation.c/CLIOption/5481.
Generated text color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent colors for primary color 
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Hue value: 
Generating accent color 1 with brightness 32 and saturation 50
magick: unrecognized color `,50%,32%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 2 with brightness 42 and saturation 46
magick: unrecognized color `,46%,42%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 3 with brightness 49 and saturation 40
magick: unrecognized color `,40%,49%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 4 with brightness 56 and saturation 39
magick: unrecognized color `,39%,56%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 5 with brightness 64 and saturation 38
magick: unrecognized color `,38%,64%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 6 with brightness 76 and saturation 37
magick: unrecognized color `,37%,76%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 7 with brightness 90 and saturation 33
magick: unrecognized color `,33%,90%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 8 with brightness 94 and saturation 29
magick: unrecognized color `,29%,94%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 9 with brightness 100 and saturation 20
magick: unrecognized color `,20%,100%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Processing color 3 of 4
Missing primary color detected for index 2
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images for write '-write' 'info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Brightness value for xc:#: 
Color xc:# is dark
Using dark modulation values
dcol_pry3 :: regen missing color
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images found for operation `-normalize' at CLI arg 4 @ error/operation.c/CLIOption/5481.
Generated missing color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating text color for primary color 
/home/limonatal/.local/share/bin/wallbash.sh: satır 127: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Negative color: 
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images for write '-write' 'info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Brightness value for xc:#: 
Color xc:# is dark
Using dark text brightness: 188
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images found for operation `-normalize' at CLI arg 4 @ error/operation.c/CLIOption/5481.
Generated text color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent colors for primary color 
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Hue value: 
Generating accent color 1 with brightness 32 and saturation 50
magick: unrecognized color `,50%,32%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 2 with brightness 42 and saturation 46
magick: unrecognized color `,46%,42%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 3 with brightness 49 and saturation 40
magick: unrecognized color `,40%,49%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 4 with brightness 56 and saturation 39
magick: unrecognized color `,39%,56%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 5 with brightness 64 and saturation 38
magick: unrecognized color `,38%,64%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 6 with brightness 76 and saturation 37
magick: unrecognized color `,37%,76%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 7 with brightness 90 and saturation 33
magick: unrecognized color `,33%,90%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 8 with brightness 94 and saturation 29
magick: unrecognized color `,29%,94%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 9 with brightness 100 and saturation 20
magick: unrecognized color `,20%,100%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Processing color 4 of 4
Missing primary color detected for index 3
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images for write '-write' 'info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Brightness value for xc:#: 
Color xc:# is dark
Using dark modulation values
dcol_pry4 :: regen missing color
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images found for operation `-normalize' at CLI arg 4 @ error/operation.c/CLIOption/5481.
Generated missing color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating text color for primary color 
/home/limonatal/.local/share/bin/wallbash.sh: satır 127: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Negative color: 
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images for write '-write' 'info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Brightness value for xc:#: 
Color xc:# is dark
Using dark text brightness: 188
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images found for operation `-normalize' at CLI arg 4 @ error/operation.c/CLIOption/5481.
Generated text color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent colors for primary color 
magick: unrecognized color `' @ warning/color.c/QueryColorCompliance/2380.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Hue value: 
Generating accent color 1 with brightness 32 and saturation 50
magick: unrecognized color `,50%,32%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 2 with brightness 42 and saturation 46
magick: unrecognized color `,46%,42%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 3 with brightness 49 and saturation 40
magick: unrecognized color `,40%,49%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 4 with brightness 56 and saturation 39
magick: unrecognized color `,39%,56%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 5 with brightness 64 and saturation 38
magick: unrecognized color `,38%,64%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 6 with brightness 76 and saturation 37
magick: unrecognized color `,37%,76%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 7 with brightness 90 and saturation 33
magick: unrecognized color `,33%,90%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 8 with brightness 94 and saturation 29
magick: unrecognized color `,29%,94%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Generating accent color 9 with brightness 100 and saturation 20
magick: unrecognized color `,20%,100%' @ warning/color.c/GetColorCompliance/1064.
magick: no images for write '-write' 'histogram:info:' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4985.
Generated accent color: 
/home/limonatal/.local/share/bin/wallbash.sh: satır 141: 16#: geçersiz tamsayı sabiti (hata belirtisi "16#")
Debug: Skipping cache removal
Debug: Contents of /home/limonatal/Pictures/Screenshots/240908_19h16m38s_screenshot.png.mpc:
id=MagickPixelCache
magick-signature=762599890
class=DirectClass colors=0 alpha-trait=Undefined
number-channels=3 number-meta-channels=0 channel-mask=0x0000000007ffffff
columns=1920 rows=1080 depth=8
colorspace=sRGB
compression=Zip quality=0
rendering-intent=Perceptual
gamma=0.454545
red-primary=0.64,0.33 green-primary=0.3,0.6 blue-primary=0.15,0.06
white-point=0.3127,0.329
date:create=2024-09-08T16:16:48+00:00
date:modify=2024-09-08T16:16:48+00:00
date:timestamp=2024-09-15T15:45:37+00:00
png:IHDR.bit-depth-orig=8
png:IHDR.bit_depth=8
png:IHDR.color-type-orig=2
png:IHDR.color_type={2 (Truecolor)}
png:IHDR.interlace_method={0 (Not interlaced)}
png:IHDR.width,height={1920, 1080}

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 15, 2024

I doubt it. as there is more error earlier

Just for benefit of the doubt, can you add this to that function . If it did not receive a correct value, it would tell us.

rgba_convert() {
    local inCol=ffffff
    echo "[incol]: ${inCol}"
    # Check if input is a valid 6-digit hex color
    if [[ ! $inCol =~ ^[0-9A-Fa-f]{6}$ ]]; then
        echo "Error: Invalid hex color format. Input: '$inCol'. Please use 6-digit hex (e.g., RRGGBB)." >&2
        return 1
    fi
    local r=${inCol:0:2}
    local g=${inCol:2:2}
    local b=${inCol:4:2}
    local r16=$((16#$r))
    local g16=$((16#$g))
    local b16=$((16#$b))
    # Ensure values are within 0-255 range
    r16=$((r16 > 255 ? 255 : r16 < 0 ? 0 : r16))
    g16=$((g16 > 255 ? 255 : g16 < 0 ? 0 : g16))
    b16=$((b16 > 255 ? 255 : b16 < 0 ? 0 : b16))
    printf "rgba(%d,%d,%d,1)\n" "$r16" "$g16" "$b16"
}

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 15, 2024

Error started here

image

Mine
image

It failed on this part
image
We can replicate that by running this

magick $HOME/.cache/hyde/wall.set.mpc -depth 8 -fuzz 70% +dither -kmeans 4 -depth 8 -format %c histogram:info:

It should return this

25707417: (42,44,57) #2A2C39 srgb(42,44,57)
       8568639: (60,63,82) #3C3F52 srgb(60,63,82)
       1736445: (131,135,162) #8387A2 srgb(131,135,162)

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 15, 2024

If it returns nothing, let's try to generate a mock value, then check if the script will work.

@selselse
Copy link
Author

selselse commented Sep 16, 2024

Hello,I get your point. The function at hand returns no value, how should I generate a mock value? Should I just put random colour inputs?

@selselse
Copy link
Author

Btw, I have to state that the file path $HOME/.cache/hyde/wall.set.mpc is seen as a sound file instead of an image. Here is the window that pops when I try to run it:
image
The program that opens it is vlc.

@selselse
Copy link
Author

image
At least magick does look up an image...

@selselse
Copy link
Author

Yo! It seems magick does its job, but fails to output anything:
Before the command:
image
After:
image

@selselse
Copy link
Author

I had a file called histogram:info:, the second pic refers to that.

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 16, 2024

Let's hope we hit the correct problematic line.

BTW, the " *.mpc " is use something like a binary that is being read in this script to extract the primary colors
This exact command pops up vlc?
magick $HOME/.cache/hyde/wall.set.mpc -depth 8 -fuzz 70% +dither -kmeans 4 -depth 8 -format %c histogram:info:

If so, maybe the owner of the repo uses " .mpc " and did not know about musepack that is also .mpc which causes conflicts? Lol
These are just speculations though.

Let's try to give a mock value and try to see if the script will stop giving errors

let me formulate it.
give me a sec.

@selselse
Copy link
Author

selselse commented Sep 16, 2024

Thank you kindly
(also it isn't the command itself that pops up vlc.)

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 16, 2024

@selselse can you test it now? Already updated the script in gist

https://gist.github.com/kRHYME7/0ddd01a92a6b7c3ae773deb0fed65ab2

BTW remove first the .mpc file (This is remove by the script at the end but I remove the rm part for debugging. )

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 16, 2024

BTW what is your bash version (funny enough maybe there we have different syntax handling )

image

@selselse
Copy link
Author

selselse commented Sep 16, 2024

Here is my bash version:
image
Yet, I prefer to use fish:
image
Also, bash doesn't output anything different.

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 16, 2024

wait lemme change the script first

you can DM me in discord BTW khing0v0 my username

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 16, 2024

@selselse
Copy link
Author

I tried running it, here is the result:
image
There doesn't seem to be anything different.

@selselse can you test it now? Already updated the script in gist

https://gist.github.com/kRHYME7/0ddd01a92a6b7c3ae773deb0fed65ab2

BTW remove first the .mpc file (This is remove by the script at the end but I remove the rm part for debugging. )

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 16, 2024

There doesn't seem to be anything different.

Cool I replicated the same output

image

Try the latest revision

@selselse
Copy link
Author

@selselse try this

https://gist.github.com/kRHYME7/0ddd01a92a6b7c3ae773deb0fed65ab2

image
I think we might be looking at the wrong part of the script.

@selselse
Copy link
Author

wait lemme change the script first

you can DM me in discord BTW khing0v0 my username

You are right, we are debugging in the issue tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants