Skip to content

Crash when navigate quickly #10920

@paperchalice

Description

@paperchalice

Describe the bug

Reproducer: Crash.zip
Invoke picture item then go back

Why is this important?

Page navigation is unreliable, the repeat threshold will be less when there are more items.

Steps to reproduce the bug

  1. Debug project
  2. Invoke picture item and click GoBack quickly (e.g. click in 3Hz).
  3. Repeat previous step about 30 sec.

Actual behavior

App crashed.

Expected behavior

App keeps running.

Screenshots

Image

NuGet package version

WinUI 3 - Windows App SDK 1.8.3: 1.8.251106002

Windows version

Windows 11 (24H2): Build 26100

Additional context

Without native code debugging:

The program '[18580] Crash.exe' has exited with code 3221226505 (0xc0000409).

With native code debugging:

Microsoft.UI.Xaml.dll!00007FFAEF640B85: 8001010E - RPC_E_WRONG_THREAD
Exception thrown at 0x00007FFB817E782A (KernelBase.dll) in Crash.exe: WinRT originate error - 0x8001010E : 'The application called an interface that was marshalled for a different thread.'.
Exception thrown at 0x00007FFB817E782A in Crash.exe: Microsoft C++ exception: winrt::hresult_wrong_thread at memory location 0x0000000FF837F040.
Unhandled exception at 0x00007FFB81394ACE (ucrtbase.dll) in Crash.exe: Fatal program exit requested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions