DeMille / encrusted

A z-machine (interpreter) for text adventure games like Zork
https://sterlingdemille.com/encrusted
MIT License
127 stars 20 forks source link

Panic from zmachine #9

Open aee11 opened 6 years ago

aee11 commented 6 years ago

Pressed back a few times and then issued a command and got the following error:

Unexpected zmachine error:

Error: Panicked at 'already borrowed: BorrowMutError', /checkout/src/libcore/result.rs:916:4
    at env.trace.t (https://sterlingdemille.com/encrusted/worker.js:1:18917)
    at t (https://sterlingdemille.com/encrusted/worker.js:1:8345)
    at wasm-function[160]:622
    at wasm-function[231]:310
    at wasm-function[230]:117
    at wasm-function[229]:123
    at wasm-function[382]:147
    at wasm-function[40]:139
    at wasm-function[122]:3616
    at b.feed (https://sterlingdemille.com/encrusted/worker.js:1:9896)
DeMille commented 5 years ago

Not a very helpful error stack huh? I must have stripped debug info when I deployed. I changed the build process to make stack traces better.

Was this after hitting back in your browser or the back/undo button?

aee11 commented 5 years ago

I was hitting the back button on my phone (Chrome/Android) which undid my actions so I guess it's the undo button. Tried reproducing without any results, sorry.

DeMille commented 5 years ago

Gotcha. I think I've run into this too, but I haven't been able to reproduce it either. I'll keep an eye out for it.