You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running the server for ~24 hours this exception is thrown and the server shuts down.
Latest Intersect Build with no custom edits.
2024-11-16 01:46:14.645 [Error] Received unhandled exception from System.Threading.Thread: The added or subtracted value results in an un-representable DateTime. (Parameter 'value')
Server is now closing. Please wait while your game and player data is saved!
2024-11-16 01:46:14.663 [Error] ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime. (Parameter 'value')
Stack: at System.DateTime.ThrowDateArithmetic(Int32 param)
at System.DateTime.AddTicks(Int64 value)
at Intersect.Server.General.Time.Update() in /home/runner/work/TessaPrimeSource/TessaPrimeSource/Intersect.Server.Core/General/Time.cs:line 48
at Intersect.Server.Core.LogicService.LogicThread.ThreadStart(ServerContext serverContext) in /home/runner/work/TessaPrimeSource/TessaPrimeSource/Intersect.Server.Core/Core/LogicService.LogicThread.cs:line 336
Steps to Reproduce
Run Latest Intersect Server Build (Bug encountered when running on Linux Ubuntu 22.04 environment)
Wait ~24 hours
Version with bug
0.8.0-beta.239
Last version that worked well
0.7.0 I think
Affected platforms
Linux, I was not able test on other platforms
Did you find any workaround?
No response
Relevant log output
2024-11-16 01:46:14.645 [Error] Received unhandled exception from System.Threading.Thread: The added or subtracted value results in an un-representable DateTime. (Parameter 'value')
Server is now closing. Please waitwhile your game and player data is saved!
2024-11-16 01:46:14.663 [Error] ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime. (Parameter 'value')
Stack: at System.DateTime.ThrowDateArithmetic(Int32 param)
at System.DateTime.AddTicks(Int64 value)
at Intersect.Server.General.Time.Update() in /home/runner/work/TessaPrimeSource/TessaPrimeSource/Intersect.Server.Core/General/Time.cs:line 48
at Intersect.Server.Core.LogicService.LogicThread.ThreadStart(ServerContext serverContext) in /home/runner/work/TessaPrimeSource/TessaPrimeSource/Intersect.Server.Core/Core/LogicService.LogicThread.cs:line 336
### Duplicate Bug Check
- [X] This bug report is not a duplicate to the best of my knowledge.
The text was updated successfully, but these errors were encountered:
Try this: within the time update method, add a try-catch block around where the time's Add method is called at in order to catch any ArgumentOutOfRangeException and reset the sGameTime to DateTime.Now if an exception occurs (this should prevent the server from crashing due to un-representable DateTime values).
Description
After running the server for ~24 hours this exception is thrown and the server shuts down.
Latest Intersect Build with no custom edits.
Steps to Reproduce
Version with bug
0.8.0-beta.239
Last version that worked well
0.7.0 I think
Affected platforms
Linux, I was not able test on other platforms
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: