Skip to content

[iOS] Stabilize CarouselView leak test cleanup - #37086

Closed
kubaflo wants to merge 1 commit into
release/11.0.1xx-preview7from
kubaflo/preview7-carouselview-gc-test-stabilization
Closed

kubaflo wants to merge 1 commit into
release/11.0.1xx-preview7from
kubaflo/preview7-carouselview-gc-test-stabilization

Stabilize CarouselView leak test cleanup

374bf55
Select commit
Loading
Failed to load commit list.
Build Analysis / Build Analysis failed Aug 4, 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.

Build Failures

maui-pr-uitests / WinUI UITests / Controls / Controls Editor,Effects,Essentials,FlyoutPage,Focus,Fonts,Frame,Gestures,GraphicsView / Controls Editor,Effects,Essentials,FlyoutPage,Focus,Fonts,Frame,Gestures,GraphicsView

[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    ❌PowerShell exited with code '1'.

maui-pr-uitests / WinUI UITests / Controls / Controls Editor,Effects,Essentials,FlyoutPage,Focus,Fonts,Frame,Gestures,GraphicsView / Publish the winui_ui_tests_controls 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.

maui-pr-uitests / WinUI UITests / Controls / Controls Label / Controls Label

[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    ❌PowerShell exited with code '1'.

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

Test Failures (24 tests failed)

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

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

    ❌ Android crash when Entry has more than 5000 characters [Console] [Details] [Artifacts] [1.74% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configurations (2)

    Exception Message
    Java.Lang.IndexOutOfBoundsException : setSpan (5001 ... 5001) ends beyond length 5000
    CallStack
       at Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualVoidMethod(String, IJavaPeerable, JniArgumentValue* )
       at Android.Widget.EditText.SetSelection(Int32)
       at Microsoft.Maui.Platform.EditTextExtensions.SetInputType(EditText, ITextInput)
       at Microsoft.Maui.Platform.EditTextExtensions.UpdateIsPassword(EditText, IEntry)
       at Microsoft.Maui.Handlers.EntryHandler.MapIsPassword(IEntryHandler handler, IEntry entry)
       at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler, IElement )
       at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement)
       at Microsoft.Maui.Handlers.EntryHandler.SetVirtualView(IView)
       at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
       at Microsoft.Maui.Dispatching.DispatcherExtensions.<>c__DisplayClass0_0`1.<DispatchAsync>b__0()
    --- End of stack trace from previous location ---
       at Microsoft.Maui.DeviceTests.ControlsHandlerTestBase.CreateHandlerAsync[THandler](IElement view)
       at Microsoft.Maui.DeviceTests.EntryTests.EntryWithLongTextDoesNotCrash()
    --- End of stack trace from previous location ---
      --- End of managed Java.Lang.IndexOutOfBoundsException stack trace ---
    java.lang.IndexOutOfBoundsException: setSpan (5001 ... 5001) ends beyond length 5000
    	at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1326)
    	at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:685)
    	at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:677)
    	at androidx.emoji2.text.SpannableBuilder.setSpan(SpannableBuilder.java:136)
    	at android.text.Selection.setSelection(Selection.java:94)
    	at android.text.Selection.setSelection(Selection.java:78)
    	at android.text.Selection.setSelection(Selection.java:153)
    	at android.widget.EditText.setSelection(EditText.java:136)
    	at mono.java.lang.RunnableImplementor.n_run(Native Method)
    	at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:29)
    	at android.os.Handler.handleCallback(Handler.java:942)
    	at android.os.Handler.dispatchMessage(Handler.java:99)
    	at android.os.Looper.loopOnce(Looper.java:201)
    	at android.os.Looper.loop(Looper.java:288)
    	at android.app.ActivityThread.main(ActivityThread.java:7924)
    	at java.lang.reflect.Method.invoke(Native Method)
    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
    
    ❌ com.microsoft.maui.controls.devicetests-Signed.WorkItemExecution [Console] [Details] [Artifacts] [75.27% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    This is a helix work item crash with status: BadExit. To investigate look the [Console log] / navigate to [Helix Artifacts]

    Failing Configurations (2)

    ❌ Entry with longer text and short text updates correctly [Console] [Details] [Artifacts] [1.68% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configurations (2)

    Exception Message
    Java.Lang.IndexOutOfBoundsException : setSpan (5001 ... 5001) ends beyond length 5000
    CallStack
       at Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualVoidMethod(String, IJavaPeerable, JniArgumentValue* )
       at Android.Widget.EditText.SetSelection(Int32)
       at Microsoft.Maui.Platform.EditTextExtensions.SetInputType(EditText, ITextInput)
       at Microsoft.Maui.Platform.EditTextExtensions.UpdateIsPassword(EditText, IEntry)
       at Microsoft.Maui.Handlers.EntryHandler.MapIsPassword(IEntryHandler handler, IEntry entry)
       at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler, IElement )
       at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement)
       at Microsoft.Maui.Handlers.EntryHandler.SetVirtualView(IView)
       at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
       at Microsoft.Maui.Dispatching.DispatcherExtensions.<>c__DisplayClass0_0`1.<DispatchAsync>b__0()
    --- End of stack trace from previous location ---
       at Microsoft.Maui.DeviceTests.ControlsHandlerTestBase.CreateHandlerAsync[THandler](IElement view)
       at Microsoft.Maui.DeviceTests.EntryTests.EntryWithLongTextAndShortText_UpdatesTextCorrectly()
    --- End of stack trace from previous location ---
      --- End of managed Java.Lang.IndexOutOfBoundsException stack trace ---
    java.lang.IndexOutOfBoundsException: setSpan (5001 ... 5001) ends beyond length 5000
    	at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1326)
    	at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:685)
    	at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:677)
    	at androidx.emoji2.text.SpannableBuilder.setSpan(SpannableBuilder.java:136)
    	at android.text.Selection.setSelection(Selection.java:94)
    	at android.text.Selection.setSelection(Selection.java:78)
    	at android.text.Selection.setSelection(Selection.java:153)
    	at android.widget.EditText.setSelection(EditText.java:136)
    	at mono.java.lang.RunnableImplementor.n_run(Native Method)
    	at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:29)
    	at android.os.Handler.handleCallback(Handler.java:942)
    	at android.os.Handler.dispatchMessage(Handler.java:99)
    	at android.os.Looper.loopOnce(Looper.java:201)
    	at android.os.Looper.loop(Looper.java:288)
    	at android.app.ActivityThread.main(ActivityThread.java:7924)
    	at java.lang.reflect.Method.invoke(Native Method)
    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
    

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

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

    ❌ Microsoft.Maui.TestCases.Tests.DragAndDropUITests(Windows).DragEvents [Details] [1.98% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
      Assert.That(textAfterDragOver, Is.EqualTo("DragOver"))
      Expected string length 8 but was 16. Strings differ at index 8.
      Expected: "DragOver"
      But was:  "DragOverEvents: "
      -------------------^
    
    CallStack
       at Microsoft.Maui.TestCases.Tests.DragAndDropUITests.DragEvents() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/DragAndDropUITests.cs:line 56
    

    1) at Microsoft.Maui.TestCases.Tests.DragAndDropUITests.DragEvents() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/DragAndDropUITests.cs:line 56

    ❌ Microsoft.Maui.TestCases.Tests.LabelFeatureTests(Windows).VerifyLabelWithFontAttributesAndFontFamily [Details] [1.68% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
    VisualTestUtils.VisualTestFailedException : 
    Snapshot different than baseline: VerifyLabelWithFontAttributesAndFontFamily.png (1.79% 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, Boolean includeTitleBar) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 296
       at Microsoft.Maui.TestCases.Tests.LabelFeatureTests.VerifyLabelWithFontAttributesAndFontFamily() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/LabelFeatureTests.cs:line 877
       at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    

Was this helpful? Yes No