# Particle crashes the application

**URL:** <https://forum.defold.com/t/particle-crashes-the-application/69577>\
**Category:** Bugs\
**Created:** [October 30, 2021, 7:22pm UTC](https://forum.defold.com/t/particle-crashes-the-application/69577 "2021-10-30T19:22:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ItsPixel](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/i/74df32/32.png) [@ItsPixel](https://forum.defold.com/u/ItsPixel)\
**Post date:** [October 30, 2021, 7:22pm UTC](https://forum.defold.com/t/particle-crashes-the-application/69577/1 "2021-10-30T19:22:31Z")

</div>

Hi, I have noticed that recently my application, which is build for Android started to crash at particle animation start:

```lua
particlefx.play("rewards:/rankParticles#flow")

```

Interesting that for MacOs particles are rendered fine and it does not crashes.  
The logs while crashing shows:

```lua
# 0 pc 0x19b9c /system/lib/libc.so <unknown>+0
# 1 pc 0x1d792 /system/lib/libc.so abort+53
# 2 pc 0x1d9ff /system/lib/libc.so __assert2+22
# 3 pc 0x8d990 ...8z0b3KIeUA==/lib/arm/libAlien.so <unknown>+0
# 4 pc 0x147894 ...8z0b3KIeUA==/lib/arm/libAlien.so <unknown>+0
# 5 pc 0x15034c ...8z0b3KIeUA==/lib/arm/libAlien.so <unknown>+0
# 6 pc 0x14f864 ...8z0b3KIeUA==/lib/arm/libAlien.so <unknown>+0
# 7 pc 0x2d740 ...8z0b3KIeUA==/lib/arm/libAlien.so <unknown>+0
# 8 pc 0x2ea0c ...8z0b3KIeUA==/lib/arm/libAlien.so <unknown>+0
# 9 pc 0x2a1fc ...8z0b3KIeUA==/lib/arm/libAlien.so <unknown>+0
#10 pc 0x2a150 ...8z0b3KIeUA==/lib/arm/libAlien.so <unknown>+0
#11 pc 0x1d1720 ...8z0b3KIeUA==/lib/arm/libAlien.so <unknown>+0
#12 pc 0x65ad7 /system/lib/libc.so _ZL15__pthread_startPv+22
#13 pc 0x1e9ad /system/lib/libc.so __start_thread+32

```

Can somebody advice where can be the problem?

---

<div class="post-metadata">

**Author:** ![ItsPixel](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/i/74df32/32.png) [@ItsPixel](https://forum.defold.com/u/ItsPixel)\
**Post date:** [October 30, 2021, 7:26pm UTC](https://forum.defold.com/t/particle-crashes-the-application/69577/2 "2021-10-30T19:26:24Z")

</div>

Tried to download MacOs version 1.2.87 from [d.defold.com](http://d.defold.com) to compare the results, but it shows:

 ![Screenshot 2021-10-30 at 22.25.30](https://forum-defold-uploads.b-cdn.net/original/3X/c/f/cf8a8670fa9429e72fb9f8e5965416a531fa9950.png)

Also it seems it is not possible to download any old version for macOS 10.11+

---

<div class="post-metadata">

**Author:** ![AGulev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/agulev/32/4541_2.png) [@AGulev](https://forum.defold.com/u/AGulev)\
**Post date:** [October 30, 2021, 7:28pm UTC](https://forum.defold.com/t/particle-crashes-the-application/69577/3 "2021-10-30T19:28:41Z")

</div>

The log you shared does not provide any useful info. Could you please build Debug version of the game, and show logs from it?  
Also it would be nice if you can test if macos Bundle (not build) works fine.

---

<div class="post-metadata">

**Author:** ![ItsPixel](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/i/74df32/32.png) [@ItsPixel](https://forum.defold.com/u/ItsPixel)\
**Post date:** [October 30, 2021, 8:05pm UTC](https://forum.defold.com/t/particle-crashes-the-application/69577/4 "2021-10-30T20:05:40Z")

</div>

Forgot to mention: Defold version: 1.2.188  
Macos bundle version crashes at particle animation too with logs:

```lua
INFO:DLIB: SSDP: Started on address 192.168.1.235
Assertion failed: (size <= Capacity()), function SetSize, file /Users/runner/work/defold/defold/tmp/dynamo_home/sdk/include/dmsdk/dlib/array.h, line 472.
INFO:CRASH: Successfully wrote Crashdump to file: /Users/user/Library/Application Support/Defold/_crash
ERROR:CRASH: CALL STACK:

# 0 pc 0x30bd7d libxpc.dylib _sigtramp+29

[1] 30789 abort      
Saving session...completed.
Deleting expired sessions... 6 completed.

[Process completed]

```

Not sure how it is possible to read \_crash file seems has some encoding…

---

<div class="post-metadata">

**Author:** ![AGulev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/agulev/32/4541_2.png) [@AGulev](https://forum.defold.com/u/AGulev)\
**Post date:** [October 30, 2021, 8:33pm UTC](https://forum.defold.com/t/particle-crashes-the-application/69577/5 "2021-10-30T20:33:48Z")

</div>

Could you please try to isolate this crash in minimal repocase and send it to me here on in PM ?

---

<div class="post-metadata">

**Author:** ![AGulev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/agulev/32/4541_2.png) [@AGulev](https://forum.defold.com/u/AGulev)\
**Post date:** [January 20, 2022, 4:44pm UTC](https://forum.defold.com/t/particle-crashes-the-application/69577/6 "2022-01-20T16:44:00Z")

</div>

We found the reason of this crash, here is a temp workaround:

> [@Assertion failed: size \<= Capacity()](https://forum.defold.com/t/assertion-failed-size-capacity/70141/4):
>
> I think we know what the problem is.  
> As a temp workaround until the fix, you may create a factory with GO that has only one component: a particle without emitters. It should help for now.
> 
> Thank you for this report and especially for a repocase!
> 
> UPD: [https://github.com/defold/defold/issues/6333](https://github.com/defold/defold/issues/6333)
