You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Opening a page with an undefined control template crashes on iOS only when not debugging #23903
while debugging, the control template fails to load and the page still opens fine, even on a physical device. launching without the debugger attached causes the crash when opening the page.
I don't see anything in the logs mentioning the missing control template, and there's no intellisense or build errors for it either. That's probably going to be more generally useful than fixing this bug directly.
Steps to Reproduce
Create a content page that references a nonexistant control template as described above
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!
I've faced the same problem.
I find it hard to understand why this isn't fixed as it's a single and debatable line. What is the benefit of throwing over ignoring? If this is a dynamically loaded / bound and interchangeable element it will load late, causing this issue. And, during a 'change' will at some point be null.
My workaround is to use a content view and embed it inside the page.
Activity
github-actions commentedon Jul 29, 2024
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!
Closed similar issues:
kevinxufei commentedon Jul 30, 2024
I can repro this issue at iOS platform on the latest 17.11.0 Preview 5.0 (9.0.0-preview.6.24327.7 & 9.0.0-preview.5.24307.10 & 8.0.61). MauiApp4.zip
mattleibow commentedon Jul 30, 2024
We throw here, but I wonder if we don't need to:
maui/src/Controls/src/Core/Window/Window.cs
Line 389 in 491c227
thales-man commentedon Nov 28, 2025
I've faced the same problem.
I find it hard to understand why this isn't fixed as it's a single and debatable line. What is the benefit of throwing over ignoring? If this is a dynamically loaded / bound and interchangeable element it will load late, causing this issue. And, during a 'change' will at some point be null.
My workaround is to use a content view and embed it inside the page.
[Android, iOS] Throw exceptions consistently for invalid StaticResour…
[Android, iOS] Throw exceptions consistently for invalid StaticResour…
[Android, iOS] Throw exceptions consistently for invalid StaticResour…
[Android, iOS] Throw exceptions consistently for invalid StaticResour…
[Android, iOS] Throw exceptions consistently for invalid StaticResour…
March 30th, Inflight Candidate (#34617)
[iOS] Fix StaticResource Hot Reload crash on iOS (#35020)
[iOS] Fix StaticResource Hot Reload crash on iOS (#35020)
[iOS] Fix StaticResource Hot Reload crash on iOS (#35020)
[iOS] Fix StaticResource Hot Reload crash on iOS (#35020)
[Testing] Fixed test failure in PR 35234 - [05/08/2026] Candidate (#3…