ubipo / osmfocus

Open source tool for examining OpenStreetMap elements by moving around on a map.
Apache License 2.0
43 stars 5 forks source link

Unhandled exception: No enum constant net.pfiers.osmfocus.service.osm.NoteCommentAction.HIDDEN #56

Closed waldyrious closed 2 months ago

waldyrious commented 6 months ago

Exception details

Message: No enum constant net.pfiers.osmfocus.service.osm.NoteCommentAction.HIDDEN

What happened / what actions did you take before the bug occurred?

I was just zooming and panning the map. I was seeing lots of note icons, and was planning to disable their display to make the map less cluttered, but now the app keeps crashing immediately as I open it, probably because it's reloading the same area I was in right before the crash, where the culprit note(s) is/are. For reference, I was browsing the city of Braga, Portugal.

Comments

-- Fill here if necessary --

Stack trace

java.lang.IllegalArgumentException: No enum constant net.pfiers.osmfocus.service.osm.NoteCommentAction.HIDDEN
    at timber.log.Timber$1$$ExternalSynthetic$IA0.valueOf(SourceFile:1)
    at net.pfiers.osmfocus.service.osmapi.NotesDownloadManager.processDownload(SourceFile:404)
    at net.pfiers.osmfocus.service.osmapi.EnvelopeDownloadManager$download$result$1$1.invokeSuspend(SourceFile:8)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:9)
    at kotlinx.coroutines.DispatchedTask.run(SourceFile:116)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:94)
    Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@a181ae7, Dispatchers.Default]

System / app info

App version: 1.5.1-gplay
App version code: 151
App build type: release
SDK version: 33
Device name: Google Pixel 4a
Locales: en-US,kea-CV,en-GB,pt-PT
waldyrious commented 2 months ago

Thanks for fixing this, @ubipo! :tada: