On Windows11 7-Zip sometimes makes explorer.exe crash. or gives memory leak problems. you can replicate the issue if you remove iconcache while 7zip is open
PS: also tested latest version on freshly installed virtual machine after using it for 14-18 hours, same explorer crash happened multiple times. it generally happens when u drag and drop something from 7-zip to desktop.
Updated thread for suiting the latest version.
tested 21.04 beta on virtual box for 2 days
Yes, also tested on 21.05 on virtual box for 14-18 hours
errors happened on both. watch gif u want to see also...
Windows 11 Build was 22000.318 + vredist pack via abbodi is installed
For drag and drop issue that makes explorer.exe crash (yes happened on 21.05 only 1 time on even virtual box)
1) open any archive
2) drag content and drop it to desktop
3) do it multiple times untill explorer.exe crashes. its all random.
For memory leak error (yes happened on 21.05)
1) open 7zip interface (you don't need to open archive, but you can too)
2) refresh/clear iconcache by a tool or cmd command or manually if you can
I used refreshiconcache tool from sordum.org reiconcache.exe
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have no window 11.
Do you have same problems in Window 10?
also you write "vredist pack via abbodi is installed".
So it's not default Windows.
Do you see problems with default Windows 10/11 without unusual third-party software installations?
Why does somebody need to refresh/clear iconcache?
What way to refresh/clear iconcache without third-party tool?
Last edit: Igor Pavlov 2021-11-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1) I can't test on windows10 since i don't use it. You should test your own software on latest environment? also idk if u know that but we don't even have context menu on windows 11....
2) abbodi's vredist pack is no different when installed than original. it is not modified. just automated. i removed it and still got the memory error. i bet i will have explorer crash error if i try tons of times drag and drop too...
3) i refresh explorer or refresh icon cache sometimes because it is needed to show icons correctly. if you create a sfx file with name matching to the previous one. icon's are not displayed correctly untill restart, since sfx builder we have it doesn't do it automatically. it can be done via cmd manually, i did it with a tool that might be the problem/highly be the problem but since its purpose is to refresh icon cache, maybe u can investigate why this is happening and fix it before something different happens?
just wanted to share with you, if u want to take an action. i'm okay with how it is right now.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do you know how to debug that feature without third-party programs like "ReIconCache"?
Is there system commands for testiung?
And what WM_COMMAND and interface do you mean?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
With SpyEx I can see that ReIconCache sends a "WM_COMMAND, 0xA220, 0" to the 7zFM Main window.
7zFM thinks this a menu click.
In PanelMenu.cpp (CPanel::InvokePluginCommand) there will be a crash
as these 2 IContextMenu don't exist a that time.
if (isSystemMenu)
result = systemContextMenu->InvokeCommand(LPCMINVOKECOMMANDINFO(&commandInfo));
else
result = sevenZipContextMenu->InvokeCommand(LPCMINVOKECOMMANDINFO(&commandInfo));
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thanks JackF also the dev of reiconcache will try to fix the issue. the reason i wrote here is to let 7zip dev know there is a issue existing and maybe it can be triggered by something else.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think this message is more important,
For my other bug reported here is how to replicate it
1) create some txt files.. for this example i created 3 files via notepad
2) compress them to zip via windows official send>zip feature from right click context menu
3) i made these operations in "downloads folder"
4) open the zip file via 7-zip and select all content
5) drag and drop them to the same downloads folder where archive is
6) see the result. (explorer.exe restarts + 7zip gaves error)
windows 11 build 22000.318
7-zip latest stable 21.05 x64
I have no Windows 11 now. So it's difficult to debug that case.
Try to simplify bad/good cases examples.
Use one txt file instead of 3 files.
try to drag and drop to another 7-Zip panel, or to another 7-Zip instance.
Also I see that you have some modified toolbar in 7-Zip.
So try same actions with unmodified 7-Zip.
Last edit: Igor Pavlov 2021-11-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
desktop is not simplest folder.
Try to drag file to c:\dir1\.
also try to drag file with Ctrl from usual folder c:\dir2\ in 7-Zip instead of drag from zip archive.
When you drag file from archive, 7-zip uses temp folder.
And 7-zip doesn't use temp folder, when you drag from usual folder.
Also Explorer must ask to replace existing file, if you drag second time. Do you have crash before or after replace question?
Do you have same problems with 7-Zip 19.00?
Last edit: Igor Pavlov 2021-11-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
sorry tested really near 50 times, can't replicate the issue. because its all random... when u have windows 11, just remember this problem so u can take a look at it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
as i see they changed their response on the tools website
As you already realized this is a secret (Actually NOT) but we can give you a hint , just look at the last picture. Or you can use one of the following codes from Run dialog, first one is for Windows 11 and Windows 10 , second one is for lower windows versions:
ie4uinit.exe -show
ie4uinit.exe -ClearIconCache
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have had this problem for as long as I can remember on Windows 7, 10 & 11. It usually occurs when trying to drag & drop files from 7-zip file manager, of a very big archive, into a Windows folder. I have no windows power toys. I have seen it on 2 different desktops and a laptop.
Last edit: MackSix 2022-05-08
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I found a way to reproduce it, sort of. Here I drag & drop the contents of a public_html directory in a large cpanel backup into folder. It goes fast the first time. Then I repeat it and try to drag & drop the same files into the same directory on top of the exsisting files. This goes badly and takes a very, very, very long time to complete. I cancel the operation and when I do, 7-zip is frozen and the desktop is frozen, but when I try to double click the folder, I get a 7-zip "A Remote Procedure Call Failed" dialog box. I see this happening sometimes on drag & dropping large batches of files without cancelling the operation. See video: https://somup.com/c3h2jxOW9v
Last edit: MackSix 2022-05-14
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On Windows11 7-Zip sometimes makes explorer.exe crash. or gives memory leak problems. you can replicate the issue if you remove iconcache while 7zip is open
PS: also tested latest version on freshly installed virtual machine after using it for 14-18 hours, same explorer crash happened multiple times. it generally happens when u drag and drop something from 7-zip to desktop.
here is a gif to demonstrate/replicate the memory leak issue. for crash issue you need to drag and drop multiple times until it happens.
https://gcdn.pbrd.co/images/WC2CUuXAMyfc.gif?o=1
Last edit: Crypticus 2021-11-22
What version of 7-zip?
Test also with 7-Zip 21.05.
Please describe all actions in text to reproduce the problems.
Updated thread for suiting the latest version.
tested 21.04 beta on virtual box for 2 days
Yes, also tested on 21.05 on virtual box for 14-18 hours
errors happened on both. watch gif u want to see also...
Windows 11 Build was 22000.318 + vredist pack via abbodi is installed
For drag and drop issue that makes explorer.exe crash (yes happened on 21.05 only 1 time on even virtual box)
1) open any archive
2) drag content and drop it to desktop
3) do it multiple times untill explorer.exe crashes. its all random.
For memory leak error (yes happened on 21.05)
1) open 7zip interface (you don't need to open archive, but you can too)
2) refresh/clear iconcache by a tool or cmd command or manually if you can
I used refreshiconcache tool from sordum.org reiconcache.exe
I have no window 11.
Do you have same problems in Window 10?
also you write "vredist pack via abbodi is installed".
So it's not default Windows.
Do you see problems with default Windows 10/11 without unusual third-party software installations?
Why does somebody need to refresh/clear iconcache?
What way to refresh/clear iconcache without third-party tool?
Last edit: Igor Pavlov 2021-11-22
1) I can't test on windows10 since i don't use it. You should test your own software on latest environment? also idk if u know that but we don't even have context menu on windows 11....
2) abbodi's vredist pack is no different when installed than original. it is not modified. just automated. i removed it and still got the memory error. i bet i will have explorer crash error if i try tons of times drag and drop too...
3) i refresh explorer or refresh icon cache sometimes because it is needed to show icons correctly. if you create a sfx file with name matching to the previous one. icon's are not displayed correctly untill restart, since sfx builder we have it doesn't do it automatically. it can be done via cmd manually, i did it with a tool that might be the problem/highly be the problem but since its purpose is to refresh icon cache, maybe u can investigate why this is happening and fix it before something different happens?
just wanted to share with you, if u want to take an action. i'm okay with how it is right now.
I also contacted dev of reiconcache.exe and they told me its about 7zip's dll not our tool.
This ReIconCache properly sends a WM_COMMAND message to all Windows.
In PanelMenu.cpp (CPanel::InvokePluginCommand) there are InvokeCommand calls, but no Interface at the time.
Last edit: JackF 2021-11-22
Do you know how to debug that feature without third-party programs like "ReIconCache"?
Is there system commands for testiung?
And what WM_COMMAND and interface do you mean?
With SpyEx I can see that ReIconCache sends a "WM_COMMAND, 0xA220, 0" to the 7zFM Main window.
7zFM thinks this a menu click.
In PanelMenu.cpp (CPanel::InvokePluginCommand) there will be a crash
as these 2 IContextMenu don't exist a that time.
if (isSystemMenu)
result = systemContextMenu->InvokeCommand(LPCMINVOKECOMMANDINFO(&commandInfo));
else
result = sevenZipContextMenu->InvokeCommand(LPCMINVOKECOMMANDINFO(&commandInfo));
I'll try to fix it.
Why does it send WM_COMMAND, 0xA220, 0 to 7-Zip?
thanks JackF also the dev of reiconcache will try to fix the issue. the reason i wrote here is to let 7zip dev know there is a issue existing and maybe it can be triggered by something else.
I think this message is more important,
For my other bug reported here is how to replicate it
1) create some txt files.. for this example i created 3 files via notepad
2) compress them to zip via windows official send>zip feature from right click context menu
3) i made these operations in "downloads folder"
4) open the zip file via 7-zip and select all content
5) drag and drop them to the same downloads folder where archive is
6) see the result. (explorer.exe restarts + 7zip gaves error)
windows 11 build 22000.318
7-zip latest stable 21.05 x64
here is gif file, please watch its short: https://gcdn.pbrd.co/images/b5zWxg9Nh3P0.gif?o=1
I have no Windows 11 now. So it's difficult to debug that case.
Try to simplify bad/good cases examples.
Use one txt file instead of 3 files.
try to drag and drop to another 7-Zip panel, or to another 7-Zip instance.
Also I see that you have some modified toolbar in 7-Zip.
So try same actions with unmodified 7-Zip.
Last edit: Igor Pavlov 2021-11-22
uninstalled 7zip and installed again so not modified this time;
new archive has only 1 text file
archive was in C:\, dragged and dropped to desktop
same thing happened only 1 time after 20 drag and drop tries
desktop is not simplest folder.
Try to drag file to
c:\dir1\
.also try to drag file with
Ctrl
from usual folderc:\dir2\
in 7-Zip instead of drag from zip archive.When you drag file from archive, 7-zip uses temp folder.
And 7-zip doesn't use temp folder, when you drag from usual folder.
Also Explorer must ask to replace existing file, if you drag second time. Do you have crash before or after replace question?
Do you have same problems with 7-Zip 19.00?
Last edit: Igor Pavlov 2021-11-22
sorry tested really near 50 times, can't replicate the issue. because its all random... when u have windows 11, just remember this problem so u can take a look at it.
as i see they changed their response on the tools website
As you already realized this is a secret (Actually NOT) but we can give you a hint , just look at the last picture. Or you can use one of the following codes from Run dialog, first one is for Windows 11 and Windows 10 , second one is for lower windows versions:
ie4uinit.exe -show
ie4uinit.exe -ClearIconCache
Same here, whenever I drag a file from 7zip to any dir it crashes explorer.exe
windows 11 22000.466
7zip 21.07
This is data from event viewer error when it happens:
Faulting application name: explorer.exe, version: 10.0.22000.466, time stamp: 0xf939ed7d
Faulting module name: SHELL32.dll, version: 10.0.22000.466, time stamp: 0x09aefa28
Exception code: 0xc0000005
Fault offset: 0x0000000000003a35
Faulting process id: 0x144d8
Faulting application start time: 0x01d80c65980d4f54
Faulting application path: C:\WINDOWS\explorer.exe
Faulting module path: C:\WINDOWS\System32\SHELL32.dll
Report Id: 25d61dd7-c71a-4664-9f48-56d7076443eb
Faulting package full name:
Faulting package-relative application ID:
Last edit: Kristijan Novaković 2022-01-18
Something was changed in Windows 11.
Now I don't know the reason.
I also have a dump file if it might help
One other thing I just thought of, maybe it is related to windows power toys? Not sure if @Crypticus has it installed as well.
I have Power Toys installed and have this exact same issue. "remote procedure call failed"
Faulting application name: Explorer.EXE, version: 10.0.22000.593, time stamp: 0x59a4b94a
Faulting module name: SHELL32.dll, version: 10.0.22000.593, time stamp: 0x78f2c661
Exception code: 0xc0000005
Fault offset: 0x0000000000003705
Faulting process id: 0x31e4
Faulting application start time: 0x01d859965af86fe5
Faulting application path: C:\WINDOWS\Explorer.EXE
Faulting module path: C:\WINDOWS\System32\SHELL32.dll
Report Id: 7a3c3ecb-3c1c-4d2b-a0bb-830a11ff37e7
Faulting package full name:
Faulting package-relative application ID:
I have had this problem for as long as I can remember on Windows 7, 10 & 11. It usually occurs when trying to drag & drop files from 7-zip file manager, of a very big archive, into a Windows folder. I have no windows power toys. I have seen it on 2 different desktops and a laptop.
Last edit: MackSix 2022-05-08
What exact symptoms did you see?
I found a way to reproduce it, sort of. Here I drag & drop the contents of a public_html directory in a large cpanel backup into folder. It goes fast the first time. Then I repeat it and try to drag & drop the same files into the same directory on top of the exsisting files. This goes badly and takes a very, very, very long time to complete. I cancel the operation and when I do, 7-zip is frozen and the desktop is frozen, but when I try to double click the folder, I get a 7-zip "A Remote Procedure Call Failed" dialog box. I see this happening sometimes on drag & dropping large batches of files without cancelling the operation. See video: https://somup.com/c3h2jxOW9v
Last edit: MackSix 2022-05-14