dwarfcorp icon indicating copy to clipboard operation
dwarfcorp copied to clipboard

Bloom target gets disposed on graphics device reset.

Open mklingen opened this issue 6 years ago • 2 comments

https://sentry.io/cfg/dwarfcorp/issues/571056866/

ObjectDisposedException: Cannot access a disposed object.
Object name: 'RenderTarget2D'.
  File "C:\Users\matth\Desktop\dwarfcorp\DwarfCorp\DwarfCorpXNA\Graphics\Effects\BloomComponent.cs", line 201, in Draw
    Void Draw(Microsoft.Xna.Framework.GameTime)
  File "C:\Users\matth\Desktop\dwarfcorp\DwarfCorp\DwarfCorpXNA\World\WorldManager.cs", line 1016, in Render
    Void Render(DwarfCorp.DwarfTime)
  File "C:\Users\matth\Desktop\dwarfcorp\DwarfCorp\DwarfCorpXNA\GameStates\PlayState.cs", line 501, in Render
    Void Render(DwarfCorp.DwarfTime)
  File "C:\Users\matth\Desktop\dwarfcorp\DwarfCorp\DwarfCorpXNA\GameStates\GameStateManager.cs", line 146, in Render
    Void Render(DwarfCorp.DwarfTime)
  File "C:\Users\matth\Desktop\dwarfcorp\DwarfCorp\DwarfCorpXNA\DwarfGame.cs", line 608, in Draw
    Void Draw(Microsoft.Xna.Framework.GameTime)
...
(3 additional frame(s) were not displayed)

Cannot access a disposed object.
Object name: 'RenderTarget2D'.

mklingen avatar Oct 13 '18 20:10 mklingen

Got this crash.

image

201810161650200995_Crashlog.txt

Occurred while performing steps in #938. At step three I minimized game window for something and game crashed.

29d321c4

com1clyf3 avatar Oct 16 '18 21:10 com1clyf3

sweet, I will try to fix this issue.

mklingen avatar Oct 18 '18 16:10 mklingen