Barotrauma icon indicating copy to clipboard operation
Barotrauma copied to clipboard

Players Cant join modded lobby (Failed to find the end of the bit field after 100 reads)

Open mrcalzon02 opened this issue 3 years ago • 5 comments

Disclaimers

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

What happened?

Players attempting to join get error ( Error while reading a message from server. {Failed to find the end of the bit field after 100 reads. Terminating to prevent the game from freezing.} at Barotrauma.ReadOnlyBitField..ctor(IReadMessage inc) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\NetStructBitField.cs:line 122 at Barotrauma.INetSerializableStruct.Read[T](IReadMessage inc) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Networking\INetSerializableStruct.cs:line 693 at Barotrauma.Networking.ClientPeer.ReadConnectionInitializationStep(IncomingInitializationMessage inc) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Networking\Primitives\Peers\ClientPeer.cs:line 118 at Barotrauma.Networking.SteamP2PClientPeer.Update(Single deltaTime) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Networking\Primitives\Peers\SteamP2PClientPeer.cs:line 251 at Barotrauma.Networking.GameClient.Update(Single deltaTime) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Networking\GameClient.cs:line 477 )

Reproduction steps

  1. loaded mods
  2. Selected Host server
  3. selected (Lua For Barotrauma- Dedicatedserver)
  4. wait.
  5. players Cannot join. will report to Lua For Barotrauma as well.

Bug prevalence

Happens every time I play

Version

0.19.10.0

-

No response

Which operating system did you encounter this bug on?

Windows

Relevant error messages and crash reports

No Crashlog Due to the game not Crashing on Error.
Error while reading a message from server. {Failed to find the end of the bit field after 100 reads. Terminating to prevent the game from freezing.}
at Barotrauma.ReadOnlyBitField..ctor(IReadMessage inc) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\NetStructBitField.cs:line 122
at Barotrauma.INetSerializableStruct.Read[T](IReadMessage inc) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Networking\INetSerializableStruct.cs:line 693
at Barotrauma.Networking.ClientPeer.ReadConnectionInitializationStep(IncomingInitializationMessage inc) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Networking\Primitives\Peers\ClientPeer.cs:line 118
at Barotrauma.Networking.SteamP2PClientPeer.Update(Single deltaTime) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Networking\Primitives\Peers\SteamP2PClientPeer.cs:line 251
at Barotrauma.Networking.GameClient.Update(Single deltaTime) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Networking\GameClient.cs:line 477

mrcalzon02 avatar Oct 05 '22 23:10 mrcalzon02

Fear the deep.zip campaign save used.

mrcalzon02 avatar Oct 05 '22 23:10 mrcalzon02

Fixed in https://github.com/Regalis11/Barotrauma-development/commit/c8d64177ff0f3e99a4da6806e97392125131cf11

Regalis11 avatar Oct 07 '22 08:10 Regalis11

Tested against bitfield-size-limit-fix commit https://github.com/Regalis11/Barotrauma-development/commit/057d32efc184648d4eaf6dfb58593dfc86ae5948

Fix did not work for approximately 34 +- 1 mods (All content mods for the most part).

Reproduced without the fix first (failed to find the end of the bit field after 100 reads. Terminating to prevent the game from freezing.) then tested with the fix and had this error occur:

image

Mods used (its probably quantity not specific mods, but just noting how they are by majority not submarine mods): image

NilanthAnimosus avatar Oct 10 '22 13:10 NilanthAnimosus

Can confirm, issue is still occurring for me

daaurpoj avatar Oct 16 '22 00:10 daaurpoj

Up

Ksarper avatar Oct 16 '22 00:10 Ksarper

Can confirm, issue is still occurring for me

The fix is still not out in the latest unstable version, it turned out to be more tricky to solve than we initially though. We have a new fix in testing atm though, and it'll hopefully be included in the next unstable.

Regalis11 avatar Oct 16 '22 09:10 Regalis11

Tested against bitfield-size-limit-fix commit https://github.com/Regalis11/Barotrauma-development/commit/4def2e8624b4f4b39146b1d51e7d4c3c038e81d7

Tested against the same mod list as previously used (with 34 +- 1 mods) and found no issues, unless there are further things to test than too many mods I believe this issue is fixed now and likely ready for merging.

Also did a quick multiplayer campaign test, and was fine too.

NilanthAnimosus avatar Oct 17 '22 09:10 NilanthAnimosus