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 crash that happens about 10 seconds after gameplay screen is loaded #4

Closed
elennick opened this issue Nov 23, 2016 · 1 comment
Closed
Assignees
Labels

Comments

@elennick
Copy link
Owner

No description provided.

@elennick elennick added the bug label Nov 23, 2016
@elennick
Copy link
Owner Author

this was due to a threading/GC issue where if you dont unload content before it becomes garbage collection eligible, the game will crash when the garbage collector goes to clean it up... this wasnt an issue in XNA but is in Mono:

MonoGame/MonoGame#3196

http://stackoverflow.com/questions/32450100/opentk-graphics-graphicscontextexception-after-a-few-seconds-of-running

fixed it by having the screen manager unload content on screens that are removed from the stack

@elennick elennick self-assigned this Feb 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant