WhatsApp / stickers

This repository contains the iOS and Android sample apps and API for creating third party sticker packs for WhatsApp.
Other
2.73k stars 1.7k forks source link

[Android] WhatsApp keeps stopping #384

Closed jaydeeees closed 5 years ago

jaydeeees commented 5 years ago

Specifications
OS Version: Android 8.1.0 Device Manufacturer: Razer Phone

Stickers

Problem Description
Have already published my app, there was no problem in installing and adding the packs to Whatsapp. However, while browsing through the stickers in my newly added pack in Whatsapp, it always crashes Whatsapp and prompts "WhatsApp keeps stopping" options given were, restart, wait or close the app.

Please kindly advise what is making my sticker app to caused Whatsapp to crash? As there were no other issues adding in my stickers.

Reproduction Steps
1) Installed app from Play Store 2) Open 3) Add to Whatsapp 4) Successfully added to Whatsapp 5) Open Whatsapp 6) While browsing the newly added stickers, Whatsapp stops working.

Playstore link: https://play.google.com/store/apps/details?id=com.bbnevertell.stickerapp

MarvinJWendt commented 5 years ago

Hey @jaydeeees, Sticker apps should not be able to crash WhatsApp. If you are able to get any error logs you can post them here, to help to analyze this behavior. In the case that this is an internal WhatsApp problem, @simonzhexu should take a look at it :)

jaydeeees commented 5 years ago

@MarvinJWendt Yes that's the strange thing, there is no error log when I build and run my app on an emulator or my phone. However, whenever I'm trying to select a sticker from my sticker pack in Whatsapp, it always crashes and my Whatsapp just stops working. There is just no problem with my sticker app at all as functions such as opening, and adding sticker pack to Whatsapp has no problem at all.

Update: This is my playstore link https://play.google.com/store/apps/details?id=com.bbnevertell.stickerapp

My logcat when testing on my phone (Already install and added packs to Whatsapp):

2019-01-08 14:00:52.011 801-6245/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device = 
2019-01-08 14:00:52.012 801-6245/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device = 
2019-01-08 14:00:52.017 801-6245/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
2019-01-08 14:00:52.145 22848-22855/? E/zygote64: Failed sending reply to debugger: Broken pipe
2019-01-08 14:01:11.273 801-6245/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device = 
2019-01-08 14:01:11.273 801-6245/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device = 
2019-01-08 14:01:11.279 801-6245/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
2019-01-08 14:01:14.599 801-6245/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device = 
2019-01-08 14:01:14.599 801-6245/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device = 
2019-01-08 14:01:14.604 801-6245/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
2019-01-08 14:01:24.222 801-6245/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device = 
2019-01-08 14:01:24.222 801-6245/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device = 
2019-01-08 14:01:24.228 801-6245/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
2019-01-08 14:01:24.898 22693-22873/? E/AndroidRuntime: FATAL EXCEPTION: Thread-6
    Process: com.whatsapp, PID: 22693
    java.lang.IllegalStateException: Failed to decode frame
        at com.facebook.animated.webp.WebPFrame.nativeRenderFrame(Native Method)
        at com.whatsapp.stickers.bo.a(:123124)
        at com.whatsapp.stickers.w$a.run(:123364)
2019-01-08 14:01:24.917 839-1286/? E/SurfaceFlinger: Already in mode 2 @ 120Hz
2019-01-08 14:01:25.147 4229-22919/? E/ctxmgr: [ProducerStatusImpl]updateStateForNewContextData: inactive, contextName=7
2019-01-08 14:01:33.277 801-6245/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device = 
2019-01-08 14:01:33.277 801-6245/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device = 
2019-01-08 14:01:33.280 801-6245/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
2019-01-08 14:01:33.306 839-888/? E/SurfaceFlinger: Already in mode 2 @ 120Hz
2019-01-08 14:01:33.335 839-888/? E/SurfaceFlinger: Already in mode 2 @ 120Hz
2019-01-08 14:01:33.336 2596-5988/? E/ActivityManager: applyOptionsLocked: Unknown animationType=0
2019-01-08 14:01:33.720 2596-2695/? E/ANDR-PERF-JNI: com_qualcomm_qtiperformance_native_perf_io_prefetch_start
2019-01-08 14:01:33.721 823-823/? E/ANDR-IOP: IOP HAL: Received pkg_name = com.whatsapp pid = 22929
2019-01-08 14:01:33.721 823-875/? E/ANDR-IOP: io prefetch Capture is deactivated 
2019-01-08 14:01:43.789 603-603/? E/SELinux: avc:  denied  { find } for interface=android.hardware.memtrack::IMemtrack pid=22929 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:hal_memtrack_hwservice:s0 tclass=hwservice_manager permissive=0
2019-01-08 14:01:43.790 22929-22998/? E/memtrack: Couldn't load memtrack module
2019-01-08 14:02:00.390 801-6245/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device = 
2019-01-08 14:02:00.390 801-6245/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device = 
2019-01-08 14:02:00.395 801-6245/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
2019-01-08 14:02:07.670 801-6245/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device = 
2019-01-08 14:02:07.670 801-6245/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device = 
2019-01-08 14:02:07.676 801-6245/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
2019-01-08 14:02:08.511 22929-23026/? E/AndroidRuntime: FATAL EXCEPTION: Thread-6
    Process: com.whatsapp, PID: 22929
    java.lang.IllegalStateException: Failed to decode frame
        at com.facebook.animated.webp.WebPFrame.nativeRenderFrame(Native Method)
        at com.whatsapp.stickers.bo.a(:123124)
        at com.whatsapp.stickers.w$a.run(:123364)
2019-01-08 14:02:08.572 839-888/? E/SurfaceFlinger: Already in mode 2 @ 120Hz
2019-01-08 14:02:08.786 2596-2867/? E/InputDispatcher: channel '5128fb3 PopupWindow:dc06bee (server)' ~ Channel is unrecoverably broken and will be disposed!
2019-01-08 14:02:08.817 2596-2867/? E/InputDispatcher: channel '441e186 com.whatsapp/com.whatsapp.Conversation (server)' ~ Channel is unrecoverably broken and will be disposed!
2019-01-08 14:02:08.886 4229-22684/? E/ctxmgr: [ProducerStatusImpl]updateStateForNewContextData: inactive, contextName=7
MarvinJWendt commented 5 years ago

Hey @jaydeeees,

    Process: com.whatsapp, PID: 22929
    java.lang.IllegalStateException: Failed to decode frame
        at com.facebook.animated.webp.WebPFrame.nativeRenderFrame(Native Method)
        at com.whatsapp.stickers.bo.a(:123124)
        at com.whatsapp.stickers.w$a.run(:123364)

Are you using animated WebP images?

This seems like it could be related to: https://github.com/facebook/fresco/issues/1954

jaydeeees commented 5 years ago

Hey @jaydeeees,

    Process: com.whatsapp, PID: 22929
    java.lang.IllegalStateException: Failed to decode frame
        at com.facebook.animated.webp.WebPFrame.nativeRenderFrame(Native Method)
        at com.whatsapp.stickers.bo.a(:123124)
        at com.whatsapp.stickers.w$a.run(:123364)

Are you using animated WebP images?

This seems like it could be related to: facebook/fresco#1954

Hi @MarvinJWendt Thank you for the reply, No, I am not using any animated WebP images, as according to the readme I know that animated stickers are not supported yet.

But thank you again, I shall re-convert all the stickers from png to WebP again to ensure they are not corrupted.

Will update again over here!

jaydeeees commented 5 years ago

Have re-converted all my stickers from png to Webp again, updated and rebuild my project. Having no more issues that crashes Whatsapp anymore!

Greatly appreciate your help @MarvinJWendt Thanks again!