Skip to content

[Bug]: Unexpected unhandled exception #244

Closed

Description

@hoshiizumiya

Describe the bug

DevWinUIGallery crash when I'm checking.

Steps to reproduce the bug

Have no idea and not remember. Here is the dump file:

DevWinUI.Gallery.exe.26896.zip

Expected behavior

No response

Screenshots

No response

NuGet package version

11.0.0

IDE

No response

Additional context

If there is no trace or any clue, I am only reporting and you can consider closing this issue.

Activity

  1. ghost1372 commented on Nov 22, 2026

    @ghost1372
    Owner

    Hi @hoshiizumiya, thank you for your report!

    Could you let me know which version you're using and where you're encountering the exception? I tested all pages with the MSIX version before publishing, so I'd like to clarify whether this happens in the unpackaged version, the MSIX version, or if you're using the latest changes from GitHub.

  2. hoshiizumiya commented on Nov 22, 2026

    @hoshiizumiya
    ContributorAuthor

    Hi, I downloaded it from the Microsoft store and it is the latest 11version. I don't remember the specific crash page. So I'll report more details if I occur it again.

  3. ghost1372 commented on Nov 22, 2026

    @ghost1372
    Owner

    Thanks! I tested it before the release, so my guess is that it might be related to switching pages while an animation is still running or some code is still executing.

  4. tinodin commented on Nov 22, 2026

    @tinodin
    Contributor

    @ghost1372 I tested the store version and Roadmap page seems to crash. All the other pages work fine.

  5. ghost1372 commented on Nov 22, 2026

    @ghost1372
    Owner

    @ghost1372 I tested the store version and Roadmap page seems to crash. All the other pages work fine.

    I will double check it

  6. tinodin commented on Nov 22, 2026

    @tinodin
    Contributor

    Same with the msix and unpackaged from releases.

  7. ghost1372 commented on Nov 22, 2026

    @ghost1372
    Owner

    Tnx i am going to close this issue, feel free to reopen it if there i anything wrong

  8. hoshiizumiya commented on Nov 23, 2026

    @hoshiizumiya
    ContributorAuthor

    @ghost1372 Hi, I encountered the exception:

    Exception thrown at 0x00007FFBC304555B (KernelBase.dll) in DevWinUI.Gallery.exe: 0x40080202: WinRT transform error (parameters: 0x000000008000000B, 0x0000000080070490, 0x0000000000000014, 0x000000D0ED1DD2B0).
    Exception thrown at 0x00007FFBC304555B (KernelBase.dll) in DevWinUI.Gallery.exe: 0xE0434352.
    Exception thrown at 0x00007FFBC304555B (KernelBase.dll) in DevWinUI.Gallery.exe: WinRT originate error - 0x80131509 : 'No GrowlHost is registered.'.
    Microsoft.UI.Xaml.dll!00007FFB2A923A7F: 80131509 - [19:55:24 ERR] UnhandledException
    System.InvalidOperationException: No GrowlHost is registered.
       at DevWinUI.Growl.Resolve(String)
       at DevWinUIGallery.Views.GrowlPage.AllSeverities_Click(Object sender, RoutedEventArgs e)
       at ABI.Microsoft.UI.Xaml.RoutedEventHandler.Do_Abi_Invoke(IntPtr, IntPtr, IntPtr)
    Unhandled exception at 0x00007FFB2A4A1A49 (Microsoft.ui.xaml.dll) in DevWinUI.Gallery.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x000000D8E77F7920, 0x0000000000000003).

    version: 11.1.0

    DevWinUI.Gallery.exe.31304.zip

  9. tinodin commented on Nov 23, 2026

    @tinodin
    Contributor

    @ghost1372 Oh I know what is happening. The problem is that there are 2 different groups on the growl page (the control and the actions) when they don't match and the buttons are pressed they cause a crash. Maybe sync them. Also when the app doesn't have enough width, the growl cards clip but on the left.

  10. ghost1372 commented on Nov 23, 2026

    @ghost1372
    Owner

    Thank you
    @hoshiizumiya
    The crash happens because the Growl Host live inside the "In-App Growl" sample. When you switch to the "Growl Global" sample, they leave the visual tree, Unloaded fires, and Growl.Unregister(this) removes them. The in-app buttons sit in the shared OptionGroups and stay clickable, so Growl.ShowSuccess(...) calls Resolve(null) with no host registered and throws No GrowlHost is registered. Nothing catches it, so the app crashes.
    image

  11. ghost1372 commented on Nov 23, 2026

    @ghost1372
    Owner

    @tinodin i think grow card has a minimum width size so clipping is expected, but i will work on a compact mode or responsive mode for small space scenario

  12. added a commit that references this issue on Nov 23, 2026
    78e9e5d
  13. hoshiizumiya commented on Nov 24, 2026

    @hoshiizumiya
    ContributorAuthor

    @ghost1372 Hi, I encounter another crash.

    The searchbox flyout's ConstrainToAppBounds can't switch after click the searchbox.

    onecoreuap\windows\frameworkudk\warppal.cpp(783)\Microsoft.Internal.WarpPal.dll!00007FFDDA7DE96D: (caller: 00007FFDDA7F3266) ReturnHr(8) tid(2a28) 80004002 No such interface supported
    Exception thrown at 0x00007FFDDF94555B (KernelBase.dll) in DevWinUI.Gallery.exe: WinRT originate error - 0x80004005 : 'The value of ShouldConstrainToRootBounds cannot be changed after the popup has been opened.'.
    Microsoft.UI.Xaml.dll!00007FFD45BFC826: 80004005 - Unspecified error
    Exception thrown at 0x00007FFDDF94555B (KernelBase.dll) in DevWinUI.Gallery.exe: 0xE0434352.
    Exception thrown at 0x00007FFDDF94555B (KernelBase.dll) in DevWinUI.Gallery.exe: 0xE0434352.
    [16:00:28 ERR] UnhandledException
    System.Runtime.InteropServices.COMException (0x80004005): Unspecified error
    
    The value of ShouldConstrainToRootBounds cannot be changed after the popup has been opened.
       at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|41_0(Int32)
       at DevWinUI.SearchBox.ApplyFlyoutOptions()
       at ABI.Microsoft.UI.Xaml.PropertyChangedCallback.Do_Abi_Invoke(IntPtr, IntPtr, IntPtr)
    --- End of stack trace from previous location ---
       at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|41_0(Int32)
       at ABI.Microsoft.UI.Xaml.IDependencyObjectMethods.SetValue(IObjectReference, DependencyProperty, Object)
       at ABI.Microsoft.UI.Xaml.DependencyPropertyChangedCallback.Do_Abi_Invoke(IntPtr, IntPtr, IntPtr)
    Unhandled exception at 0x00007FFD45F71A49 (Microsoft.ui.xaml.dll) in DevWinUI.Gallery.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x0000010504BF83E0, 0x0000000000000004).
  14. ghost1372 commented on Nov 24, 2026

    @ghost1372
    Owner

    I think winui limitation

    The value of ShouldConstrainToRootBounds cannot be changed after the popup has been opened

  15. added a commit that references this issue on Nov 24, 2026
    ad7e102
  16. ghost1372 commented on Nov 24, 2026

    @ghost1372
    Owner

    @hoshiizumiya I fixed it by rebuilding flyout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions