App crash with java.lang.RuntimeException: Logo image is not visible!

Hello,

I have implemented a basic map view activity inside my application using “com.tomtom.online.sdk.map.MapFragment” as explained in the API documentation. The map is displayed as expected but when I press the back button my application crashes and LOGCAT is printing the following error:

java.lang.RuntimeException: Logo image is not visible!
at com.tomtom.online.sdk.map.ag.b(Unknown Source:29)
at com.tomtom.online.sdk.map.af.e(Unknown Source:2)
at com.tomtom.online.sdk.map.MapView.doFrame(Unknown Source:9)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:986)
at android.view.Choreographer.doCallbacks(Choreographer.java:765)
at android.view.Choreographer.doFrame(Choreographer.java:697)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:967)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7179)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)

The TomTom logo is definitely displayed on the map and is visible (see screenshot attached).

I’m only using “com.tomtom.online:sdk-maps:2.4292” as a dependency and let my app running on a Samsung Tab Active2 running Android 9.

Any help is appreciated. Thanks in advance!
Leo

Me again,

I found the reason for the app crash :slight_smile: . When I start my activities I used to configure a scene transition animation:

Intent intent = new Intent(MyActivity.this, TomTomMapActivity.class);
startActivity(intent, ActivityOptions.makeSceneTransitionAnimation(MyActivity.this).toBundle());

This transition seems to be a culprit. I suppose that this triggers any timing issue with the routine inside the TomTom SDK library that checks the TomTom logo is visible on map. After I changed my code not to use scene transition animations the app crash was gone:

Intent intent = new Intent(MyActivity.this, TomTomMapActivity.class);
startActivity(intent);

I hope to help anybody else …

Best regards,
Leo

5 Likes

Hello dringwandreigmbh

This is really great news, I’m happy you found a work around. And even with that, our team is investigating a way for this never to occur.

Thank you for your input!

1 Like