Skip to content

Fix Picker SelectedIndex deferred initialization#35629

Merged
kubaflo merged 7 commits into
dotnet:inflight/currentfrom
AdamEssenmacher:issue-9150
May 30, 2026
Merged

Fix Picker SelectedIndex deferred initialization#35629
kubaflo merged 7 commits into
dotnet:inflight/currentfrom
AdamEssenmacher:issue-9150

Fix stale picker pending selection

80d2c05
Select commit
Loading
Failed to load commit list.
Azure Pipelines / maui-pr-uitests failed May 30, 2026 in 5h 28m 26s

Build #10.0.80-ci+pr.35629.azdo.1440871 had test failures

Details

Tests

  • Failed: 165 (0.92%)
  • Passed: 17,629 (97.87%)
  • Other: 219 (1.22%)
  • Total: 18,013

Annotations

Check failure on line 2591 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr-uitests

Build log #L2591

PowerShell exited with code '1'.

Check failure on line 2761 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr-uitests

Build log #L2761

PowerShell exited with code '1'.

Check failure on line 2117 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr-uitests

Build log #L2117

PowerShell exited with code '1'.

Check failure on line 5367 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr-uitests

Build log #L5367

The Operation will be canceled. The next steps may not contain expected logs.

Check failure on line 1 in Microsoft.Maui.TestCases.Tests.CarouselViewUITests(Android).CarouselViewGoToNextCurrentItem

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr-uitests

Microsoft.Maui.TestCases.Tests.CarouselViewUITests(Android).CarouselViewGoToNextCurrentItem

System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
   at UITest.Appium.HelperExtensions.<>c__DisplayClass9_0.<GetText>b__0() in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 126
   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 3063
   at UITest.Appium.HelperExtensions.GetText(IUIElement element) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 124
   at Microsoft.Maui.TestCases.Tests.CarouselViewUITests.CheckLabelValue(String labelAutomationId, String value) in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/CarouselViewUITests.cs:line 136
   at Microsoft.Maui.TestCases.Tests.CarouselViewUITests.CarouselViewGoToNextCurrentItem() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/CarouselViewUITests.cs:line 39
   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)

Check failure on line 1 in Microsoft.Maui.TestCases.Tests.CarouselViewUITests(Android).CarouselViewGoToPreviousCurrentItem

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr-uitests

Microsoft.Maui.TestCases.Tests.CarouselViewUITests(Android).CarouselViewGoToPreviousCurrentItem

The app was expected to be running still, investigate as possible crash
TearDown : The app was expected to be running still, investigate as possible crash
Raw output
   at UITest.Appium.NUnit.UITestBase.UITestBaseTearDown() in /_/src/TestUtils/src/UITest.NUnit/UITestBase.cs:line 159
   at UITest.Appium.NUnit.UITestBase.TestTearDown() in /_/src/TestUtils/src/UITest.NUnit/UITestBase.cs:line 45
   at InvokeStub_UITestBase.TestTearDown(Object, Object, IntPtr*)

--TearDown
   at UITest.Appium.NUnit.UITestBase.UITestBaseTearDown() in /_/src/TestUtils/src/UITest.NUnit/UITestBase.cs:line 159
   at UITest.Appium.NUnit.UITestBase.TestTearDown() in /_/src/TestUtils/src/UITest.NUnit/UITestBase.cs:line 45
   at InvokeStub_UITestBase.TestTearDown(Object, Object, IntPtr*)

1)    at UITest.Appium.NUnit.UITestBase.UITestBaseTearDown() in /_/src/TestUtils/src/UITest.NUnit/UITestBase.cs:line 159
   at UITest.Appium.NUnit.UITestBase.TestTearDown() in /_/src/TestUtils/src/UITest.NUnit/UITestBase.cs:line 45
   at InvokeStub_UITestBase.TestTearDown(Object, Object, IntPtr*)

Check failure on line 1 in Microsoft.Maui.TestCases.Tests.AppThemeFeatureTests(Android).LightTheme_VerifyVisualState

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr-uitests

Microsoft.Maui.TestCases.Tests.AppThemeFeatureTests(Android).LightTheme_VerifyVisualState

VisualTestUtils.VisualTestFailedException : 
Snapshot different than baseline: LightTheme_VerifyVisualState.png (1.66% 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
Raw output
   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 296
   at Microsoft.Maui.TestCases.Tests.AppThemeFeatureTests.LightTheme_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/AppThemeFeatureTests.cs:line 31
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in Microsoft.Maui.TestCases.Tests.AppThemeFeatureTests(Android).DarkTheme_VerifyVisualState

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr-uitests

Microsoft.Maui.TestCases.Tests.AppThemeFeatureTests(Android).DarkTheme_VerifyVisualState

VisualTestUtils.VisualTestFailedException : 
Snapshot different than baseline: DarkTheme_VerifyVisualState.png (1.81% 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
Raw output
   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 296
   at Microsoft.Maui.TestCases.Tests.AppThemeFeatureTests.DarkTheme_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/AppThemeFeatureTests.cs:line 40
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)