inseven / opolua

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

Internal Error: -62 (KErrNotReady) #223

Closed jbmorley closed 2 years ago

jbmorley commented 2 years ago

Description

Running Clock5.

Details

-62 (KErrNotReady)
CLOCK5\INITIALISE:0000FA5B: FF [NextOpcodeTable] 18 CallOpxFunc 0 43 (system LoadRsc)
CLOCK5\CLOCK5:0000066E: 53 [RunProcedure] 0x0579 (name="INITIALISE" nargs=0)
stack traceback:
    [C]: in function 'assert'
    opl.lua:1148: in function <opl.lua:1145>
    (...tail calls...)
    system.lua:359: in function 'opx.system.LoadRsc'
    ops.lua:2327: in function 'ops.CallOpxFunc'
    ops.lua:2209: in function 'ops.NextOpcodeTable'
    runtime.lua:816: in function <runtime.lua:801>
    [C]: in function 'xpcall'
    runtime.lua:933: in method 'pcallProc'
    runtime.lua:1288: in function 'runtime.runOpo'
tomsci commented 2 years ago

This one is a simple bug in LoadRsc not calling abs() on the path, but there are several other issues with Clock5 hiding behind it...

tomsci commented 2 years ago

Fixed in 887fca8a89d36faf890349011a7fd6693e08206c (and many subsequent commits for other issues found with Clock5...)