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

Null reference while updating sunlight. #1028

Open
mklingen opened this issue Mar 9, 2019 · 1 comment
Open

Null reference while updating sunlight. #1028

mklingen opened this issue Mar 9, 2019 · 1 comment
Labels
A Bug High priority bug Crash

Comments

@mklingen
Copy link
Collaborator

mklingen commented Mar 9, 2019

So, after looking at breadcrumbs from the other crashes we still have, what I'm seeing is a really weird phenomenon where the player enters a new game state, but then somehow returns to the Intro state. Upon returning to the intro state, (or perhaps before?) the asset manager complains that all the textures in the game basically have been unloaded -- a sign that the graphics device has died. Since loading happens in a thread it's hard to disentangle what's happening in the load thread vs. what the player is doing in this situation.

https://sentry.io/organizations/cfg/issues/871046102/?project=192119&referrer=github_plugin

NullReferenceException: Object reference not set to an instance of an object.
  File "C:\Users\matth\Desktop\dwarfcorp\DwarfCorp\DwarfCorpXNA\Voxels\ChunkGenerator.cs", line 731, in UpdateSunlight
    Void UpdateSunlight(DwarfCorp.VoxelChunk)
  File "C:\Users\matth\Desktop\dwarfcorp\DwarfCorp\DwarfCorpXNA\Voxels\ChunkManager.cs", line 298, in GenerateInitialChunks
    Void GenerateInitialChunks(Microsoft.Xna.Framework.Rectangle, DwarfCorp.GlobalChunkCoordinate, System.Action`1[System.String])
  File "C:\Users\matth\Desktop\dwarfcorp\DwarfCorp\DwarfCorpXNA\World\WorldManager-Loading.cs", line 417, in LoadThreaded
    Void LoadThreaded()

Object reference not set to an instance of an object.
@mklingen mklingen added A Bug High priority bug Crash labels Mar 17, 2019
@mklingen
Copy link
Collaborator Author

I've put in a failsafe that should prevent the underlying issue. Will need to more data to understand if it's still happening and why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A Bug High priority bug Crash
Projects
None yet
Development

No branches or pull requests

1 participant