[Android] ANR NavigationPage.SizeChanged
- Dominant language
- C#
- Stars
- 23.3k
- Forks
- 2k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 290
Description
I'm having this ANR error captured by sentry.
I can't reproduce it, but a workaround was to disable the rotation.
It's difficult to simulate, since it seems to occur when the screen is rotated and powered down.
Anyway, it's registered here for your knowledge and a workaround to help others.
PS: I'm using MAUI 10.0.70 with XAML Source Generation
ApplicationNotResponding: Background ANR
Thread: transisMobileX1
libc 0x086c30 syscall
libc 0x060060 __futex_wait_ex
libc 0x06f398 pthread_cond_wait
libc++ 0x0b0a58 std::__1::condition_variable::wait
libc++ 0x0b1248 std::__1::__assoc_sub_state::copy
libc++ 0x0b1510 std::__1::future::get
libhwui 0x3fe8b4 android::uirenderer::renderthread::RenderProxy::destroyHardwareResources
libc++ 0xf00d8c art_jni_trampoline
libc++ 0xbe162c android.view.ViewRootImpl.setWindowStopped
libc++ 0xb1bbb4 android.view.WindowManagerGlobal.setStoppedState
libc++ 0x8ee85c android.app.Activity.performStop
libc++ 0x723638 android.app.ActivityThread.callActivityOnStop
libc++ 0x7342e8 android.app.ActivityThread.performStopActivityInner
libart 0x669aa8 nterp_helper
libc++ 0x1d7fe2 android.app.ActivityThread.handleStopActivity
libc++ 0x909098 android.app.servertransaction.StopActivityItem.execute
libart 0x669380 nterp_helper
libc++ 0x2ffed0 android.app.servertransaction.ActivityTransactionItem.execute
libart 0x669324 nterp_helper
libc++ 0x3049f4 android.app.servertransaction.TransactionExecutor.executeLifecycleItem
libart 0x669324 nterp_helper
libc++ 0x304b58 android.app.servertransaction.TransactionExecutor.executeTransactionItems
libc++ 0x6876cc android.app.servertransaction.TransactionExecutor.execute
libc++ 0x71f4b8 android.app.ActivityThread$H.handleMessage
libc++ 0x9a6d68 android.os.Handler.dispatchMessage
libc++ 0x9aa7f4 android.os.Looper.loopOnce
libc++ 0x9aa37c android.os.Looper.loop
libc++ 0x732088 android.app.ActivityThread.main
libart 0x2ab060 art_quick_invoke_static_stub
libart 0x2a11a0 art::InvokeMethod
libart 0x5ac718 art::Method_invoke
libc++ 0xefe9c4 art_jni_trampoline
libc++ 0xcc2694 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run
libc++ 0xccdb34 com.android.internal.os.ZygoteInit.main
libart 0x2ab060 art_quick_invoke_static_stub
libart 0x2a9d4c art::InvokeWithVarArgs
libart 0x60b5ac art::JNI::CallStaticVoidMethodV
libandroid_runtime 0x0d9568 _JNIEnv::CallStaticVoidMethod
libandroid_runtime 0x0f0f8c android::AndroidRuntime::start
app_process64 0x0045a8 main
libc 0x057204 __libc_init
Contributor guide
Research direction
Start by tracing the NavigationPage.SizeChanged path during Android rotation and comparing it with the reported Activity stop and render-thread stack. Try the rotation-and-screen-power-down sequence if possible; done means identifying a reproducible MAUI-side cause or determining that the ANR is Android framework behavior and documenting whether disabling rotation avoids it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, csharp
- Domain
- mobile, performance
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100