2014.2365 - Invalid ParticleSystemObject

I’m trying the code found at http://coronalabs.com/blog/2014/06/24/tutorial-particle-collisions-in-liquidfun but I’m getting the following error:

/Users/test/Documents/Corona/test/main.lua:13: Invalid ParticleSystemObject.

message

stack traceback:

?: in function <?:221>

C: in function ‘newParticleSystem’

/Users/test/Documents/Corona/test/main.lua:13: in main chunk

According to the blog post, this function should be present in this build but apparently it’s not. 

You need an image for the particle in your project. (particle.png)

Ah, I see. It’s working now, thanks!

It would be great if the error could be a little bit more specific or probably have something mentioned in the docs which is usually what people check first. 

By the way, this code crashes on both iPhone 5 and iPad 3 but runs fine on the simulator. When I say crashes what I mean is it doesn’t even start. I just went over the blog posts on LiquidFun again but can’t see any other extra settings I should be using.

Am I doing something wrong or is this library still in beta?

Hi @chillfok,

Which code is crashing, more specifically? Line 13 as shown in the tutorial, as well as cited in the error you’re getting?

Best regards,

Brent

P.S. - do you have a Pro account which you’re using? Your label says Starter, and LiquidFun is currently restricted to Pro/Enterprise… so I’m just curious how you’re using it. :slight_smile:

Hi Brent,

I have a new Pro subscription. The forum might have a cached version (I also see Starter). I have the latest build and I’m running the blog code verbatim. Once I created the particle.png image, the code started working as expected but only inside the simulator. In the devices the code just won’t even start.

This is what I see in the device crash reports. I don’t know how to symbolicate them so the errors are pretty meaningless:

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)

Exception Subtype: KERN_INVALID_ADDRESS at 0x6c829d34

Triggered by Thread:  0

Thread 0 Crashed:

0   test                           0x0009c642 0x9000 + 603714

1   test                           0x000b070a 0x9000 + 685834

2   test                           0x000ae2a2 0x9000 + 676514

3   test                           0x00083f18 0x9000 + 503576

4   test                           0x000840e8 0x9000 + 504040

5   test                           0x00090304 0x9000 + 553732

6   test                           0x0009142e 0x9000 + 558126

7   test                           0x000840f2 0x9000 + 504050

8   test                           0x00091ba4 0x9000 + 560036

9   test                           0x00084320 0x9000 + 504608

10  test                           0x0007db48 0x9000 + 478024

11  test                           0x000a4156 0x9000 + 635222

12  test                           0x000bae44 0x9000 + 728644

13  test                           0x000bc780 0x9000 + 735104

14  test                           0x000bc2c6 0x9000 + 733894

15  test                           0x0001e6c2 0x9000 + 87746

16  test                           0x0001ade6 0x9000 + 73190

17  test                           0x0001af70 0x9000 + 73584

18  test                           0x0001b712 0x9000 + 75538

19  UIKit                         0x3087c5a2 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 270

20  UIKit                         0x3087bef6 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1606

21  UIKit                         0x30876586 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 710

22  UIKit                         0x30812704 -[UIApplication handleEvent:withNewEvent:] + 3536

23  UIKit                         0x3081186c -[UIApplication sendEvent:] + 68

24  UIKit                         0x30875cc4 _UIApplicationHandleEvent + 612

25  GraphicsServices               0x32e4baea _PurpleEventCallback + 606

26  GraphicsServices               0x32e4b6d2 PurpleEventCallback + 30

27  CoreFoundation                 0x2dfbbab4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32

28  CoreFoundation                 0x2dfbba4e __CFRunLoopDoSource1 + 342

29  CoreFoundation                 0x2dfba222 __CFRunLoopRun + 1394

30  CoreFoundation                 0x2df24f0a CFRunLoopRunSpecific + 518

31  CoreFoundation                 0x2df24cee CFRunLoopRunInMode + 102

32  UIKit                         0x30874eec -[UIApplication _run] + 756

33  UIKit                         0x30870168 UIApplicationMain + 1132

34  test                           0x0000f02e 0x9000 + 24622

35  libdyld.dylib                 0x3909eab4 start + 0

Hi @chillfok,

I just tested and am getting the same crash on my iPhone5, using the sample project we supply. I know this worked before, so there must have been some regression bug in the latest build.

I’ll report this to the engineers a.s.a.p. Thanks for flagging it.

Brent

Not a problem. I’ll keep an eye out for the bugfix.

By the way Brent, is there an ETA for this bugfix?

Hi @chillfok,

I helped them narrow it down to something with collisions, so they’re working on it. Shouldn’t be too much longer for a fix…

Brent

Great! Thanks for the update.

You need an image for the particle in your project. (particle.png)

Ah, I see. It’s working now, thanks!

It would be great if the error could be a little bit more specific or probably have something mentioned in the docs which is usually what people check first. 

By the way, this code crashes on both iPhone 5 and iPad 3 but runs fine on the simulator. When I say crashes what I mean is it doesn’t even start. I just went over the blog posts on LiquidFun again but can’t see any other extra settings I should be using.

Am I doing something wrong or is this library still in beta?

Hi @chillfok,

Which code is crashing, more specifically? Line 13 as shown in the tutorial, as well as cited in the error you’re getting?

Best regards,

Brent

P.S. - do you have a Pro account which you’re using? Your label says Starter, and LiquidFun is currently restricted to Pro/Enterprise… so I’m just curious how you’re using it. :slight_smile:

Hi Brent,

I have a new Pro subscription. The forum might have a cached version (I also see Starter). I have the latest build and I’m running the blog code verbatim. Once I created the particle.png image, the code started working as expected but only inside the simulator. In the devices the code just won’t even start.

This is what I see in the device crash reports. I don’t know how to symbolicate them so the errors are pretty meaningless:

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)

Exception Subtype: KERN_INVALID_ADDRESS at 0x6c829d34

Triggered by Thread:  0

Thread 0 Crashed:

0   test                           0x0009c642 0x9000 + 603714

1   test                           0x000b070a 0x9000 + 685834

2   test                           0x000ae2a2 0x9000 + 676514

3   test                           0x00083f18 0x9000 + 503576

4   test                           0x000840e8 0x9000 + 504040

5   test                           0x00090304 0x9000 + 553732

6   test                           0x0009142e 0x9000 + 558126

7   test                           0x000840f2 0x9000 + 504050

8   test                           0x00091ba4 0x9000 + 560036

9   test                           0x00084320 0x9000 + 504608

10  test                           0x0007db48 0x9000 + 478024

11  test                           0x000a4156 0x9000 + 635222

12  test                           0x000bae44 0x9000 + 728644

13  test                           0x000bc780 0x9000 + 735104

14  test                           0x000bc2c6 0x9000 + 733894

15  test                           0x0001e6c2 0x9000 + 87746

16  test                           0x0001ade6 0x9000 + 73190

17  test                           0x0001af70 0x9000 + 73584

18  test                           0x0001b712 0x9000 + 75538

19  UIKit                         0x3087c5a2 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 270

20  UIKit                         0x3087bef6 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1606

21  UIKit                         0x30876586 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 710

22  UIKit                         0x30812704 -[UIApplication handleEvent:withNewEvent:] + 3536

23  UIKit                         0x3081186c -[UIApplication sendEvent:] + 68

24  UIKit                         0x30875cc4 _UIApplicationHandleEvent + 612

25  GraphicsServices               0x32e4baea _PurpleEventCallback + 606

26  GraphicsServices               0x32e4b6d2 PurpleEventCallback + 30

27  CoreFoundation                 0x2dfbbab4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32

28  CoreFoundation                 0x2dfbba4e __CFRunLoopDoSource1 + 342

29  CoreFoundation                 0x2dfba222 __CFRunLoopRun + 1394

30  CoreFoundation                 0x2df24f0a CFRunLoopRunSpecific + 518

31  CoreFoundation                 0x2df24cee CFRunLoopRunInMode + 102

32  UIKit                         0x30874eec -[UIApplication _run] + 756

33  UIKit                         0x30870168 UIApplicationMain + 1132

34  test                           0x0000f02e 0x9000 + 24622

35  libdyld.dylib                 0x3909eab4 start + 0

Hi @chillfok,

I just tested and am getting the same crash on my iPhone5, using the sample project we supply. I know this worked before, so there must have been some regression bug in the latest build.

I’ll report this to the engineers a.s.a.p. Thanks for flagging it.

Brent

Not a problem. I’ll keep an eye out for the bugfix.

By the way Brent, is there an ETA for this bugfix?

Hi @chillfok,

I helped them narrow it down to something with collisions, so they’re working on it. Shouldn’t be too much longer for a fix…

Brent