pop-os / libcosmic

WIP library for COSMIC applications
https://pop-os.github.io/libcosmic/cosmic/
Mozilla Public License 2.0
468 stars 47 forks source link

Rust Application Demo not launching (due to winit error) #445

Open robotman40 opened 6 months ago

robotman40 commented 6 months ago

2024-05-14T23:09:02.104691Z INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1 thread 'main' panicked at /home/user/.cargo/git/checkouts/libcosmic-b367e32ffc370f4f/3cfc5c1/iced/tiny_skia/src/window/compositor.rs:56:10: Create softbuffer surface for window: PlatformError(Some("Visual 0x88 does not use softbuffer's pixel format and is unsupported"), None) note: run withRUST_BACKTRACE=1environment variable to display a backtrace

I am not sure what to do here, but has anyone run into this kind of issue? If so, could anyone give me advice. Thanks!

wiiznokes commented 6 months ago

Yes, I think it's a bug in softbuffer. It is only present on x11

robotman40 commented 6 months ago

Yes, I think it's a bug in softbuffer. It is only present on x11

Do you know if this is being worked on?

wiiznokes commented 6 months ago

https://github.com/rust-windowing/softbuffer/issues/215

psychon commented 5 months ago

Winit issue about incorrect usage of softbuffer (even though nothing in the bug explicitly says so): https://github.com/rust-windowing/winit/issues/3646

Another winit issue about the same problem: https://github.com/rust-windowing/winit/issues/3701