inseven / opolua

A compiled-OPL interpreter for iOS written in Lua
https://opolua.org
MIT License
12 stars 0 forks source link

Internal Error: memory.lua:373: Out of bounds! #189

Closed jbmorley closed 2 years ago

jbmorley commented 2 years ago

Description

Click through the first couple of dialogs of Splitter, accepting the defaults, and you encounter this error.

Details

memory.lua:373: Out of bounds!
SPLITTER\ENTRY:000004C9: E9 [IoYield] 
TOOLBAR\TBARLINK: [Lua] toolbar.lua:64
SPLITTER\LINK:000000E8: 53 [RunProcedure] 0x0027 (name="TBARLINK" nargs=1)
stack traceback:
    [C]: in function 'assert'
    memory.lua:373: in method 'getVarForOffset'
    memory.lua:460: in method 'write'
    memory.lua:479: in function <memory.lua:470>
    [C]: in field 'checkCompletions'
    runtime.lua:1075: in method 'checkCompletions'
    ops.lua:1928: in function 'ops.IoYield'
    runtime.lua:806: in function <runtime.lua:791>
    [C]: in function 'xpcall'
    runtime.lua:923: in method 'pcallProc'
    runtime.lua:963: in method 'callProc'
    toolbar.lua:64: in field 'fn'
    runtime.lua:319: in method 'pushNewFrame'
    ops.lua:976: in function 'ops.RunProcedure'
    runtime.lua:806: in function <runtime.lua:791>
    [C]: in function 'xpcall'
    runtime.lua:923: in method 'pcallProc'
    runtime.lua:1278: in function 'runtime.runOpo'
tomsci commented 2 years ago

Works on my machine™️ using a splitters.sis with sha1 80b6e9b7015991b6eefc5fad68c26dd2d2372369. Is that what you're using?

jbmorley commented 2 years ago

Working for me now too. Perhaps your Num thing? 🤔

jbmorley commented 2 years ago

Closing as fixed.