Crash when trying to open any other page

未关闭
#135 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
半天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
android, java
领域
mobile-dev

调研方向

Start by reproducing the crash from the app’s bottom-toolbar navigation and inspect the fragment transition and lifecycle code triggered when each icon is selected. Use the provided NullPointerException stack trace to identify the null object around U0.s.w, then test on a rooted Redmi Note 13 5G or a comparable environment. The work is done when toolbar navigation no longer crashes and the fix is covered by a regression test or clear manual reproduction steps.

由索引模型根据 Issue 内容生成。

描述

On a rooted Redmi note 13 5G, app crashes when I click on any of the icons in the bottom toolbar with the following stack trace:

java.lang.NullPointerException
	at java.util.Objects.requireNonNull(Objects.java:207)
	at U0.s.w(SourceFile:37)
	at androidx.fragment.app.O.g(SourceFile:203)
	at androidx.fragment.app.O.k(SourceFile:274)
	at androidx.fragment.app.e0.b(SourceFile:64)
	at e.B.b(SourceFile:23)
	at androidx.fragment.app.h.b(SourceFile:1378)
	at androidx.fragment.app.f0.c(SourceFile:151)
	at androidx.fragment.app.J.z(SourceFile:677)
	at androidx.fragment.app.J.P(SourceFile:82)
	at androidx.fragment.app.J.y(SourceFile:75)
	at androidx.fragment.app.w.run(SourceFile:18)
	at android.os.Handler.handleCallback(Handler.java:959)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loopOnce(Looper.java:249)
	at android.os.Looper.loop(Looper.java:337)
	at android.app.ActivityThread.main(ActivityThread.java:9465)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:636)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1005)

May be an error in trying to acquire root since it invokes ZygoteInit and I believe it may be because of my rom's nonstandard partition layout. Nevertheless, root acquisition works in all other apps I've used

主要语言
Java
星标
877
派生
121
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

SmartPack/PackageManager 的其他 Issue

查看 SmartPack/PackageManager 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。