Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.OutOfMemoryException #256

Open
irleader opened this issue Jan 2, 2025 · 1 comment
Open

System.OutOfMemoryException #256

irleader opened this issue Jan 2, 2025 · 1 comment
Labels
C-crash Category: A bad bug which leads to a crash.

Comments

@irleader
Copy link

irleader commented Jan 2, 2025

">> Error: Exception of type 'System.OutOfMemoryException' was thrown.
--> Stacktrace:
| System.Text.StringBuilder.ToString()
| HtmlGenerator.XmlBuilder1.ToString() | HtmlGenerator.XmlBuilder1.AddT
╷ Stitch.HTMLReport.CreateAndSaveAside(AsideType, Int32, Int32, Int32)
╰─ D:\a\stitch\stitch\stitch\Reporting\HTMLReport\Report.cs:line 111

Error: One or more errors occurred. (Exception raised in creation of aside. See above message for more details.)
--> Stacktrace:
| System.Threading.Tasks.TaskReplicator.RunTState
| System.Threading.Tasks.Parallel.ForWorkerTLocal
--> End of stacktrace from previous location.
| System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(...)
| System.Threading.Tasks.Parallel.ForWorkerTLocal
| System.Threading.Tasks.Parallel.ForEachWorkerTSource,TLocal
╷ Stitch.HTMLReport.CreateAsides()
╰─ D:\a\stitch\stitch\stitch\Reporting\HTMLReport\Report.cs:line 33
╷ Stitch.HTMLReport.Save(String)
╰─ D:\a\stitch\stitch\stitch\Reporting\HTMLReport\Report.cs:line 675
Please include this entire error if you open a bug report.
Stitch version: 1.5.0+d17c6b6"

I have 128GB physical memory, and even more virtual memory. I have been monitoring the memory usage, it seems there is no memory leakage.

@douweschulte
Copy link
Member

The out of memory exception is ultimately caused by the allocator of C# which has a limit of 2 GB (from the top of my head) for any one single allocation. This means that no single page generated by Stitch can be above this limit. The only way to circumvent this issue is to massage the program until the files are within the limit. Some of the drastic options that can help are the number of input data files, the cutoffscore for placement of the peptides. Something less drastic (less likely to remove data that you are interested in) is turning up the ambiguous threshold (to 1), but this might not change enough to make it work.

@douweschulte douweschulte added the C-crash Category: A bad bug which leads to a crash. label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-crash Category: A bad bug which leads to a crash.
Projects
None yet
Development

No branches or pull requests

2 participants