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

Async shader compilation + shutdown crash repro #1393

Closed

Conversation

CedricGuillemet
Copy link
Contributor

@CedricGuillemet CedricGuillemet commented Jun 13, 2024

Shutdown with async shader compilation crash repro.
Left as commented code: I was unable to expect a crash with GoogleTest and adding a sleep call to get sufficient time for shaders to be compiled was unreliable.

@CedricGuillemet CedricGuillemet marked this pull request as ready for review June 13, 2024 17:22
@CedricGuillemet CedricGuillemet changed the title Async shader compilation + shutdown Async shader compilation + shutdown crash repro Jun 14, 2024
loader.LoadScript("app:///Scripts/babylon.max.js");
loader.LoadScript("app:///Scripts/babylonjs.materials.js");
loader.Eval(R"(
function CreateBoxAsync(scene) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a comment explaining why this needs to be an async function rather than just synchronous setup code? Not clear to me.

@CedricGuillemet
Copy link
Contributor Author

Closing in favor of #1397

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants