ANR Android Crashs with JUCE 7.0.2

Hello!
I have a lot of ANR crashs with Juce 7.0.2 (report with Firebase Crashlytics on Android Devices).

  • com.rmsl.juce.ComponentPeerView.onTouchEvent (ComponentPeerView.java:166)

  • com.rmsl.juce.ComponentPeerView.handleMouseUp (Native method)

150 ANR crashs, only with JUCE 7.0.2, only with Android 11 et 12 (ok with Android 9, 10)

And :

  • com.rmsl.juce.JuceInvocationHandler.invoke (JuceInvocationHandler.java:28)

  • com.rmsl.juce.JuceInvocationHandler.dispatchInvoke (Native method)

115 ANR crashs, JUCE 6 & 7, all Android version.

Any ideas ?
Thanks

And I also have this ANR crash with 7.0.2:
→ com.rmsl.juce.ComponentPeerView.populateAccessibilityNodeInfo (Native method)
→ com.rmsl.juce.ComponentPeerView.access$500 (ComponentPeerView.java:55)

26 ANR crashs, only with JUCE 7.0.2, only with Android 11 et 12 (ok with Android 9, 10)

Unfortunately I cannot reproduce these crashes on my devices.
So I have only the Firebase Crashlytics logs…

Here are some additional ANR bugs that users of my Android application (7.0.5) are experiencing. I have included the stack trace from Crashlytics for your reference. It seems that approximately 1% of our users are affected by these bugs :

main (native):tid=1 systid=18588
#00 pc 0x5de0c libc.so (syscall + 28)
#01 pc 0x62f6f libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*) + 94)
#02 pc 0xaa403 libc.so (pthread_cond_wait + 32)
#03 pc 0x9bd4a3 split_config.armeabi_v7a.apk!libjuce_jni.so (std::__ndk1::condition_variable::wait(std::__ndk1::unique_lockstd::__ndk1::mutex&) + 10)
#04 pc 0x611440 split_config.armeabi_v7a.apk!libjuce_jni.so (juce::WaitableEvent::wait(int) const + 216)
#05 pc 0x70a510 split_config.armeabi_v7a.apk!libjuce_jni.so (juce::AndroidMessageQueue::run() + 104)
#06 pc 0x70a434 split_config.armeabi_v7a.apk!libjuce_jni.so (juce::Android::Runnable::invoke(_jobject*, _jobject*, _jobjectArray*) + 236)
#07 pc 0x2007063 memfd:jit-cache (art_jni_trampoline + 162)
#08 pc 0x2005607 memfd:jit-cache (com.rmsl.juce.JuceInvocationHandler.invoke + 70)
at com.rmsl.juce.JuceInvocationHandler.dispatchInvoke(Native method)
at com.rmsl.juce.JuceInvocationHandler.invoke(JuceInvocationHandler.java:28)
at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
at java.lang.Runnable.run(Runnable.java)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7989)
at java.lang.reflect.Method.invoke(Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:635)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)