Compiler Issue

Let's explain my issue. Asked on uMod discord but here will be better for everyone to see and reply if know something.

When I try to reload/unload/load plugin get the following error:

oxide.reload CustomMapName
Added '// Reference: 0Harmony' in plugin 'CustomMapName'
Exception while starting compiler version :  (Win32Exception: ApplicationName='/home/container/Compiler.x86_x64', CommandLine='/service /logPath:/home/container/oxide/logs', CurrentDirectory='', Native error= Out of memory)
  at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in <ef151b6abb5d474cb2c1cb8906a8b5a4>:0 
  at System.Diagnostics.Process.Start () [0x0003a] in <ef151b6abb5d474cb2c1cb8906a8b5a4>:0 
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
  at Oxide.Plugins.PluginCompiler.CheckCompiler () [0x001f3] in <60c318df79ed41688ea59335e48d61ad>:0 
Compiler may not be set as executable; chmod +x or 0744/0755 required
Win32 NativeErrorCode: 14 ErrorCode: -2147467259 HelpLink: 
Error while compiling: compiler version  couldn't be started

Have you tried something already? - YES

What exactly? -

1. Set pluginswatcher to false in oxide/oxide.config.json

 2. Make sure there's enough ram to start the compiler ( have 7.5/10GB RAM for the server) host owner added/(increased to) for me 2GB cache memory or smth like this.

3. I guess that's all I have tried... Btw using Pterodactyl (of course Linux) and not sure if this bullshit happens for me too but I read in an old uMod topic about the same issue the last replay is (2y old post) from a guy using LGSM and he said that the wrong URL for Linux build was the issue for him. If the link is wrong, how the f*ck if you download/install the wrong nonLinux build server will start at all? :D

Anyways something real and I think the possible issue is still not checked - The Linux Permissions for the file manager and etc but I guess Ptero should handle this and have it auto-setup (I am talking for the chmod + x...)

 

Before had this issue on rare occasions, now it's every time, the only way to apply a small change to a plugin is full server restart. Even small plugins with a couple of lines of code trigger the error and do not reload.

Thanks for the help and hope someone knows a solution. Never had this issue on Windows/Linux before now.

are you runing linux if so looks like your using Windows version

Win32Exception​
Ts3hosting

are you runing linux if so looks like your using Windows version

Win32Exception​

It's mono, it'll show that for any OS.

If the compiler is getting hung up on that one plugin, you'd need to figure out what exactly in that plugin is causing the issue. Unfortunately we aren't really able to reliably update the current compiler in Oxide, but we have replaced it for uMod with something that is maintainable.

It's going this for every plugin recently so Idk.

RR5Sf6pYkE2JOhS.jpg Flammable

It's going this for every plugin recently so Idk.

I'd try removing any recent additions and try without those.

Only, updated one or two plugins last days, will try to see if this is the issue but probably nope... Thanks anyway for the reply.

Merged post

Btw without removing anything, only did map wipe today (if makes any sense), and after the server started, uploaded one plugin for daily rewards (I do unload it for the first day of wipe) and had no issues with this unloading... Now tried to update Vanish. Unloaded old plugin (FINE), deleted the old cs file, then put the new one, manually typed "o.load Vanish" then and got the same sh*t error... Idk what's going on but it's getting annoying... I am sure after this sh*t with Vanish whole oxide compiler is broken (or whatever else happens) and won't be able to load/unload anything in the future if try. The same would have happened with another plugin probably too... Maybe if modify plugins folder - remove/add something do the problem? Weird but Idk...

Added '// Reference: 0Harmony' in plugin 'CustomMapName'

You don't need harmony to change map name btw

"2. Make sure there's enough ram to start the compiler ( have 7.5/10GB RAM for the server) host owner added/(increased to) for me 2GB cache memory or smth like this" - How did you make sure? That looks like a borderline amount of RAM to me.

This looks exactly like the kind of error message you get when you don't have enough RAM for the compiler to load/reload plugins while the server is running. Your server is probably using more RAM than it used to, and has pushed you over the edge of what you need for on-the-fly compilation.

htmlSh3wbejUsbb.png JimDeadlock

"2. Make sure there's enough ram to start the compiler ( have 7.5/10GB RAM for the server) host owner added/(increased to) for me 2GB cache memory or smth like this" - How did you make sure? That looks like a borderline amount of RAM to me.

This looks exactly like the kind of error message you get when you don't have enough RAM for the compiler to load/reload plugins while the server is running. Your server is probably using more RAM than it used to, and has pushed you over the edge of what you need for on-the-fly compilation.

I have noticed the same increase in Ram use, my server used to run well on 10gig now has to run on 16gig and its a low pop server.

First I can't afford more ram for now. Also How the f*ck will be out of ram when in one topic read how compiler needs 100-300mb of ram and I have 7.5/10 a.k.a 2.5GB free?
What? Compiler needs 2.5+GB ram?

JRb3AqpjYrtE4ji.jpg Flammable

First I can't afford more ram for now. Also How the f*ck will be out of ram when in one topic read how compiler needs 100-300mb of ram and I have 7.5/10 a.k.a 2.5GB free?
What? Compiler needs 2.5+GB ram?

It shouldn't need much.

That's why I do not understand why get this error when having 2.5GB free RAM.

What you're describing is exactly what I once experienced, and I fixed it with more RAM. That's all I can tell ya.

Oooooh, and I have to add more and more ram every time? Btw had no issues like this (only around 5 times) for the past 1 year while was on my old host had also Linux OS and 10GB RAM... This doesn't matter but the new host should have more clock speed for the Ram but even without I just compare 2 Hosts - both 10GB ram and this one can't reload a single plguin... Lucky was able to unload my daily rewards after the wipe for the first day (like I do all the time) then the server again broke... There are also daily restarts, so Idk...

58Uue5ewsrHYnOD.jpg Flammable

Oooooh, and I have to add more and more ram every time? Btw had no issues like this (only around 5 times) for the past 1 year while was on my old host had also Linux OS and 10GB RAM... This doesn't matter but the new host should have more clock speed for the Ram but even without I just compare 2 Hosts - both 10GB ram and this one can't reload a single plguin... Lucky was able to unload my daily rewards after the wipe for the first day (like I do all the time) then the server again broke... There are also daily restarts, so Idk...

ram clock speed won't compensate for the fact that you don't have enough ram. I used to run 2 servers on a machine with 16GB of ram a year ago, now, I can only run 1 server without issues with only 16GB of ram. Rust performance has went to shit in the last year. my new machine even has better specs than the old one.