The reason why it’s “frozen” is probably because of Issue with pen (Android)
I do release all the pointers when there is something that I don’t recognize (although as you noticed I introduced a small bugs and sometimes it’s not released well).
If I can know what exactly is the returned value from AMotionEvent_getAction
maybe I can fix the frozen thing as well.