Page 1 of 1

particle system is sometimes crashing love for android

Posted: Sat Apr 04, 2015 4:50 am
by undef
While testing quadrant on Android I found out that the particle system I made sometimes crashes LÖVE.

I'm using 10 particle systems with two different randomly generated textures, 9 of them are identical, just with a randomly rotated texture.

So when I'm trying to run the attached .love on android, it crashes most of the time.
Does anyone have an idea why this happens?

Thanks for having a look!

Re: particle system is sometimes crashing love for android

Posted: Fri Apr 10, 2015 10:04 am
by fysx
Did you have a look at the logcat output? Also which LÖVE version are you using?

Re: particle system is sometimes crashing love for android

Posted: Fri Apr 10, 2015 12:35 pm
by undef
I did look at the logcat output, it said "something something particle system" that's why I was able to narrow it down to this little case.
I used the latest nightly of LÖVE for Android on a Samsung Galaxy S2 with Cyanogenmod.
I was hoping you would understand the logcat output better than I do, given that it crashes on your device as well - does it crash on your device?

Strangely it doesn't crash LÖVE on every try, but maybe 4/5 times when I try to run it (maybe it has something to do with the random generation of the textures?)

Anyway, I guess I was optimistic about that bug, I'll try to narrow it down even further and let you know what I find.

Edit:

Just upgraded to 0.9.2, the error is still present in that version.

Re: particle system is sometimes crashing love for android

Posted: Fri Apr 10, 2015 1:08 pm
by slime
Thanks for the test case! ParticleSystem:clone was causing the crash (my fault.) It's been fixed in the mobile-common repository, so the Android port should get the fix soon as well.

Re: particle system is sometimes crashing love for android

Posted: Fri Apr 10, 2015 1:53 pm
by fysx
It's now nicely snowing on my device. Currently building a new binary. Thanks slime!

Re: particle system is sometimes crashing love for android

Posted: Fri Apr 10, 2015 3:12 pm
by undef
Thank you slime! :)