You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When app crashes, information about the crash is not available in Settings / Send log file but it looks like nothing bad happened at all. Instead, crash log should be present in log file kept by the Commons app, so it can be accesses at later time.
This was captured by Crash log in external LogCat app LogFox for Commons / Java * May 11, 2024 22:12:26 (note that nothing is present in the in-app log around that time 22:12:26!) :
FATAL EXCEPTION: main
Process: fr.free.nrw.commons, PID: 15984
java.lang.IndexOutOfBoundsException: Index 5 out of bounds for length 5
at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
at java.util.Objects.checkIndex(Objects.java:359)
at java.util.ArrayList.get(ArrayList.java:434)
at fr.free.nrw.commons.upload.UploadMediaDetailAdapter.removeDescription(UploadMediaDetailAdapter.java:195)
at fr.free.nrw.commons.upload.UploadMediaDetailAdapter$ViewHolder.lambda$bind$5(UploadMediaDetailAdapter.java:300)
at fr.free.nrw.commons.upload.UploadMediaDetailAdapter$ViewHolder.$r8$lambda$icSYp6LLQKJERqNSGIAA-LSzeUk(UploadMediaDetailAdapter.java:0)
at fr.free.nrw.commons.upload.UploadMediaDetailAdapter$ViewHolder$$ExternalSyntheticLambda5.onClick(R8$$SyntheticClass:0)
at android.view.View.performClick(View.java:8047)
at android.view.View.performClickInternal(View.java:8024)
at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
at android.view.View$PerformClick.run(View.java:31890)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8919)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
Screen-shots
No response
Would you like to work on the issue?
None
The text was updated successfully, but these errors were encountered:
Summary
When app crashes, information about the crash is not available in
Settings
/Send log file
but it looks like nothing bad happened at all. Instead, crash log should be present in log file kept by the Commons app, so it can be accesses at later time.Steps to reproduce
Oops. Something went wrong
dialog (for example, because you cannot attend to it at the time)Settings
/Send log file
Expected behaviour
The internal app log (i.e.
Settings
/Send log file
) should contain errors that caused app to crash (crash trace log).Actual behaviour
The crash errors are not available in the in-app log viewer/sender.
I had to use external LogCat app LogFox (with complex setup involving USB cable and adb to give it permissions) in order to extract the crash log.
Device name
Samsung Galaxy S23+
Android version
Android 14 (OneUI 6.1)
Commons app version
5.0.1~af028cbdd (latest F-droid)
Device logs
This is present in in-app log viewer, after restarting Commons app and going to
Settings
/Send log file
, with no information about error/crash:This was captured by Crash log in external LogCat app LogFox for
Commons / Java * May 11, 2024 22:12:26
(note that nothing is present in the in-app log around that time22:12:26
!) :Screen-shots
No response
Would you like to work on the issue?
None
The text was updated successfully, but these errors were encountered: