Skip to content

Opening a page with an undefined control template crashes on iOS only when not debugging #23903

@orecros

Description

@orecros

Description

I have a content page like this

<ContentPage
    ...
    ControlTemplate="{StaticResource NonExistantTemplate}">
    ...
</ContentPage>

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

Debug build to an iphone simulator

Stop debugging

Relaunch the app

Open the page

Link to public reproduction project repository

No response

Version with bug

9.0.0-preview.6.24327.7

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

Simulator iPhone 15 iOS 17.2

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-windowWindowhighIt doesn't work at all, crashes or has a big impact.platform/ioss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions