xvrh / lottie-flutter

Render After Effects animations natively on Flutter. This package is a pure Dart implementation of a Lottie player.
https://pub.dev/packages/lottie
MIT License
1.16k stars 196 forks source link

Fatal animation error on big LottieFiles. #366

Open Daniel-Shegida opened 2 months ago

Daniel-Shegida commented 2 months ago

Do not know why the application that was launched on the pixel 6, RAM 2048, MB heap - 256 crashes on api 28 and 30, but it works fine on api 33.

Code:

Scaffold(
      body: Lottie.asset(
        'assets/lotty/entry_anim.json',
      ),
    );

flutter version:3.22.2 lottie-flutter version: 3.1.2 lottie-file: entry_anim.json

application error

[        ] F/libc    (30953): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 31025 (1.io), pid 30953 (e.pulse_rebuild)
[ +553 ms] *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
[        ] Build fingerprint: 'Android/sdk_phone_x86/generic_x86:11/RSR1.210210.001.A1/7193139:userdebug/dev-keys'
[        ] Revision: '0'
[        ] ABI: 'x86'
[  +25 ms] Timestamp: 2024-07-11 09:52:07+0000
[        ] pid: 30953, tid: 31025, name: 1.io  >>> com.example.pulse_rebuild <<<
[        ] uid: 10123
[        ] signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
[        ] Cause: null pointer dereference
[        ]     eax 00000000  ebx b9ac3234  ecx 0ecb0b97  edx e71cc6c1
[        ]     edi 00b7ee50  esi b6f799ac
[        ]     ebp b6f79968  esp b6f79940  eip b915abd0
[  +37 ms] backtrace:
[        ]       #00 pc 01cc9bd0  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #01 pc 01cc9d59  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #02 pc 01d4fd2f  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #03 pc 01d4fcd2  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #04 pc 01ea2a77  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #05 pc 02199ee1  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #06 pc 01bfca77  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #07 pc 01c03d5d  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #08 pc 021998b9  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #09 pc 01bfca77  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #10 pc 01c0079b  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #11 pc 01c006c8  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #12 pc 01c080e4  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #13 pc 01c08112  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #14 pc 00019337  /system/lib/libutils.so (android::SimpleLooperCallback::handleEvent(int, int, void*)+39) (BuildId: ab4be013cda31e8c45d48aa23a89d0f8)
[        ]       #15 pc 0001a367  /system/lib/libutils.so (android::Looper::pollInner(int)+1127) (BuildId: ab4be013cda31e8c45d48aa23a89d0f8)
[        ]       #16 pc 00019e96  /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+118) (BuildId: ab4be013cda31e8c45d48aa23a89d0f8)
[        ]       #17 pc 000133f5  /system/lib/libandroid.so (ALooper_pollOnce+101) (BuildId: f98006d4d736575082b552ff24b66f6c)
[        ]       #18 pc 01c0802d  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #19 pc 01c0067a  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #20 pc 01c00202  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #21 pc 01c05907  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #22 pc 01bfca77  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #23 pc 01c05647  /data/app/~~WrR6oS-G54dGfWBb1HJn4Q==/com.example.pulse_rebuild-BWs2jT0A011GASBBD2TN_g==/lib/x86/libflutter.so (BuildId: a6a3df4941f615197e317024d67299f2097d4b00)
[        ]       #24 pc 000e6974  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+100) (BuildId: 6e3a0180fa6637b68c0d181c343e6806)
[        ]       #25 pc 00078567  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+71) (BuildId: 6e3a0180fa6637b68c0d181c343e6806)
[+2945 ms] Service protocol connection closed.
[        ] Lost connection to device.