Timers works fine in the simulator, stops unexpectedly some Devices.

I really hate to keep bugging you guys… Luckily I don’t think this is a programming issue :slight_smile:

This program is pretty basic. only a handful of lines just to test it.

create = timer.performWithDelay( 1000, createThis, 0) 

This works properly in the simulator. It loops forever in the simulator, exactly what it’s suppose to do.

Yet I build it for android and stick it on any device. It seems to only loop 5-7 times at the most. (it doesn’t loop for ever.)

I change it to loop say 10 times and it would not make it that far. It would loop like 3 times?

I created a variable to count how many times it loops and it confirms that it stops early on devices.

I have nothing in the code to cancel the timer.

It’s almost like the timer is being cancelled automatically…

Is this a know bug on some devices?

I have tested it on:

Nexus Phone

Nexus 7 tablet

Galaxy s3

My guess would be that a bug somewhere is actually the cause of the problem.

Without seeing the code it’s hard to say. There’s certainly nothing wrong with your timer code (other than the fact it looks like a global variable - but that’s an entirely different matter).

My guess would be that a bug somewhere is actually the cause of the problem.

Without seeing the code it’s hard to say. There’s certainly nothing wrong with your timer code (other than the fact it looks like a global variable - but that’s an entirely different matter).