Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The app will crash when using flare on android version 8 and 8.1 (Oreo) #66

Open
harshalrj25 opened this issue Apr 5, 2019 · 2 comments

Comments

@harshalrj25
Copy link

This seems to be specific to android 8 and 8.1 ie oreo

I have tried multiple examples, any flare animation after a certain time consumes a lot of memory which results in a crash.

I have checked flutter doctor, then used profiling to track memory usage.

Tested on debugging and release both modes.

The issue still persists, the only workaround is to replace a .flr file with a gif or png.

Below is log that you get after the crash.


I/zygote (24760): Do partial code cache collection, code=30KB, data=28KB
I/zygote (24760): After code cache collection, code=30KB, data=28KB
I/zygote (24760): Increasing code cache capacity to 128KB
F/libc (24760): Fatal signal 11 (SIGSEGV), code 1, fault addr 0xb3425fa0 in tid 24785 (1.gpu), pid 24760 (ample.flaredemo)


Build fingerprint: 'motorola/potter_n/potter_n:8.1.0/OPSS28.85-13-5/2f72:user/release-keys'
Revision: 'p3b0'
ABI: 'arm'
pid: 24760, tid: 24785, name: 1.gpu >>> com.example.flaredemo <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xb3425fa0
r0 98683508 r1 b3425fa0 r2 00000028 r3 00000008
r4 b3425fa0 r5 00000003 r6 b3426000 r7 98683508
r8 0000000c r9 915c9d70 sl fffffffe fp 00000001
ip 00000000 sp 986834c8 lr 98dbd229 pc b3c9ce30 cpsr 60070010
backtrace:
#00 pc 00018e30 /system/lib/libc.so (memcpy+80)
#1 pc 0063b225 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#2 pc 00636d89 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#3 pc 0063f375 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#4 pc 005d1cb5 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#5 pc 005d234b /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#6 pc 005e04bf /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#7 pc 007039c9 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#8 pc 00523219 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#9 pc 0051daf5 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#10 pc 0051ddc9 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#11 pc 0051df55 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#12 pc 0051dcd9 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#13 pc 0051de99 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#14 pc 004fad99 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#15 pc 004fc295 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#16 pc 000101f1 /system/lib/libutils.so (android::Looper::pollInner(int)+572)
#17 pc 0000ff1d /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+32)
#18 pc 0000c40f /system/lib/libandroid.so (ALooper_pollOnce+50)
#19 pc 004fc32f /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#20 pc 004f9f37 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#21 pc 004fb169 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#22 pc 000475cf /system/lib/libc.so (__pthread_start(void*)+22)
#23 pc 0001afe9 /system/lib/libc.so (__start_thread+32)
`

@luigi-rosso
Copy link
Contributor

Thanks for filing! Would you be able to share the Flare file and/or source code that shows the problem?

@harshalrj25
Copy link
Author

flaredemo-master.zip

Shared a demo repo that i downloaded,
If you build and run it on Oreo it will show two button's
Tap on the button named "Build and Fade Out" continuesly for 5-6 times this will trigger the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants