Random crash in background

Ouverte
#118 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
42/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
android, java
Domaine
mobile-dev

Piste de recherche

Start with MainActivity and the Android activity-destroy lifecycle, since the crash occurs while closing the app and the stack trace points to fragment cleanup during onDestroy. Reproduce the latest-update behavior and inspect the activity and fragment teardown paths for a null value. The issue does not name specific source files or tests, so identify the relevant implementation and verify that closing the app no longer raises the logged NullPointerException.

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

Description

The app randomly crashed in background when i closed it in latest update. This is nothing major and only happened once but still i thought i would inform. Overall the app works fine.

crash log

FATAL EXCEPTION: main
Process: com.smartpack.packagemanager, PID: 8471
java.lang.RuntimeException: Unable to destroy activity {com.smartpack.packagemanager/com.smartpack.packagemanager.MainActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5557)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5602)
at android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:47)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2325)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8280)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:576)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1073)
Caused by: java.lang.NullPointerException
at java.util.Objects.requireNonNull(Objects.java:207)
at r3.p.x(SourceFile:37)
at androidx.fragment.app.p0.g(SourceFile:203)
at androidx.fragment.app.p0.k(SourceFile:274)
at androidx.fragment.app.e1.b(SourceFile:64)
at androidx.fragment.app.e1.a(SourceFile:17)
at androidx.fragment.app.f1.e(SourceFile:225)
at androidx.fragment.app.k0.t(SourceFile:57)
at androidx.fragment.app.k0.l(SourceFile:32)
at androidx.fragment.app.v.onDestroy(SourceFile:12)
at d.m.onDestroy(SourceFile:1)
at android.app.Activity.performDestroy(Activity.java:8469)
at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1364)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5544)
... 13 more

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.