Open CosmicHorrorDev opened 1 year ago
That's a new one for me @luukvanderduim. It looks like the window for inlyne
isn't returning any surface capabilities which makes sense as to why it fails on every markdown file you try
Are you running on a pretty esoteric system?
Would not say so.. I am using the following:
System:
Host: kubus Kernel: 6.2.0-27-generic arch: x86_64 bits: 64 Desktop: Xfce
v: 4.18.1 Distro: Ubuntu 23.04 (Lunar Lobster)
Machine:
Type: Desktop System: Gigabyte product: B550I AORUS PRO AX v: N/A
serial: <superuser required>
Mobo: Gigabyte model: B550I AORUS PRO AX serial: <superuser required>
UEFI: American Megatrends LLC. v: F17b date: 02/08/2023
CPU:
Info: 8-core model: AMD Ryzen 7 5700G with Radeon Graphics bits: 64
type: MT MCP cache: L2: 4 MiB
Speed (MHz): avg: 1850 min/max: 1400/4672 cores: 1: 1400 2: 1400 3: 1400
4: 3800 5: 1400 6: 1400 7: 3800 8: 1400 9: 1400 10: 1400 11: 1400 12: 1400
13: 1400 14: 1400 15: 3800 16: 1400
Graphics:
Device-1: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
driver: amdgpu v: kernel
Display: x11 server: X.Org v: 1.21.1.7 driver: X: loaded: amdgpu
unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu
resolution: 3440x1440
API: OpenGL v: 4.6 Mesa 23.0.4-0ubuntu1~23.04.1 renderer: AMD Radeon
Graphics (renoir LLVM 15.0.7 DRM 3.49 6.2.0-27-generic)
Pretty common hardware. The only thing I can think of that might be related - but I am not sure if that is relevant - is that I've enabled 10 bit colour in X11.
Not as odd as I was expecting. Well if you want to troubleshoot a bit I would see if you can run some of the examples (like mipmap
or cube
) in the gfx-rs/wgpu repo and see if they fail as well
I can also dig in more this weekend, but I'll have to see if I have a monitor with 10-bit support
Hmm..
Running `target/debug/cube`
Using AMD Radeon Graphics (RADV RENOIR) (Vulkan)
thread 'main' panicked at 'Surface isn't supported by the adapter.', code/wgpu/examples/common/src/framework.rs:275:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
and
Compiling wgpu-mipmap-example v0.17.0 (/home/luuk/code/wgpu/examples/mipmap)
Finished dev [unoptimized + debuginfo] target(s) in 1.23s
Running `target/debug/mipmap`
Using AMD Radeon Graphics (RADV RENOIR) (Vulkan)
thread 'main' panicked at 'Surface isn't supported by the adapter.', /home/luuk/code/wgpu/examples/common/src/framework.rs:275:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I'll try and go back to 8 bit, to confirm our suspicion (if only I remembered where I configured it ;) )
Thanks for the follow-up!
It could be worth your time going ahead and filing an issue upstream. They'll be in a much better position to help
I think the best thing we can do downstream is to improve the error message to be more detailed
Can confirm, 10bit color depth is the problem. I will share it with them.
Thanks for helping work through the issue! This would have been impossible for me to figure out on my own
No problem, thanks for making cool tools!
No luck so far with 'inlyne'.
Every markdown I try, including this crates'
README.md
, yields an 'index out of bounds'.I tried inlyne 0.3.1 as released on crates.io and current ( #817a385 ) git. The latter I built with both nightly and stable rust, no difference seen.
Backtrace:
Anything I should try?
Thanks in advance!
Originally posted by @luukvanderduim in https://github.com/trimental/inlyne/issues/70#issuecomment-1684294973