Open Canvis-Me opened 4 days ago
I don't think there's much to do here - apparently you ran out of memory:
Caused by:
In Queue::write_texture
Not enough memory left.
If you don't want this to panic and instead to fail recoverably, you have to install an error scope.
If you think there is no way this should run out of vram we'll of course reopen the issue!
(Such a texture would be about 389MiB, but you probably need at least double that to account for for upload buffer that write_texture
has to manage which are subject to padding restrictions.)
It's not probably running out of vram. When all other programs except sway
and terminal emulator closed, simp
still panic to open high resolution pictures based on a 92MiB/8192MiB usage of Nvidia 3060ti.
So I guess it would be a wgpu/freebsd problem, since there is no such crash on Linux/Windows.
Technically FreeBSD isn't one of the supported platforms but let's leave it open anyways for reference
Description Program simp panic when open high resolution pictures, such as 8736x11658px.
Repro steps
simp
and build withcargo build --no-default-features --features=gtk3
simp xxx.png
simp
panicExpected vs observed behavior
simp
open high resolution pictures normally.Extra materials
panic.txt
``` 0: simp::main::{{closure}} at /usr/home/canvis/Downloads/simp/src/main.rs:448:25 1: std::panicking::rust_panic_with_hook 2: std::panicking::begin_panic_handler::{{closure}} 3: std::sys::backtrace::__rust_end_short_backtrace 4: rust_begin_unwind 5: core::panicking::panic_fmt 6: wgpu::backend::wgpu_core::default_error_handler at /home/canvis/.cargo/registry/src/mirrors.ustc.edu.cn-4affec411d11e50f/wgpu-22.1.0/src/backend/wgpu_core.rs:3411:5 7: core::ops::function::Fn::call at /rustc/f54dd915b0a4345ee06fd561416ad1af08b54dbb/library/core/src/ops/function.rs:79:5 8:Tested on both Ubuntu and Windows 11,
simp
works fine.Platform FreeBSD 14.1-RELEASE-p5 with latest ports wgpu-22.1.0 The wm is
sway
withvulkan
enabled and pure wayland.