StrangeLoopGames / EcoIssues

131 stars 21 forks source link

Server Players all Having Path to Long Exceptions #10155

Closed pamduncan closed 5 years ago

pamduncan commented 5 years ago

--BEGIN DUMP-- Dump Time 11/29/2018 03:39:00

Exception Exception: PathTooLongException Message:The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. Source:mscorlib

System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) at System.IO.Path.InternalGetDirectoryName(String path) at Eco.Core.Serialization.DataStore.<>cDisplayClass46_01.<LoadAsync>b0(ZipArchiveEntry entry) at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at Eco.Core.Serialization.DataStore.LoadAsync[T](String folder, Action2 createFunc) at Eco.World.PersistentChunkGrid.Load() at Eco.World.WorldPlugin..ctor()

--END DUMP--

Going to backup works in some cases. Will have them attach world with the error to this bug report

pamduncan commented 5 years ago

--BEGIN DUMP-- Dump Time 11/29/2018 11:51:10

Exception Exception: PathTooLongException Message:The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. Source:mscorlib

System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) at System.IO.Path.InternalGetDirectoryName(String path) at Eco.Core.Serialization.DataStore.<>c__DisplayClass46_01.<LoadAsync>b__0(ZipArchiveEntry entry) at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at Eco.Core.Serialization.DataStore.LoadAsync[T](String folder, Action2 createFunc) at Eco.World.PersistentChunkGrid.Load() at Eco.World.WorldPlugin..ctor()

--END DUMP--

pierresteeg commented 5 years ago

I am having the same Issue with the same dump. Here is an example of such a world which causes the exception and a backup of that world which does not have any issues.

https://drive.google.com/open?id=1fkhodlf0eek0kODDZ2vT5uIgA-3cj1fO

Quicksilv3r710 commented 5 years ago

I am also having the same issue. Here are my server files. https://drive.google.com/open?id=1j0E2TXudjaRJ9Es0p8pbwJwvLZjJnv8C

pierresteeg commented 5 years ago

And here's some additional console output im getting. Might be of use, possibly: https://drive.google.com/open?id=18bx7myQOToy6bjx-mkc3ml0vi5eKVByO

mirasrael commented 5 years ago

I fixed loading for long paths in staging, but there seems are another problem which I wasn't able to trace down. Game fails to load because of very suspect path in the game save archive.

image

Until next release you can fix this by manually removing such entries from Game.eco (Eden.eco, whatever.eco etc). It is just a regular zip archive.

pierresteeg commented 5 years ago

Thanks for letting us know. This way I can at least fix it and continue playing until it may occur again.

It might be of interest that this happened after I started running for office. No one was able to vote (which is also fixed now) and I shut down the server later that evening and was unable to restart it the next day. Perhaps it is related. Perhaps its just another symptom. The error message during elections was just "Object[Object]" even though that might not say much or is even related.

MrManvi commented 5 years ago

Hey! So I had the same issue, I got in reach with one of the support devs and I got to this post. The Fix helped me out but I had 2 unusually big users name in the game.eco file. with 964 characters each. He advised me to post the file here. So Mirasel will be informed regarding this. Here you go mate: https://mega.nz/#!W2ZgRSbT!FB_Jv77XVOfJhcdpRvEHqAvgifOVmEbst-teNyc8s7Q

mirasrael commented 5 years ago

@MrManvi thanks!

mirasrael commented 5 years ago

Shouldn't happen with RequireAuthentification enabled. Happens because of for failed authentication Steam session ticket uses for new user creation.