Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed nanomath/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file removed nanomath/__pycache__/nanomath.cpython-312.pyc
Binary file not shown.
6 changes: 6 additions & 0 deletions nanoplot/NanoPlot.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from os import path
import logging
import sys
import concurrent.futures
import nanoplot.utils as utils
from nanoplot.version import __version__
from nanoplotter.plot import Plot
Expand Down Expand Up @@ -109,6 +110,11 @@ def main():
plots = make_plots(datadf, settings)
make_report(plots, settings)
logging.info("Finished!")
except concurrent.futures.BrokenExecutor:
logging.error("Worker process crashed during file processing", exc_info=True)
print("\n\n\nA worker process crashed, likely due to insufficient memory.")
print("If you are working with a very large file, please try running NanoPlot with the --huge flag.\n")
raise
except Exception as e:
logging.error(e, exc_info=True)
print(f"\n\n\nIf you read this then NanoPlot {__version__} has crashed :-(")
Expand Down
Loading