New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Long callback execution detected (hang or performance issue) #82
Comments
It's meant to do that. |
How is this useful though....? |
@tr1xy use |
I did already but this is pointless to have, especially when having YSI and OnScriptInit everywhere... |
How long a top-level callback call should last before crashdetect prints a warning. This can be set very high (for example 1000000) to only detect functions that have totally hung, or very low (500) to detect functions that complete, but are just slow (thus affecting overall server execution and sync). Default value is 5000 (5 milliseconds). |
Similar to But a simple solution would be to remove OnGamemodeInit and OnFilterscriptInit from the check because it is expected that most server will have slow functions there. |
Yeah, especially heavy MySql loading... Anyways it doesn't matter as it is just a single ignore-able warning. |
If it stops something working that is a totally different bug and should be reported as such. This code should not stop anything working, just report slow code so you can try and make it faster. However, you can disable it temporarily: samp-plugin-crashdetect/include/crashdetect.inc Lines 58 to 116 in ee69248
|
Again, the feature is to report potential issues in your code - if your MySQL loading is reported, that implies it is not threaded, which means again the plugin is working correctly to report a potential issue. You can't write bad code then complain that it is being reported as bad! Fix the code. |
Also, the latest version of YSI already uses those functions I posted to disable the checks during its own startup, so if you're getting the errors you need to update YSI. |
@Y-Less @Zeex :-/
The text was updated successfully, but these errors were encountered: