question

FrancescoCarraro-4351 avatar image
0 Votes"
FrancescoCarraro-4351 asked AryaDing-MSFT commented

UWP dispatcher.cpp missing

Hi,
while developing an UWP app the UI dispatcher stopped working. No error message is raised but, debugging step by step I obtained the following:

You need to find dispatcher.cpp to view the source for the current call stack frame
Locating source for 'onecoreuap\windows\advcore\winrt\onecoreiwindow\corewindow\common\dispatcher.cpp'. Checksum: SHA256 {1e 84 a6 5 3c 49 4a 76 92 11 4c b5 d4 f4 d9 18 77 5f 72 1e 41 d7 53 3c d8 93 75 23 ad 4 91 26}
Looking in script documents for 'onecoreuap\windows\advcore\winrt\onecoreiwindow\corewindow\common\dispatcher.cpp'...
Looking in the projects for 'onecoreuap\windows\advcore\winrt\onecoreiwindow\corewindow\common\dispatcher.cpp'.
The file was not found in a project.
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\include\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\include\cvt\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\include\msclr\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\include\sys\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\crt\src\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\crt\src\x64\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\crt\src\arm\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\crt\src\concrt\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\crt\src\i386\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\crt\src\linkopts\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\crt\src\stl\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\crt\src\vccorlib\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\crt\src\vcruntime\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\atlmfc\src\mfc\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\atlmfc\src\atl\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\atlmfc\include\'...
Searching for documents embedded in the symbol file.
An embedded document was not found.
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: onecoreuap\windows\advcore\winrt\onecoreiwindow\corewindow\common\dispatcher.cpp.
The debugger could not locate the source file 'onecoreuap\windows\advcore\winrt\onecoreiwindow\corewindow\common\dispatcher.cpp'.

How can I solve?

windows-uwp
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Did you recently update Visual studio ?

0 Votes 0 ·

I did VS update today but the issue started yesterday, so I'm pretty sure it is not related.
The very strange fact is the following: I was testing the app and issue was not present. After a few minutes, I tested it again and the issue was present! I really don't understand how it is possible! Also it's a subtle issue: no error is raised in VS. Only debugging step by step istructions within the dispatcher, then it is (sometimes) shown

0 Votes 0 ·
archergod avatar image archergod FrancescoCarraro-4351 ·

I update vs and similar thing happen with me. You need to disable lot of debugging option for it to work.. Basically new vs enable lot of new debugging option.. Disable native debugging and enable just your code base debugging solve it.

0 Votes 0 ·
Show more comments

@FrancescoCarraro-4351 It is difficult to get the conclusion based on the above information. My suggestion is that you could try to use Application.UnhandledException event to get more unhandled exception information. Besides, could you please provide us a minimal reproducible example by OneDrive or GitHub?

0 Votes 0 ·

0 Answers