Crash when trying to open any other page

Ouverte
#135 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
Une demi-journée
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
android, java
Domaine
mobile-dev

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
Java
Étoiles
877
Forks
121
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de SmartPack/PackageManager

Toutes les issues de SmartPack/PackageManager

Issues similaires

Plus d'issues Java

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.