Jump to content

[HELP] Crash when loading server


Recommended Posts

Hi!

I am having a strange problem with my server. Sometimes when players connect to the server and the server files are loading, the MTA:SA client crashes/freezes. But the crash/freeze is completely random, not crashing all the time, that's why I can't stop resources one by one and test.

The crash is not person specific, it happens to a lot of players, but not always. Sometimes they need to connect to another server/map editor first, then back to my server to prevent the crash/freeze, because sometimes MTA freezes a lot of times in a row. 

How can I find out what is causing the crash? There is no error message about anything when the MTA crashes, only the MTA window does not respond. 

Link to comment
  • Moderators
1 hour ago, pixel77 said:

Because it happens to more players, the problem comes from a resource on the host.

You could start with disabling all models, number 1 in causing cashes.

Link to comment
On 18/02/2024 at 12:20, IIYAMA said:

You could start with disabling all models, number 1 in causing cashes.

But as I said, it does not always crash, so it is hard to test by disabling them one by one, and there is nothing error message/crash report. :/ 

Any other methods?

Link to comment
  • Moderators
5 hours ago, pixel77 said:

Any other methods?

A hard function skip maybe, just to figure out if it is actually the models. 🤔

addDebugHook( "preFunction", function ( ) return "skip" end, {"engineLoadCOL", "engineReplaceCOL", "engineLoadTXD", "engineImportTXD", "engineLoadDFF", "engineReplaceModel"})

(if possible run the hook on a resource with higher download priority)

 

If that is the issue, then rewrite the resources so that the models are loaded slower. For example load a model every X frame(s).

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...