[Scummvm-tracker] [ScummVM] #10534: MADE: RTZ - assertion on game start
Adrian Frühwirth
trac at scummvm.org
Sun May 20 13:47:24 CEST 2018
#10534: MADE: RTZ - assertion on game start
-----------------------------+--------------------------
Reporter: raziel- | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Engine: MADE
Resolution: | Keywords:
Game: Return to Zork |
-----------------------------+--------------------------
Comment (by bonki):
No worries :-)
Adding breakpoints on lines 137/138 isn't really help unfortunately, the
problem is that your breakpoint triggers every time the engine does a
{{{seek}}} and it seems that the {{{_handle}}} isn't immediately invalid
so the first call is not relevant/interesting.
We are only interested in the call to {{{seek}}} when {{{_handle}}}
actually is invalid. So you would have to step through all calls and find
the one which triggers the assertion if you can't make the debugger you're
using provide a backtrace when the assertion already has happened (weird).
As an easy workaround you could remove the line {{{assert(_handle)}}}
(L137) and add
{{{
if (!_handle)
error("foo");
}}}
then recompile and add a breakpoint on the second line (now L138).
--
Ticket URL: <https://bugs.scummvm.org/ticket/10534#comment:7>
ScummVM <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list