sandboxie-plus / Sandboxie

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

RPG Maker MV games crash right after start #1702

Open usr7823 opened 2 years ago

usr7823 commented 2 years ago

What happened?

I like retro style games and have a few games based on the RPG Maker engine in my steam library. I noticed that games that are based on the RPG Maker MV engine have issues to start. After starting a game the game window will show up. The main process starts a few sub processes. Game exe started The game will crash most times after a few seconds. The game window closes. A few sub processes still linger. Game exe main process crashed

The games will not always crash but more often than not. If the game renders in the window it will not crash but getting there can be annoying. The sub process that crashes with the main process is started with the parameter '--type=gpu-process'.

I am using a Microsoft Surface Pro 8 with an i7-1185G7. It has only an integrated graphics chip (Intel Iris Xe). I am using the Intel drivers and not the drivers provided by Microsoft. I had the same issue with my old Surface device and 0.x Sandboxie. It's not a new behavior.

I can provide a trace log if needed. Which 'tracing' options should I enable?

To Reproduce

I don't expect anyone to buy a game to reproduce the error. Fortunately these crashes can be reproduced with every RPG Maker MV game, at least as far as I can tell. Some games can be downloaded for free on RPGMaker.net. I was able to reproduce the crashes with the most downloaded RPG Maker MV game. https://rpgmaker.net/games/?engine=37&commercial=exclude&sort=-total_downloads

  1. Download a RPG Maker MV game from RPGMaker.net I chose the most downloaded game (Journey to the East)
  2. Start the game sandboxed Please keep in mind that the game does not always crash

I created a fresh Sandbox with a few modifications to test it.

Expected behavior

I expect that the games will always start.

What is your Windows edition and version?

Windows 11 Pro 21H2

In which Windows account you have this problem?

A local or Microsoft account without special changes.

Please mention any installed security software

Windows Security

What version of Sandboxie are you running?

Sandboxie Plus 1.0.13 64 bit

Is it a regression?

No response

List of affected browsers

No response

In which sandbox type you have this problem?

In a Hardened sandbox (red sandbox icon).

Is the sandboxed program also installed outside the sandbox?

Yes, it is also installed outside the sandbox.

Can you reproduce this problem on an empty sandbox?

I can confirm it also on an empty sandbox.

Did you previously enable some security policy settings outside Sandboxie?

No response

Crash dump

No response

Trace log

No response

Sandboxie.ini configuration

[RPG_Maker_Games]
Enabled=y
AutoRecover=y
BlockNetworkFiles=y
BorderColor=#00ffff,off,6
Template=SkipHook
Template=FileCopy
Template=BlockPorts
Template=LingerPrograms
Template=AutoRecoverIgnore
ConfigLevel=9
DropAdminRights=y
BoxNameTitle=-
ShowForRunIn=n
ClosePrintSpooler=y
CopyLimitKb=81920
RecoverFolder=C:\Games\RPG Maker
ForceFolder=C:\Games\RPG Maker
ProcessGroup=<InternetAccess>,Game.exe
ClosedFilePath=!<InternetAccess>,InternetAccessDevices
ClosedFilePath=<BlockNetDevices>,InternetAccessDevices

Sandboxie-Plus.ini configuration (for Plus interface issues)

No response

isaak654 commented 2 years ago

I can provide a trace log if needed. Which 'tracing' options should I enable?

They should not be required in recent releases, for instructions see the TraceLog page.

About the crash issue, you could be able to produce a dump file in the sandbox itself by following these instructions:

usr7823 commented 2 years ago

I added the configuration to my sandbox and reproduced a crash. Do you need the complete .dmp file or is the exception analysis enough? I'm not thrilled to post anything on the internet of which I do not fully understand the content. There is one exception in the .dmp file. {EXCEPTION} Integer division by zero. dmp_exception_analysis.txt

The TraceLog page does not contain information in regards to EnableMiniDump=y. That's something that can be improved in the future.

Sandboxie is able to detect that the application crashes after adding EnableMiniDump=y to the configuration. Sandboxie will notify me about the crash. Game.exe (3680): SBIE2224 Sandboxed program has crashed: Game.exe [RPG_Maker_Games] Without the configuration entry the application just closes and Sandboxie does not inform me about the crash. Is there a way to enable crash notifications without the generation of dump files? (Maybe consider this as a feature request if there is an easy way to implement it. Otherwise it probably isn't worth the effort.)

isaak654 commented 2 years ago

I added the configuration to my sandbox and reproduced a crash. Do you need the complete .dmp file or is the exception analysis enough? I'm not thrilled to post anything on the internet of which I do not fully understand the content.

The complete .dmp file would be preferable. If you want, you can send it to the lead developer email reported in the profile.

gelatinbomb commented 2 years ago

RPG Maker MV games loads if I set the option to let it use internet. Now this does not happen with the other RPG Maker engines. I think the cause might be the way this type of engine works. If you look closely is deeply tied with web engine technologies like NodeJS and Javascript. Also I checked the debug on two RPG MV games and both of them show the same error on the debug.log: [0417/160923.732:ERROR:http_transport_win.cc(175)] WinHttpCrackUrl: The url adress is not using a known protocol (0x2ee6)

gelatinbomb commented 2 years ago

Small Update: I managed to load a RPG Maker MV game without internet conection by using the Windows Filtering Platform. @usr7823 Try it! Go to global settings -> advanced settings and activate "Use windows filering platform". Then on your sandbox settings change the internet restriction to block using windows filtering platform.

@DavidXanatos Hey it is secure to use the Windows Filtering Platform? For now it's the only way I found to load this type of games on a sandbox with internet block and I want to be sure the software inside the sandbox can't do any type of conection to the internet.

DavidXanatos commented 2 years ago

yes its secure

TFWol commented 1 year ago

I was having a similar issue with RPG Maker games in general, but was able to see SBIE2310 Name buffer is approaching overflow prior to the close. You may come across this for the non-english games.

Solution for me was adding UseFileDeleteV2=n to the sandbox ini