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

Out of memory (presumable memory leak) (internal identifier 4) #179

Open
icecream17 opened this issue Nov 23, 2024 · 0 comments
Open

Out of memory (presumable memory leak) (internal identifier 4) #179

icecream17 opened this issue Nov 23, 2024 · 0 comments

Comments

@icecream17
Copy link

icecream17 commented Nov 23, 2024

Repeating read set.mm and erase results in an Out of memory error:

*** FATAL ERROR:  Out of memory.
Internal identifier (for technical support):  #4 (statement)
To solve this problem, remove some unnecessary statements or file
inclusions to reduce the size of your input source.
Monitor memory periodically with SHOW MEMORY.

This is a sign of a memory leak somewhere. Memory leakage seem to speed up when loading large proofs

input (~test2.txt)
read set.mm
erase
read set.mm
erase
read set.mm
erase
read set.mm
erase
read set.mm
erase
read set.mm
erase
read set.mm
erase
read set.mm
erase
read set.mm
erase
read set.mm
erase
read set.mm
erase
read set.mm
erase
read set.mm
erase
read set.mm
erase
read set.mm
erase
read set.mm
erase
read set.mm
erase
read set.mm
erase
read set.mm
erase
read set.mm
erase
read set.mm
erase
full output
c:\set.mm>metamath
Metamath - Version 0.198 7-Aug-2021           Type HELP for help, EXIT to exit.
MM> sub ~test2.txt
Taking command lines from file "~test2.txt"...
MM> read set.mm
Reading source file "set.mm"... 46059886 bytes
46059886 bytes were read into the source buffer.
The source has 223696 statements; 2846 are $a and 43599 are $p.
No errors were found.  However, proofs were not checked.  Type VERIFY PROOF *
if you want to check them.
MM> erase
Metamath has been reset to the starting state.
MM> read set.mm
Reading source file "set.mm"... 46059886 bytes
46059886 bytes were read into the source buffer.
The source has 223696 statements; 2846 are $a and 43599 are $p.
No errors were found.  However, proofs were not checked.  Type VERIFY PROOF *
if you want to check them.
MM> erase
Metamath has been reset to the starting state.
MM> read set.mm
Reading source file "set.mm"... 46059886 bytes
46059886 bytes were read into the source buffer.
The source has 223696 statements; 2846 are $a and 43599 are $p.
No errors were found.  However, proofs were not checked.  Type VERIFY PROOF *
if you want to check them.
MM> erase
Metamath has been reset to the starting state.
MM> read set.mm
Reading source file "set.mm"... 46059886 bytes
46059886 bytes were read into the source buffer.
The source has 223696 statements; 2846 are $a and 43599 are $p.
No errors were found.  However, proofs were not checked.  Type VERIFY PROOF *
if you want to check them.
MM> erase
Metamath has been reset to the starting state.
MM> read set.mm
Reading source file "set.mm"... 46059886 bytes
46059886 bytes were read into the source buffer.
The source has 223696 statements; 2846 are $a and 43599 are $p.
No errors were found.  However, proofs were not checked.  Type VERIFY PROOF *
if you want to check them.
MM> erase
Metamath has been reset to the starting state.
MM> read set.mm
Reading source file "set.mm"... 46059886 bytes
46059886 bytes were read into the source buffer.
The source has 223696 statements; 2846 are $a and 43599 are $p.
No errors were found.  However, proofs were not checked.  Type VERIFY PROOF *
if you want to check them.
MM> erase
Metamath has been reset to the starting state.
MM> read set.mm
Reading source file "set.mm"... 46059886 bytes
46059886 bytes were read into the source buffer.
The source has 223696 statements; 2846 are $a and 43599 are $p.
No errors were found.  However, proofs were not checked.  Type VERIFY PROOF *
if you want to check them.
MM> erase
Metamath has been reset to the starting state.
MM> read set.mm
Reading source file "set.mm"... 46059886 bytes
46059886 bytes were read into the source buffer.
The source has 223696 statements; 2846 are $a and 43599 are $p.
No errors were found.  However, proofs were not checked.  Type VERIFY PROOF *
if you want to check them.
MM> erase
Metamath has been reset to the starting state.
MM> read set.mm
Reading source file "set.mm"... 46059886 bytes
46059886 bytes were read into the source buffer.
The source has 223696 statements; 2846 are $a and 43599 are $p.
No errors were found.  However, proofs were not checked.  Type VERIFY PROOF *
if you want to check them.
MM> erase
Metamath has been reset to the starting state.
MM> read set.mm
Reading source file "set.mm"... 46059886 bytes
46059886 bytes were read into the source buffer.
The source has 223696 statements; 2846 are $a and 43599 are $p.
No errors were found.  However, proofs were not checked.  Type VERIFY PROOF *
if you want to check them.
MM> erase
Metamath has been reset to the starting state.
MM> read set.mm
Reading source file "set.mm"... 46059886 bytes
46059886 bytes were read into the source buffer.
The source has 223696 statements; 2846 are $a and 43599 are $p.
No errors were found.  However, proofs were not checked.  Type VERIFY PROOF *
if you want to check them.
MM> erase
Metamath has been reset to the starting state.
MM> read set.mm
Reading source file "set.mm"... 46059886 bytes
46059886 bytes were read into the source buffer.
The source has 223696 statements; 2846 are $a and 43599 are $p.
No errors were found.  However, proofs were not checked.  Type VERIFY PROOF *
if you want to check them.
MM> erase
Metamath has been reset to the starting state.
MM> read set.mm
Reading source file "set.mm"... 46059886 bytes
46059886 bytes were read into the source buffer.
The source has 223696 statements; 2846 are $a and 43599 are $p.
No errors were found.  However, proofs were not checked.  Type VERIFY PROOF *
if you want to check them.
MM> erase
Metamath has been reset to the starting state.
MM> read set.mm
Reading source file "set.mm"... 46059886 bytes
46059886 bytes were read into the source buffer.
*** FATAL ERROR:  Out of memory.
Internal identifier (for technical support):  #4 (statement)
To solve this problem, remove some unnecessary statements or file
inclusions to reduce the size of your input source.
Monitor memory periodically with SHOW MEMORY.

Press <return> to exit Metamath.
erase
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