UI thread not running

63 views
Skip to first unread message

bely...@gmail.com

unread,
Sep 30, 2021, 9:13:48 AM9/30/21
to Android Automotive OS Discussion Group
Hello all,

I have a weird issue, my app runs properly but under some condition, the UI stops updating, touch does not working, tried to add more log in View and ViewGroup, and found at the last steps of handle touch, it post performClick to UI thread, but the performClick was not executed, so looks like the whole UI thread is not polling the new task to run, but when we touch the app, we can see the touch event printed on UI thread, anyone has any idea about this issue?

Thanks!

bely...@gmail.com

unread,
Oct 2, 2021, 10:12:57 AM10/2/21
to Android Automotive OS Discussion Group, bely...@gmail.com
UPDATE:

we found the issue is because one barrier message at the head of UI messagequeue was not removed, we are thinking maybe this code was called from different thread at the same time https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/view/ViewRootImpl.java#1922 which cause 2 barrier message posted, but only one can be removed, anyone has an idea?
Reply all
Reply to author
Forward
0 new messages