inseven / opolua

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

Internal Error: -2 (KErrInvalidArgs) #190

Closed jbmorley closed 2 years ago

jbmorley commented 2 years ago

Description

Crash immediately after opening RMRGolf.

Details

-2 (KErrInvalidArgs)
RMRGOLF\LOADSETTINGS:00002DF6: 57 [CallFunction] 0x92 (Val)
RMRGOLF\MAIN:00000845: 53 [RunProcedure] 0x04E5 (name="LOADSETTINGS" nargs=0)
RMRSHARED\TBARLINK:000008FD: 6B [CallProcByStringExpr] nargs=0 type=0
RMRGOLF\TOOL:000000AF: 53 [RunProcedure] 0x0012 (name="TBARLINK" nargs=1)
stack traceback:
    [C]: in function 'assert'
    fns.lua:942: in function 'fns.Val'
    ops.lua:1006: in function 'ops.CallFunction'
    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

Not actually an issue with Val(), actually a bug in NumStr() when the RMRGolf.ini was being written out fixed in e79b57dd9c0a291a50e5ad1cd0cbfb4d80e6475f, which led to this error when it was read back in.