-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
render_to_texture example crashes with other texture sizes #4127
Labels
Comments
dtaralla
added
C-Bug
An unexpected or incorrect behavior
S-Needs-Triage
This issue needs to be labelled
labels
Mar 7, 2022
Actually, this is the same panic from #3596 |
I have a fix in my branch, I'll try to get it in shape for a PR: HackerFoo@2e5d1a0 |
alice-i-cecile
added
A-Rendering
Drawing game state to the screen
and removed
S-Needs-Triage
This issue needs to be labelled
labels
Mar 7, 2022
aevyrie
pushed a commit
to aevyrie/bevy
that referenced
this issue
Jun 7, 2022
# Objective fix cluster tilesize and tilecount calculations. Fixes bevyengine#4127 & bevyengine#3596 ## Solution - calculate tilesize as smallest integers such that dimensions.xy() tiles will cover the screen - calculate final dimensions as smallest integers such that final dimensions * tilesize will cover the screen there is more cleanup that could be done in these functions. a future PR will likely remove the tilesize completely, so this is just a minimal change set to fix the current bug at small screen sizes Co-authored-by: Carter Anderson <[email protected]>
ItsDoot
pushed a commit
to ItsDoot/bevy
that referenced
this issue
Feb 1, 2023
# Objective fix cluster tilesize and tilecount calculations. Fixes bevyengine#4127 & bevyengine#3596 ## Solution - calculate tilesize as smallest integers such that dimensions.xy() tiles will cover the screen - calculate final dimensions as smallest integers such that final dimensions * tilesize will cover the screen there is more cleanup that could be done in these functions. a future PR will likely remove the tilesize completely, so this is just a minimal change set to fix the current bug at small screen sizes Co-authored-by: Carter Anderson <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bevy version
main branch, rev b6a647cc
Operating system & version
Windows 11
What you did
What you expected to happen
It should not have crashed and just use another texture size.
What actually happened
It crashes after step 3 as soon as the app starts with this error/callstack:
Additional information
You can try with other sizes, it happens very often. I found 64x64 was working without crashing, as well as 500x500 for some reason.
The text was updated successfully, but these errors were encountered: