Founntain / osuplayer

Official osu!player repository. osu!player is a music player for the game osu! made by Dean 'peppy' Herbert. Written in the cross-platform framework AvaloniaUI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Player crashes when trying to play new song with empty playlist

RotateRM opened this issue · comments

A shit, it looks like you did something that the osu!player did not like. If you think this is a bug, please report this crashlog to Founntain by using the buttons below! (Also please don't forget to state how you achieved the crash e. g. what did you do, click etc.)

UTC Time: Wednesday, January 4, 2023 7:34 PM

Error stacktrace below:
Attempted to divide by zero.
at OsuPlayer.Modules.Audio.Player.GetNextSongToPlay(IList1 songSource, Int32 currentIndex, PlayDirection playDirection) in C:\Repositories\osuplayer\OsuPlayer\Modules\Audio\Player.cs:line 359 at OsuPlayer.Modules.Audio.Player.NextSong(PlayDirection playDirection) in C:\Repositories\osuplayer\OsuPlayer\Modules\Audio\Player.cs:line 277 at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state) at Avalonia.Threading.JobRunner.RunJobs(Nullable1 priority) in //src/Avalonia.Base/Threading/JobRunner.cs:line 37
at Avalonia.Win32.Win32Platform.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam) in /
/src/Windows/Avalonia.Win32/Win32Platform.cs:line 283
at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG& lpmsg)
at Avalonia.Win32.Win32Platform.RunLoop(CancellationToken cancellationToken) in //src/Windows/Avalonia.Win32/Win32Platform.cs:line 217
at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken) in /
/src/Avalonia.Base/Threading/Dispatcher.cs:line 65
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args) in //src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 120
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[T](T builder, String[] args, ShutdownMode shutdownMode) in /
/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 209
at OsuPlayer.Program.Main(String[] args) in C:\Repositories\osuplayer\OsuPlayer\Program.cs:line 30