lowleveldesign / process-governor

This application allows you to put various limits on Windows processes.
MIT License
627 stars 62 forks source link

procgov doesnt work when running .bat script #44

Closed JensvandeWiel closed 2 years ago

JensvandeWiel commented 2 years ago

its limited on 100MB but goes over

image

command used: ./procgov64.exe -m 100M start.bat

bat script contents: steamcmd\steamapps\common\U3DS\Unturned.exe -port:25444 -players:20 -nographics -batchmode -pei -gold -nosync -pve -sv

JensvandeWiel commented 2 years ago

when i add -r it doesn't work at all

JensvandeWiel commented 2 years ago

so the command: steamcmd\steamapps\common\U3DS\Unturned.exe -port 25444 -players 20 -nographics -batchmode -pei -gold -nosync -pve -sv

works in the bat script but then it crashes and memory dump says: The thread tried to read from or write to a virtual address for which it does not have the appropriate access. so probably something with permissions

lowleveldesign commented 2 years ago

It is probably related to the permissions of the memory page. It could be that the application does not correctly handle memory limits. In that case, there is nothing we can do. Have you tried setting the limit higher? Why do you use the .bat file? You could as well try procgov64 -m 100M -- steamcmd\steamapps\common\U3DS\Unturned.exe -port 25444 -players 20 -nographics -batchmode -pei -gold -nosync -pve -sv. But as I wrote, it could be that the limit is too low for this application.

JensvandeWiel commented 2 years ago

Ill try that when im home!

JensvandeWiel commented 2 years ago

fixed!