ERROR: SV_Modelindex Model not prechached
Hello!
I have a strange error that is occurring randomly, not at start of the plugin. I have existing plugin as this example, just with different names for easier understanding: PHP Code:
It happens often, but it has no fixed timing for when it gives the error. FATAL ERROR (shutting down): SV_ModelIndex: SV_ModelIndex: model mdl not precach ed Segmentation fault The "model mdl" has different symbols every time the error occurs, although the symbols are representing parts of the names of model_1 and model_2. What should i look for that can cause this strange error? Is it a Plugin that can cause it, or something else ? |
Re: ERROR: SV_Modelindex Model not prechached
Call is made before it is precached. Try putting precache up higher.
|
Re: ERROR: SV_Modelindex Model not prechached
I am not sure but try to put plugin_precache() after plugin_init()
Also, it is a bit out of topic but you shouldn't change weapon model at Event_CurWeapon since it will call many time cause increase in server usage. This way is out-dated. Now we used Ham_Item_Deploy to set weapon model only once when you switch to that specific weapon only PHP Code:
|
Re: ERROR: SV_Modelindex Model not prechached
tried placing plugin_precache below plugin_init, error still occurs, symbols are getting more and more strange
FATAL ERROR (shutting down): SV_ModelIndex: SV_ModelIndex: model ****************** not precached. Segmentation fault This is the latest error message that appeared. Seems the problem is more deep. The plugin i am working on is way too long, therefore i can't ask anybody to read every single line of it. If somebody could point me to where should i look for, that would be enough of a help, the rest i'll manage. I have experienced similar error before: FATAL ERROR SayText limit is 192 bytes, where the problem there was the way i placed colorchat's colors. The error occured when a colorchat text was typed like so: Code:
ColorChat(id,team_color, "name ^3%s", szName) SV_ModelIndex: SV_ModelIndex, Text written inside the colorchat in that situation was random, containing parts of the original message. The solution there was to put aside ^3 and %s. Although, i have checked every single type of similar symbols in the plugin and the others that i am using, there are none which are connected like the example "^3%s" |
Re: ERROR: SV_Modelindex Model not prechached
Log and pause technique before it crashes may help part of your problem. Illustration snip:
Code:
Code:
|
Re: ERROR: SV_Modelindex Model not prechached
This is very helpful, thank you, although the plugin is more or less calling a non-existing model name from within, therefore precache in this case does not seem to matter.
I will put if(file_exist) check on every line i am setting a model, this would seem to be a temporary solution. I am still satisfied that it is some kind of solution. Will update if i have found a more permanent solution to the problem. |
Re: ERROR: SV_Modelindex Model not prechached
You're obviously looking at the wrong plugin if names aren't matching.
|
Re: ERROR: SV_Modelindex Model not prechached
DJEarthQuake and celena forward order doesn't effect the function calling order..
|
Re: ERROR: SV_Modelindex Model not prechached
This is true precache at the top of the script or at bottom when it is right it does not matter. That being said I do not have any examples to show today but I have experienced situation where it does matter contrary to popular opinion that these things are happening so fast that I have had to put everything that is normally in init into precache to MAKE IT WORK and hold the server together. Also without metamod on the system at all these half names appearing I have seen enough with making maps that are too large for the system. So that could also be, assuming the script is right, the plugin list, the map, everything may have hit a hard ent limit. The main take away. I did not want to be rude. Somebody could have said learn debug and leave it there.
|
Re: ERROR: SV_Modelindex Model not prechached
The error is still going.
This time it seems that it cought a whole string : Code:
FATAL ERROR (shutting down): SV_ModelIndex: SV_ModelIndex: model Cannot open menu The clcmd for the string was Not called before the crash happened. Therefore the code seems to be trying to precache random strings throughout itself, i don't even know if that's possible but there it is. I don't expect any answers, since i might be the only one so far whom experienced this kind of mad error, so i am just throwing the project away. Thanks to everybody whom spent their time replying to my thread. |
All times are GMT -4. The time now is 03:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.