Particle Candy - Possible Crash

I’m using a method similar to the fireworks model where I randomly call a function that is cycling through 3 emitters.

I’m getting a rare crash and in looking at the code, since the function is called randomly, what happens if the first emitter is still running when I try to run it a second time.

Could this cause a crash?

[import]uid: 19626 topic_id: 23208 reply_id: 323208[/import]

While this may be a problem, I trapped against it by making sure the emitter is done before I re-use it.

But I caught this crash:

Runtime error ...Path/To/MyApp/lib\_particle\_candy.lua:1189: attempt to perform arithmetic on field 'scaleVariation' (a nil value) stack traceback: [C]: ? ...Path/To/MyApp/lib\_particle\_candy.lua:1189: in function 'Update' ...op/Projects/Path/To/MyApp/finale.lua:249: in function <...op><br> ?: in function <?:215><br>Bus error: 10<br>

Any thoughts on this? This is basically the fireworks sample module. [import]uid: 19626 topic_id: 23208 reply_id: 92908[/import] </…op>

Rob, please send us your code (with all the changes you made, including media files) so we can have a look at it and see what’s exactly going on there -or post the sample code here if you only changed a few lines.

[import]uid: 10504 topic_id: 23208 reply_id: 93044[/import]

Well the projects is under an NDA, so I will try to build a simple representative test case.

[import]uid: 19626 topic_id: 23208 reply_id: 93073[/import]

Thanks. Please send it to support -at- x-pressive.com and we’ll take a look at it. [import]uid: 10504 topic_id: 23208 reply_id: 93110[/import]