Skip to content

Freezing on iOS Net 9 Maui ? #880

@EricLVertiGIS

Description

@EricLVertiGIS

Hi, we have a .NET Maui application. Since upgrading to .NET 9, our app freezes on iOS when our custom Markdown view reappears (ie. filtered then unfiltered inside a CollectionView). At first I thought it might be a Maui issue, but after investigation, the only line that causes this behavior is :
Markdig.Markdown.Parse(Markdown)

Our issue behaves quite similar to #585. It works fine in Debug Mode, but on Release Mode (iOS only), the freeze happens. I saw that a fix was released in https://github.com/xoofx/markdig/pull/600/files, but updating to the newest version didn't resolve the issue.

.NET 9 Maui added changes to trimming code, so that could be a factor. The Markdown view is garbaged collected then recreated each time it disappears / reappears, but Parse is static so that shouldn't be a problem.

Could the team please look into this ? Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions