Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MAUI]I5_EmptyView - When input some string in the filtering bar and click the "search" during project debugging, app will hang #27138

Open
Ying-6 opened this issue Jan 15, 2025 · 6 comments
Assignees
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView csi-new i/regression This issue described a confirmed regression on a currently supported version platform/iOS 🍎 regressed-in-8.0.100 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@Ying-6
Copy link

Ying-6 commented Jan 15, 2025

Description

  1. This issue will be reproduced when directly click 'EmptyView String' for 'Filtering' to test. However, this issue will not be reproduced when you test the 'EmptyView String' for 'ItemsSource Null' and 'EmptyView String' for 'Load simulation' two pages first and then test the EmptyView String for Filtering page.
  2. This issue will only be repro when the project is debugging. It will not be repro when manually start the app test after stopping debugging.

Affected case:
Test Case 2079810: I5 - EmptyView String for Filtering.
Test Case 2079812: I5 - EmptyView with multiple views for Filtering.
Test Case 2079819: I5 - EmptyView with EmptyViewTemplate for Filtering.
Test Case 2079820: I5 - EmptyView with EmptyViewTemplate for Data template selector.
Test Case 2079824: I5 - EmptyView swap for Filtering.

Steps to Reproduce

  1. Deploy https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests to iOS
  2. Click or tap on category 'I' for 'CollectionView' -> I5 EmptyView page-> EmptyView String' for 'Filtering'
  3. Input some string, then hit Search or the Enter key on the PC keyboard

Actual Behavior:
App will hang.
Image

Expected result:
App works fine an the string 'No items match your filter.' will be displayed.
Image

Link to public reproduction project repository

https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests

Version with bug

9.0.40-ci.main.25062.1

Is this a regression from previous behavior?

Yes, this works fine in 8.0.3. It can also be reproduced on 9.0.40-ci.main.25072.1 & 9.0.30 & 9.0.0 & 9.0.0-preview.1.9973 & 8.0.100.

Affected platforms

iOS

@Ying-6 Ying-6 added csi-new i/regression This issue described a confirmed regression on a currently supported version platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working labels Jan 15, 2025
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@Ying-6 Ying-6 changed the title [MAUI]I5_EmptyView - When input some string in 'EmptyView String' for 'Filtering' page and click the Search during project debugging, the app will hang [MAUI]I5_EmptyView - When input some string in the filtering bar and click the "search" during project debugging, app will hang Jan 15, 2025
@Ying-6
Copy link
Author

Ying-6 commented Jan 16, 2025

This issue does also repro with the CollectionView2 handlers.

@Ying-6 Ying-6 added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Jan 16, 2025
@StephaneDelcroix StephaneDelcroix added this to the Backlog milestone Jan 16, 2025
@PureWeen PureWeen modified the milestones: Backlog, .NET 9 Servicing Jan 16, 2025
@jsuarezruiz
Copy link
Contributor

Take a look at #26838 (comment)

@Ying-6
Copy link
Author

Ying-6 commented Jan 23, 2025

This issue does also repro on 9.0.40-ci.main.25072.1 & 9.0.30 & 9.0.0 & 9.0.0-preview.1.9973 & 8.0.100, but 8.0.3 works fine.

@jsuarezruiz
Copy link
Contributor

I have created a branch https://github.com/dotnet/maui/tree/fix-26838 where I have added the sample to reproduce the issue. Debugging in the main branch, using iOS 18.2, I cannot reproduce it.

Image

Need more investigation.

@PureWeen PureWeen modified the milestones: .NET 9 SR4, .NET 9 SR5 Jan 23, 2025
@Ying-6
Copy link
Author

Ying-6 commented Jan 24, 2025

Hi @jsuarezruiz I can repro this issue use the branch that you created.
Image

Could you try the following steps to see if you can reproduce the problem:

  1. Uninstall the deployed project app from the iOS simulator.
  2. Clean Solution and debug again to iOS Simulator.
  3. Keep VSCode in debugging mode, then click "Go to Test Cases" in the app
  4. Search for issue ID "27138", click directly to enter this page, and then repro this issue.

The key to this bug is that the project needs to be kept in debugging state, and in a relatively clean environment. After debugging the project, we can reproduce this issue by directly verifying this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView csi-new i/regression This issue described a confirmed regression on a currently supported version platform/iOS 🍎 regressed-in-8.0.100 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

5 participants