maui icon indicating copy to clipboard operation
maui copied to clipboard

Long running animation crashes app (Android)

Open AlleSchonWeg opened this issue 1 year ago • 6 comments

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

AlleSchonWeg avatar Feb 01 '24 13:02 AlleSchonWeg

Sounds similar to this:

https://github.com/dotnet/maui/issues/17049

akhanalcs avatar Feb 01 '24 16:02 akhanalcs

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.

ghost avatar Feb 02 '24 15:02 ghost

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.

AlleSchonWeg avatar Feb 26 '24 17:02 AlleSchonWeg

Same issue here...

LITTOMA avatar Apr 05 '24 13:04 LITTOMA

Same issue here...

marcoablanco avatar Apr 22 '24 13:04 marcoablanco

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

AlleSchonWeg avatar May 03 '24 10:05 AlleSchonWeg

I experienced this issue as well. Any updates?

lpv-1902 avatar May 30 '24 05:05 lpv-1902