Random crash in background

Đang mở
#118 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
android, java
Lĩnh vực
mobile-dev

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Java
Star
877
Fork
121
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của SmartPack/PackageManager

Tất cả issue của SmartPack/PackageManager

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.