sandboxie-plus / Sandboxie

Sandboxie Plus & Classic
https://Sandboxie-Plus.com
GNU General Public License v3.0
13.82k stars 1.54k forks source link

Unable to play Minecraft 1.18.1 locally in a sandbox #1521

Closed worx7kbj closed 1 year ago

worx7kbj commented 2 years ago

Describe the problem You can't start Minecraft 1.17.x to 1.18.x single player or server in a sandbox

To Reproduce

  1. Install vanilla Minecraft
  2. Play
  3. See the error

Screenshots

Expected behavior

System details and installed software

If you had a compatibility issue or a crash

Additional context

Maybe related to https://github.com/sandboxie-plus/Sandboxie/issues/1520

Sandboxie configuration

worx7kbj commented 2 years ago

Maybe related to #1520

These two issues are both about loopback connection.

worx7kbj commented 2 years ago

Newer versions of minecraft require java16+ Those minecraft versions that support java 11 do not have this issue if you use java 11 to run them

worx7kbj commented 2 years ago

Those minecraft versions that support java 11 do not have this issue if you use java 11 to run them

But older minecraft versions such as 1.16.5 also have this issue if you run them on java 16+

DRB02 commented 2 years ago

Adding to this. Gave the program access to %appdata%. Get the error message "failed to open a new selector" when trying to play minecraft online or world. According to the internet the issue means it can't reach some files. Also it takes 4 minutes just to launch the launcher.

worx7kbj commented 2 years ago

Adding to this. Gave the program access to %appdata%. Get the error message "failed to open a new selector" when trying to play minecraft online or world. According to the internet the issue means it can't reach some files. Also it takes 4 minutes just to launch the launcher.

I get the same error message "failed to open a new selector"

DavidXanatos commented 2 years ago

please try adding

OpenFilePath=*\Temp\socket_*

to the sandbox and let me know if it fixed the issue

DRB02 commented 2 years ago

it worked for me. Thank you so much!

DavidXanatos commented 2 years ago

And its getting better with the next build you will no longer need that workaround, I'm adding propper support for this: https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/ that is what caused the issue.

DRB02 commented 1 year ago

Hello David, I wanted to start using sandboxie plus again.

But I launch minecraft, it shows running in the sandboxie list. But then the screen doesn't pop-up.

I revisited this issue, but that temporary fix doesn't work.

DRB02 commented 1 year ago

for some reason the issue is that it just takes incredibly long to startup.

I ran it to give it another try. Forgot about it and ~30 minutes later the screen popped up.

isaak654 commented 1 year ago

for some reason the issue is that it just takes incredibly long to startup.

I ran it to give it another try. Forgot about it and ~30 minutes later the screen popped up.

Another issue is required for it.