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

Thread main panicked #108

Closed
miguelccoelho opened this issue May 5, 2024 · 1 comment
Closed

Thread main panicked #108

miguelccoelho opened this issue May 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@miguelccoelho
Copy link

Bug Description:

When I try to run the fan-control command, the following error shows, and the app is never launched:
thread 'main' panicked at /run/build/fan-control/cargo/vendor/iced_tiny_skia/src/window/compositor.rs:56:10: Create softbuffer surface for window: PlatformError(Some("Visual 0x77 does not use softbuffer's pixel format and is unsupported"), None)

Expected Result:

Applications should run

Steps to Reproduce:

flatpak install --user https://flathub.org/repo/appstream/io.github.wiiznokes.fan-control.flatpakref
cat /etc/udev/rules.d/60-fan-control.rules

KERNEL=="hwmon7", SUBSYSTEM=="hwmon", TAG+="uaccess"

/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=fan-control io.github.wiiznokes.fan-control
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
thread 'main' panicked at /run/build/fan-control/cargo/vendor/iced_tiny_skia/src/window/compositor.rs:56:10:
Create softbuffer surface for window: PlatformError(Some("Visual 0x77 does not use softbuffer's pixel format and is unsupported"), None)

Possible Solutions:

Possible Additional Information:

I've run the command on a terminal, with sudo -i first, to make sure that it has access to write anywhere

Operating system

Linux 6.6.26-1-MANJARO x86_64

fan-control version

0.1.3

Logs, Panic Messages, Stack Traces:

error: XDG_RUNTIME_DIR is invalid or not set in the environment.
thread 'main' panicked at /run/build/fan-control/cargo/vendor/iced_tiny_skia/src/window/compositor.rs:56:10:
Create softbuffer surface for window: PlatformError(Some("Visual 0x77 does not use softbuffer's pixel format and is unsupported"), None)
stack backtrace:
0: 0xde3ba6 -
1: 0xe12460 -
2: 0xddfd8f -
3: 0xde3984 -
4: 0xde5207 -
5: 0xde4f69 -
6: 0xde5698 -
7: 0xde5572 -
8: 0xde40a6 -
9: 0xde52c4 -
10: 0x44b455 -
11: 0x44b9a3 -
12: 0x4c99f8 -
13: 0x4a7806 -
14: 0x4a8a3d -
15: 0x4621e9 -
16: 0x52ebe3 -
17: 0x51dee9 -
18: 0xdd5e31 -
19: 0x462b25 -
20: 0x7ffa09ec808a -
21: 0x7ffa09ec814b - __libc_start_main
22: 0x44c0b5 -
23: 0x0 -

@miguelccoelho miguelccoelho added the bug Something isn't working label May 5, 2024
@wiiznokes
Copy link
Owner

Closing as duplicate of #98.

I've run the command on a terminal, with sudo -i first, to make sure that it has access to write anywhere

This is no longer necessary thanks to udev rules. The app run fine without sudo permission

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