-
Notifications
You must be signed in to change notification settings - Fork 674
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
CreateProcess fails with ERROR_INVALID_PARAMETER when trying to run a file on mounted volume #650
Comments
@KerberX Hi, Can you try with the mount manager option and see if it improves the situation? |
@Liryna Hi, no, running as This can probably be useful, log from FileSpy. This time I tried to run |
@Liryna Hi, This isn't good solution, GetFileSecurity can be important to others, but in my case it isn't. I don't really need security information for my purposes, at least right now. Although I'd like to know why MirrorGetFileSecurity prevents process creation. |
@KerberX Hi, Well found 👍Probably there is a case not handle in MirrorGetFileSecurity that return INVALID_PARAMETER. In your logs, there is an error "GetSecurityInfo error: 5" ERROR_ACCESS_DENIED probably releated to it. I could not get the hand on my env for now. |
Hi @KerberX , Have you been able to get more information or a workaround about this issue ? |
Hi @Liryna , |
Hi, @Liryna , Also I found that file browse dialog opened in the same process also causes VFS to unmount itself, but only if the mounted folder has .exe files. If there are any other files (including .dll, they are fine), the VFS will work as expected. Here's the code I use to test VFS: https://github.com/KerberX/KxVirtualFileSystem/blob/master/KxVirtualFileSystem/KxVirtualFileSystemMain.cpp#L57 When I open dialog and mounted folder has .exe files, app hungs for a few seconds. In Process Hacker I see that all threads are paused except one and it stuck doing something in Threads list. |
Hi @KerberX , Do you think there is a possibility you can do the test on Dokan version 1 ? Since v2 release there is a fix that could be what you are facing. |
I'll try to test that on v1. |
@Liryna , I can run a program, but opening file browse dialog causes mirror to hung. Even worse, it can freeze entire system, v2 has some kind of timeout in such case, this version just freezes forever. |
This should be retried with the code at head or in the next release. |
Wonderful! I hope I could test this later. |
Environment
Check List
Description
Using mirror sample I mounted file system to
M:
drive using entire game folder as root. FS mounted well and I tried to run fileenbhost.exe
there from explorer. Program does not start with error "The parameter is incorrect.". Then I tried to run the file using CreateProcess function. It doesn't work either, CreateProcess failed andGetLastError
returnedERROR_INVALID_PARAMETER
(87).Dokan 1 also has same issue, but only when I try to run programs in same process where Dokan is running, but I'm not sure if it's caused by Dokan or by my own FS implementation. For 2.0 I used mirror sample.
Why I can't run programs in mount point? Is it a Dokany bug or I doing something wrong? Here is the code I used, just in case.
Logs
DebugView++.txt
The text was updated successfully, but these errors were encountered: