microsoft / microsoft-ui-xaml

WinUI: a modern UI framework with a rich set of controls and styles to build dynamic and high-performing Windows applications.
MIT License
6.38k stars 683 forks source link

invalid_pointer_read_c0000005 crash #9835

Open linhnddev opened 4 months ago

linhnddev commented 4 months ago

Describe the bug

It shows significant number of this crashes on Health - Microsoft Dev Partner page invalid_pointer_read_c0000005_microsoft.ui.xaml.dll!cdependencyobject::getelementislandinputsite

SDK version: 1.5.240607001

Steps to reproduce the bug

Cannot reproduce on my end.

Expected behavior

No response

Screenshots

image image

NuGet package version

None

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 22H2 (22621, 2022 Update), Windows 11 version 21H2 (22000)

IDE

No response

Additional context

No response

ZhianLin commented 3 months ago

My PC crashed today with the blue screen code DPC_WATCHDOG_VIOLATION,Windbg provided the same error code INVALID_POINTER_READ_c0000005 from dmp file.The following is the result of analyzing dmp files using windbg.

STACK_COMMAND:  ~0s; .ecxr ; kb

SYMBOL_NAME:  ucrtbase!wcsnlen+2b

MODULE_NAME: ucrtbase

IMAGE_NAME:  ucrtbase.dll

FAILURE_BUCKET_ID:  INVALID_POINTER_READ_c0000005_ucrtbase.dll!wcsnlen

OS_VERSION:  10.0.22621.1

BUILDLAB_STR:  ni_release

OSPLATFORM_TYPE:  x86

OSNAME:  Windows 10

IMAGE_VERSION:  10.0.22621.3593

FAILURE_ID_HASH:  {e3444de8-41d4-b7f8-08a9-3721f3da6c5f}

Followup:     MachineOwner
---------

0:000> lmvm ucrtbase
Browse full module list
start    end        module name
76b60000 76c72000   ucrtbase # (pdb symbols)          C:\ProgramData\dbg\sym\ucrtbase.pdb\506A7C75FAAC9C12729786B3469B0E8C1\ucrtbase.pdb
    Loaded symbol image file: ucrtbase.dll
    Mapped memory image file: C:\ProgramData\dbg\sym\ucrtbase.dll\84B62951112000\ucrtbase.dll
    Image path: C:\Windows\System32\ucrtbase.dll
    Image name: ucrtbase.dll
    Browse all global symbols  functions  data
    Image was built with /Brepro flag.
    Timestamp:        84B62951 (This is a reproducible build file hash, not a timestamp)
    CheckSum:         001158DA
    ImageSize:        00112000
    File version:     10.0.22621.3593
    Product version:  10.0.22621.3593
    File flags:       0 (Mask 3F)
    File OS:          40004 NT Win32
    File type:        2.0 Dll
    File date:        00000000.00000000
    Translations:     0409.04b0
    Information from resource tables:
        CompanyName:      Microsoft Corporation
        ProductName:      Microsoft® Windows® Operating System
        InternalName:     ucrtbase.dll
        OriginalFilename: ucrtbase.dll
        ProductVersion:   10.0.22621.4005
        FileVersion:      10.0.22621.4005 (WinBuild.160101.0800)
        FileDescription:  Microsoft® C Runtime Library
bghgary commented 1 month ago

I have exactly the same crash with a matching call stack for my app in the store. I'm on WindowsAppSDK 1.6.240829007.

Apps-and-Games-Health-details-Faliure-log-Stack-trace.zip

From the call stack, it looks like the app is crashing while shutting down.

Microsoft::UI::Dispatching::DispatcherQueue::ShutdownStartingCallback