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

リリースビルド後、何も描画クエリがない状態でSStarApp.flush()をするとクラッシュする #37

Closed
Tengu712 opened this issue Jul 5, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Tengu712
Copy link
Owner

Tengu712 commented Jul 5, 2023

デバッグビルド時や、VulkanApp.render()内でprintln!()を一行でも追加すると、なぜかクラッシュしなくなる。

@Tengu712 Tengu712 added the bug Something isn't working label Jul 5, 2023
@Tengu712
Copy link
Owner Author

Tengu712 commented Jul 5, 2023

b52001c で解決した。一時配列のポインタを取っているのが悪かったらしい。
println!()は上手いこと参照先が0になって通過していただけど考えると納得できる。
デバッグビルド時は、Rustのデバッグ用フレームがスタックをずらして0を参照するようになっていたのかもしれない。

@Tengu712 Tengu712 closed this as completed Jul 5, 2023
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

1 participant