I am seeing this error getting reported in my logging software but cant determine what is causing it, or what the 300 limit is referring to... the number of views or possibly items displayed in a list...
This is all i could pull from my log:
window count is over max 300
android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:430)
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:133)
android.widget.PopupWindow.invokePopup(PopupWindow.java:1688)
android.widget.PopupWindow.showAtLocation(PopupWindow.java:1408)
android.widget.PopupWindow.showAtLocation(PopupWindow.java:1374)
I did some research and a bunch of debugging on any Dialog or PopupWindow but cant recreate this. Any ideas or suggestions would be appreciated.
EDIT I was able to pull another occurrence of this issue with a different stacktrace...
window count is over max 300
android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:430)
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:133)
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:5322)
android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:54)
android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2438)
android.os.Handler.dispatchMessage(Handler.java:106)
android.os.Looper.loopOnce(Looper.java:226)
android.os.Looper.loop(Looper.java:313)
android.app.ActivityThread.main(ActivityThread.java:8663)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
EDIT 2
This appears to only be happening on Android 12 OS
EDIT 3
This appears to also be happening on Android 13 with a slightly different error message
window count is over max!!