SkyLined / BugId

Detect, analyze and uniquely identify crashes in Windows applications
https://bugid.skylined.nl
Other
499 stars 90 forks source link

cannot start debugging of edge on Win10 April Updates #80

Closed j00sean closed 6 years ago

j00sean commented 6 years ago

┌─ Software license warning ─────────────────────────────────────────────────────────────────────────────────────────── │ You have no license for mFileSystem and your trial period will expire on 2018-06-30 │ You have no license for mWindowsAPI and your trial period will expire on 2018-06-30 │ You have no license for cBugId and your trial period will expire on 2018-06-30 │ You have no license for BugId and your trial period will expire on 2018-06-30 │ You have no license for mProductDetails and your trial period will expire on 2018-06-30 │ You have no license for oConsole and your trial period will expire on 2018-06-30 └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

C:\Users\IEUser\Desktop\BugId>python BugId.py -v edge

┌─ Software license warning ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │ You have no license for mFileSystem and your trial period will expire on 2018-06-30 │ You have no license for mWindowsAPI and your trial period will expire on 2018-06-30 │ You have no license for cBugId and your trial period will expire on 2018-06-30 │ You have no license for BugId and your trial period will expire on 2018-06-30 │ You have no license for mProductDetails and your trial period will expire on 2018-06-30 │ You have no license for oConsole and your trial period will expire on 2018-06-30 └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Over this point the debugging process is freezed. Runtime broker process is suspended and no microsoftedgecp.exe is spawned.

screenshot

We stop BugId and manually kill the processes ApplicationFrameHost, MicrosoftEdge and RuntimeBroker. Starting again BugId an error window like this is observed

screenshot_dbgsrv

j00sean commented 6 years ago

Once applied the latest updates (2018-05), everything has been working fine but only for one attempt. But it was impossible to retry. So this is also confirmed on Microsoft Windows [Version 10.0.17134.81]. I forgot to mention that when the system is started there is already one MicrosoftEdge.exe process and a couple of MicrosoftEdgeCP.exe processes:

C:\Users\IEUser>tasklist /apps /fi "STATUS eq Suspended"

Image Name PID Mem Usage Package Name
================================================== ======== ============ ================================================== ShellExperienceHost.exe (App) 4820 58,752 K Microsoft.Windows.ShellExperienceHost_10.0.17134.1 SearchUI.exe (CortanaUI) 4260 103,668 K Microsoft.Windows.Cortana_1.10.7.17134_neutral_neu SkypeHost.exe (ppleae38af2e007f4358a809ac99a64a67c 2796 12,252 K Microsoft.SkypeApp_12.1815.209.0_x64kzf8qxf38zg5 MicrosoftEdge.exe (MicrosoftEdge) 5364 286,464 K Microsoft.MicrosoftEdge_42.17134.1.0_neutral8wek MicrosoftEdgeCP.exe (ContentProcess) 6120 52,204 K Microsoft.MicrosoftEdge_42.17134.1.0_neutral8wek MicrosoftEdgeCP.exe (ContentProcess) 6128 45,388 K Microsoft.MicrosoftEdge_42.17134.1.0_neutral8wek

This is the output of BugId:

Microsoft Windows [Version 10.0.17134.81] (c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\IEUser\Desktop\BugId>python BugId.py -v edge

┌─ Software license warning ─────────────────────────────────────────────────────────────────────────────────────────── │ You have no license for mFileSystem and your trial period will expire on 2018-06-30 │ You have no license for mWindowsAPI and your trial period will expire on 2018-06-30 │ You have no license for cBugId and your trial period will expire on 2018-06-30 │ You have no license for BugId and your trial period will expire on 2018-06-30 │ You have no license for mProductDetails and your trial period will expire on 2018-06-30 │ You have no license for oConsole and your trial period will expire on 2018-06-30 └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{CD261D52-DA8D-4B0A-B269-10E9C45AEDA0}.dat, will retry in 1 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{CD261D52-DA8D-4B0A-B269-10E9C45AEDA0}.dat, will retry in 4 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{CD261D52-DA8D-4B0A-B269-10E9C45AEDA0}.dat, will retry in 5 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{CD261D52-DA8D-4B0A-B269-10E9C45AEDA0}.dat, will retry in 10 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{CD261D52-DA8D-4B0A-B269-10E9C45AEDA0}.dat, will retry in 10 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{CD261D52-DA8D-4B0A-B269-10E9C45AEDA0}.dat, will retry in 30 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{CD261D52-DA8D-4B0A-B269-10E9C45AEDA0}.dat, will retry in 30 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{CD261D52-DA8D-4B0A-B269-10E9C45AEDA0}.dat, will retry in 30 seconds ┌─ An internal exception has occured ────────────────────────────────────────────────────────────────────────────────── │ WindowsError(32, 'The process cannot access the file because it is being used by another process') │ │ Stack: │ 0 febDeleteChildrenFromFolder @ C:\Users\IEUser\Desktop\BugId\modules\mFileSystem\mFileSystem.py/309 │ > os.remove(sChildPath); │ 1 fbDeleteChildrenFromFolder @ C:\Users\IEUser\Desktop\BugId\modules\mFileSystem\mFileSystem.py/246 │ > ebResult = febDeleteChildrenFromFolder(*asPathSections, **dxArguments); │ 2 fDeleteRecovery @ C:\Users\IEUser\Desktop\BugId\ddxApplicationSettings_by_sKeyword\ddxMicrosoftEdgeSettings_by_sKeyword.py/41 │ > mFileSystem.fbDeleteChildrenFromFolder(sEdgeRecoveryPath); │ 3 fEdgeSetup @ C:\Users\IEUser\Desktop\BugId\ddxApplicationSettings_by_sKeyword\ddxMicrosoftEdgeSettings_by_sKeyword.py/33 │ > fDeleteRecovery(); │ 4 fMain @ BugId.py/740 │ > fSetup(bFirstRun = uRunCounter == 0); │ 5 BugId.py/883 │ > fMain(sys.argv[1:]); └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Please report the above details at the below web-page so it can be addressed: https://github.com/SkyLined/BugId/issues/new If you do not have a github account, or you want to report this issue privately, you can also send an email to: BugId@skylined.nl

In your report, please copy the information about the exception reported above, as well as the stack trace and BugId version information. This makes it easier to determine the cause of this issue and makes for faster fixes.

┌─ Version information ──────────────────────────────────────────────────────────────────────────────────────────────── │ ∙ BugId version: 2018-05-30 19:58 (in trial period). │ You are running an old version: the latest released version is 2018-05-31 05:41, available at https://github.com/SkyLined/BugId/archive/master.zip. │ ∙ mFileSystem version: 2018-05-30 11:27 (in trial period). │ ∙ mWindowsAPI version: 2018-05-18 08:51 (in trial period). │ ∙ cBugId version: 2018-05-30 19:54 (in trial period). │ You are running an old version: the latest released version is 2018-05-31 05:32, available at https://github.com/SkyLined/cBugId/archive/master.zip. │ ∙ mProductDetails version: 2018-04-18 21:07 (in trial period). │ You are running an old version: the latest released version is 2018-05-31 05:30, available at https://github.com/SkyLined/mProductDetails/archive/master.zip. │ ∙ oConsole version: 2018-05-30 11:28 (in trial period). │ You are running an old version: the latest released version is 2018-05-31 06:56, available at https://github.com/SkyLined/oConsole/archive/master.zip. │ ∙ Windows version: Windows 10 Enterprise Evaluation release 1803, build 17134 x64. │ ∙ Python version: 2.7.14 x64. └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

┌─ Software license warning ─────────────────────────────────────────────────────────────────────────────────────────── │ You have no license for mFileSystem and your trial period will expire on 2018-06-30 │ You have no license for mWindowsAPI and your trial period will expire on 2018-06-30 │ You have no license for cBugId and your trial period will expire on 2018-06-30 │ You have no license for BugId and your trial period will expire on 2018-06-30 │ You have no license for mProductDetails and your trial period will expire on 2018-06-30 │ You have no license for oConsole and your trial period will expire on 2018-06-30 └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Thank you in advance for helping to improve BugId!

BugId is stopped and these processes are manually killed. Then it happens the issue posted above.

j00sean commented 6 years ago

I found a way to avoid this annoying issue. Basically it's related to kill these processes as soon. In summary: start Windows, wait a while (undetermined yet), kill the processes and launch BugId. For example, just launch BugId twice (the above error is triggered), kill the processes and relaunch BugId:

Microsoft Windows [Version 10.0.17134.81] (c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\IEUser\Desktop\BugId>python BugId.py -v edge

┌─ Software license warning ─────────────────────────────────────────────────────────────────────────────────────────── │ You have no license for mFileSystem and your trial period will expire on 2018-06-30 │ You have no license for mWindowsAPI and your trial period will expire on 2018-06-30 │ You have no license for cBugId and your trial period will expire on 2018-06-30 │ You have no license for BugId and your trial period will expire on 2018-06-30 │ You have no license for mProductDetails and your trial period will expire on 2018-06-30 │ You have no license for oConsole and your trial period will expire on 2018-06-30 └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{4B8131C5-BE4B-4005-A67F-140DDA6F53C4}.dat, will retry in 1 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{4B8131C5-BE4B-4005-A67F-140DDA6F53C4}.dat, will retry in 4 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{4B8131C5-BE4B-4005-A67F-140DDA6F53C4}.dat, will retry in 5 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{4B8131C5-BE4B-4005-A67F-140DDA6F53C4}.dat, will retry in 10 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{4B8131C5-BE4B-4005-A67F-140DDA6F53C4}.dat, will retry in 10 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{4B8131C5-BE4B-4005-A67F-140DDA6F53C4}.dat, will retry in 30 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{4B8131C5-BE4B-4005-A67F-140DDA6F53C4}.dat, will retry in 30 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{4B8131C5-BE4B-4005-A67F-140DDA6F53C4}.dat, will retry in 30 seconds ┌─ An internal exception has occured ────────────────────────────────────────────────────────────────────────────────── │ WindowsError(32, 'The process cannot access the file because it is being used by another process') │ │ Stack: │ 0 febDeleteChildrenFromFolder @ C:\Users\IEUser\Desktop\BugId\modules\mFileSystem\mFileSystem.py/309 │ > os.remove(sChildPath); │ 1 fbDeleteChildrenFromFolder @ C:\Users\IEUser\Desktop\BugId\modules\mFileSystem\mFileSystem.py/246 │ > ebResult = febDeleteChildrenFromFolder(*asPathSections, **dxArguments); │ 2 fDeleteRecovery @ C:\Users\IEUser\Desktop\BugId\ddxApplicationSettings_by_sKeyword\ddxMicrosoftEdgeSettings_by_sKeyword.py/41 │ > mFileSystem.fbDeleteChildrenFromFolder(sEdgeRecoveryPath); │ 3 fEdgeSetup @ C:\Users\IEUser\Desktop\BugId\ddxApplicationSettings_by_sKeyword\ddxMicrosoftEdgeSettings_by_sKeyword.py/33 │ > fDeleteRecovery(); │ 4 fMain @ BugId.py/740 │ > fSetup(bFirstRun = uRunCounter == 0); │ 5 BugId.py/883 │ > fMain(sys.argv[1:]); └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ... C:\Users\IEUser\Desktop\BugId>python BugId.py -v edge

┌─ Software license warning ─────────────────────────────────────────────────────────────────────────────────────────── │ You have no license for mFileSystem and your trial period will expire on 2018-06-30 │ You have no license for mWindowsAPI and your trial period will expire on 2018-06-30 │ You have no license for cBugId and your trial period will expire on 2018-06-30 │ You have no license for BugId and your trial period will expire on 2018-06-30 │ You have no license for mProductDetails and your trial period will expire on 2018-06-30 │ You have no license for oConsole and your trial period will expire on 2018-06-30 └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{4B8131C5-BE4B-4005-A67F-140DDA6F53C4}.dat, will retry in 1 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{4B8131C5-BE4B-4005-A67F-140DDA6F53C4}.dat, will retry in 4 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{4B8131C5-BE4B-4005-A67F-140DDA6F53C4}.dat, will retry in 5 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{4B8131C5-BE4B-4005-A67F-140DDA6F53C4}.dat, will retry in 10 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{4B8131C5-BE4B-4005-A67F-140DDA6F53C4}.dat, will retry in 10 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{4B8131C5-BE4B-4005-A67F-140DDA6F53C4}.dat, will retry in 30 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{4B8131C5-BE4B-4005-A67F-140DDA6F53C4}.dat, will retry in 30 seconds Error WindowsError(32, 'The process cannot access the file because it is being used by another process') while attempting to delete file \?\C:\Users\IEUser\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active\RecoveryStore.{4B8131C5-BE4B-4005-A67F-140DDA6F53C4}.dat, will retry in 30 seconds ... C:\Users\IEUser\Desktop\BugId>taskkill /f /im MicrosoftEdge.exe SUCCESS: The process "MicrosoftEdge.exe" with PID 5368 has been terminated.

C:\Users\IEUser\Desktop\BugId>python BugId.py -v edge

┌─ Software license warning ─────────────────────────────────────────────────────────────────────────────────────────── │ You have no license for mFileSystem and your trial period will expire on 2018-06-30 │ You have no license for mWindowsAPI and your trial period will expire on 2018-06-30 │ You have no license for cBugId and your trial period will expire on 2018-06-30 │ You have no license for BugId and your trial period will expire on 2018-06-30 │ You have no license for mProductDetails and your trial period will expire on 2018-06-30 │ You have no license for oConsole and your trial period will expire on 2018-06-30 └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

screenshot_good

The virtual machine that i'm testing is not very clean, so i'm not sure whether this is a general issue or not. I will do more testing using clean VMs next days and will keep you informed.

j00sean commented 6 years ago

I'm gonna close this issue since it looks to be related to Windows or cdb/windbg itself. So it's not an issue in BugId. Thread confirming this guess: https://twitter.com/w3bd3vil/status/1002612500989280256 My solution, by the moment, is: while RuntimeBroker is suspended, edge cannot be debugged. If you kill the process RuntimeBroker.exe and the dbgsrv window appears, kill it once and again until it's running. Then, BugId and other debuggers will work fine.