cognitive-engineering-lab / rust-book

The Rust Programming Language: Experimental Edition
https://rust-book.cs.brown.edu
Other
503 stars 82 forks source link

Memory leak in A new technology: the in-browser IDE #167

Open abdallhfattah opened 4 months ago

abdallhfattah commented 4 months ago

URL to the section(s) of the book with this problem: https://rust-book.cs.brown.edu/ch06-04-inventory.html

Description of the problem: answering a question add something to memory and it keeps getting larger , Since my laptop 8GB of RAM, it couldn't handle 4.5GB for browser tab so it kept on crashing on the last question as it accumulates to this consumption , it seems like question are not being dropped from memory as they interactive , in short the more answers you answer the more memory consumption

Suggested fix: the questions has to be separated in the new in-browser IDE as they load them self in the memory but never leaves i think unless you finish all the question and then they accumulate on each other

willcrichton commented 3 months ago

Which browser are you using? This might be the same issue as #110.

abdallhfattah commented 3 months ago

Which browser are you using? This might be the same issue as #110.

iam using brave , i have also tried this from edge and it was the having the same issue. you may want to clean the last window and only save the answer of the user. it seems like questions are getting on top of each other thus leading to memory issue