starik222 / BooruDatasetTagManager

MIT License
1.39k stars 123 forks source link

Hello, I got error message when open folder #38

Closed qturtleq closed 1 year ago

qturtleq commented 1 year ago

Hello there

I got "out of memory" error when I tried to open a folder. Does anyone know how to fix it? Thank you very much.

Here is the message I got:

如需叫用 Just-In-Time (JIT) 偵錯的詳細資料, 請參閱本訊息結尾處 (而非這個對話方塊) 的資訊。

** 例外狀況文字 ** System.AggregateException: One or more errors occurred. (Out of memory.) (Out of memory.) (Out of memory.) (Out of memory.) (Out of memory.) (Out of memory.) (Out of memory.) (Out of memory.) (Out of memory.) (Out of memory.) (Out of memory.) (Out of memory.) (Out of memory.) (Out of memory.) (Out of memory.) ---> System.OutOfMemoryException: Out of memory. at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at System.Drawing.Image.FromFile(String filename) at BooruDatasetTagManager.DatasetManager.DataItem.MakeThumb(String imagePath, Int32 imgSize) at BooruDatasetTagManager.DatasetManager.DataItem..ctor(String imagePath, Int32 imageSize, Boolean fixTags) at BooruDatasetTagManager.DatasetManager.<>cDisplayClass23_0.b2(String x) at System.Linq.Parallel.ForAllOperator1.ForAllEnumerator1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Linq.Parallel.QueryTask.<>c.<.cctor>b10_0(Object o) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b272_0(Object obj) 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 inner exception stack trace --- at System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose) at System.Linq.Parallel.SpoolingTask.SpoolForAll[TInputOutput,TIgnoreKey](QueryTaskGroupState groupState, PartitionedStream2 partitions, TaskScheduler taskScheduler) at System.Linq.Parallel.DefaultMergeHelper2.System.Linq.Parallel.IMergeHelper.Execute() at System.Linq.Parallel.MergeExecutor1.Execute() at System.Linq.Parallel.MergeExecutor1.Execute[TKey](PartitionedStream2 partitions, Boolean ignoreOutput, ParallelMergeOptions options, TaskScheduler taskScheduler, Boolean isOrdered, CancellationState cancellationState, Int32 queryId) at System.Linq.Parallel.PartitionedStreamMerger1.Receive[TKey](PartitionedStream2 partitionedStream) at System.Linq.Parallel.ForAllOperator1.WrapPartitionedStream[TKey](PartitionedStream2 inputStream, IPartitionedStreamRecipient1 recipient, Boolean preferStriping, QuerySettings settings) at System.Linq.Parallel.UnaryQueryOperator2.UnaryQueryOperatorResults.ChildResultsRecipient.Receive[TKey](PartitionedStream2 inputStream) at System.Linq.Parallel.ListQueryResults1.GivePartitionedStream(IPartitionedStreamRecipient1 recipient) at System.Linq.Parallel.UnaryQueryOperator2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient1 recipient) at System.Linq.Parallel.QueryOperator1.GetOpenedEnumerator(Nullable1 mergeOptions, Boolean suppressOrder, Boolean forEffect, QuerySettings querySettings) at System.Linq.Parallel.ForAllOperator1.RunSynchronously() at System.Linq.ParallelEnumerable.ForAll[TSource](ParallelQuery1 source, Action1 action) at BooruDatasetTagManager.DatasetManager.LoadFromFolder(String folder, Boolean fixTags) at BooruDatasetTagManager.Form1.openFolderToolStripMenuItem_Click(Object sender, EventArgs e) at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ToolStrip.WndProc(Message& m) at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam) ---> (Inner Exception #1) System.OutOfMemoryException: Out of memory. at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at System.Drawing.Image.FromFile(String filename) at BooruDatasetTagManager.DatasetManager.DataItem.MakeThumb(String imagePath, Int32 imgSize) at BooruDatasetTagManager.DatasetManager.DataItem..ctor(String imagePath, Int32 imageSize, Boolean fixTags) at BooruDatasetTagManager.DatasetManager.<>c__DisplayClass23_0.<LoadFromFolder>b__2(String x) at System.Linq.Parallel.ForAllOperator1.ForAllEnumerator1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Linq.Parallel.QueryTask.<>c.<.cctor>b__10_0(Object o) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj) 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)<---

---> (Inner Exception #2) System.OutOfMemoryException: Out of memory. at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at System.Drawing.Image.FromFile(String filename) at BooruDatasetTagManager.DatasetManager.DataItem.MakeThumb(String imagePath, Int32 imgSize) at BooruDatasetTagManager.DatasetManager.DataItem..ctor(String imagePath, Int32 imageSize, Boolean fixTags) at BooruDatasetTagManager.DatasetManager.<>cDisplayClass23_0.b2(String x) at System.Linq.Parallel.ForAllOperator1.ForAllEnumerator1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Linq.Parallel.QueryTask.<>c.<.cctor>b10_0(Object o) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b272_0(Object obj) 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)<---

---> (Inner Exception #3) System.OutOfMemoryException: Out of memory. at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at System.Drawing.Image.FromFile(String filename) at BooruDatasetTagManager.DatasetManager.DataItem.MakeThumb(String imagePath, Int32 imgSize) at BooruDatasetTagManager.DatasetManager.DataItem..ctor(String imagePath, Int32 imageSize, Boolean fixTags) at BooruDatasetTagManager.DatasetManager.<>cDisplayClass23_0.b2(String x) at System.Linq.Parallel.ForAllOperator1.ForAllEnumerator1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Linq.Parallel.QueryTask.<>c.<.cctor>b10_0(Object o) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b272_0(Object obj) 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)<---

---> (Inner Exception #4) System.OutOfMemoryException: Out of memory. at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at System.Drawing.Image.FromFile(String filename) at BooruDatasetTagManager.DatasetManager.DataItem.MakeThumb(String imagePath, Int32 imgSize) at BooruDatasetTagManager.DatasetManager.DataItem..ctor(String imagePath, Int32 imageSize, Boolean fixTags) at BooruDatasetTagManager.DatasetManager.<>cDisplayClass23_0.b2(String x) at System.Linq.Parallel.ForAllOperator1.ForAllEnumerator1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Linq.Parallel.QueryTask.<>c.<.cctor>b10_0(Object o) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b272_0(Object obj) 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)<---

---> (Inner Exception #5) System.OutOfMemoryException: Out of memory. at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at System.Drawing.Image.FromFile(String filename) at BooruDatasetTagManager.DatasetManager.DataItem.MakeThumb(String imagePath, Int32 imgSize) at BooruDatasetTagManager.DatasetManager.DataItem..ctor(String imagePath, Int32 imageSize, Boolean fixTags) at BooruDatasetTagManager.DatasetManager.<>cDisplayClass23_0.b2(String x) at System.Linq.Parallel.ForAllOperator1.ForAllEnumerator1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Linq.Parallel.QueryTask.<>c.<.cctor>b10_0(Object o) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b272_0(Object obj) 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)<---

---> (Inner Exception #6) System.OutOfMemoryException: Out of memory. at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at System.Drawing.Image.FromFile(String filename) at BooruDatasetTagManager.DatasetManager.DataItem.MakeThumb(String imagePath, Int32 imgSize) at BooruDatasetTagManager.DatasetManager.DataItem..ctor(String imagePath, Int32 imageSize, Boolean fixTags) at BooruDatasetTagManager.DatasetManager.<>cDisplayClass23_0.b2(String x) at System.Linq.Parallel.ForAllOperator1.ForAllEnumerator1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Linq.Parallel.QueryTask.<>c.<.cctor>b10_0(Object o) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b272_0(Object obj) 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)<---

---> (Inner Exception #7) System.OutOfMemoryException: Out of memory. at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at System.Drawing.Image.FromFile(String filename) at BooruDatasetTagManager.DatasetManager.DataItem.MakeThumb(String imagePath, Int32 imgSize) at BooruDatasetTagManager.DatasetManager.DataItem..ctor(String imagePath, Int32 imageSize, Boolean fixTags) at BooruDatasetTagManager.DatasetManager.<>cDisplayClass23_0.b2(String x) at System.Linq.Parallel.ForAllOperator1.ForAllEnumerator1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Linq.Parallel.QueryTask.<>c.<.cctor>b10_0(Object o) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b272_0(Object obj) 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)<---

---> (Inner Exception #8) System.OutOfMemoryException: Out of memory. at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at System.Drawing.Image.FromFile(String filename) at BooruDatasetTagManager.DatasetManager.DataItem.MakeThumb(String imagePath, Int32 imgSize) at BooruDatasetTagManager.DatasetManager.DataItem..ctor(String imagePath, Int32 imageSize, Boolean fixTags) at BooruDatasetTagManager.DatasetManager.<>cDisplayClass23_0.b2(String x) at System.Linq.Parallel.ForAllOperator1.ForAllEnumerator1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Linq.Parallel.QueryTask.<>c.<.cctor>b10_0(Object o) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b272_0(Object obj) 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)<---

---> (Inner Exception #9) System.OutOfMemoryException: Out of memory. at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at System.Drawing.Image.FromFile(String filename) at BooruDatasetTagManager.DatasetManager.DataItem.MakeThumb(String imagePath, Int32 imgSize) at BooruDatasetTagManager.DatasetManager.DataItem..ctor(String imagePath, Int32 imageSize, Boolean fixTags) at BooruDatasetTagManager.DatasetManager.<>cDisplayClass23_0.b2(String x) at System.Linq.Parallel.ForAllOperator1.ForAllEnumerator1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Linq.Parallel.QueryTask.<>c.<.cctor>b10_0(Object o) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b272_0(Object obj) 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)<---

---> (Inner Exception #10) System.OutOfMemoryException: Out of memory. at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at System.Drawing.Image.FromFile(String filename) at BooruDatasetTagManager.DatasetManager.DataItem.MakeThumb(String imagePath, Int32 imgSize) at BooruDatasetTagManager.DatasetManager.DataItem..ctor(String imagePath, Int32 imageSize, Boolean fixTags) at BooruDatasetTagManager.DatasetManager.<>cDisplayClass23_0.b2(String x) at System.Linq.Parallel.ForAllOperator1.ForAllEnumerator1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Linq.Parallel.QueryTask.<>c.<.cctor>b10_0(Object o) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b272_0(Object obj) 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)<---

---> (Inner Exception #11) System.OutOfMemoryException: Out of memory. at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at System.Drawing.Image.FromFile(String filename) at BooruDatasetTagManager.DatasetManager.DataItem.MakeThumb(String imagePath, Int32 imgSize) at BooruDatasetTagManager.DatasetManager.DataItem..ctor(String imagePath, Int32 imageSize, Boolean fixTags) at BooruDatasetTagManager.DatasetManager.<>cDisplayClass23_0.b2(String x) at System.Linq.Parallel.ForAllOperator1.ForAllEnumerator1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Linq.Parallel.QueryTask.<>c.<.cctor>b10_0(Object o) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b272_0(Object obj) 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)<---

---> (Inner Exception #12) System.OutOfMemoryException: Out of memory. at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at System.Drawing.Image.FromFile(String filename) at BooruDatasetTagManager.DatasetManager.DataItem.MakeThumb(String imagePath, Int32 imgSize) at BooruDatasetTagManager.DatasetManager.DataItem..ctor(String imagePath, Int32 imageSize, Boolean fixTags) at BooruDatasetTagManager.DatasetManager.<>cDisplayClass23_0.b2(String x) at System.Linq.Parallel.ForAllOperator1.ForAllEnumerator1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Linq.Parallel.QueryTask.<>c.<.cctor>b10_0(Object o) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b272_0(Object obj) 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)<---

---> (Inner Exception #13) System.OutOfMemoryException: Out of memory. at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at System.Drawing.Image.FromFile(String filename) at BooruDatasetTagManager.DatasetManager.DataItem.MakeThumb(String imagePath, Int32 imgSize) at BooruDatasetTagManager.DatasetManager.DataItem..ctor(String imagePath, Int32 imageSize, Boolean fixTags) at BooruDatasetTagManager.DatasetManager.<>cDisplayClass23_0.b2(String x) at System.Linq.Parallel.ForAllOperator1.ForAllEnumerator1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Linq.Parallel.QueryTask.<>c.<.cctor>b10_0(Object o) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b272_0(Object obj) 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)<---

---> (Inner Exception #14) System.OutOfMemoryException: Out of memory. at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at System.Drawing.Image.FromFile(String filename) at BooruDatasetTagManager.DatasetManager.DataItem.MakeThumb(String imagePath, Int32 imgSize) at BooruDatasetTagManager.DatasetManager.DataItem..ctor(String imagePath, Int32 imageSize, Boolean fixTags) at BooruDatasetTagManager.DatasetManager.<>cDisplayClass23_0.b2(String x) at System.Linq.Parallel.ForAllOperator1.ForAllEnumerator1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Linq.Parallel.QueryTask.<>c.<.cctor>b10_0(Object o) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b272_0(Object obj) 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)<---

** 已載入的組件 ** System.Private.CoreLib 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Private.CoreLib.dll

BooruDatasetTagManager 組件版本: 1.6.4.0 Win32 版本: 1.6.4.0 程式碼基底: file:///D:/ai/BooruDatasetTagManager/BooruDatasetTagManager.dll

System.Runtime 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Runtime.dll

System.Windows.Forms 組件版本: 6.0.2.0 Win32 版本: 6.0.1423.7402 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Windows.Forms.dll

System.ComponentModel.Primitives 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.ComponentModel.Primitives.dll

System.Windows.Forms.Primitives 組件版本: 6.0.2.0 Win32 版本: 6.0.1423.7402 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Windows.Forms.Primitives.dll

System.Runtime.InteropServices 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Runtime.InteropServices.dll

System.Drawing.Primitives 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Drawing.Primitives.dll

System.Collections.Specialized 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Collections.Specialized.dll

System.Drawing.Common 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Drawing.Common.dll

System.Threading 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Threading.dll

System.Diagnostics.TraceSource 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Diagnostics.TraceSource.dll

System.Collections 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Collections.dll

Newtonsoft.Json 組件版本: 13.0.0.0 Win32 版本: 13.0.3.27908 程式碼基底: file:///D:/ai/BooruDatasetTagManager/Newtonsoft.Json.dll

System.Runtime.Serialization.Formatters 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Runtime.Serialization.Formatters.dll

System.Collections.Concurrent 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Collections.Concurrent.dll

System.Linq.Expressions 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Linq.Expressions.dll

System.Runtime.Numerics 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Runtime.Numerics.dll

System.Private.Uri 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Private.Uri.dll

System.Linq 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Linq.dll

System.ComponentModel.TypeConverter 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.ComponentModel.TypeConverter.dll

System.ObjectModel 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.ObjectModel.dll

System.Runtime.Serialization.Primitives 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Runtime.Serialization.Primitives.dll

System.Data.Common 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Data.Common.dll

System.Xml.ReaderWriter 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Xml.ReaderWriter.dll

System.Private.Xml 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Private.Xml.dll

System.ComponentModel 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.ComponentModel.dll

System.Reflection.Emit.ILGeneration 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Reflection.Emit.ILGeneration.dll

System.Reflection.Emit.Lightweight 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Reflection.Emit.Lightweight.dll

System.Reflection.Primitives 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Reflection.Primitives.dll

System.Memory 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Memory.dll

Anonymously Hosted DynamicMethods Assembly 組件版本: 0.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Private.CoreLib.dll

Microsoft.Win32.Primitives 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/Microsoft.Win32.Primitives.dll

System.ComponentModel.EventBasedAsync 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.ComponentModel.EventBasedAsync.dll

System.Threading.Thread 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Threading.Thread.dll

Accessibility 組件版本: 4.0.0.0 Win32 版本: 6.0.1423.7402 程式碼基底: file:///D:/ai/BooruDatasetTagManager/Accessibility.dll

System.Numerics.Vectors 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Numerics.Vectors.dll

Microsoft.Win32.SystemEvents 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/Microsoft.Win32.SystemEvents.dll

System.Collections.NonGeneric 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Collections.NonGeneric.dll

System.Net.Http 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Net.Http.dll

System.Net.Primitives 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Net.Primitives.dll

System.Diagnostics.Tracing 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Diagnostics.Tracing.dll

System.Diagnostics.DiagnosticSource 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Diagnostics.DiagnosticSource.dll

System.Net.Security 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Net.Security.dll

System.Security.Cryptography.X509Certificates 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Security.Cryptography.X509Certificates.dll

mscorlib 組件版本: 4.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/mscorlib.dll

System.Threading.ThreadPool 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Threading.ThreadPool.dll

System.Runtime.Loader 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Runtime.Loader.dll

System.Windows.Forms.resources 組件版本: 6.0.2.0 Win32 版本: 6.0.1423.7402 程式碼基底: file:///D:/ai/BooruDatasetTagManager/zh-Hant/System.Windows.Forms.resources.dll

System.Resources.Extensions 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Resources.Extensions.dll

System.Drawing 組件版本: 6.0.2.0 Win32 版本: 6.0.1423.7402 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Drawing.dll

System.Diagnostics.FileVersionInfo 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Diagnostics.FileVersionInfo.dll

System.Runtime.CompilerServices.Unsafe 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Runtime.CompilerServices.Unsafe.dll

System.Linq.Parallel 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Linq.Parallel.dll

System.Diagnostics.StackTrace 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Diagnostics.StackTrace.dll

System.Reflection.Metadata 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Reflection.Metadata.dll

System.Collections.Immutable 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Collections.Immutable.dll

System.IO.MemoryMappedFiles 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.IO.MemoryMappedFiles.dll

System.Text.Encoding.Extensions 組件版本: 6.0.0.0 Win32 版本: 6.0.1423.7309 程式碼基底: file:///D:/ai/BooruDatasetTagManager/System.Text.Encoding.Extensions.dll

** JIT 偵錯 **

starik222 commented 1 year ago

Try copying some images to a separate folder and opening them in the program. If you get the same error, please send the archive with these images. Also write your system parameters (OS version, RAM size)

qturtleq commented 1 year ago

I found out that I have no problem open files that generated by Stable diffusion, but the training dataset i got from internet is not working

the filename looks like this "1ab81ae70a03154c404b4f0b131678121f8f6c34228b413f1ccebd6c625c5012.png"

I tried to rename it to 1234.png, and still not working, does the photo contains something (virus or encryption)?

qturtleq commented 1 year ago

ok, I finally found out what the problem is. Those images was originally .webp file, I didn't covert those files using any software like photoshop or GIMP. Instead, I just save as .png files. It works without any problem until I use BDTM. After converted those files to png using GIMP, I can succeefully open in BDTM.