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][iOS18.0][macOS15.0] I6 & I9 - Clicking on some pages will throw an exception. #24838

Open
Zhanglirong-Winnie opened this issue Sep 20, 2024 · 4 comments
Labels
csi-new platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst s/triaged Issue has been reviewed t/bug Something isn't working
Milestone

Comments

@Zhanglirong-Winnie
Copy link

Zhanglirong-Winnie commented Sep 20, 2024

Description

I6 & I9 - Clicking on some pages will throw an exception.
Note:
This issue seems to have nothing to do with the MAUI control version, but is related to the iOS simulator. The iOS17.5 simulator does not repro this issue.
Affected case:
I6 - Grouping Vertical list with DataTemplates
I6 - Grouping including empty groups for Vertical list with DataTemplates.
I6 - Grouping with variable sized items for Vertical list with DataTemplates.
I6 - Grouping with GridItemsLayouts for Vertical list with GridItemsLayout.VerticalItemSpacing.
I9 -Scroll by index for grouped data.
I9 -Scroll by object for grouped data.

Steps to Reproduce

  1. Install Xcode16.0 + Sonoma (macOS 14.5+)
  2. Deploy https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests to iOS 18.0 simulator.
  3. Navigate to 'I9_Scrolling'-> Click 'Scroll by index for grouped data' or 'Scroll by object for grouped data'
  4. Observe that the exception is thrown

Actual Behavior:
The page throws an exception:
ObjCRuntime.ObjCException: 'Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Expected dequeued view to be returned to the collection view in preparation for display. When the collection view's data source is asked to provide a view for a given index path, ensure that a single
image

Expected Behavior:
The page displays normally and no exception is thrown.

Link to public reproduction project repository

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

Version with bug

Microsoft.Maui.Controls 8.0.82

Is this a regression from previous behavior?

Not a regression, the issue also repro on 8.0.90 & 8.0.72 & 8.0.3.

Affected platforms

iOS

@Zhanglirong-Winnie Zhanglirong-Winnie added t/bug Something isn't working platform/iOS 🍎 s/triaged Issue has been reviewed csi-new labels Sep 20, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@Zhanglirong-Winnie Zhanglirong-Winnie changed the title [MAUI] I6 & I9 - Clicking on some pages will throw an exception. [MAUI][iOS18.0] I6 & I9 - Clicking on some pages will throw an exception. Sep 20, 2024
@tj-devel709
Copy link
Contributor

I believe it is expected that there will be exceptions with Xcode 16 currently until support lands in November.
#24819.

Perhaps this issue can be closed for now and reopened later when support is added if this is still an issue, or can be left here brought back up in November, thanks!

@tj-devel709 tj-devel709 added this to the Backlog milestone Sep 20, 2024
@QianaJiao QianaJiao added the platform/macOS 🍏 macOS / Mac Catalyst label Sep 23, 2024
@QianaJiao
Copy link

QianaJiao commented Sep 23, 2024

As for debug on MacCatalyst, this issue also repro on MacOS Sequoia 15.0, not repro on Mac Sonoma 14.6.1

@Zhanglirong-Winnie Zhanglirong-Winnie changed the title [MAUI][iOS18.0] I6 & I9 - Clicking on some pages will throw an exception. [MAUI][iOS18.0][macOS15.0] I6 & I9 - Clicking on some pages will throw an exception. Sep 23, 2024
@LeoJHarris
Copy link

Seeing the issue here, we still use Mac Sonoma but with Xcode 16.0, the app deploys but crashing immediately, I'm not to sure on the steps to roll back our MAUI workload either, although we updated to latest them at the time due to some other issue that I can not remember.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
csi-new platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst s/triaged Issue has been reviewed t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants
@LeoJHarris @tj-devel709 @Zhanglirong-Winnie @QianaJiao and others