Invalid android.app.RemoteServiceException on Xiaomi Device


Richfield

Members
Feb 16, 2021
2
3
Hey everyone,

in our company we are currently investigating a crash which we can't reproduce and don't know when it is happening.
The crash was getting more and more over the past weeks and is responsible for more than 50% of all our crashes. It happens mostly on Xiaomi devices, but also on other devices (Huawei,...)

Fatal Exception: android.app.RemoteServiceException: Bad notification(tag=null, id=1044) posted from package com.company.android, crashing app(uid=10245, pid=21989): Couldn't inflate contentViewsjava.lang.ClassCastException: android.app.Notification$BigTextStyle cannot be cast to android.app.Notification$MessagingStyle
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2047)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:236)
at android.app.ActivityThread.main(ActivityThread.java:7876)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)


I hope someone can help to figure out what's going on

Thanks

Best, Thomas
 

Attachments

  • devices_list.jpg
    devices_list.jpg
    371.8 KB · Views: 196
  • android_version.jpg
    android_version.jpg
    48.8 KB · Views: 229
Last edited:
This has nothing to do with us, we are just a custom ROM project.
I can take a look if you provide a sample app that just sends one of those problematic notifications.
Even then, even if I manage to work around it, official MIUI ROMs will still have the issue.
 
  • Like
Reactions: Poney70
@Igor Eisberg sorry for the spam. I should have read a bit better what this website is up for. I thought this is an official Xiaomi forum.

In any case, do you know where I can report this issue?