-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Description
Using this as an integrated thumbnailer on latest Arch is problematic. FYI my machine is configured with GNOME, Wayland and NVIDIA.
Running from command line works, but outputs Rust errors (queue destroyed while proxies still attached):
➜ ~ stl-thumb -vvv Downloads/Part\ Studio\ 1\(1\).stl /tmp/test.png
INFO STL File: Downloads/Part Studio 1(1).stl
INFO IMG File: /tmp/test.png
INFO Bounds:
INFO X: -28.5, 34.5
Y: -7.6, 7.6
Z: -28, 28.9
INFO Center: Point3 [3.0, 0.0, 0.4499998]
INFO Triangles processed: 88550
warning: queue 0x55818cd97e90 destroyed while proxies still attached:
xdg_activation_v1#12 still attached
zwp_text_input_manager_v3#11 still attached
zwp_pointer_constraints_v1#10 still attached
zwp_relative_pointer_manager_v1#9 still attached
wl_seat#8 still attached
wl_subcompositor#7 still attached
wl_output#6 still attached
wl_shm#5 still attached
wl_compositor#4 still attached
wl_registry#2 still attached
INFO GL Version: Version(Gl, 3, 2)
INFO GL Version: 3.2.0 NVIDIA 575.57.08
INFO GLSL Version: Version(Gl, 1, 5)
INFO Vendor: NVIDIA Corporation
INFO Renderer NVIDIA GeForce RTX 5090/PCIe/SSE2
INFO Free GPU Mem: Some(32736608256)
INFO Depth Bits: Some(24)
INFO Scale: 0.031746034
DEBUG View:
DEBUG 0.894 -0.183 0.408 0.000
DEBUG 0.447 0.365 -0.816 0.000
DEBUG -0.000 0.913 0.408 0.000
DEBUG -0.000 -0.000 -4.899 1.000
DEBUG
DEBUG Perspective:
DEBUG 2.799 0.000 0.000 0.000
DEBUG 0.000 3.732 0.000 0.000
DEBUG 0.000 0.000 -1.000 -1.000
DEBUG 0.000 0.000 -0.200 0.000
DEBUG
Running via the thumbnailer script does not work:
INFO STL File: /tmp/gnome-desktop-file-to-thumbnail.stl
INFO IMG File: /tmp/gnome-desktop-thumbnailer.png
INFO Bounds:
INFO X: -11.903669, 44.38393
Y: -26.675251, 35.643166
Z: -3.1394024, 3.321335
INFO Center: Point3 [16.240131, 4.4839573, 0.090966344]
INFO Triangles processed: 7144
thread 'main' panicked at /home/lak/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.27.5/src/platform_impl/linux/mod.rs:719:9:
Failed to initialize any backend! Wayland status: NoCompositorListening X11 status: XOpenDisplayFailed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
WARN No Wayland or X server. Falling back to osmesa software rendering. Reason Any { .. }
WARN Unable to create headless GL context. Trying hidden window instead. Reason: NoBackendAvailable(LoadingError("LibraryNotFound { descr: \"libOSMesa.so: cannot open shared object file: No such file
or directory\" }"))
thread 'main' panicked at /home/lak/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.27.5/src/event_loop.rs:106:13:
Creating EventLoop multiple times is not supported.
libOSMesa is deprecated and no longer included in Mesa builds, which is probably why running it in the thumbnailer script fails.
Not sure how to fix this, is it possible to run with another library than OSMesa?
Metadata
Metadata
Assignees
Labels
No labels