error() sometimes doesn't show up but ScummVM terminates
|Reported by:||m-kiewitz||Owned by:||sev-|
we talked about this yesterday on IRC. Sometimes at least for SCI engine, an error() doesn't make the debug console popup, but instead ScummVM terminates. This is caused by if (debugger && !debugger->isAttached()) in static void defaultErrorHandler(const char *msg) (engines/engine.cpp)
It seems debugger is never detached. Just put an error() inside reg_t kGraphSaveBox(EngineState *s, int argc, reg_t *argv) of sci engine (sci/engine/kgraphics.cpp), then run almost any game, enter debugger, exit debugger and wait for the error() to occur. At least here ScummVM exits immediately instead of showing the error().
Regards M. Kiewitz
Ticket imported from: #3030449. Ticket imported from: bugs/4925.