craftos2 icon indicating copy to clipboard operation
craftos2 copied to clipboard

CraftOS-PC Online freezes randomly after some time

Open MCJack123 opened this issue 3 years ago • 2 comments

Describe the bug CraftOS-PC Online freezes at some point after starting. This is due to some sort of deadlock in the render thread, which should never happen but something in Emscripten is causing the lock to get stuck.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://www.craftos-pc.cc/online/
  2. Wait for CraftOS-PC to start up
  3. Do some stuff
  4. Notice that the screen freezes

Expected behavior The screen does not freeze.

Screenshots N/A

Environment (please complete the following information):

  • OS: All
  • OS Version: All
  • CraftOS-PC Version: Any since v2.5.?
  • Compiled from source? N/A

Additional context This is a confusing issue because a) this deadlock shouldn't be possible, and b) it didn't happen in previous versions. In addition, I currently cannot update Emscripten to any version later than 2.0.4 due to a weird bug in longjmp that affects ONLY craftos2-lua running in a separate thread (emscripten-core/emscripten#13166). This is going to be tough to get past, but hopefully in the future once LLVM/Emscripten gets support for exception longjmps (emscripten-core/emscripten#14976), I'll be able to upgrade and then see if the freezing issue is fixed as well.

MCJack123 avatar Oct 24 '21 22:10 MCJack123

A new update to Emscripten may have resolved this issue. I'm working on testing it more long-term to verify the fix.

MCJack123 avatar Dec 17 '21 06:12 MCJack123

Is this gonna be fixed any time soon? Since Copy Cat doesn't work well at all rip

Yu-Vitaqua-fer-Chronos avatar Apr 26 '22 12:04 Yu-Vitaqua-fer-Chronos

This should now be resolved with the latest update to the website. Please test to make sure it doesn't eat up memory anymore.

MCJack123 avatar Dec 17 '22 01:12 MCJack123