Memory Issue
See original GitHub issueDescription
Titan do not start when i fill in all my accounts. If I have a look in the Task manager, the Memory is mostly free, so I do not understand why it throws an out of memory exception
Reproduction Steps
- Fill in the accounts.json (like 3000~4000 Accounts)
- Start Titan
Errors
14:54:02 [Main] ERROR Titan - An error occured.
System.Threading.Tasks.TaskSchedulerException: An exception was thrown by a TaskScheduler. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Threading.Thread.StartInternal(IPrincipal principal, StackCrawlMark& stackMark)
at System.Threading.Thread.Start(StackCrawlMark& stackMark)
at System.Threading.Thread.Start(Object parameter)
at System.Threading.Tasks.ThreadPoolTaskScheduler.QueueTask(Task task)
at System.Threading.Tasks.Task.ScheduleAndStart(Boolean needsProtection)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ScheduleAndStart(Boolean needsProtection)
at System.Threading.Tasks.Task.InternalStartNew(Task creatingTask, Delegate action, Object state, CancellationToken cancellationToken, TaskScheduler scheduler, TaskCreationOptions options, InternalTaskOptions internalOptions, StackCrawlMark& stackMark)
at System.Threading.Tasks.TaskFactory.StartNew(Action action, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
at Serilog.Sinks.Async.BackgroundWorkerSink..ctor(ILogEventSink pipeline, Int32 bufferCapacity, Boolean blockWhenFull, IAsyncLogEventSinkMonitor monitor)
at Serilog.LoggerConfigurationAsyncExtensions.<>c__DisplayClass2_0.<Async>b__0(ILogEventSink wrappedSink)
at Serilog.Configuration.LoggerSinkConfiguration.Wrap(LoggerSinkConfiguration loggerSinkConfiguration, Func`2 wrapSink, Action`1 configureWrappedSink, LogEventLevel restrictedToMinimumLevel, LoggingLevelSwitch levelSwitch)
at Serilog.LoggerConfigurationAsyncExtensions.Async(LoggerSinkConfiguration loggerSinkConfiguration, Action`1 configure, IAsyncLogEventSinkMonitor monitor, Int32 bufferSize, Boolean blockWhenFull)
at Titan.Logging.LogCreator.CreateDebugLogger(String name)
at Titan.Logging.LogCreator.Create(String name)
at Titan.Account.Impl.UnprotectedAccount..ctor(JsonAccount json)
at Titan.Managers.AccountManager.ParseAccountFile()
at Titan.Titan.Main(String[] args)
Press any key to exit Titan...
System Information
Operating System: Windows 10 Pro Titan version: newest (I cannot tell the number, bcs Titan wont start, but i compiled it new from source
[EDIT]
- It always fails when it is between Index 140 and Index 150
- Checked it out on linux. It passes the 140 Index mark, but I got another error…
Unhandled Exception:
System.IO.IOException: Too many open files
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <04750267503a43e5929c1d1ba19daf3e>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <04750267503a43e5929c1d1ba19daf3e>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
at System.IO.StreamWriter.CreateFile (System.String path, System.Boolean append, System.Boolean checkHost) [0x0001c] in <04750267503a43e5929c1d1ba19daf3e>:0
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) [0x00055] in <04750267503a43e5929c1d1ba19daf3e>:0
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00000] in <04750267503a43e5929c1d1ba19daf3e>:0
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append) [0x00008] in <04750267503a43e5929c1d1ba19daf3e>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string,bool)
at System.IO.File.CreateText (System.String path) [0x00000] in <04750267503a43e5929c1d1ba19daf3e>:0
at Titan.Managers.AccountManager.SaveIndexFile () [0x0006a] in <0599992006fe4de38915939b47e8ad06>:0
at Titan.Managers.AccountManager.ParseIndexFile () [0x001b3] in <0599992006fe4de38915939b47e8ad06>:0
at Titan.Managers.AccountManager.ParseAccountFile () [0x003c3] in <0599992006fe4de38915939b47e8ad06>:0
at Titan.Titan.Main (System.String[] args) [0x00490] in <0599992006fe4de38915939b47e8ad06>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.IOException: Too many open files
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <04750267503a43e5929c1d1ba19daf3e>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <04750267503a43e5929c1d1ba19daf3e>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
at System.IO.StreamWriter.CreateFile (System.String path, System.Boolean append, System.Boolean checkHost) [0x0001c] in <04750267503a43e5929c1d1ba19daf3e>:0
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) [0x00055] in <04750267503a43e5929c1d1ba19daf3e>:0
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00000] in <04750267503a43e5929c1d1ba19daf3e>:0
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append) [0x00008] in <04750267503a43e5929c1d1ba19daf3e>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string,bool)
at System.IO.File.CreateText (System.String path) [0x00000] in <04750267503a43e5929c1d1ba19daf3e>:0
at Titan.Managers.AccountManager.SaveIndexFile () [0x0006a] in <0599992006fe4de38915939b47e8ad06>:0
at Titan.Managers.AccountManager.ParseIndexFile () [0x001b3] in <0599992006fe4de38915939b47e8ad06>:0
at Titan.Managers.AccountManager.ParseAccountFile () [0x003c3] in <0599992006fe4de38915939b47e8ad06>:0
at Titan.Titan.Main (System.String[] args) [0x00490] in <0599992006fe4de38915939b47e8ad06>:0
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Memory loss: When to seek help
Many medical problems can cause memory loss or other dementia-like symptoms. Most of these conditions can be treated. Your doctor can screen you...
Read more >Forgetfulness — 7 types of normal memory problems
Seven normal memory problems · 1. Transience · 2. Absentmindedness · 3. Blocking · 4. Misattribution · 5. Suggestibility · 6. Bias ·...
Read more >Memory Loss: Causes, Symptoms & Treatment
Memory loss is when you have consistent issues remembering things you could previously recall. It can be either temporary or permanent.
Read more >Memory Loss - Symptoms and Causes
Memory loss (amnesia) is unusual forgetfulness. You may not be able to remember new events, recall one or more memories of the past,...
Read more >5 Surprising Causes of Memory Loss
5 Surprising Causes of Memory Loss · 1. Stress, Anxiety, and Depression · 2. Sleep Problems · 3. Medications · 4. Nutritional Deficiency...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Marc3842h support 100
okay I got it to work This issue can be closed now. Thx for the support