particle system is sometimes crashing love for android

A project to port LÖVE to Android handhelds
Locked
User avatar
undef
Party member
Posts: 438
Joined: Mon Jun 10, 2013 3:09 pm
Location: Berlin
Contact:

particle system is sometimes crashing love for android

Post by undef » Sat Apr 04, 2015 4:50 am

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!
Attachments
snow.love
minimal particle system example
(913 Bytes) Downloaded 129 times
twitter | steam | indieDB

Check out quadrant on Steam!

User avatar
fysx
Citizen
Posts: 97
Joined: Mon Jan 30, 2012 8:36 pm
Contact:

Re: particle system is sometimes crashing love for android

Post by fysx » Fri Apr 10, 2015 10:04 am

Did you have a look at the logcat output? Also which LÖVE version are you using?
Bird thing: @fysxdotorg Blog thing: fysx.org

User avatar
undef
Party member
Posts: 438
Joined: Mon Jun 10, 2013 3:09 pm
Location: Berlin
Contact:

Re: particle system is sometimes crashing love for android

Post by undef » Fri Apr 10, 2015 12:35 pm

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.
twitter | steam | indieDB

Check out quadrant on Steam!

User avatar
slime
Solid Snayke
Posts: 2888
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: particle system is sometimes crashing love for android

Post by slime » Fri Apr 10, 2015 1:08 pm

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.

User avatar
fysx
Citizen
Posts: 97
Joined: Mon Jan 30, 2012 8:36 pm
Contact:

Re: particle system is sometimes crashing love for android

Post by fysx » Fri Apr 10, 2015 1:53 pm

It's now nicely snowing on my device. Currently building a new binary. Thanks slime!
Bird thing: @fysxdotorg Blog thing: fysx.org

User avatar
undef
Party member
Posts: 438
Joined: Mon Jun 10, 2013 3:09 pm
Location: Berlin
Contact:

Re: particle system is sometimes crashing love for android

Post by undef » Fri Apr 10, 2015 3:12 pm

Thank you slime! :)
twitter | steam | indieDB

Check out quadrant on Steam!

Locked

Who is online

Users browsing this forum: No registered users and 1 guest