Zulip Chat Archive
Stream: general
Topic: Lean Live doesn't recover when restarting the server
Shreyas Srinivas (Jul 01 2024 at 13:33):
Of late, I frequently run into the following issue:
- I am completing a definition which is therefore an error until comleted.
- Lean server stops and the restart message pops up
- I restart
- Infoview doesn't recover and I still see the error message of the crash.
I am not sure how to reproduce this. Normally I quickly refresh the server and things are fine again. (Thankfully the code isn't lost because it is in the URL).
Shreyas Srinivas (Jul 01 2024 at 13:34):
I am not sure how to reproduce this error
Kim Morrison (Jul 01 2024 at 13:49):
Next time it happens please share the URL (with the code), and we can see if just retyping the last definition suffices to repro?
Shreyas Srinivas (Jul 01 2024 at 13:50):
I tried that once before (not pasting the code here, but retyping it in a new window). It is not a deterministic bug
Shreyas Srinivas (Jul 01 2024 at 13:51):
If it helps, this has been happening to me since 4.9.0-rc1 was released
Michael Stoll (Jul 01 2024 at 14:42):
I've noticed this, too, for quite some time (and I think I reported it somewhere on Zulip, but need to search more throroughly to find it). Reloading the page works.
Michael Stoll (Jul 01 2024 at 14:44):
Here.
Shreyas Srinivas (Jul 01 2024 at 14:45):
Interesting. I don't remember running into this issue until last month. But that coincides with when I started using firefox regularly instead of a certain chrome based browser
Shreyas Srinivas (Jul 08 2024 at 12:04):
It happened again and I have copied the error message : Server process for file:///project/mathlib-demo.lean crashed, likely due to a stack overflow or a bug.
Shreyas Srinivas (Jul 08 2024 at 12:05):
Best guess is that there is some sort of a worker process that is handling each session and its instance of the lean LSP has crashed in this process. Refreshing spawns a fresh process. The corresponding fix would be to restart such a process when a lean server restart is requested
Shreyas Srinivas (Jul 08 2024 at 12:06):
CC: @Jon Eugster
Last updated: May 02 2025 at 03:31 UTC