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

🐞 assertion failed: !gl_dx_interop_device.is_null() #60

Closed
get200 opened this issue Aug 4, 2021 · 4 comments
Closed

🐞 assertion failed: !gl_dx_interop_device.is_null() #60

get200 opened this issue Aug 4, 2021 · 4 comments
Labels
bug Something isn't working platform:windows Issue related to the Windows platform
Milestone

Comments

@get200
Copy link

get200 commented Aug 4, 2021

$ cargo run --example hello_world
Finished dev [optimized] target(s) in 0.38s
Running target\debug\examples\hello_world.exe
thread 'main' panicked at 'assertion failed: !gl_dx_interop_device.is_null()', D:/rust/.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\surfman-0.4.3\src\platform\windows\wgl\device.rs:159:13
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
error: process didn't exit successfully: target\debug\examples\hello_world.exe (exit code: 101)

cargo 1.55.0-nightly
rustc 1.56.0-nightly
Windows 11
Windows Feature Experience Pack 421.18901.0.3

@get200 get200 changed the title assertion failed: !gl_dx_interop_device.is_null()() assertion failed: !gl_dx_interop_device.is_null() Aug 4, 2021
@zicklag zicklag added this to the 0.3 milestone Aug 4, 2021
@zicklag zicklag added platform:windows Issue related to the Windows platform bug Something isn't working labels Aug 4, 2021
@zicklag
Copy link
Member

zicklag commented Aug 4, 2021

Hey there! Thanks for the report.

I'm not 100% sure, but it looks like your device might not support D3D11, or else there is some error in the way we are trying to initialize the device. As we work on migrating to Bevy's Renderer ( you can subscribe to #41 to track progress ), we will be using a totally different graphics backend that should not have this issue.

Unfortunately it might be a couple months or more before we finish the rendering migration. I'll leave this open until then, though, and let you know when we've got it working!

@zicklag zicklag changed the title assertion failed: !gl_dx_interop_device.is_null() 🐞 assertion failed: !gl_dx_interop_device.is_null() Aug 4, 2021
@zicklag zicklag changed the title 🐞 assertion failed: !gl_dx_interop_device.is_null() 🐞 assertion failed: !gl_dx_interop_device.is_null() Aug 4, 2021
@knutaf
Copy link

knutaf commented Oct 19, 2021

I noticed someone had filed a similar issue on surfman: servo/surfman#221

@zicklag
Copy link
Member

zicklag commented Oct 19, 2021

Good find! Definitely looks like the same issue. Our renderer update should definitely fix it because we won't be using surfman anymore.

Just as an update, I think we will probably be waiting until Bevy 0.6 is released before we get the new renderer merged in to fix this. Bevy 0.6 comes with a totally rewritten renderer and we want to wait until that is released before we try to push out a new version of Bevy Retrograde on top of it.

@zicklag
Copy link
Member

zicklag commented Jun 23, 2022

A new release is coming out soon that switches entirely to Bevy, so this should be fixed. If it isn't fixed, we can open a Bevy issue.

@zicklag zicklag closed this as completed Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform:windows Issue related to the Windows platform
Projects
None yet
Development

No branches or pull requests

3 participants