System Event Bug -- applicationStart Firing Twice

I’ve noticed in Daily Build 1088, the applicationStart event is firing twice when run on iOS devices (tested on an iPhone 5 running 6.1.3 and an iPad 3 running 6.1.2).  The bug is only on the device, not the simulator.  I haven’t tested on an Android device.

To exhibit it, just build the following main.lua in a project using Daily Build 1088.  When you run it on a device, you’ll see the print output appear twice.  Build using Daily Build 1080, and the print output only appears once (as it should).  I haven’t tested where between 1080 and 1088 this bug was introduced.

[lua]

local onSystemEvent = function( event )    

    for k,v in pairs(event) do

        print(k,v)

    end

end

Runtime:addEventListener( “system”, onSystemEvent )

[/lua]

Of course, this is easy to work around by just setting a flag the first time applicationStart is fired, but the bug should still be fixed.

I’ve submitted it as case 22758.

Thanks!

  • Andrew