FakeFishGames / Barotrauma

A 2D online multiplayer game taking place in a submarine travelling through the icy depths of Jupiter's moon Europa.
http://www.barotraumagame.com/
1.73k stars 402 forks source link

[crash] Failed to generate stream buffers: SoundChannel #4504

Closed mLuby closed 3 years ago

mLuby commented 3 years ago

Description The game crashed and quit itself (to desktop, not just main menu). Log says:

Exception: Failed to generate stream buffers: SoundChannel (Barotrauma/Barotrauma.app/Contents/MacOS/Content/Sounds/Music/Layer 0 - Basic.ogg), Invalid value
Target site: Void .ctor(Barotrauma.Sounds.Sound, Single, System.Nullable`1[Microsoft.Xna.Framework.Vector3], Single, Single, Single, System.String, Boolean)
Stack trace: 
   at Barotrauma.Sounds.SoundChannel..ctor(Sound sound, Single gain, Nullable`1 position, Single freqMult, Single near, Single far, String category, Boolean muffle) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Sounds/SoundChannel.cs:line 543
…
Last debug messages:
[12/12/2020 11:29:39 AM] Failed to read event for entity "Stun Baton"! {Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')}

Steps To Reproduce This happened when clicking "start" in campaign mode from a Lina (so no mission, just travel).

Version OS: Mac Game Version: 0.11.0.9

Additional information crashreport (10).log

mLuby commented 3 years ago

Same crash/error just happened again. This time when starting a mission as a new player joined. (Last time there wasn't a new player, so possible that's irrelevant.)

crashreport (11).log

mLuby commented 3 years ago

Happened twice more, these times immediately upon loading this saved campaign. So the save is corrupted 😭 but hopefully that'll make it easy to reproduce and fix the problem. crashreport (12).log crashreport (13).log

It's not clear to me where hosted server saves are located, but I'd be happy to upload that.

mLuby commented 3 years ago

Here's the save (was at ~/Library/Application\ Support/Daedalic\ Entertainment\ GmbH/Barotrauma/Multiplayer):

Crazy Ivan's Dives.save.txt

jpknox commented 3 years ago

I'm also getting this exact error and crash. My multiplayer experience is 50/50, playable/near instant crash when I join servers at the moment.

fomalsd commented 3 years ago

getting this as well, had it once during a MP game and then it repeated again and again when attempting to rejoin the body:

Exception: Failed to generate stream buffers: SoundChannel (/Users/fomaltd/Library/Application Support/Steam/steamapps/common/Barotrauma/Barotrauma.app/Contents/MacOS/Content/Sounds/Music/Layer 0 - Basic.ogg), Invalid value (System.Exception)
Target site: Void .ctor(Barotrauma.Sounds.Sound, Single, System.Nullable`1[Microsoft.Xna.Framework.Vector3], Single, Single, Single, System.String, Boolean)
Stack trace: 
   at Barotrauma.Sounds.SoundChannel..ctor(Sound sound, Single gain, Nullable`1 position, Single freqMult, Single near, Single far, String category, Boolean muffle) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Sounds/SoundChannel.cs:line 543
   at Barotrauma.Sounds.Sound.Play(Nullable`1 gain, String category) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Sounds/Sound.cs:line 143
   at Barotrauma.SoundPlayer.UpdateMusic(Single deltaTime) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Sounds/SoundPlayer.cs:line 879
   at Barotrauma.SoundPlayer.Update(Single deltaTime) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Sounds/SoundPlayer.cs:line 369
   at Barotrauma.GameMain.Update(GameTime gameTime) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/GameMain.cs:line 829
GamesOfSummer commented 3 years ago

Same error (mac). Hope this gets fixed soon! :(

edliaw commented 3 years ago

Same error for me (on a Macbook pro) when joining a multiplayer game (mission was Terminating the Hammerhead Swarm):

Exception: Failed to generate stream buffers: SoundChannel (/Users/edwardliaw/Library/Application Support/Steam/steamapps/common/Barotrauma/Barotrauma.app/Contents/MacOS/Content/Sounds/Music/Layer 0 - Basic.ogg), Invalid value (System.Exception)
Target site: Void .ctor(Barotrauma.Sounds.Sound, Single, System.Nullable`1[Microsoft.Xna.Framework.Vector3], Single, Single, Single, System.String, Boolean)
Stack trace: 
   at Barotrauma.Sounds.SoundChannel..ctor(Sound sound, Single gain, Nullable`1 position, Single freqMult, Single near, Single far, String category, Boolean muffle) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Sounds/SoundChannel.cs:line 543
   at Barotrauma.Sounds.Sound.Play(Nullable`1 gain, String category) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Sounds/Sound.cs:line 143
   at Barotrauma.SoundPlayer.UpdateMusic(Single deltaTime) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Sounds/SoundPlayer.cs:line 879
   at Barotrauma.SoundPlayer.Update(Single deltaTime) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Sounds/SoundPlayer.cs:line 369
   at Barotrauma.GameMain.Update(GameTime gameTime) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/GameMain.cs:line 829
   at Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime) in <DEV>/Libraries/MonoGame.Framework/Src/MonoGame.Framework/Game.cs:line 656
   at Microsoft.Xna.Framework.Game.Tick() in <DEV>/Libraries/MonoGame.Framework/Src/MonoGame.Framework/Game.cs:line 504
   at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop() in <DEV>/Libraries/MonoGame.Framework/Src/MonoGame.Framework/SDL/SDLGamePlatform.cs:line 94
   at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior) in <DEV>/Libraries/MonoGame.Framework/Src/MonoGame.Framework/Game.cs:line 398
   at Microsoft.Xna.Framework.Game.Run() in <DEV>/Libraries/MonoGame.Framework/Src/MonoGame.Framework/Game.cs:line 368
   at Barotrauma.Program.Main(String[] args) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Program.cs:line 59
[1/22/2021 8:53:48 PM] Error while loading entity of the type Barotrauma.Items.Components.Projectile. {Failed to create OpenAL buffer for non-streamed sound: Invalid value}
   at Barotrauma.Sounds.Sound.InitializeALBuffers() in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Sounds/Sound.cs:line 172
   at Barotrauma.Sounds.OggSound.InitializeALBuffers() in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Sounds/OggSound.cs:line 61
   at Barotrauma.Sounds.SoundManager.LoadSound(String filename, Boolean stream) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Sounds/SoundManager.cs:line 349
   at Barotrauma.Submarine.LoadRoundSound(XElement element, Boolean stream) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Map/Submarine.cs:line 133
   at Barotrauma.Items.Components.ItemComponent.LoadElemProjSpecific(XElement subElement) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs:line 501
   at Barotrauma.Items.Components.ItemComponent..ctor(Item item, XElement element) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs:line 327
   at Barotrauma.Items.Components.Projectile..ctor(Item item, XElement element) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Items/Components/Projectile.cs:line 185
[1/22/2021 8:53:48 PM] Error while loading entity of the type Barotrauma.Items.Components.Holdable. {Failed to create OpenAL buffer for non-streamed sound: Invalid value}
   at Barotrauma.Sounds.Sound.InitializeALBuffers() in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Sounds/Sound.cs:line 172
   at Barotrauma.Sounds.OggSound.InitializeALBuffers() in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Sounds/OggSound.cs:line 61
   at Barotrauma.Sounds.SoundManager.LoadSound(String filename, Boolean stream) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Sounds/SoundManager.cs:line 349
   at Barotrauma.Submarine.LoadRoundSound(XElement element, Boolean stream) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Map/Submarine.cs:line 133
   at Barotrauma.StatusEffect.InitProjSpecific(XElement element, String parentDebugName) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/StatusEffects/StatusEffect.cs:line 38
   at Barotrauma.StatusEffect..ctor(XElement element, String parentDebugName) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/StatusEffects/StatusEffect.cs:line 535
   at Barotrauma.StatusEffect.Load(XElement element, String parentDebugName) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/StatusEffects/StatusEffect.cs:line 272
   at Barotrauma.Items.Components.ItemComponent..ctor(Item item, XElement element) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs:line 309
   at Barotrauma.Items.Components.Pickable..ctor(Item item, XElement element) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Items/Components/Holdable/Pickable.cs:line 41
   at Barotrauma.Items.Components.Holdable..ctor(Item item, XElement element) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Items/Components/Holdable/Holdable.cs:line 139
mLuby commented 3 years ago

Just encountered the error in #5017 which corrupted another save—single player this time.

Exception: Failed to create OpenAL buffer for non-streamed sound: Invalid value (System.Exception)
Target site: Void InitializeALBuffers()

crashreport (32).log borodin14.save.txt

@Regalis11 if this this is a Mac thing, I'm happy to try to help debug or test some platform-specific fix.

juanjp600 commented 3 years ago

Should be fixed in https://github.com/Regalis11/Barotrauma-development/commit/2f52cbf072c0db2bc3ce9ccf32146a8ceb6838da

elsmorian commented 3 years ago

@juanjp600 When is it likely that that will make it out into a release?

juanjp600 commented 3 years ago

We're currently testing this (alongside a bunch of other changes and additions) on the Unstable branch, you can check it out by following the instructions listed here: https://barotraumagame.com/announcements/barotrauma-tester-version-made-public/

diegoyocys commented 3 years ago

these are my crash reports. they seem to happen mostly relating to hammerheads and thresher swarm missions, and very often in multiplayer, I think most of them are either 1 file or another, but always sound related i think

crashreport (2).log crashreport (3).log crashreport (4).log crashreport (5).log crashreport (6).log crashreport (7).log crashreport (8).log crashreport (9).log crashreport (10).log crashreport (11).log crashreport (12).log crashreport (13).log crashreport (14).log crashreport (15).log crashreport (16).log crashreport (17).log crashreport (18).log crashreport (19).log crashreport (20).log crashreport (21).log crashreport (22).log crashreport (23).log crashreport (24).log crashreport (25).log crashreport (26).log crashreport (27).log crashreport (28).log crashreport (29).log crashreport (30).log crashreport (31).log crashreport (32).log crashreport (33).log crashreport (34).log crashreport (35).log crashreport (36).log crashreport (37).log crashreport (38).log crashreport (39).log crashreport (40).log crashreport (41).log crashreport (42).log crashreport (43).log crashreport (44).log crashreport (45).log crashreport (46).log crashreport (47).log

diegoyocys commented 3 years ago

Should be fixed in Regalis11/Barotrauma-development@2f52cbf

this link is broken

Regalis11 commented 3 years ago

@diegoyocys It's a link to our private GitHub repository, the fix isn't publicly available yet.

campaignupgrade commented 3 years ago

Still crashing in Unstable branch.

Barotrauma Client crash report (generated on 3/24/2021 8:54:03 PM)

Barotrauma seems to have crashed. Sorry for the inconvenience! 

3B6AD4516EB659F3998862E8983C1D40

Game version 0.1300.0.2 (UnstableMac, branch dev, revision f3d132041b)
Graphics mode: 1440x900 (BorderlessWindowed)
VSync ON
Language: English
Selected content packages: Vanilla 0.9
Level seed: Cadmus LineaMoulin
Loaded submarine: Humpback (0C511F51BFA7E22659FACF1C08DA04DF)
Selected screen: Barotrauma.GameScreen
SteamManager initialized

System info:
    Operating system: Unix 17.7.0.0 64 bit
    GPU name: 
    Display mode: {Width:1920 Height:1200 Format:Color AspectRatio:1.6}
    GPU status: Normal

Exception: Object reference not set to an instance of an object. (System.NullReferenceException)
Target site: Void FillBuffers()
Stack trace: 
   at Barotrauma.Sounds.OggSound.FillBuffers() in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Sounds/OggSound.cs:line 76
   at Barotrauma.Sounds.SoundChannel..ctor(Sound sound, Single gain, Nullable`1 position, Single freqMult, Single near, Single far, String category, Boolean muffle) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Sounds/SoundChannel.cs:line 515
   at Barotrauma.Sounds.Sound.Play(Single gain, Single range, Vector2 position, Boolean muffle) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Sounds/Sound.cs:line 109
   at Barotrauma.SoundPlayer.PlayDamageSound(String damageType, Single damage, Vector2 position, Single range, IEnumerable`1 tags) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Sounds/SoundPlayer.cs:line 1126
   at Barotrauma.Structure.AddDamage(Character attacker, Vector2 worldPosition, Attack attack, Single deltaTime, Boolean playSound) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Map/Structure.cs:line 946
   at Barotrauma.Attack.DoDamage(Character attacker, IDamageable target, Vector2 worldPosition, Single deltaTime, Boolean playSound, PhysicsBody sourceBody) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Characters/Attack.cs:line 446
   at Barotrauma.Items.Components.Projectile.HandleProjectileCollision(Fixture target, Vector2 collisionNormal, Vector2 velocity) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Items/Components/Projectile.cs:line 647
   at Barotrauma.Items.Components.Projectile.Update(Single deltaTime, Camera cam) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Items/Components/Projectile.cs:line 496
   at Barotrauma.Item.Update(Single deltaTime, Camera cam) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Items/Item.cs:line 1516
   at Barotrauma.MapEntity.UpdateAll(Single deltaTime, Camera cam) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Map/MapEntity.cs:line 558
   at Barotrauma.GameScreen.Update(Double deltaTime) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Screens/GameScreen.cs:line 264
   at Barotrauma.GameMain.Update(GameTime gameTime) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/GameMain.cs:line 951
   at Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime) in <DEV>/Libraries/MonoGame.Framework/Src/MonoGame.Framework/Game.cs:line 656
   at Microsoft.Xna.Framework.Game.Tick() in <DEV>/Libraries/MonoGame.Framework/Src/MonoGame.Framework/Game.cs:line 504
   at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop() in <DEV>/Libraries/MonoGame.Framework/Src/MonoGame.Framework/SDL/SDLGamePlatform.cs:line 94
   at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior) in <DEV>/Libraries/MonoGame.Framework/Src/MonoGame.Framework/Game.cs:line 398
   at Microsoft.Xna.Framework.Game.Run() in <DEV>/Libraries/MonoGame.Framework/Src/MonoGame.Framework/Game.cs:line 368
   at Barotrauma.Program.Main(String[] args) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Program.cs:line 58

Last debug messages:
[3/24/2021 8:47:44 PM] Generating an outpost for the start of the level... (Location: Cadmus Linea, level type: LocationConnection)
[3/24/2021 8:47:30 PM] Transitioning to Cadmus LineaMoulin (current location: Moulin, selected location: Cadmus Linea, leaving sub: Humpback, at start: True, at end: False, transition type: LeaveLocation)
[3/24/2021 8:43:04 PM] Generating an outpost for the start of the level... (Location: Moulin, level type: Outpost)
[3/24/2021 8:40:43 PM] LobbyMatchList:  LobbiesMatching: 0
[3/24/2021 8:40:43 PM] LobbyMatchList:  LobbiesMatching: 0
[3/24/2021 8:40:43 PM] SteamAPICallCompleted:   AsyncCall: 1723097573390377654
   Callback: 510
 ParamCount: 4
[3/24/2021 8:40:42 PM] LobbyMatchList:  LobbiesMatching: 29
[3/24/2021 8:40:42 PM] LobbyMatchList:  LobbiesMatching: 29
[3/24/2021 8:40:42 PM] SteamAPICallCompleted:   AsyncCall: 11557747649621246786
   Callback: 510
 ParamCount: 4
[3/24/2021 8:40:42 PM] LobbyMatchList:  LobbiesMatching: 50
[3/24/2021 8:40:42 PM] LobbyMatchList:  LobbiesMatching: 50
[3/24/2021 8:40:42 PM] SteamAPICallCompleted:   AsyncCall: 15320078196040357556
   Callback: 510
 ParamCount: 4
[3/24/2021 8:40:42 PM] LobbyMatchList:  LobbiesMatching: 50
[3/24/2021 8:40:42 PM] LobbyMatchList:  LobbiesMatching: 50
[3/24/2021 8:40:42 PM] SteamAPICallCompleted:   AsyncCall: 18024624564914133271
   Callback: 510
 ParamCount: 4
[3/24/2021 8:40:42 PM] Error while calculating content package hash:  {Object reference not set to an instance of an object.}
   at Barotrauma.RagdollParams.GetFolder(XDocument doc, String filePath) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Characters/Params/Ragdoll/RagdollParams.cs:line 108
   at Barotrauma.ContentPackage.CalculateFileHash(ContentFile file) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/ContentPackage.cs:line 631
   at Barotrauma.ContentPackage.CalculateHash(Boolean logging) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/ContentPackage.cs:line 592
[3/24/2021 8:40:42 PM] Couldn't load xml document "Mods/EK Armory/Characters/Ekdronerallybeacon/Ekdronerallybeacon.xml"! {Could not find a part of the path '/Users/slam15/Library/Application Support/Steam/steamapps/common/Barotrauma/Barotrauma.app/Contents/MacOS/Mods/EK Armory/Characters/Ekdronerallybeacon/Ekdronerallybeacon.xml'.}
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
   at System.Xml.XmlTextReaderImpl.FinishInitUriString()
   at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
   at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
   at Barotrauma.XMLExtensions.TryLoadXml(String filePath) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Serialization/XMLExtensions.cs:line 23
[3/24/2021 8:40:42 PM] Error while calculating content package hash:  {Object reference not set to an instance of an object.}
   at Barotrauma.RagdollParams.GetFolder(XDocument doc, String filePath) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Characters/Params/Ragdoll/RagdollParams.cs:line 108
   at Barotrauma.ContentPackage.CalculateFileHash(ContentFile file) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/ContentPackage.cs:line 631
   at Barotrauma.ContentPackage.CalculateHash(Boolean logging) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/ContentPackage.cs:line 592
[3/24/2021 8:40:42 PM] Couldn't load xml document "Mods/EK Armory/Characters/Walker Drone/Walkerdrone.xml"! {Could not find a part of the path '/Users/slam15/Library/Application Support/Steam/steamapps/common/Barotrauma/Barotrauma.app/Contents/MacOS/Mods/EK Armory/Characters/Walker Drone/Walkerdrone.xml'.}
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
   at System.Xml.XmlTextReaderImpl.FinishInitUriString()
   at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
   at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
   at Barotrauma.XMLExtensions.TryLoadXml(String filePath) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Serialization/XMLExtensions.cs:line 23
[3/24/2021 8:40:42 PM] Error while calculating content package hash:  {Object reference not set to an instance of an object.}
   at Barotrauma.RagdollParams.GetFolder(XDocument doc, String filePath) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Characters/Params/Ragdoll/RagdollParams.cs:line 108
   at Barotrauma.ContentPackage.CalculateFileHash(ContentFile file) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/ContentPackage.cs:line 631
   at Barotrauma.ContentPackage.CalculateHash(Boolean logging) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/ContentPackage.cs:line 592
[3/24/2021 8:40:42 PM] Couldn't load xml document "Mods/EK Armory/Characters/Gun Drone/Gundrone.xml"! {Could not find a part of the path '/Users/slam15/Library/Application Support/Steam/steamapps/common/Barotrauma/Barotrauma.app/Contents/MacOS/Mods/EK Armory/Characters/Gun Drone/Gundrone.xml'.}
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
   at System.Xml.XmlTextReaderImpl.FinishInitUriString()
   at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
   at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
   at Barotrauma.XMLExtensions.TryLoadXml(String filePath) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Serialization/XMLExtensions.cs:line 23
[3/24/2021 8:40:42 PM] Error while calculating content package hash:  {Object reference not set to an instance of an object.}
   at Barotrauma.RagdollParams.GetFolder(XDocument doc, String filePath) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Characters/Params/Ragdoll/RagdollParams.cs:line 108
   at Barotrauma.ContentPackage.CalculateFileHash(ContentFile file) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/ContentPackage.cs:line 631
   at Barotrauma.ContentPackage.CalculateHash(Boolean logging) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/ContentPackage.cs:line 592
[3/24/2021 8:40:42 PM] Couldn't load xml document "Mods/EK Armory/Characters/Nuclear Homing Shell/Nuclearhomingshell.xml"! {Could not find a part of the path '/Users/slam15/Library/Application Support/Steam/steamapps/common/Barotrauma/Barotrauma.app/Contents/MacOS/Mods/EK Armory/Characters/Nuclear Homing Shell/Nuclearhomingshell.xml'.}
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
   at System.Xml.XmlTextReaderImpl.FinishInitUriString()
   at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
   at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
   at Barotrauma.XMLExtensions.TryLoadXml(String filePath) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Serialization/XMLExtensions.cs:line 23
[3/24/2021 8:40:42 PM] Error while calculating content package hash:  {Object reference not set to an instance of an object.}
   at Barotrauma.RagdollParams.GetFolder(XDocument doc, String filePath) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Characters/Params/Ragdoll/RagdollParams.cs:line 108
   at Barotrauma.ContentPackage.CalculateFileHash(ContentFile file) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/ContentPackage.cs:line 631
   at Barotrauma.ContentPackage.CalculateHash(Boolean logging) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/ContentPackage.cs:line 592
[3/24/2021 8:40:42 PM] Couldn't load xml document "Mods/EK Armory/Characters/Homing Shell/Homingshell.xml"! {Could not find a part of the path '/Users/slam15/Library/Application Support/Steam/steamapps/common/Barotrauma/Barotrauma.app/Contents/MacOS/Mods/EK Armory/Characters/Homing Shell/Homingshell.xml'.}
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
   at System.Xml.XmlTextReaderImpl.FinishInitUriString()
   at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
   at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
   at Barotrauma.XMLExtensions.TryLoadXml(String filePath) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Serialization/XMLExtensions.cs:line 23
[3/24/2021 8:40:41 PM] LobbyMatchList:  LobbiesMatching: 50
[3/24/2021 8:40:41 PM] LobbyMatchList:  LobbiesMatching: 50
[3/24/2021 8:40:41 PM] SteamAPICallCompleted:   AsyncCall: 5172320125191126701
   Callback: 510
 ParamCount: 4
[3/24/2021 8:40:30 PM] Built-in Microphone 19
[3/24/2021 8:40:13 PM] (Msg) SDR RelayNetworkStatus:  avail=OK  config=OK  anyrelay=OK   (OK)
[3/24/2021 8:40:13 PM] (Msg) Ping location: lax=14+1,sea=23+2,eat=29+2/28+2,dfw=42+4,ord=52+5,atl=64+6/63+4,iad=64+6,tyo=109+10,tyo1=112+11/110+10,fra=158+15/149+5,gru=174+17,sgp=184+18/199+1
[3/24/2021 8:40:13 PM] (Msg) Ping measurement completed
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'jnb' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'sgp' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'maa' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'vie' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'sof' established.
[3/24/2021 8:40:06 PM] (Msg) Relay waw#278 (155.133.230.67:27022) is going offline in 175 seconds
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'waw' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'syd' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'sto2' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'sto' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'tyo1' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'tyo' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'lim' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'dxb' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'scl' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'bom' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'par' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'mad' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'lhr' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'sea' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'eze' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'gru' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'hkg' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'iad' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'fra' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'ord' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'ams' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'lax' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'atl' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'dfw' established.
[3/24/2021 8:40:06 PM] (Verbose) Communications with routing cluster 'eat' established.
[3/24/2021 8:40:06 PM] (Msg) SDR RelayNetworkStatus:  avail=Attempting  config=OK  anyrelay=Attempting   (Performing ping measurement)
[3/24/2021 8:40:06 PM] (Msg) Performing ping measurement
[3/24/2021 8:40:06 PM] (Msg) Got SDR network config.  Loaded revision 314 OK
[3/24/2021 8:40:06 PM] (Warning) SDR network config fetch first attempt failed.  HTTP 504.  .  Trying again.
[3/24/2021 8:40:05 PM] WARNING: 400 buffer(s) were generated. No more sound buffers will be generated.
[3/24/2021 8:39:56 PM] Attempting to open ALC device "Built-in Output"
[3/24/2021 8:39:54 PM] Loaded languages: English, German, French, Russian, Polish, Brazilian Portuguese, Castilian Spanish, Latinamerican Spanish, Simplified Chinese, Traditional Chinese, Japanese, Turkish, Korean
[3/24/2021 8:39:53 PM] Loaded languages: English, German, French, Russian, Polish, Brazilian Portuguese, Castilian Spanish, Latinamerican Spanish, Simplified Chinese, Traditional Chinese, Japanese, Turkish, Korean
[3/24/2021 8:39:52 PM] Logged in as slam-o-rama (SteamID STEAM_1:0:17104171)
juanjp600 commented 3 years ago

Should be fixed in https://github.com/Regalis11/Barotrauma-development/commit/07669058db000f066672ec4ea39b7441a784371d (private repo), fix should go live with next Unstable build

Hotmud9 commented 3 years ago

Aye, I'm having this issue as well.

diegoyocys commented 3 years ago

with these changes introduced by mac on October 2019, will running Version 10.14: "Mojave" ( or earlier version) fix this issue? have anyone tried? Im trying to do an AFPS volume with an older version, but I am not that computer literate, still work in progress how to get older versions on another volume..., you can save the "should be fixed in...." @juanjp600 ! hahahaa, just kidding

Rokvach commented 3 years ago

You can test if this still happens in the latest Unstable build

https://barotraumagame.com/announcements/barotrauma-tester-version-made-public/

diegoyocys commented 3 years ago

crashreport (66).log crashreport (67).log

test it, on unstable, I crashed twice with a slight different stack trace. report 66, I was assaulting an outpost mission on multiplayer, hellish dif.(playing solo with AI), no specific reason for crash, but seems when I either shoot, or I am near an enemy AI.

report 67 I was 5400mts down, and I had two molocks on sight, with no molock mission, I had mine minerals mission, the crash (not the first time I think), happened just as a grasped (touched) head on, an ocean wall.

edit: another similar to report 66, the only ongoing resemblance is that when I touch/crash an ocean wall, there is a chance it will crash.... crashreport (70).log

diegoyocys commented 3 years ago

crashreport (68).log another one,

same case scenario as above on report 66. this time rescuing outpost, very similar report

juanjp600 commented 3 years ago

Assuming I haven't missed anything else, this should finally be fixed in https://github.com/Regalis11/Barotrauma-development/commit/187a88e11987d15119002524ba08e7f39690a0ac 🤞

diegoyocys commented 3 years ago

well, easiest solution, is to install windows 10 on Mac with bootcamp, now barotrauma works flawlessly.

Rokvach commented 3 years ago

Confirmed finally working, closing.