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

Fix writing into reserved area of background star arrays #5390

Merged
merged 1 commit into from
Jul 2, 2022

Conversation

Web-eWorks
Copy link
Member

@Web-eWorks Web-eWorks commented Jul 2, 2022

The background star arrays used for multithreaded starfield generation allocated enough memory for all stars, but did not have their sizes expanded for randomly-generated star points, resulting in those points not being visible and asserts when writing into the array.

This should fix fixes #5387!

The background star arrays were reserved to the correct size but did not have their sizes expanded for randomly-generated star points.

This should resolve crashes related to filling star arrays.
@Web-eWorks Web-eWorks merged commit 04be0a1 into pioneerspacesim:master Jul 2, 2022
@Web-eWorks Web-eWorks deleted the fix/background-fill branch July 8, 2022 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash during loading with multiple WorkerThreads enabled on Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz
1 participant