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

python main.py gen has MemoryError crash #316

Closed
fuqiyang11 opened this issue Aug 23, 2023 · 1 comment
Closed

python main.py gen has MemoryError crash #316

fuqiyang11 opened this issue Aug 23, 2023 · 1 comment

Comments

@fuqiyang11
Copy link

if ip file is too big, such as 1.5GB
lines = self.src_handle.read().splitlines() will crash

it can work when i modify to:
# lines = self.src_handle.read().splitlines()
while True:
# for line in lines:
line = self.src_handle.readline().strip("\n")
if not line:
break

@fuqiyang11
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant