Hey Lerg,
I am trying to recreate this issue, but having limited success. So I am going through my code looking for other issues.
One thing I tried was putting Niklas Frykholm’s Globals Locker (through SSK2, thanks Ed) in my code to try and catch globals to see if they could be an issue (in my logs there is a line “CMSession retain count > 1!” which I Googled and is something about memory management?).
The global lock spits a dummy when I require GPGS with the following code;
ssk.globals.lock( \_G ) local gpgs = require( "plugin.gpgs" )
In my trial where I am trying to recreate the issue I get (this is from the Corona Simulator Console);
ERROR: Runtime error [string "-- For more details on this file and what y..."]:135: GLOBALS are locked -- settings must be declared local or prefix with '\_\_' for globals. stack traceback: [C]: in function 'error' /Users/craigbriggs/Google Drive/Corona Projects/Car Game/TestApp/ssk2/external/global\_lock.lua:28: in function \</Users/craigbriggs/Google Drive/Corona Projects/Car Game/TestApp/ssk2/external/global\_lock.lua:25\> [string "-- For more details on this file and what y..."]:135: in main chunk ?: in function 'require' /Users/craigbriggs/Google Drive/Corona Projects/Car Game/TestApp/main.lua:77: in main chunk
In my actual game when I do the same thing it seems to run perfectly in the simulator and Android, but on the iPad I get the following in the console; (not sure why the error message is different, but it ends with the same result);
ERROR: Runtime error GLOBALS are locked -- CoronaProvider must be declared local or prefix with '\_\_' for globals. stack traceback: [C]: ? [C]: in function 'error' /var/mobile/Containers/Data/Application/BEAAE846-22F9-4D5B-8F3D-0D0D515918C8/Documents/.CoronaLive/ssk2/external/global\_lock.lua:28: in function \</var/mobile/Containers/Data/Application/BEAAE846-22F9-4D5B-8F3D-0D0D515918C8/Documents/.CoronaLive/ssk2/external/global\_lock.lua:25\> [C]: ? [C]: in function 'require' ?: in function 'require' /var/mobile/Containers/Data/Application/BEAAE846-22F9-4D5B-8F3D-0D0D515918C8/Documents/.CoronaLive/main.lua:190: in main chunk [C]: in function 'run' ?: in main chunk
Not sure if this is anything, just thought I would bring it up.
Cheers
Craig