App crashes when I connect power
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 72/100
Hướng nghiên cứu
Stack trace trỏ đến NoteEditFragment.onNoteLoaded ở dòng 211 và BrandedFragment.onMainThread ở dòng 119. Đọc callback và cách xử lý vòng đời của nó, sau đó tái hiện lỗi bằng cách kết nối hoặc ngắt nguồn điện trong khi chỉnh sửa ghi chú ở chế độ tiết kiệm pin. Hoàn thành khi trình chỉnh sửa không còn bị lỗi trong lúc đổi chủ đề.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
This issue respects the following points:
- I have read the FAQ
- I have searched for existing issues
- The issue affects the Notes Android app, neither the Notes server app nor the Nextcloud Android app.
Describe the bug
- Android in power saving mode, getting a dark UI
- Use Nextcloud app in edit mode (overview doesn't crash)
- Connect power and the app will crash
- Crash report will show in light default theme
This also happens when the power is unplugged and the phone falls back into power saving mode.
Expected behavior
- The app should continue running, with light default UI
Notes Android version
35.0.0
Notes server version
6.1.0
Nextcloud Android version
35.0.2
Nextcloud version
Nextcloud Hub 26 Spring
Device
Fairphone 4
Android Version
16 (4.4.2-a16-20261027699881-official-FP4)
App Store
- Google Play Store
- F-Droid
- Huawei App Gallery
Stacktrace
App Version: 35.0.0
App Version Code: 350000090
App Flavor: fdroid
Files App Version Code: 350000290 (PROD)
---
OS Version: 4.19.325-cip135-st19-perf-g194048dcf6d8(1793100155)
OS API Level: 36
Device: FP4
Manufacturer: Fairphone
Model (and Product): FP4 (FP4eea)
---
java.lang.IllegalStateException: Fragment NoteEditFragment{5a2d972} (f6a1e61f-2ec2-4b31-8863-010d6c213271) not attached to a context.
at [androidx.fragment.app](https://androidx.fragment.app/).Fragment.requireContext(fragment.java:976)
at it.niedermann.owncloud.notes.edit.NoteEditFragment.lambda$onNoteLoaded$1(noteeditfragment.java:211)
at it.niedermann.owncloud.notes.edit.NoteEditFragment.$r8$lambda$RmlYJL2Ig-2WxIASRNUvR6m5uJw(Unknown Source:0)
at it.niedermann.owncloud.notes.edit.NoteEditFragment$$ExternalSyntheticLambda5.invoke(D8$$SyntheticClass:0)
at it.niedermann.owncloud.notes.branding.BrandedFragment.onMainThread$lambda$0(BrandedFragment.kt:119)
at it.niedermann.owncloud.notes.branding.BrandedFragment$$[ExternalSyntheticLambda0.run](https://externalsyntheticlambda0.run/)(D8$$SyntheticClass:0)
at android.os.Handler.handleCallback(handler.java:995)
at android.os.Handler.dispatchMessage(handler.java:103)
at android.os.Looper.loopOnce(looper.java:248)
at android.os.Looper.loop(looper.java:338)
at [android.app](https://android.app/).ActivityThread.main(activitythread.java:9067)
at java.lang.reflect.Method.invoke(Native Method)
at [com.android](https://com.android/).internal.os.RuntimeInit$[MethodAndArgsCaller.run](https://methodandargscaller.run/)(runtimeinit.java:593)
at [com.android](https://com.android/).internal.os.ZygoteInit.main(zygoteinit.java:932)
- Ngôn ngữ chính
- Java
- Star
- 1.1k
- Fork
- 177
- Merge trung bình
- 12 giờ 24 phút
- Pull request đã merge (30 ngày)
- 26
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nextcloud/notes-android
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
nextcloud/notes-android#3367 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
0. Needs triage bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
nextcloud/notes-android#3353 · 2 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
0. Needs triage bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
nextcloud/notes-android#3442 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
0. Needs triage bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
nextcloud/notes-android#3436 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
0. Needs triage bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 43/100
nextcloud/notes-android#3431 · 1 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của nextcloud/notes-android
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Backblaze/b2-sdk-java#248 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
IETF-Hackathon/pqc-certificates#351 ·
Maintainer thường phản hồi trong vòng 2 ngày