Failed writing NetPackageSignDataResponse to client / Memory stream is not expandable

Version
b259
Platform
Linux
On our Linux dedicated server, we keep experiencing these issues, usually related to player login. This only started happening sometime Sunday. It is my understanding that a dedicated server hotfix/update was sent out at that time, and our server has been having issues ever since. Delayed container opening, audio sync issues, zombie AI/spawn issues, and lag. Nothing was changed on our end before the issue started, or even after.

It is also my understanding that this might be an issue with the new signage system implemented in 3.0.

2026-07-08T13:05:15.467Z EXC Memory stream is not expandable.
at System.IO.MemoryStream.set_Capacity (System.Int32 value) [0x00031] in <9c9d7808da6a43e3b68409f2b63b3e6f>:0
at System.IO.MemoryStream.EnsureCapacity (System.Int32 value) [0x0005c] in <9c9d7808da6a43e3b68409f2b63b3e6f>:0
at System.IO.MemoryStream.Write (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00093] in <9c9d7808da6a43e3b68409f2b63b3e6f>:0
at PooledBinaryWriter.Write (System.Byte[] _buffer) [0x0000e] in <d6335cee6aa240b0be8658cc339bbea3>:0
at NetPackageSignDataResponse.write (PooledBinaryWriter _writer) [0x00032] in <d6335cee6aa240b0be8658cc339bbea3>:0
at NetConnectionSimple.WriteToStream (System.Int32 streamIndex, System.Int32 packageIndex, System.Int32& packagesToSend, NetPackage& package, PooledBinaryWriter& writer, System.IO.MemoryStream& stream) [0x0007f] in <d6335cee6aa240b0be8658cc339bbea3>:0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
NetConnectionSimple:WriteToStream(Int32, Int32, Int32&, NetPackage&, PooledBinaryWriter&, MemoryStream&)
NetConnectionSimple:taskSerialize(ThreadInfo)
ThreadManager:myThreadInvoke(Object)
System.Threading.ThreadHelper:ThreadStart_Context(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object)
System.Threading.ThreadHelper:ThreadStart(Object)
2026-07-08T13:05:15.468Z WRN Failed writing NetPackageSignDataResponse to client (cl=EOS_xxx, ch=0), requeueing 2 packages. Stream index: 2 - stream size before: 1053351
2026-07-08T13:05:15.469Z WRN Packages in stream:
2026-07-08T13:05:15.469Z WRN NetPackageSignDataResponse: 1
 
Reproduction Steps
1. Logging in near certain POI's seems to trigger it (ones with new signs).
2. Observing console, WRN and EXC both appear with similar timestamps.
Link to Logs
https://pastebin.com/raw/kSriBvFg
Link to Screenshot/Video
https://imgur.com/a/P5R7RlI
FYI, this same error is also present in the logs on dedicated Windows server...although i haven't seen ANY of the effects OP mentions in-game...perhaps his issues are unrelated to the error itself?
 
FYI, this same error is also present in the logs on dedicated Windows server...although i haven't seen ANY of the effects OP mentions in-game...perhaps his issues are unrelated to the error itself?
Myself and at least one other server admin had mentioned this issue in the 7 Days discord, with the same symptoms and with no changes made in either of our server environments. The issue and the symptoms seem very hit or miss, which is even more puzzling.
 
Experiencing this error as well, happens on player login
Linux dedicated server

2026-07-08T22:50:49 2139.025 EXC Memory stream is not expandable.
at System.IO.MemoryStream.set_Capacity (System.Int32 value) [0x00031] in <9c9d7808da6a43e3b68409f2b63b3e6f>:0
at System.IO.MemoryStream.EnsureCapacity (System.Int32 value) [0x0005c] in <9c9d7808da6a43e3b68409f2b63b3e6f>:0
at System.IO.MemoryStream.Write (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00093] in <9c9d7808da6a43e3b68409f2b63b3e6f>:0
at PooledBinaryWriter.Write (System.Byte[] _buffer) [0x0000e] in <d6335cee6aa240b0be8658cc339bbea3>:0
at NetPackageSignDataResponse.write (PooledBinaryWriter _writer) [0x00032] in <d6335cee6aa240b0be8658cc339bbea3>:0
at NetConnectionSimple.WriteToStream (System.Int32 streamIndex, System.Int32 packageIndex, System.Int32& packagesToSend, NetPackage& package, PooledBinaryWriter& writer, System.IO.MemoryStream& stream) [0x0007f] in <d6335cee6aa240b0be8658cc339bbea3>:0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
NetConnectionSimple:WriteToStream(Int32, Int32, Int32&, NetPackage&, PooledBinaryWriter&, MemoryStream&)
NetConnectionSimple:taskSerialize(ThreadInfo)
ThreadManager:myThreadInvoke(Object)
System.Threading.ThreadHelper:ThreadStart_Context(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object)
System.Threading.ThreadHelper:ThreadStart(Object)

2026-07-08T22:50:49 2139.025 WRN Failed writing NetPackageSignDataResponse to client (cl=EOS_000281e753e44b68a344423ee535e238, ch=0), requeueing 2 packages. Stream index: 2 - stream size before: 1049088
2026-07-08T22:50:49 2139.025 WRN Packages in stream:
2026-07-08T22:50:49 2139.025 WRN NetPackageSignDataResponse: 1
 
Last edited:
I am also experiencing this error on my locally hosted game. It occurs after I have started the game and my wife goes to connect. She is able to connect fine and we are able to play. I have also noticed the delayed container opening as reported by billfrank85 above.

2026-07-09T12:57:42 86.415 EXC Memory stream is not expandable.
at System.IO.MemoryStream.set_Capacity (System.Int32 value) [0x00031] in <1071a2cb0cb3433aae80a793c277a048>:0
at System.IO.MemoryStream.EnsureCapacity (System.Int32 value) [0x0005c] in <1071a2cb0cb3433aae80a793c277a048>:0
at System.IO.MemoryStream.Write (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00093] in <1071a2cb0cb3433aae80a793c277a048>:0
at PooledBinaryWriter.Write (System.Byte[] _buffer) [0x0000e] in <d983dee3f9114d09bdb3b5f8df4452f8>:0
at NetPackageSignDataResponse.write (PooledBinaryWriter _writer) [0x00032] in <d983dee3f9114d09bdb3b5f8df4452f8>:0
at NetConnectionSimple.WriteToStream (System.Int32 streamIndex, System.Int32 packageIndex, System.Int32& packagesToSend, NetPackage& package, PooledBinaryWriter& writer, System.IO.MemoryStream& stream) [0x0007f] in <d983dee3f9114d09bdb3b5f8df4452f8>:0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
NetConnectionSimple:WriteToStream(Int32, Int32, Int32&, NetPackage&, PooledBinaryWriter&, MemoryStream&)
NetConnectionSimple:taskSerialize(ThreadInfo)
ThreadManager:myThreadInvoke(Object)
System.Threading.ThreadHelper:ThreadStart_Context(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object)
System.Threading.ThreadHelper:ThreadStart(Object)

2026-07-09T12:57:42 86.416 WRN Failed writing NetPackageSignDataResponse to client (cl=EOS_0002e6b46c4a43eb968a9a7b9f6663d2, ch=0), requeueing 2 packages. Stream index: 2 - stream size before: 1049039
2026-07-09T12:57:43 86.416 WRN Packages in stream:
2026-07-09T12:57:43 86.417 WRN NetPackageSignDataResponse: 1
2026-07-09T12:57:51 94.889 INF Time: 1.35m FPS: 99.91 Heap: 2518.0MB Max: 2518.0MB Chunks: 325 CGO: 220 Ply: 1 Zom: 4 Ent: 5 (5) Items: 0 CO: 1 RSS: 5435.6MB
 
I have further info on this. This error seeming is only occurring on new random gen worlds on dedicated server. It is not occurring with the pregen worlds (Navezgane or Pregen08k02). Tested with latest experimental 3.0.1

1. Generate new random gen world
2. Enter game in Single Player mode (no errors)
3. Load same world onto dedicated Linux server
4. Enter game on dedicate server. Error occurs upon player loading into game.

RWG Log: https://pastebin.com/ExAjQ2iU

Pregen Log: https://pastebin.com/cNyQ0Yb8

2026-07-10T12:07:30 156.201 EXC Memory stream is not expandable.
at System.IO.MemoryStream.set_Capacity (System.Int32 value) [0x00031] in <9c9d7808da6a43e3b68409f2b63b3e6f>:0
at System.IO.MemoryStream.EnsureCapacity (System.Int32 value) [0x0005c] in <9c9d7808da6a43e3b68409f2b63b3e6f>:0
at System.IO.MemoryStream.Write (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00093] in <9c9d7808da6a43e3b68409f2b63b3e6f>:0
at PooledBinaryWriter.Write (System.Byte[] _buffer) [0x0000e] in <97ff23989844418885733bba52ed20cd>:0
at NetPackageSignDataResponse.write (PooledBinaryWriter _writer) [0x00032] in <97ff23989844418885733bba52ed20cd>:0
at NetConnectionSimple.WriteToStream (System.Int32 streamIndex, System.Int32 packageIndex, System.Int32& packagesToSend, NetPackage& package, PooledBinaryWriter& writer, System.IO.MemoryStream& stream) [0x0007f] in <97ff23989844418885733bba52ed20cd>:0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
NetConnectionSimple:WriteToStream(Int32, Int32, Int32&, NetPackage&, PooledBinaryWriter&, MemoryStream&)
NetConnectionSimple:taskSerialize(ThreadInfo)
ThreadManager:myThreadInvoke(Object)
System.Threading.ThreadHelper:ThreadStart_Context(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object)
System.Threading.ThreadHelper:ThreadStart(Object)

2026-07-10T12:07:30 156.202 WRN Failed writing NetPackageSignDataResponse to client (cl=EOS_000281e753e44b68a344423ee535e238, ch=0), requeueing 2 packages. Stream index: 2 - stream size before: 1049357
2026-07-10T12:07:30 156.202 WRN Packages in stream:
2026-07-10T12:07:30 156.202 WRN NetPackageSignDataResponse: 1
2026-07-10T12:07:31 156.878 INF Time: 2.53m FPS: 20.00 Heap: 1737.3MB Max: 1737.3MB Chunks: 9 CGO: 0 Ply: 0 Zom: 0 Ent: 0 (0) Items: 0 CO: 0 RSS: 2649.5MB
2026-07-10T12:07:32 157.690 WRN [Web] In ApiHandler.HandleRequest(): No handler found for API "getstats"
2026-07-10T12:07:34 160.589 WRN [Web] In ApiHandler.HandleRequest(): No handler found for API "executeconsolecommand"
2026-07-10T12:07:34 160.595 WRN [Web] In ApiHandler.HandleRequest(): No handler found for API "getstats"
2026-07-10T12:07:37 162.692 WRN [Web] In ApiHandler.HandleRequest(): No handler found for API "getstats"
2026-07-10T12:07:42 167.692 WRN [Web] In ApiHandler.HandleRequest(): No handler found for API "getstats"
2026-07-10T12:07:47 172.696 WRN [Web] In ApiHandler.HandleRequest(): No handler found for API "getstats"
2026-07-10T12:07:52 177.696 WRN [Web] In ApiHandler.HandleRequest(): No handler found for API "getstats"
 
I am also having this issue but on Windows 11. Though I noticed it started only after doing some sorting by having my friend and I run mods from the AppData directory now. I also used launch parameters in Steam to target a new location on my M2 Drive (to save space on my C Drive) and run my UserProfile there which is where all the saves and mod data lives now. Everything seems to work fine except I get that same error whenever he joins. And as others mentioned, he still is able to join, just have an error log now when he does that pops up for me as the host.

026-07-12T04:13:45 118.214 EXC Memory stream is not expandable.
at System.IO.MemoryStream.set_Capacity (System.Int32 value) [0x00031] in <1071a2cb0cb3433aae80a793c277a048>:0
at System.IO.MemoryStream.EnsureCapacity (System.Int32 value) [0x0005c] in <1071a2cb0cb3433aae80a793c277a048>:0
at System.IO.MemoryStream.Write (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00093] in <1071a2cb0cb3433aae80a793c277a048>:0
at PooledBinaryWriter.Write (System.String _value) [0x000ef] in <d983dee3f9114d09bdb3b5f8df4452f8>:0
at PlatformUserIdentifierExtensions.ToStream (PlatformUserIdentifierAbs _instance, System.IO.BinaryWriter _writer, System.Boolean _inclCustomData) [0x00030] in <d983dee3f9114d09bdb3b5f8df4452f8>:0
at AllyStore.Write (System.IO.BinaryWriter _bw) [0x000d7] in <d983dee3f9114d09bdb3b5f8df4452f8>:0
at PersistentPlayerList.Write (System.IO.BinaryWriter stream) [0x000d0] in <d983dee3f9114d09bdb3b5f8df4452f8>:0
at NetPackageWorldInfo.write (PooledBinaryWriter _writer) [0x00050] in <d983dee3f9114d09bdb3b5f8df4452f8>:0
at NetConnectionSimple.WriteToStream (System.Int32 streamIndex, System.Int32 packageIndex, System.Int32& packagesToSend, NetPackage& package, PooledBinaryWriter& writer, System.IO.MemoryStream& stream) [0x0007f] in <d983dee3f9114d09bdb3b5f8df4452f8>:0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
NetConnectionSimple:WriteToStream(Int32, Int32, Int32&, NetPackage&, PooledBinaryWriter&, MemoryStream&)
NetConnectionSimple:taskSerialize(ThreadInfo)
ThreadManager:myThreadInvoke(Object)
System.Threading.ThreadHelper:ThreadStart_Context(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object)
System.Threading.ThreadHelper:ThreadStart(Object)

2026-07-12T04:13:45 118.215 WRN Failed writing NetPackageWorldInfo to client (cl=EOS_0002c16ef7d14b9386aec120468d1438, ch=0), requeueing 1 packages. Stream index: 43 - stream size before: 2096409
2026-07-12T04:13:45 118.215 WRN Packages in stream:
2026-07-12T04:13:45 118.215 WRN NetPackageConfigFile: 42
 
Guys and gals, to anyone having this exact error message, do me a favor and check your player profiles (.ttp files). Years ago, the EXC Memory stream is not expandable issue was caused by inflated .ttp files and something with bad drone data. I looked at our dedicated server and we have 9 player profiles ranging from 450KB up to 1.5MB, and the largest ones have about 20,000 lines of this:

1783886818460.png
The next largest player profile without these entries is only 65kb. The remaining 50 or so player profiles are less than that.

Thoughts?
 
1783916431878.png

I found the problem and we fixed it on our server (Refuge)!

.ttp files bloated with 20,000+ lines of this. 32bit integer overflow. anytime a player with this ttp bloat logged in, every single person on the server experienced lag and delays. I was on our server this morning with none of the affected players and everything ran perfectly. eventually, one person with the issue logged in, and we started experiencing lag and delays. Once 2 or more were online, it took over 60 seconds for a single loot container to open for me. I will provided some example TTP files as well:


The server owner took all of the data I collected and created a "scrubber" to clean all of this spam out of the files. 1.5MB ttp files were reduced to 45kb or so. Upon starting the server afterwards, no lag, no issues whatsoever (so far).

As far as why this happened in the first place, currently unknown. We are still investigating.
 
Update from the server owner, who is self hosted:

We found 336,979 malformed CVar records—each using a duplicated two-GUID key—embedded in 23 player .ttp files. After creating full and per-player backups, we parsed each affected profile, removed only those malformed CVar records, rewrote and reload-verified the files, and confirmed all 114 profiles were clean. We also added Harmony instrumentation to RefugeBot that intercepts malformed CVars at creation and save time, preventing them from being written back into player profiles.

(RefugeBot is our proprietary server management software)
 
Back
Top