RuView icon indicating copy to clipboard operation
RuView copied to clipboard

message: icon /home/furiosa/wifi/RuView/rust-port/wifi-densepose-rs/crates/wifi-densepose-desktop/icons/32x32.png is not RGBA

Open YounkiKu opened this issue 8 months ago • 1 comments

uname -a Linux furiosa-System-Desktop 6.17.0-14-generic #14~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jan 15 15:52:10 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

error message

  Rust dependencies:
  OK    Rust already installed

[6/7] Building (profile: rust)

  Building Rust workspace (release)...

warning: `wifi-densepose-sensing-server` (bin "sensing-server") generated 18 warnings (run `cargo fix --bin "sensing-server" -p wifi-densepose-sensing-server` to apply 1 suggestion)
error: proc macro panicked
  --> crates/wifi-densepose-desktop/src/lib.rs:34:14
   |
34 |         .run(tauri::generate_context!())
   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: message: icon /home/furiosa/wifi/RuView/rust-port/wifi-densepose-rs/crates/wifi-densepose-desktop/icons/32x32.png is not RGBA

error: could not compile `wifi-densepose-desktop` (lib) due to 1 previous error

YounkiKu avatar Mar 09 '26 07:03 YounkiKu

Root Cause

All 5 icon files in crates/wifi-densepose-desktop/icons/ were RGB PNGs (no alpha channel). Tauri's generate_context!() proc macro requires RGBA PNGs and panics at compile time if they're not.

file icons/32x32.png
# Before: PNG image data, 32 x 32, 8-bit/color RGB, non-interlaced
# After:  PNG image data, 32 x 32, 8-bit/color RGBA, non-interlaced

Fix

Converted all icons to RGBA:

  • 32x32.png → RGBA
  • 128x128.png → RGBA
  • [email protected] → RGBA
  • icon.icns → RGBA
  • icon.ico → regenerated with RGBA

Commit: decd97b — will be included in the next PR targeting main.

ruvnet avatar Mar 09 '26 12:03 ruvnet