Skip to content

[Android] Don't throw when a PanUpdated handler removes the view as the pan starts - #39153

Merged
kubaflo merged 4 commits into
dotnet:inflight/currentfrom
MykhailoDav:fix-38065-android-pan-view-removed
Oct 6, 2026
Merged

kubaflo merged 4 commits into
dotnet:inflight/currentfrom
MykhailoDav:fix-38065-android-pan-view-removed

[Android] Don't throw when a PanUpdated handler removes the view as t…

9b5a752
Select commit
Loading
Failed to load commit list.
Build Analysis / Build Analysis failed Oct 6, 2026 in 0s

.NET Result Analysis

Details

Tip

To unconditionally bypass the build analysis check (turn it green), you can use the escape mechanism feature. The completion time may vary, potentially taking several minutes, depending on the build analysis workload at the moment.

Known Infrastructure Errors

Build Failures

maui-pr-uitests / Android UITests / Controls (API 30) / Controls (API 30) Shell

[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    ❌The job running on agent MAUI-DNCENG 72 ran longer than the maximum time of 240 minutes. For more information, see https://go.microsoft.com/fwlink/?linkid=2077134

maui-pr-uitests / Android UITests CoreClr / Controls (API 30) / Controls (API 30) Shell

[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    ❌The job running on agent MAUI-DNCENG 49 ran longer than the maximum time of 240 minutes. For more information, see https://go.microsoft.com/fwlink/?linkid=2077134

maui-pr-uitests / Android UITests / Controls (API 30) / Controls (API 30) Shell / Publish the android_ui_tests_controls_30 test results

[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    ❌There are one or more test failures detected in result files. Detailed summary of published test results can be viewed in the Tests tab.

4 other jobs are failing and were not displayed due to space limitations.
Builds with failures: [maui-pr-uitests]

Test Failures (441 tests failed)

🔹 [All failing tests from maui-pr-uitests]

    ⚠️ 436 failing tests not displayed for this pipeline due to space limitations

    ❌ Microsoft.Maui.TestCases.Tests.Issues.Issue32941(Android).ShellContentShouldRespectSafeAreaEdges_After_Navigation [Details] [4.31% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
    System.NullReferenceException : Object reference not set to an instance of an object.
    CallStack
       at System.Threading.Tasks.Task`1.InnerInvoke()
       at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
    --- End of stack trace from previous location ---
       at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
    --- End of stack trace from previous location ---
       at UITest.Appium.HelperExtensions.RunWithTimeout[T](Func`1 action, Nullable`1 timeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 3096
       at Microsoft.Maui.TestCases.Tests.Issues.Issue32941.ShellContentShouldRespectSafeAreaEdges_After_Navigation() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue32941.cs:line 27
       at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
       at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
       at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    
    ❌ Microsoft.Maui.TestCases.Tests.Issues.Issue33038(Android).LayoutShouldBeCorrectOnFirstNavigation [Details] [11.35% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
    VisualTestUtils.VisualTestFailedException : 
    Snapshot different than baseline: LayoutShouldBeCorrectOnFirstNavigation.png (1.78% difference)
    If the correct baseline has changed (this isn't a a bug), then update the baseline image.
    See test attachment or download the build artifacts to get the new snapshot file.
    

    More info: https://aka.ms/visual-test-workflow

    CallStack
       at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1 retryTimeout, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 299
       at Microsoft.Maui.TestCases.Tests.Issues.Issue33038.LayoutShouldBeCorrectOnFirstNavigation() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue33038.cs:line 24
       at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
       at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
       at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    
    ❌ Microsoft.Maui.TestCases.Tests.Issues.Issue35826(Android).FinishingLaunchingActivityCancelsPendingPhotoPicker [Details] [24.83% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
    System.TimeoutException : Timed out waiting for element...
    CallStack
       at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
       at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 828
       at Microsoft.Maui.TestCases.Tests.Issues.Issue35826.FinishingLaunchingActivityCancelsPendingPhotoPicker() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue35826.cs:line 100
       at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
       at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
       at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    
    ❌ Microsoft.Maui.TestCases.Tests.Issues.Issue35826(Android).OverlappingPhotoPickerRequestsAreRejected [Details] [24.89% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
    System.TimeoutException : Timed out waiting for element...
    CallStack
       at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
       at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 828
       at Microsoft.Maui.TestCases.Tests.Issues.Issue35826.OpenChildActivityAndRequirePhotoPicker() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue35826.cs:line 115
       at Microsoft.Maui.TestCases.Tests.Issues.Issue35826.OverlappingPhotoPickerRequestsAreRejected() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue35826.cs:line 70
       at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
       at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
       at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    
    ❌ Microsoft.Maui.TestCases.Tests.Issues.Issue35826(Android).PickPhotosAsyncShouldReturnFromChildActivity [Details] [24.96% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
    System.TimeoutException : Timed out waiting for element...
    CallStack
       at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
       at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 828
       at Microsoft.Maui.TestCases.Tests.Issues.Issue35826.OpenChildActivityAndRequirePhotoPicker() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue35826.cs:line 115
       at Microsoft.Maui.TestCases.Tests.Issues.Issue35826.PickPhotosAsyncShouldReturnFromChildActivity() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue35826.cs:line 29
       at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
       at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
       at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    

Was this helpful? Yes No