Exception while starting compiler: Out of memoryNot An Issue
Are you guys having the same issue with the complier after the new update?
The compiler has not changed. Check your oxide/logs for error details.
Oh okay, I did and I just noticed this
Failed to call hook 'CmdBuyVehicle' on plugin 'VehicleLicence v1.2.1' (NullReferenceException: Object reference not set to an instance of an object)
That error is not related to the other; any others specifically around where you first saw the compiler exception?
It works fine when I restarted the server. I installed a Tebex store plugin and it had the same chat command (/buy) as the VehicleLicence. Everytime someone types /buy in chat I get that failed to call hook error and can no longer reload any plugin or even add plugins.
A hook error would not cause the compiler to stop working; the compiler is only utilized when compiling plugins, a hook error comes after a plugin has been compiled and is already in use.
I'm not sure why this is happening, this is another error I'm getting
(23:31:32) | InvalidOperationException: Collection was modified; enumeration operation may not execute.
Here is the full error:
Exception while starting compiler version : (Win32Exception: ApplicationName='/home/tcagame/3540/3114/Compiler.x86_x64', CommandLine='/service /logPath:/home/tcagame/3540/3114/oxide/logs', CurrentDirectory='', Native error= Out of memory)
at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in <c9226b2f33b7421e85bb391f94075e49>:0
at System.Diagnostics.Process.Start () [0x0003a] in <c9226b2f33b7421e85bb391f94075e49>:0
at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
at Oxide.Plugins.PluginCompiler.CheckCompiler () [0x001f3] in <9affce1cd15c4ec183941adef8db1722>:0
"Out of memory" > the server didn't have enough memory available for the compiler to work.
Ok, thank you for your help and quick response. I think I know what to do now.
I'm getting the following errors on a dedicated server with 9GB RAM - the error was while trying to fix some weirdness with some plugins not working just on this one machine:
12:43 [Error] Exception while starting compiler version : (Win32Exception: ApplicationName='/home/tcagame/537/3778/Compiler.x86_x64', CommandLine='/service /logPath:/home/tcagame/537/3778/oxide/logs', CurrentDirectory='', Native error= Out of memory)
12:43 [Warning] Compiler may not be set as executable; chmod +x or 0744/0755 required
12:43 [Error] Win32 NativeErrorCode: 14 ErrorCode: -2147467259 HelpLink:
12:43 [Error] Error while compiling: compiler version couldn't be started
Any help with this would be appreciated.
You need loads of RAM to reload these plugins on-the-fly while the server is running. If you can't add more RAM then the solution is to simply restart the Rust server which in turn will reload the plugins.
Not sure where you heard that from, but that isn't the necessarily the case. The amount of memory necessary depends on the plugin and particular action.
Problems with linux machiens? I even tried clearing my memory's buff/cache. Have not tried the restarting server thing but Wulf claimes 100Mb should be adaquiate in other simular threads, so I think 1.5Gb should be more then enought. I seem to only have problems with some plugins (GroupLimits, AdminRadar, StashWarning) while I can unload/load plugins like Vanish, NoGiveNotices, and NoGreen all day..
total used free shared buff/cache available
Mem: 7.8G 6.0G 1.5G 84M 273M 1.5G