Ask coding questions

← Back to all posts
Why is replit lagging and crashing?
BlAnKcOd3 (1)

I don't know why but recently, my friends' repl has been crashing with an error(The IDE is having a bit of trouble). We have about 500 lines of code in python so I don't know if it is because we have a lot of lines of code or something else.

Answered by OldWizard209 (1631) [earned 5 cycles]
View Answer
OldWizard209 (1631)

This happens because there are soo many lines in your code, that by the time it loads, replit raises an error saying "we are having trouble". To fix, this, either buy a hacker plan for more storage/speed or divide your code into multiple files so that they have different loading times preventing crashes.

IMayBeMe (548)

It's most likely due to a lack of processing power in repl's servers as they have to allocate that power to hundreds of different repls. My recommendation would be to use a local IDE which will use your CPU and will avoid internet-related issues.

ruiwenge2 (1158)

just click on reload