Skip to content

Using a custom TitleBar and Modal Navigation causes an error while closing the app. #32331

@egvijayanand

Description

@egvijayanand

Description

  • Using a custom TitleBar and Modal Navigation causes an error while closing the app.

Error message: Invalid window; it belongs to other thread.

Steps to Reproduce

  1. Clone the linked repository.
  2. Set Windows as the platform target.
  3. Build and run the project.
  4. Click the Navigate action button to modally push the page onto the navigation stack.
  5. Click the Back button to return to the home page.
  6. Close the app now, which will cause the mentioned error to occur.

Link to public reproduction project repository

https://github.com/egvijayanand/maui-issue-32331

Version with bug

9.0.120 SR12

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows, I was not able test on other platforms

Affected platform versions

Windows SDK 10.0.19041

Did you find any workaround?

Not yet.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions