IllegalStateException: Instance has been closed

How to fix:

Fatal Exception: java.lang.IllegalStateException: Instance has been closed.
at com.tomtom.sdk.map.display.internal.r1.b(:15)
at com.tomtom.sdk.map.display.internal.r1.a(:11)
at com.tomtom.sdk.map.display.internal.k1.a(SourceFile:6)
at com.tomtom.sdk.map.display.internal.kc.invokeSuspend(:52)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)

Which version of SDK is this?
Could you also share some more info, like when this happens or the code that causes this?

this happens for me in sdk version 0.3.1547
implementation “com.tomtom.sdk.maps:map-display:0.3.1547”
implementation “com.tomtom.sdk.search:search-online:0.3.1547”

  1. i have loaded the map:
    mapFragment.getMapAsync { tomtomMap: TomTomMap →
    this.tomtomMap = tomtomMap
    search()
    }

  2. Searched few Geopoints with the search API

Have you tried with 0.3.1617?

Yes, we updated to this 0.3.1617 version. But issue still presented