Skip to content

Stable crashing on any release from exact artist page #408

Description

@DarkVoyage

Description

Normally I don't have any problems downloading any releases, I met some cases with duplicate names, when album is published twice under different slugs, it leads to a crash, but if you filter them out - it will be fine.

Here's a whole artist page is a problem, if you try any release - it leads to a crash.

Log file

2026-05-04 15:57:12.4326  INFO   BandcampDownloader.UI.Dialogs.WindowMain  Starting download...
2026-05-04 15:57:12.4690  INFO   BandcampDownloader.UI.Dialogs.WindowMain  Retrieving album data for https://haraldgrosskopf.bandcamp.com/album/synthesist
2026-05-04 15:57:12.4690  DEBUG  BandcampDownloader.UI.Dialogs.WindowMain  Downloading album info from url: https://haraldgrosskopf.bandcamp.com/album/synthesist
2026-05-04 15:57:14.0194  INFO   BandcampDownloader.UI.Dialogs.WindowMain  Computing size for album "Synthesist"...
2026-05-04 15:57:14.0506  DEBUG  BandcampDownloader.UI.Dialogs.WindowMain  Downloading artwork from url: https://f4.bcbits.com/img/a0381596307_0.jpg
2026-05-04 15:57:14.3317  FATAL  BandcampDownloader.Core.ExceptionHandler  System.NullReferenceException Object reference not set to an instance of an object.
2026-05-04 15:57:14.3581  FATAL  BandcampDownloader.Core.ExceptionHandler     at BandcampDownloader.Helpers.StreamExtensions.ToArrayAsync(Stream stream, CancellationToken cancellationToken) in D:\GitHub\BandcampDownloader\src\BandcampDownloader\Helpers\StreamExtensions.cs:line 13
   at BandcampDownloader.Helpers.StreamExtensions.ToArrayAsync(Stream stream, CancellationToken cancellationToken) in D:\GitHub\BandcampDownloader\src\BandcampDownloader\Helpers\StreamExtensions.cs:line 16
   at BandcampDownloader.Bandcamp.Download.DownloadManager.DownloadCoverArtAsync(Album album, CancellationToken cancellationToken) in D:\GitHub\BandcampDownloader\src\BandcampDownloader\Bandcamp\Download\DownloadManager.cs:line 379
   at BandcampDownloader.Bandcamp.Download.DownloadManager.DownloadCoverArtAsync(Album album, CancellationToken cancellationToken) in D:\GitHub\BandcampDownloader\src\BandcampDownloader\Bandcamp\Download\DownloadManager.cs:line 380
   at BandcampDownloader.Bandcamp.Download.DownloadManager.DownloadAlbumAsync(Album album, CancellationToken cancellationToken) in D:\GitHub\BandcampDownloader\src\BandcampDownloader\Bandcamp\Download\DownloadManager.cs:line 152
   at BandcampDownloader.Bandcamp.Download.DownloadManager.<StartDownloadsAsync>b__18_0(Album album, CancellationToken ct) in D:\GitHub\BandcampDownloader\src\BandcampDownloader\Bandcamp\Download\DownloadManager.cs:line 94
   at System.Threading.Tasks.Parallel.<>c__53`1.<<ForEachAsync>b__53_0>d.MoveNext()
--- End of stack trace from previous location ---
   at BandcampDownloader.Bandcamp.Download.DownloadManager.StartDownloadsAsync(CancellationToken cancellationToken) in D:\GitHub\BandcampDownloader\src\BandcampDownloader\Bandcamp\Download\DownloadManager.cs:line 89
   at BandcampDownloader.UI.Dialogs.WindowMain.StartDownloadAsync(String inputUrls, CancellationToken cancellationToken) in D:\GitHub\BandcampDownloader\src\BandcampDownloader\UI\Dialogs\WindowMain.xaml.cs:line 348
   at BandcampDownloader.UI.Dialogs.WindowMain.<>c__DisplayClass11_0.<<ButtonStart_Click>b__0>d.MoveNext() in D:\GitHub\BandcampDownloader\src\BandcampDownloader\UI\Dialogs\WindowMain.xaml.cs:line 128
--- End of stack trace from previous location ---
   at BandcampDownloader.UI.Dialogs.WindowMain.ButtonStart_Click(Object sender, RoutedEventArgs e) in D:\GitHub\BandcampDownloader\src\BandcampDownloader\UI\Dialogs\WindowMain.xaml.cs:line 107
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__124_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at BandcampDownloader.App.Main() in D:\GitHub\BandcampDownloader\artifacts\obj\BandcampDownloader\release_win-x64\App.g.cs:line 47

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions