microg / microg/NominatimGeocoderBackend
Geocoder does not work and obstructs the normal function of NLP
- Dominant language
- Java
- Stars
- 71
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
When Nominatim Geocoder is enabled in microg, it sometimes crashes. Moreover, NLP frequently stops working.
**System**
Android Version: 12
Custom ROM: LineageOS 19.1 (LOS for MicroG)
**Additional context**
Seen from logcat:
``` logcat
java.lang.NullPointerException: Attempt to get length of null array
at java.lang.StringFactory.newStringFromBytes(StringFactory.java:46)
at org.microg.nlp.backend.nominatim.BackendService$AsyncGetRequest.retrieveString(BackendService.java:288)
at org.microg.nlp.backend.nominatim.BackendService.getFromLocation(BackendService.java:122)
at org.microg.nlp.api.GeocoderBackendService$Backend.getFromLocation(GeocoderBackendService.java:73)
at org.microg.nlp.api.GeocoderBackend$Stub.onTransact(GeocoderBackend.java:63)
at android.os.Binder.execTransactInternal(Binder.java:1179)
at android.os.Binder.execTransact(Binder.java:1143)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with org.microg.nlp.backend.nominatim.BackendService.java, especially retrieveString at line 288 and getFromLocation at line 122, using the supplied logcat trace as the entry point. Reproduce with the Nominatim Geocoder enabled on Android 12 and inspect logcat; done means the geocoder no longer crashes and NLP continues working normally.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- backend, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100