maui
maui copied to clipboard
Long running animation crashes app (Android)
Description
Hi, in my app i have an animation. If the animation is running a long time, the app crashes with this exception:
Time Device Name Type PID Tag Message 02-01 12:50:24.750 pixel_5_-_api_34 Error 7239 AndroidRuntime java.lang.IllegalStateException: The specified message queue synchronization barrier token has not been posted or has already been removed. at android.os.MessageQueue.removeSyncBarrier(MessageQueue.java:528) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2459) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9305) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1339) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1348) at android.view.Choreographer.doCallbacks(Choreographer.java:952) at android.view.Choreographer.doFrame(Choreographer.java:882) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1322) at android.os.Handler.handleCallback(Handler.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:205) at android.os.Looper.loop(Looper.java:294) at android.app.ActivityThread.main(ActivityThread.java:8177) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
Steps to Reproduce
Open the repro and wait Wait longer... Wait longer...
After some time the app crashes. Sometimes after ten minutes sometimes it takes a hour.
I tested also todays nightly und the app also crashes. MauiApp4.zip
Link to public reproduction project repository
No response
Version with bug
8.0.3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android API 33/34
Did you find any workaround?
No
Relevant log output
No response
Sounds similar to this:
https://github.com/dotnet/maui/issues/17049
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.
Any progress here? It blocks our migration process. I can't release an app which crashes after a few minutes. I think it has nothing to do with the memory issue.
Same issue here...
Same issue here...
After XF is retired i testet with 8.0.40-nightly.10602.
After two minutes:
Java.Lang.IllegalStateException: 'The specified message queue synchronization barrier token has not been posted or has already been removed.'
This error makes it impossible to migrate
I experienced this issue as well. Any updates?