question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

166506988: FirebaseInAppMessagingDisplay WindowManager$BadTokenException

See original GitHub issue
  • Android Studio version: 4.0
  • Firebase Component: InAppMessaging
  • Component version: 19.0.7

Hi, I noticed in firebase crashlytics console a crash

Fatal Exception: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
       at android.view.ViewRootImpl.setView(ViewRootImpl.java:945)
       at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:387)
       at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:95)
       at com.google.firebase.inappmessaging.display.internal.FiamWindowManager.show(FiamWindowManager.java:62)
       at com.google.firebase.inappmessaging.display.FirebaseInAppMessagingDisplay$4$4.run(FirebaseInAppMessagingDisplay.java:418)
       at android.app.Activity.runOnUiThread(Activity.java:6912)
       at com.google.firebase.inappmessaging.display.FirebaseInAppMessagingDisplay$4.onSuccess(FirebaseInAppMessagingDisplay.java:414)
       at com.squareup.picasso.ImageViewAction.complete(ImageViewAction.java:52)
       at com.squareup.picasso.Picasso.deliverAction(Picasso.java:576)
       at com.squareup.picasso.Picasso.complete(Picasso.java:528)
       at com.squareup.picasso.Picasso$1.handleMessage(Picasso.java:122)
       at android.os.Handler.dispatchMessage(Handler.java:107)
       at android.os.Looper.loop(Looper.java:241)
       at android.app.ActivityThread.main(ActivityThread.java:7617)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:941)

At this moment i see only one occurrence on “motorola one vision” Android 10. Unfortunately I don’t know how to recreate it 😕

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:10
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
jakubziebacommented, Jul 30, 2020

I notice same crash on two additional devices image image

0reactions
aguatnocommented, Oct 7, 2021

Hi All. This is a duplicate of #1694. Closing this in favor of that issue. Please upvote there instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No Brewfile found" - Homebrew/Homebrew-Bundle - IssueHint
166506988 : FirebaseInAppMessagingDisplay WindowManager$BadTokenException, 8, 2020-07-23, 2022-11-14. Agent: /status web page complains about alertmanagers ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found