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

Game keeps randomly crashing in vanilla (ThrowLockTakenException in PlatformSetDataInternal) #15566

Open
1 of 2 tasks
Brabantione opened this issue Jan 23, 2025 · 0 comments
Open
1 of 2 tasks

Comments

@Brabantione
Copy link

Discussed in #13627

Originally posted by HandsomeWindow December 5, 2023

Disclaimers

  • I have searched the issue tracker to check if the issue has already been reported.
  • My issue happened while using mods.

What happened?

My game crashes randomly. No mods and playing solo, sometimes multiplayer. This has happened several times and i cant find a solution. The game doesn't show crash reports, though it did once and i'll post the report here.

Reproduction steps

  1. Start game as normal (new/load savefile)
  2. Enjoy for some time
  3. Game crashes without warning

Bug prevalence

Happens every time I play

Single player or multiplayer?

Happens in both single player and multiplayer

-

No response

Version

v1.1.19.3 (Treacherous Tides Hotfix 2)

-

No response

Which operating system did you encounter this bug on?

Windows

Relevant error messages and crash reports

arotrauma Client crash report (generated on 12/05/2023 00:37:38)

Barotrauma seems to have crashed. Sorry for the inconvenience! 

152BA3E19FDBF5D0CE7AEC3CB5E83BE4

Game version 1.1.19.3 (ReleaseWindows, branch release/traitor-update-hotfix-2, revision e92ea6f791)
Graphics mode: 2560x1600 (Fullscreen)
VSync OFF
Language: English
Selected content packages: Vanilla (D6A9CBF)
Level seed: Agenor Linea24Chandelle Crevasse52
Loaded submarine: Dugong (A26EF74A70398CE08D71E294AA8A9E20)
Selected screen: Barotrauma.GameScreen
SteamManager initialized

System info:
    Operating system: Microsoft Windows NT 10.0.22631.0 64 bit
    GPU name: NVIDIA GeForce RTX 4070 Laptop GPU
    Display mode: {Width:2560 Height:1600 Format:Color AspectRatio:1.6}
    GPU status: Normal

Exception: Argument must be initialized to false (Parameter 'lockTaken') (System.ArgumentException)
Target site: Void ThrowLockTakenException()
Stack trace: 
   at System.Threading.Monitor.ThrowLockTakenException()
   at Microsoft.Xna.Framework.Graphics.IndexBuffer.PlatformSetDataInternal[T](Int32 offsetInBytes, T[] data, Int32 startIndex, Int32 elementCount, SetDataOptions options) in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Graphics\Vertices\IndexBuffer.DirectX.cs:line 162
   at Microsoft.Xna.Framework.Graphics.GraphicsDevice.SetUserIndexBuffer[T](T[] indexData, Int32 indexOffset, Int32 indexCount) in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Graphics\GraphicsDevice.DirectX.cs:line 1375
   at Microsoft.Xna.Framework.Graphics.GraphicsDevice.PlatformDrawUserIndexedPrimitives[T](PrimitiveType primitiveType, T[] vertexData, Int32 vertexOffset, Int32 numVertices, Int16[] indexData, Int32 indexOffset, Int32 primitiveCount, VertexDeclaration vertexDeclaration) in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Graphics\GraphicsDevice.DirectX.cs:line 1433
   at Microsoft.Xna.Framework.Graphics.GraphicsDevice.DrawUserIndexedPrimitives[T](PrimitiveType primitiveType, T[] vertexData, Int32 vertexOffset, Int32 numVertices, Int16[] indexData, Int32 indexOffset, Int32 primitiveCount, VertexDeclaration vertexDeclaration) in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Graphics\GraphicsDevice.cs:line 1159
   at Microsoft.Xna.Framework.Graphics.SpriteBatcher.FlushVertexArray(Int32 start, Int32 end, Effect effect, Texture texture) in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Graphics\SpriteBatcher.cs:line 280
   at Microsoft.Xna.Framework.Graphics.SpriteBatcher.DrawBatch(SpriteSortMode sortMode, EffectPass defaultSpritePass) in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Graphics\SpriteBatcher.cs:line 196
   at Barotrauma.GUIListBox.Draw(SpriteBatch spriteBatch) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\GUI\GUIListBox.cs:line 1273
   at Barotrauma.GUIComponent.DrawManually(SpriteBatch spriteBatch, Boolean alsoChildren, Boolean recursive) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\GUI\GUIComponent.cs:line 582
   at Barotrauma.GUIComponent.DrawChildren(SpriteBatch spriteBatch, Boolean recursive) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\GUI\GUIComponent.cs:line 589
   at Barotrauma.GUIComponent.DrawChildren(SpriteBatch spriteBatch, Boolean recursive) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\GUI\GUIComponent.cs:line 589
   at Barotrauma.GUIComponent.DrawChildren(SpriteBatch spriteBatch, Boolean recursive) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\GUI\GUIComponent.cs:line 589
   at Barotrauma.GUIListBox.Draw(SpriteBatch spriteBatch) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\GUI\GUIListBox.cs:line 1291
   at Barotrauma.GUI.Draw(Camera cam, SpriteBatch spriteBatch) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\GUI\GUI.cs:line 273
   at Barotrauma.GameScreen.Draw(Double deltaTime, GraphicsDevice graphics, SpriteBatch spriteBatch) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Screens\GameScreen.cs:line 159
   at Barotrauma.GameMain.Draw(GameTime gameTime) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\GameMain.cs:line 957
   at Microsoft.Xna.Framework.Game.DoDraw(GameTime gameTime) in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 669
   at Microsoft.Xna.Framework.Game.Tick() in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 508
   at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop() in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\SDL\SDLGamePlatform.cs:line 93
   at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior) in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 397
   at Microsoft.Xna.Framework.Game.Run() in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 367
   at Barotrauma.Program.Main(String[] args) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Program.cs:line 58

Last debug messages:
[12/05/2023 00:36:35] Generating an outpost for the end of the level... (Location: Chandelle Crevasse Outpost, level type: LocationConnection)
[12/05/2023 00:36:35] Generating an outpost for the start of the level... (Location: Agenor Linea Habitation Outpost, level type: LocationConnection)
[12/05/2023 00:36:35] Level identifier: coldcavernsbasic
[12/05/2023 00:36:27] Transitioning to Agenor Linea24Chandelle Crevasse52 (current location: Agenor Linea Habitation Outpost, selected location: Chandelle Crevasse Outpost, leaving sub: Dugong, at start: True, at end: False, transition type: LeaveLocation)
[12/05/2023 00:35:45] Unlocked mission "Mining Quartz" in the connection from "Agenor Linea Habitation Outpost" to "Chandelle Crevasse Outpost".
[12/05/2023 00:35:43] Unlocked mission "Killing a large crawler" in the connection from "Agenor Linea Habitation Outpost" to "Jaavuari Habitation Outpost".
[12/05/2023 00:35:40] Unlocked mission "Medical item transport" in the connection from "Agenor Linea Habitation Outpost" to "Jaavuari Habitation Outpost".
[12/05/2023 00:34:01] Generating an outpost for the start of the level... (Location: Agenor Linea Habitation Outpost, level type: Outpost)
[12/05/2023 00:34:01] Level identifier: outpostlevel
[12/05/2023 00:32:38] Attempting to open ALC device "OpenAL Soft on Headphones (Realtek(R) Audio)"
[12/05/2023 00:32:37] Logged in as Saint Octopus (SteamID STEAM_1:1:443914640)

-> I have exact same GPA and exact same problem:

any fix?

Barotrauma Client crash report (generated on 01/21/2025 18:16:11)

Barotrauma seems to have crashed. Sorry for the inconvenience!

DE79AB7C97BF1974D6671DDF491EEBF1

Game version 1.7.7.0 (ReleaseWindows, branch release/winter-update, revision 1486ec8c86)
Graphics mode: 2560x1600 (Fullscreen)
VSync OFF
Language: English
Selected content packages: Vanilla (661D9E5), try (BC731CE)
Level seed: LocationName.generic.2047
Loaded submarine: Dugong (E38AEDF212BA23480D925E3AD719252F)
Selected screen: Barotrauma.GameScreen
SteamManager initialized

System info:
Operating system: Microsoft Windows NT 10.0.26100.0 64 bit
GPU name: NVIDIA GeForce RTX 4070 Laptop GPU
Display mode: {Width:2560 Height:1600 Format:Color AspectRatio:1.6}
GPU status: Normal

Exception: Argument must be initialized to false (Parameter 'lockTaken') (System.ArgumentException)
Target site: Void ThrowLockTakenException()
Stack trace:
at System.Threading.Monitor.ThrowLockTakenException()
at Microsoft.Xna.Framework.Graphics.VertexBuffer.PlatformSetDataInternal[T](Int32 offsetInBytes, T[] data, Int32 startIndex, Int32 elementCount, Int32 vertexStride, SetDataOptions options, Int32 bufferSize, Int32 elementSizeInBytes) in \Libraries\MonoGame.Framework\Src\MonoGame.Framework\Graphics\Vertices\VertexBuffer.DirectX.cs:line 140
at Microsoft.Xna.Framework.Graphics.VertexBuffer.SetDataInternal[T](Int32 offsetInBytes, T[] data, Int32 startIndex, Int32 elementCount, Int32 vertexStride, SetDataOptions options) in \Libraries\MonoGame.Framework\Src\MonoGame.Framework\Graphics\Vertices\VertexBuffer.cs:line 212
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.SetUserVertexBuffer[T](T[] vertexData, Int32 vertexOffset, Int32 vertexCount, VertexDeclaration vertexDecl) in \Libraries\MonoGame.Framework\Src\MonoGame.Framework\Graphics\GraphicsDevice.DirectX.cs:line 1327
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.PlatformDrawUserIndexedPrimitives[T](PrimitiveType primitiveType, T[] vertexData, Int32 vertexOffset, Int32 numVertices, Int16[] indexData, Int32 indexOffset, Int32 primitiveCount, VertexDeclaration vertexDeclaration) in \Libraries\MonoGame.Framework\Src\MonoGame.Framework\Graphics\GraphicsDevice.DirectX.cs:line 1433
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.DrawUserIndexedPrimitives[T](PrimitiveType primitiveType, T[] vertexData, Int32 vertexOffset, Int32 numVertices, Int16[] indexData, Int32 indexOffset, Int32 primitiveCount, VertexDeclaration vertexDeclaration) in \Libraries\MonoGame.Framework\Src\MonoGame.Framework\Graphics\GraphicsDevice.cs:line 1159
at Microsoft.Xna.Framework.Graphics.SpriteBatcher.FlushVertexArray(Int32 start, Int32 end, Effect effect, Texture texture) in \Libraries\MonoGame.Framework\Src\MonoGame.Framework\Graphics\SpriteBatcher.cs:line 280
at Microsoft.Xna.Framework.Graphics.SpriteBatcher.DrawBatch(SpriteSortMode sortMode, EffectPass defaultSpritePass) in \Libraries\MonoGame.Framework\Src\MonoGame.Framework\Graphics\SpriteBatcher.cs:line 196
at Barotrauma.GUICustomComponent.Draw(SpriteBatch spriteBatch) in \Barotrauma\BarotraumaClient\ClientSource\GUI\GUICustomComponent.cs:line 43
at Barotrauma.GUIComponent.DrawManually(SpriteBatch spriteBatch, Boolean alsoChildren, Boolean recursive) in \Barotrauma\BarotraumaClient\ClientSource\GUI\GUIComponent.cs:line 632
at Barotrauma.GUIComponent.DrawChildren(SpriteBatch spriteBatch, Boolean recursive) in \Barotrauma\BarotraumaClient\ClientSource\GUI\GUIComponent.cs:line 639
at Barotrauma.GUIListBox.Draw(SpriteBatch spriteBatch) in \Barotrauma\BarotraumaClient\ClientSource\GUI\GUIListBox.cs:line 1312
at Barotrauma.GUI.Draw(Camera cam, SpriteBatch spriteBatch) in \Barotrauma\BarotraumaClient\ClientSource\GUI\GUI.cs:line 269
at Barotrauma.GameScreen.Draw(Double deltaTime, GraphicsDevice graphics, SpriteBatch spriteBatch) in \Barotrauma\BarotraumaClient\ClientSource\Screens\GameScreen.cs:line 151
at Barotrauma.GameMain.Draw(GameTime gameTime) in \Barotrauma\BarotraumaClient\ClientSource\GameMain.cs:line 1060
at Microsoft.Xna.Framework.Game.DoDraw(GameTime gameTime) in \Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 669
at Microsoft.Xna.Framework.Game.Tick() in \Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 508
at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop() in \Libraries\MonoGame.Framework\Src\MonoGame.Framework\SDL\SDLGamePlatform.cs:line 93
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior) in \Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 397
at Microsoft.Xna.Framework.Game.Run() in \Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 367
at Barotrauma.Program.Main(String[] args) in \Barotrauma\BarotraumaClient\ClientSource\Program.cs:line 61

Last debug messages:
[01/21/2025 18:16:04] Generating an outpost for the start of the level... (Location: Bast Habitation Outpost, level type: Outpost)
[01/21/2025 18:16:04] Level identifier: coldcavernsoutpost
[01/21/2025 18:15:57] Transitioning to LocationName.generic.2047 (current location: St. May Mining Claim, selected location: Bast Habitation Outpost, leaving sub: Dugong, at start: False, at end: True, transition type: ProgressToNextLocation)
[01/21/2025 18:13:14] Generating an outpost for the start of the level... (Location: St. May Mining Claim, level type: LocationConnection)
[01/21/2025 18:13:14] Generating an outpost for the end of the level... (Location: Bast Habitation Outpost, level type: LocationConnection)
[01/21/2025 18:13:14] Level identifier: coldcavernsbasic
[01/21/2025 18:13:07] Transitioning to LocationName.generic.2047LocationName.city.4778 (current location: St. May Mining Claim, selected location: Bast Habitation Outpost, leaving sub: Dugong, at start: True, at end: False, transition type: LeaveLocation)
[01/21/2025 18:12:18] Unlocked mission "Biohazard" in the connection from "St. May Mining Claim" to "Dyfed Mining Claim".
[01/21/2025 18:11:59] Unlocked mission "Explosive cargo" in the connection from "St. May Mining Claim" to "Bast Habitation Outpost".
[01/21/2025 18:11:57] Unlocked mission "Terminate a squadron of Spinelings" in the connection from "St. May Mining Claim" to "Calyx Cave".
[01/21/2025 18:11:55] Unlocked mission "Mining Uranium Ore" in the connection from "St. May Mining Claim" to "Bast Habitation Outpost".
[01/21/2025 18:09:02] Generating an outpost for the start of the level... (Location: St. May Mining Claim, level type: Outpost)
[01/21/2025 18:09:02] Level identifier: coldcavernsoutpost
[01/21/2025 18:08:54] Transitioning to LocationName.city.4778 (current location: Dyfed Mining Claim, selected location: St. May Mining Claim, leaving sub: Dugong, at start: False, at end: True, transition type: ProgressToNextLocation)
[01/21/2025 18:02:06] Generating an outpost for the start of the level... (Location: Dyfed Mining Claim, level type: LocationConnection)
[01/21/2025 18:02:05] Generating an outpost for the end of the level... (Location: St. May Mining Claim, level type: LocationConnection)
[01/21/2025 18:02:05] Level identifier: coldcavernsbasic
[01/21/2025 18:01:58] Transitioning to LocationName.city.4778LocationName.generic.36105 (current location: Dyfed Mining Claim, selected location: St. May Mining Claim, leaving sub: Dugong, at start: True, at end: False, transition type: LeaveLocation)
[01/21/2025 18:00:43] Unlocked mission "Arms Delivery" in the connection from "Dyfed Mining Claim" to "St. May Mining Claim".
[01/21/2025 18:00:41] Unlocked mission "Killing a large crawler" in the connection from "Dyfed Mining Claim" to "Paaru Habitation Outpost".
[01/21/2025 18:00:39] Unlocked mission "Mining Uranium Ore" in the connection from "Dyfed Mining Claim" to "Paaru Habitation Outpost".
[01/21/2025 17:57:23] Generating an outpost for the start of the level... (Location: Dyfed Mining Claim, level type: Outpost)
[01/21/2025 17:57:23] Level identifier: coldcavernsoutpost
[01/21/2025 17:57:15] Transitioning to LocationName.generic.36105 (current location: St. May Mining Claim, selected location: Dyfed Mining Claim, leaving sub: Dugong, at start: False, at end: True, transition type: ProgressToNextLocation)
[01/21/2025 17:48:27] Generating an outpost for the end of the level... (Location: Dyfed Mining Claim, level type: LocationConnection)
[01/21/2025 17:48:26] Generating an outpost for the start of the level... (Location: St. May Mining Claim, level type: LocationConnection)
[01/21/2025 17:48:26] Level identifier: coldcavernsbasic
[01/21/2025 17:48:19] Transitioning to LocationName.city.4778LocationName.generic.36105 (current location: St. May Mining Claim, selected location: Dyfed Mining Claim, leaving sub: Dugong, at start: True, at end: False, transition type: LeaveLocation)
[01/21/2025 17:47:24] Unlocked mission "Cultist Transport" in the connection from "St. May Mining Claim" to "Bast Habitation Outpost".
[01/21/2025 17:45:36] Unlocked mission "Biohazard" in the connection from "St. May Mining Claim" to "Dyfed Mining Claim".
[01/21/2025 17:45:34] Unlocked mission "Killing a large crawler" in the connection from "St. May Mining Claim" to "Katreus Linea".
[01/21/2025 17:45:32] Unlocked mission "Mining Uranium Ore" in the connection from "St. May Mining Claim" to "Dyfed Mining Claim".
[01/21/2025 17:42:54] Generating an outpost for the start of the level... (Location: St. May Mining Claim, level type: Outpost)
[01/21/2025 17:42:53] Level identifier: coldcavernsoutpost
[01/21/2025 17:42:46] Transitioning to LocationName.city.4778 (current location: Bast Habitation Outpost, selected location: St. May Mining Claim, leaving sub: Dugong, at start: False, at end: True, transition type: ProgressToNextLocation)
[01/21/2025 17:30:18] Generating an outpost for the end of the level... (Location: St. May Mining Claim, level type: LocationConnection)
[01/21/2025 17:30:17] Generating an outpost for the start of the level... (Location: Bast Habitation Outpost, level type: LocationConnection)
[01/21/2025 17:30:17] Level identifier: coldcavernsbasic
[01/21/2025 17:30:10] Transitioning to LocationName.generic.2047LocationName.city.4778 (current location: Bast Habitation Outpost, selected location: St. May Mining Claim, leaving sub: Dugong, at start: True, at end: False, transition type: LeaveLocation)
[01/21/2025 17:25:54] Unlocked mission "Handle with care" in the connection from "Bast Habitation Outpost" to "St. May Mining Claim".
[01/21/2025 17:25:52] Unlocked mission "Killing a large crawler" in the connection from "Bast Habitation Outpost" to "Berith Habitation Outpost".
[01/21/2025 17:25:49] Unlocked mission "Mining Pyromorphite" in the connection from "Bast Habitation Outpost" to "Berith Habitation Outpost".
[01/21/2025 17:24:16] Generating an outpost for the start of the level... (Location: Bast Habitation Outpost, level type: Outpost)
[01/21/2025 17:24:16] Level identifier: coldcavernsoutpost
[01/21/2025 17:24:09] Transitioning to LocationName.generic.2047 (current location: Krytogorsk Habitation Outpost, selected location: Bast Habitation Outpost, leaving sub: Dugong, at start: False, at end: True, transition type: ProgressToNextLocation)
[01/21/2025 17:15:19] Generating an outpost for the end of the level... (Location: Bast Habitation Outpost, level type: LocationConnection)
[01/21/2025 17:15:18] Generating an outpost for the start of the level... (Location: Krytogorsk Habitation Outpost, level type: LocationConnection)
[01/21/2025 17:15:18] Level identifier: coldcavernsbasic
[01/21/2025 17:15:11] Transitioning to LocationName.city.2321LocationName.generic.2047 (current location: Krytogorsk Habitation Outpost, selected location: Bast Habitation Outpost, leaving sub: Dugong, at start: True, at end: False, transition type: LeaveLocation)
[01/21/2025 17:11:29] Unlocked mission "Mining Uranium Ore" in the connection from "Krytogorsk Habitation Outpost" to "Bast Habitation Outpost".
[01/21/2025 17:11:27] Unlocked mission "Killing a large crawler" in the connection from "Krytogorsk Habitation Outpost" to "Bast Habitation Outpost".
[01/21/2025 17:11:25] Unlocked mission "Handle with care" in the connection from "Krytogorsk Habitation Outpost" to "Bast Habitation Outpost".
[01/21/2025 17:09:21] Could not find a spawn point for a SpawnAction (spawn location: Outpost (tag: scrapbot), skipping.
[01/21/2025 17:08:57] Generating an outpost for the start of the level... (Location: Krytogorsk Habitation Outpost, level type: Outpost)
[01/21/2025 17:08:57] Level identifier: coldcavernsoutpost
[01/21/2025 17:01:25] Attempting to open ALC device "OpenAL Soft on Luidsprekers (Realtek(R) Audio)"
[01/21/2025 17:01:23] Logged in as Brabantione (SteamID STEAM_1:1:105837729)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant