Android App freeze after using On-Screen Inputs

Hello,

When trying to use the on-screen inputs (button and/or joystick), the application actually freeze after interacting with either of those input for a few time.

With the on-screen joystick, the app freezes immediately.
With the on-screen button, if I let a few seconds between each click it doesn’t freezes, but if I spam the button the app also freezes.

Everything works well on editor using the mouse to click on the button or to move the on-screen Joystick.

Here is my setup:

When I attach the debugger to the app, I see that the app execute well (I hit my breakpoints at each update), until I touch the on-screen joystick. After that I never hit my update breakpoints again.

When pausing using the debugger, the app is always inside function related to input:


I am not sure what is causing the infinite loop, but it looks like it is inside the unity InputSystem classes.

Can anyone help me on it?

Any help would be appreciated.
Thanks!

PS: I am running on a samsung A34 5G with Unity 6000.0.32

After Further investigation, it looks like the unity code is stuck inside the InputSystemUIInputModule.PurgeStalePointers method:

I am not sure why or where it would silently fail/ loop infinitely in this function. I’ll investigate further.

I have actually reproduced the problem on a sample project so I am pretty confident it is a bug in the editor.

Here is the sample project (valid 30 days) for reference: https://easyupload.io/ofsnle

Actually I’ve faced the same bug today.

I have submitted a bug report with the attached sample project. I hope it will get through.

1 Like