Opened 8 months ago

Closed 8 months ago

#14613 closed defect (fixed)

Assertion failure in Sci::MessageState::getRecord(Sci::CursorStack&, bool, Sci::MessageRecord&)

Reported by: lephilousophe Owned by: sluicebox
Priority: normal Component: Engine: SCI
Version: Keywords:
Cc: Game:

Description (last modified by lephilousophe)

Version 2.7.1

Assertion failure: '_size > 0' in ./common/array.h:190 (T &Common::Array<Sci::MessageTuple>::back() [T = Sci::MessageTuple])

Here is a crash report from Google Play console:

backtrace:
  #00  pc 0x0000000000089a04  /apex/com.android.runtime/lib64/bionic/libc.so (abort+180)
  #01  pc 0x00000000006f331c  /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+596)
  #02  pc 0x0000000000016ea8  /apex/com.android.art/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+80)
  #03  pc 0x0000000000006e3c  /system/lib64/liblog.so (__android_log_assert+308)
  #04  pc 0x00000000019dea98  /data/app/~~cOxGeMsGdPbuTQqcJUVnfg==/org.scummvm.scummvm-y9svG_3JSkvUtAgrFhnDCw==/lib/arm64/libscummvm.so (__assert2+40)
  #05  pc 0x0000000002c919f8  /data/app/~~cOxGeMsGdPbuTQqcJUVnfg==/org.scummvm.scummvm-y9svG_3JSkvUtAgrFhnDCw==/lib/arm64/libscummvm.so (Sci::MessageState::getRecord(Sci::CursorStack&, bool, Sci::MessageRecord&)+1004)
  #06  pc 0x0000000002c91c14  /data/app/~~cOxGeMsGdPbuTQqcJUVnfg==/org.scummvm.scummvm-y9svG_3JSkvUtAgrFhnDCw==/lib/arm64/libscummvm.so (Sci::MessageState::nextMessage(Sci::reg_t)+72)
  #07  pc 0x0000000002c8e998  /data/app/~~cOxGeMsGdPbuTQqcJUVnfg==/org.scummvm.scummvm-y9svG_3JSkvUtAgrFhnDCw==/lib/arm64/libscummvm.so (Sci::kMessage(Sci::EngineState*, int, Sci::reg_t*)+400)
  #08  pc 0x0000000002cb3ee0  /data/app/~~cOxGeMsGdPbuTQqcJUVnfg==/org.scummvm.scummvm-y9svG_3JSkvUtAgrFhnDCw==/lib/arm64/libscummvm.so (Sci::callKernelFunc(Sci::EngineState*, int, int)+684)
  #09  pc 0x0000000002cb3954  /data/app/~~cOxGeMsGdPbuTQqcJUVnfg==/org.scummvm.scummvm-y9svG_3JSkvUtAgrFhnDCw==/lib/arm64/libscummvm.so (Sci::run_vm(Sci::EngineState*)+6344)
  #10  pc 0x0000000002c6a5b4  /data/app/~~cOxGeMsGdPbuTQqcJUVnfg==/org.scummvm.scummvm-y9svG_3JSkvUtAgrFhnDCw==/lib/arm64/libscummvm.so (Sci::SciEngine::runGame()+148)
  #11  pc 0x0000000002c69834  /data/app/~~cOxGeMsGdPbuTQqcJUVnfg==/org.scummvm.scummvm-y9svG_3JSkvUtAgrFhnDCw==/lib/arm64/libscummvm.so (Sci::SciEngine::run()+1924)
  #12  pc 0x00000000019e90f4  /data/app/~~cOxGeMsGdPbuTQqcJUVnfg==/org.scummvm.scummvm-y9svG_3JSkvUtAgrFhnDCw==/lib/arm64/libscummvm.so (scummvm_main+7012)
  #13  pc 0x00000000019db3a8  /data/app/~~cOxGeMsGdPbuTQqcJUVnfg==/org.scummvm.scummvm-y9svG_3JSkvUtAgrFhnDCw==/lib/arm64/libscummvm.so (JNI::main(_JNIEnv*, _jobject*, _jobjectArray*)+340)
  #14  pc 0x00000000000222f0  /data/app/~~cOxGeMsGdPbuTQqcJUVnfg==/org.scummvm.scummvm-y9svG_3JSkvUtAgrFhnDCw==/oat/arm64/base.odex (art_jni_trampoline+128)

Change History (2)

comment:1 by lephilousophe, 8 months ago

Description: modified (diff)

comment:2 by sluicebox, 8 months ago

Owner: set to sluicebox
Resolution: fixed
Status: newclosed

Fixed in: https://github.com/scummvm/scummvm/commit/3faf0d163ba154b594341e07a2fc81096043a737

Thanks for creating this ticket! I have confirmed that this is not a fatal error in the original interpreter, and updated our behavior to match.

Note: See TracTickets for help on using tickets.