I have a android native activity which uses native_app_glue. Everything works fine, except when I am debugging it and vr mode is activated. In that case for a simple touch event the application crashes at AInputQueue_preDispatchEvent (in android_native_app_glue.c, process_input function) with "SIGILL (illegal instruction)".
I have no clue what might cause it. I use Android Studio and when a start the same debuggable application without the debugger attached, it works as expected.
What am I missing?