Raised This Month: $ Target: $400
 0% 

Run time error 1


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-17-2022 , 14:47   Re: Run time error 1
Reply With Quote #1

Quote:
Originally Posted by HamletEagle View Post
A typical index out of bounds error DOES NOT result in a segfault. The index is checked and the error is thrown before any faulty memory access will happen.
The error log you posted suggests one of your plugins is using set_fail_state to pause itself.
yes and its the parachute plugin which got paused. but i've never used the native set_fail_state in the parachute plugin, you can check out the code in post one.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 05-17-2022 at 14:47.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 05-17-2022 , 22:50   Re: Run time error 1
Reply With Quote #2

Quote:
Originally Posted by Natsheh View Post
yes and its the parachute plugin which got paused. but i've never used the native set_fail_state in the parachute plugin, you can check out the code in post one.
thats why is asked if you use set fail state in your jb core ..
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-17-2022 , 22:53   Re: Run time error 1
Reply With Quote #3

The only place in the whole of AMX Mod X that that output can be generated is in the set_fail_state() function. The "Plugin says" portion is the string provided to the set_fail_state() function.

Are you absolutely sure you're using that source code in your .amxx file? Did you compile it locally with official compilers?

If it's truly not this plugin then there would have to be a bug in the plugin pointer lookup (line) but I find that highly unlikely. Granted, if you're having a segmentation fault, I'm sure it's possible that it's just screwing up a whole bunch of stuff and presenting as a false error.
__________________
fysiks is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-18-2022 , 06:48   Re: Run time error 1
Reply With Quote #4

The 'message' albeit part of worldspawn is > 0 so checking if each index is connected will likely correct this.
__________________
DJEarthQuake is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 05-18-2022 , 10:45   Re: Run time error 1
Reply With Quote #5

Quote:
Originally Posted by DJEarthQuake View Post
The 'message' albeit part of worldspawn is > 0 so checking if each index is connected will likely correct this.
What are you talking about?
__________________
HamletEagle is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 05-18-2022 , 11:02   Re: Run time error 1
Reply With Quote #6

Quote:
Originally Posted by HamletEagle View Post
What are you talking about?
Probably he assumes that Nathesh get an index out of bonds error or probably he smoked weed .

I've read all his threads and posts and i can say i never seen in my life such a person , he talks english very good but the things he says are confusing and out of the subject. It almost feels like an BOT from Cs who randomly write phrases .
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-19-2022 , 07:13   Re: Run time error 1
Reply With Quote #7

Quote:
Originally Posted by HamletEagle View Post
What are you talking about?
For those of us who make maps, it's no secret that having "message" even when set-up right, when called a handful of times can easily segment fault the server. That's why maps do not use it anymore. It goes back to WON interfacing. Add Amxx to the equation and making the ent, that message, which is greater than 0, into a think, is an instant crash calling 1000x per sec. It is not out of bounds. He is just checking if each index is above zero not under 33 as well.
__________________
DJEarthQuake is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 05-19-2022 , 11:41   Re: Run time error 1
Reply With Quote #8

wtf.. What message and wherr is Nathseh in his parachute code checks should redo?

I don't get it man , he uses get_players in his code , dj, tell us the specific part he should edit.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-20-2022 , 05:36   Re: Run time error 1
Reply With Quote #9

I'd get segmentation fault 19 / 40 / 41 ( exit code : 139 )
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-21-2022 , 03:23   Re: Run time error 1
Reply With Quote #10

Can not reiterate enough check if player is connected instead of greater than 0 on reset function.


Code:
parachute_reset(id)
if(is_user_connected(id))
{
    new parachute = g_para_ent[id];

    if(parachute > 0)
    {
        entity_set_int(parachute, EV_INT_flags, FL_KILLME);
        call_think(parachute);
    }

    g_has_parachute[id] = false;
    g_para_ent[id] = 0;
}
__________________

Last edited by DJEarthQuake; 05-21-2022 at 03:24.
DJEarthQuake is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode