inseven / opolua

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

[ColourMix] Internal Error: memory.lua:420: Out of bounds: 6 len=4 #396

Closed jbmorley closed 2 months ago

jbmorley commented 2 months ago

Description

Opening the program.

Aside: You wouldn't believe the amount of code I wrote to raise this issue. 🙃

Metadata

Key Value
Title ColourMix
Source URL https://archive.org/download/psioncdvol2/PsionCDVol2.iso/Programs%2F589%2Fcolourmix.sis

Details

memory.lua:420: Out of bounds: 6 len=4
TOOLBAR\TBARBUTT: [Lua] ?
COLOURMIX\COLOURMIX:000003B9: 53 [RunProcedure] 0x001C (name="TBARBUTT" nargs=7)
TOOLBAR\TBARLINK: [Lua] modules/toolbar.lua:69
COLOURMIX\INIT:0000024F: 53 [RunProcedure] 0x00AB (name="TBARLINK" nargs=1)
stack traceback:
    [C]: in function 'error'
    memory.lua:420: in metamethod 'index'
    modules/toolbar.lua:159: in field 'fn'
    runtime.lua:301: in method 'pushNewFrame'
    ops.lua:1002: in function 'ops.RunProcedure'
    runtime.lua:876: in function <runtime.lua:861>
    [C]: in function 'xpcall'
    runtime.lua:995: in method 'pcallProc'
    runtime.lua:1041: in method 'callProc'
    modules/toolbar.lua:69: in field 'fn'
    runtime.lua:301: in method 'pushNewFrame'
    ops.lua:1002: in function 'ops.RunProcedure'
    runtime.lua:876: in function <runtime.lua:861>
    [C]: in function 'xpcall'
    runtime.lua:995: in method 'pcallProc'
    runtime.lua:1282: in function 'runtime.runOpo'
tomsci commented 2 months ago

ugh, that's due to the changes I made to fix #389 which enforces the fact that the series 5 only allowed 4 toolbar buttons. I guess this app is from a series 7 if it's trying to use 6?