rmcrackan / Libation

Libation: Liberate your Library
GNU General Public License v3.0
2.72k stars 149 forks source link

Crash: Object reference not set to an instance of an object. #1017

Open gitliba opened 6 days ago

gitliba commented 6 days ago

I get the following crash: Object reference not set to an instance of an object.

I have a lot of titles not marked as downloaded due to a reinstall, so they try to re-download when I restart the program. Can I bulk select a large range of titles as "Not to be processed" during auto-download? I think I could avoid this bug if it was not trying to process so many files.

Describe the bug Crashes during use:

To Reproduce Steps to reproduce the behavior: Run program

Expected behavior I'd like to be able to mark a large range of files as Not To Be Processed with a shift-click.

Screenshots If applicable, add screenshots to help explain your problem. image

Platform

Windows 10

Log file too big to upload - 45mb

Crash listing:

Object reference not set to an instance of an object.

at LibationWinForms.GridView.ProductsGrid.GetVisibleBooks() in D:\a\Libation\Libation\Source\LibationWinForms\GridView\ProductsGrid.cs:line 36 at LibationWinForms.Form1.setLiberatedVisibleMenuItem() in D:\a\Libation\Libation\Source\LibationWinForms\Form1.VisibleBooks.cs:line 30 at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at LibationWinForms.Form1.setLiberatedVisibleMenuItemAsync(Object _, Object ) in D:\a\Libation\Libation\Source\LibationWinForms\Form1.VisibleBooks.cs:line 27 at System.Threading.Tasks.Task.<>c.b128_0(Object state) at System.Threading.ExecutionContext.RunForThreadPoolUnsafe[TState](ExecutionContext executionContext, Action1 callback, TState& state) at System.Threading.QueueUserWorkItemCallback1.Execute() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

rmcrackan commented 6 days ago

Sorry about this bug. Please attach your log file to this ticket.