Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logs view crash #5613

Open
deevroman opened this issue May 3, 2024 · 3 comments
Open

Logs view crash #5613

deevroman opened this issue May 3, 2024 · 3 comments
Assignees
Labels

Comments

@deevroman
Copy link

How to Reproduce

  1. Open log menu
  2. Click Share
video_2024-05-03_21-48-21.mp4

It probably comes from a large number of logs, but I'm not sure because sometimes sending worked for a large number of logs.

Expected Behavior
The share menu is displayed

Versions affected
StreetComplete 57.3

Bonus: crash when selecting filters (logs sended via email)

@deevroman deevroman added the bug label May 3, 2024
@rhhsm
Copy link

rhhsm commented May 4, 2024

Can't reproduce (500 log items)

@westnordost
Copy link
Member

Let's make this issue about the crash, because for issues with exporting a (large) number of logs, we already have another ticket.

Stack trace


Stack trace:
java.lang.IndexOutOfBoundsException: Index 3094 out of bounds for length 4
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 de.westnordost.streetcomplete.screens.about.LogsAdapter$messages$result$1.areContentsTheSame(Unknown Source:16)
at androidx.recyclerview.widget.DiffUtil$DiffResult.findMatchingItems(Unknown Source:31)
at androidx.recyclerview.widget.DiffUtil$DiffResult.<init>(Unknown Source:35)
at androidx.recyclerview.widget.DiffUtil.calculateDiff(SourceFile:0)
at androidx.recyclerview.widget.DiffUtil.calculateDiff(SourceFile:0)
at de.westnordost.streetcomplete.screens.about.LogsAdapter.setMessages(Unknown Source:10)
at de.westnordost.streetcomplete.screens.about.LogsFragment$onViewCreated$1.emit(SourceFile:0)
at de.westnordost.streetcomplete.screens.about.LogsFragment$onViewCreated$1.emit(SourceFile:0)
at de.westnordost.streetcomplete.util.ktx.FragmentKt$observe$1$1$1.emit(Unknown Source:2)
at kotlinx.coroutines.flow.SharedFlowImpl.collect$suspendImpl(Unknown Source:186)
at kotlinx.coroutines.flow.SharedFlowImpl$collect$1.invokeSuspend(Unknown Source:12)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:11)
at kotlinx.coroutines.DispatchedTask.run(Unknown Source:98)
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:8893)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@e6644fe, Dispatchers.Main.immediate]

@westnordost westnordost changed the title Sometimes the Share Logs button doesn't work Logs view crash May 4, 2024
@riQQ
Copy link
Collaborator

riQQ commented May 4, 2024

See #5561 for log sharing.

@westnordost westnordost self-assigned this May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants