Skip to content
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

Program tries to load resource files from wrong folder when starting in Windows Explorer after being moved into a Forced Folder #1507

Closed
RadarNyan opened this issue Jan 3, 2022 · 9 comments
Labels
fixed in next build Fixed in the next Sandboxie version

Comments

@RadarNyan
Copy link

Describe the problem
When you start a program by double-clicking it in Windows Explorer, the program would launch, but it's unable to load resource files due to trying to access it from original location.

To Reproduce
Steps to reproduce the behavior:

  1. Create the following folder structure:
C:\Test\Download
C:\Test\Forced
  1. Create a new Sandbox, add C:\Test\Forced to Forced Folders.
  2. Download SAMPLE_GAME.zip from another issue Custom Font (not installed on the system) fail to load with "SBIE2205 Service not implemented" #1445 I created. You can use any program that loads external resource files.
  3. Extract SAMPLE_GAME.zip to a folder, now you have C:\Test\Download\SAMPLE_GAME.
  4. Move the SAMPLE_GAME folder to C:\Test\Forced.
  5. Open C:\Test\Forced\SAMPLE_GAME in Windows Explorer and double-click on Game.exe.
  6. The program runs but fail to load resource files with error message: Cannot locate basic info data C:\Test/Download/SAMPLE_GAME/Data/BasicData/Game.dat, note that it tries to load the file from Download instead of Forced.
  7. Terminate Programs, try to start the game using Run Sandboxed - Run Any Program dialog, or right-click on Game.exe in Windows Explorer and select Run Sandboxed command, the program runs and loads the files without error.
  8. You can try to repeat step 6, and it still won't work.

Workaround
This is a workaround I discovered by accident, just right-click on Game.exe and select Properties, from now on it will run just fine.

Also, this is an old bug presents in original Sandboxie.

@DavidXanatos DavidXanatos added High priority To be done as soon as possible to investigate labels Jan 3, 2022
@ghost
Copy link

ghost commented Jan 3, 2022

This looks similar to other issue (which most likely got fixed already as I was not able to reproduce it anymore)
https://sandboxie-website-archive.github.io/www.sandboxie.com/old-forums/viewtopiceb8eeb8e.html?p=132071#p132071

@RadarNyan
Copy link
Author

This looks similar to other issue (which most likely got fixed already as I was not able to reproduce it anymore) https://sandboxie-website-archive.github.io/www.sandboxie.com/old-forums/viewtopiceb8eeb8e.html?p=132071#p132071

If you read that thread you'll notice that I mentioned the same workaround back then under the same screen name.

And no, this is not fixed and I can reproduce this on both my Windows 7 installation and a fresh Windows 10 LTSC 2021 VM:
SnapCrab_NoName_2022-1-4_10-46-35_No-00

@DavidXanatos
Copy link
Member

for me this procedure worked just fine,
am i missing a step or something.

Am I suposed to move the file form download to forces with a sandboxed explorer or something?

I don't see how the game could be in any way aware of the C:\Test\Download location

can you make a video or something please

@RadarNyan
Copy link
Author

2022-01-08.20-37-56.mp4

I believe this is more like a problem of Windows Explorer, not the game.

@RadarNyan
Copy link
Author

Quote from the old sandboxie forum:

For some reason, when Windows sends us the notification of a process starting, it is giving us the old file path. I will research this to find out why.

Maybe check if the Windows provided path exist, if not use the executable location instead?

@DavidXanatos
Copy link
Member

are there debug symbols available for this game engine?
or some much simpler sample that would demonstrate this issue?

@DavidXanatos DavidXanatos added fixed in next build Fixed in the next Sandboxie version and removed to investigate High priority To be done as soon as possible labels Jan 8, 2022
@DavidXanatos
Copy link
Member

the issue was with Ldr_FixImagePath_2, fil will be included in the next build

@ghost
Copy link

ghost commented Jan 8, 2022

And no, this is not fixed and I can reproduce this on both my Windows 7 installation and a fresh Windows 10 LTSC 2021 VM:

By fixed I meant the issue I linked in previous post.

I wonder if your game would run sandboxed or not when you move it to folder3 (which is not forced) at the end of the movie .

@DavidXanatos
Copy link
Member

And no, this is not fixed and I can reproduce this on both my Windows 7 installation and a fresh Windows 10 LTSC 2021 VM:

By fixed I meant the issue I liked in previous post.

I wonder if your game would run sandboxed or not when you move it to folder3 (which is not forced) at the end of the movie .

Please link to the issue you are referring to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed in next build Fixed in the next Sandboxie version
Projects
None yet
Development

No branches or pull requests

2 participants