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

[Android] WhatsApp keeps stopping #384

Closed
jaydeeees opened this issue Jan 7, 2019 · 5 comments
Closed

[Android] WhatsApp keeps stopping #384

jaydeeees opened this issue Jan 7, 2019 · 5 comments
Assignees
Labels
Android android issues

Comments

@jaydeeees
Copy link

jaydeeees commented Jan 7, 2019

Specifications
OS Version: Android 8.1.0
Device Manufacturer: Razer Phone

Stickers

  • [ X ] My stickers do comply with the sticker requirements (512x512 and < 100 KB)
  • [ X ] My tray icon does comply with the requirements (96x96 and < 50 KB)
  • [ X ] I am using WebP images for stickers.
  • [ X ] I am using PNG images for 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 MarvinJWendt added the Android android issues label Jan 7, 2019
@MarvinJWendt
Copy link
Contributor

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
Copy link
Author

jaydeeees commented Jan 7, 2019

@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
Copy link
Contributor

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

@jaydeeees
Copy link
Author

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
Copy link
Author

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!

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

No branches or pull requests

3 participants