# XH-M03: A model file is cut short (/docs/xhlds/codes/xh-m03)

**Printed:** when the server reads the model file (a precache or a map load), [`xhlds_model_check 1`](/docs/xhlds/settings#xhlds_model_check), and the file is then loaded as before; with [`xhlds_model_check 2`](/docs/xhlds/settings#xhlds_model_check) the server stops with this line as a `FATAL ERROR`, as for a missing model.

The server read a model file (`.mdl`) that is shorter than its own header says: its model loader reads past the end of such a file. Usually an upload or copy that stopped part way. The line names the file, its size and the size its header gives ("damaged" instead: the header asks for a copy of a negative size).

The server then loads the file as before, as ReHLDS does. Reading past the file can crash the server, often only on some map loads; when it does, this line has named the file.

**Is it a problem?** Yes: the server can crash on any map that uses the model.

**What to do:** upload the file again in full (its size must match the original's), or take it out of the plugin config or map that uses it.

[`xhlds_model_check 2`](/docs/xhlds/settings#xhlds_model_check) stops the server instead (`FATAL ERROR`, as for a missing model, and a crash report whose `sys_error=` has this line), for test servers where it must not be missed; `hlds_run` or the panel then starts it again into the same error. [`xhlds_model_check 0`](/docs/xhlds/settings#xhlds_model_check) turns the check off. Protected models whose header looks wrong but whose reads stay inside the file are not reported.

## On the server [#on-the-server]

[`xhlds_explain XH-M03`](/docs/xhlds/commands#xhlds_explain) prints this explanation on the server console, also over rcon.
