【问题标题】:RecyclerView's IBinder RuntimeException, but it doesn't crash the appRecyclerView 的 IBinder RuntimeException,但它不会使应用程序崩溃
【发布时间】:2023-03-18 21:56:01
【问题描述】:

我有一个问题。虽然,它是一个RuntimeException,但它不会使应用程序崩溃,但是当滚动速度更快时,它会使滚动通过RecyclerView 变得迟钝。随着每个新行的显示,这些日志都会出现:

    Caught a RuntimeException from the binder stub implementation. java.lang.NullPointerException: 
Attempt to invoke interface method 'android.os.IBinder com.android.internal.textservice.ISpellCheckerSession.asBinder()' on a null object reference
                                                                         at android.view.textservice.SpellCheckerSession$SpellCheckerSessionListenerImpl.onServiceConnected(SpellCheckerSession.java:330)
                                                                         at android.view.textservice.SpellCheckerSession$InternalListener.onServiceConnected(SpellCheckerSession.java:473)
                                                                         at com.android.internal.textservice.ITextServicesSessionListener$Stub.onTransact(ITextServicesSessionListener.java:54)
                                                                         at android.os.Binder.execTransact(Binder.java:446)

网络上没有太多关于那个的信息。也许你们中的一些人遇到了这种问题 - 我会说性能并使其在没有那个问题的情况下工作。

【问题讨论】:

    标签: android performance android-recyclerview android-binder


    【解决方案1】:

    您的适配器或活动似乎处理SpellCheckerService

    检查你的实现,你会在某处找到一个空实例。

    【讨论】:

    • 但我不使用它。哎呀,我什至不知道SpellCheckerService 是什么或如何使用它......
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-24
    • 2018-06-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-05
    相关资源
    最近更新 更多