-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report Tool] Zip folder can not be created #12966
Conversation
@franky920920 |
@mykhailopylyp I'll try. |
@mykhailopylyp I've failed to generate the zip file. Debug build log'BugReportTool.exe' (Win32): Loaded 'C:\Projects\PowerToys\x64\Debug\BugReportTool\BugReportTool.exe'. Symbols loaded.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\apphelp.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\wevtapi.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'.
The thread 0x35b0 has exited with code 0 (0x0).
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\rsaenh.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\clbcatq.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Web.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Globalization.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\BCP47Langs.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\Winlangdb.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\BCP47mrm.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'.
Exception thrown at 0x00007FF9ED0D466C in BugReportTool.exe: Microsoft C++ exception: int at memory location 0x000000D91C4FE974.
The thread 0x7390 has exited with code 1 (0x1).
The thread 0x7134 has exited with code 1 (0x1).
The thread 0x6058 has exited with code 1 (0x1).
The program '[7556] BugReportTool.exe' has exited with code 1 (0x1). |
@franky920920 |
@mykhailopylyp I've got an empty output after the update. Log file has been successfully generated. (PowerToysReport_2021-09-01-08-17-44.zip) Debug Build log'BugReportTool.exe' (Win32): Loaded 'C:\Projects\PowerToys\x64\Debug\BugReportTool\BugReportTool.exe'. Symbols loaded.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\wevtapi.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'.
The thread 0x5c98 has exited with code 0 (0x0).
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\clbcatq.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Web.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Globalization.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\BCP47Langs.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\Winlangdb.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\BCP47mrm.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'.
'BugReportTool.exe' (Win32): Loaded 'C:\Windows\System32\msxml6.dll'.
The thread 0x5638 has exited with code 0 (0x0).
The thread 0x7d18 has exited with code 0 (0x0).
The thread 0x384c has exited with code 0 (0x0).
The program '[16800] BugReportTool.exe' has exited with code 0 (0x0). |
@franky920920 By the way, can you confirm that bug report from 0.43 version still fails? |
Yes. That's how I build it.
Confirmed that is still failing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Summary of the Pull Request
What is this about:
For some users desktop path can not be represented as
char*
. On the other hand, https://github.com/kuba--/zip requireschar*
as a path for zip folder.To solve the issue we zip a folder into the temp folder and then copy it to the desktop.
Don't call
InstallationFolder::ReportStructure(reportDir);
in the debug mode because it takes a lot of time and makes testing in debug mode impossible. Also, updated the cziplib submodule.What is include in the PR:
How does someone test / validate:
Quality Checklist
Contributor License Agreement (CLA)
A CLA must be signed. If not, go over here and sign the CLA.