error while loading 714239
Kyrios0 opened this issue · 5 comments
I think it's a limit of .NET API. The DirectoryInfo
Itself auto trimmed the path for both Name
property and FullName
property. While scanning beatmaps, I mostly used DirectoryInfo
class:
https://github.com/Milkitic/Osu-Player/blob/master/OsuPlayer.Common/Scanning/OsuFileScanner.cs#L124
So fixing this line will resolve the problem I think.
Let me explain this in detail:
After I pressing the 'Play' buttom, OsuPlayer starts to load 714239. Here's the snapshot of folder
where found a extra space.
But actually, open a powershell in this folder, I found there should be no space at the end of folder
.
So the error is: When the player is trying to load resources from folder
, the StreamRead
function will raise System.IO.DirectoryNotFoundException
because folder + ' \\' + resource
is not exist.
OK it's a bug of osu db. Tried to optimize it
Closed