Deadlock with Modal navigation and animation
- Dominant language
- C#
- Stars
- 23.3k
- Forks
- 2k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 290
Description
### Description
On my app, I've a banner with an animated label, to indicate that something is loading in the background, and that banner is removed when there's nothing loading in the background. While that banner is showing the app is usable, so users can use the application.
The thing is that are some pages that we present a popup (using modal navigation) to indicate that we're loading the page (for example, fetching some data from data base and presenting as list), and when the load time is fast the UI will freeze.
If you press pause in your IDE, you will see that UIThread is alive but just running the animation code.
### Steps to Reproduce
In order to reproduce, run the attached file
[DeadlockModal.zip](https://github.com/user-attachments/files/20401413/DeadlockModal.zip)
1. Click on the button on the screen and see that the app freezes
### Link to public reproduction project repository
_No response_
### Version with bug
9.0.70 SR7
### Is this a regression from previous behavior?
Not sure, did not test other versions
### Last version that worked well
Unknown/Other
### Affected platforms
iOS
### Affected platform versions
_No response_
### Did you find any workaround?
_No response_
### Relevant log output
```shell
```
Contributor guide
Research direction
Run the attached DeadlockModal.zip reproduction on iOS with .NET MAUI 9.0.70 SR7 and click the button to confirm the freeze. Pause in the IDE and inspect the UIThread while the animation and modal navigation are active; done means the reproduced navigation no longer freezes the usable app.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, ios
- Domain
- frontend, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100