Back to all

tauri-wsl2-gdk-pixbuf-crash

by Jason Cochran

00Feb 6, 2026Visit Source
Fix for Tauri v2 app crashing on startup in WSL2 with gdk-pixbuf panic: "data.len() must fit the width, height, and row_stride". Use when: (1) Tauri app panics immediately on launch in WSL2/Linux, (2) error occurs in gdk-pixbuf crate at pixbuf.rs, (3) crash happens before window renders, (4) app works on Windows/macOS but fails on Linux/WSL2. The fix is to use an empty icon array in tauri.conf.json to bypass icon loading issues with GTK.