Raised This Month: $32 Target: $400
 8% 

Help with accelerator crash


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alerad
Junior Member
Join Date: Mar 2016
Old 10-15-2018 , 21:34   Help with accelerator crash
Reply With Quote #1

Heyo, I've been coding a custom nominate plugin and I've got a bug that's been bugging me out for the last 4-5 hours

Whenever a client creates the nominate menu, and then executes another command that creates a menu, the server crashes with the following signature:

https://crash.limetech.org/oghbtybndzte

The weird thing is that this doesn't happen on my local server, but It does on my public server, even when there are no players online.

Example of reproducing bug:
Player executes sm_nominate
Player doesn't close the menu, and executes sm_nominate again

Another example
Player executes sm_nominate
Player uses /admin command.

Code in which I create the menu (Althought I doubt it has to do with this)

Code:
public void PickFiltersMenu(int client) {
  Menu menu = new Menu(PickFilterMenuHandler);
  menu.AddItem("tier", "Tiers");
  menu.AddItem("alpha", "Alphabetically");
  menu.AddItem("status", "Completition Status");
  menu.AddItem("stage", "Stage Type");
  menu.ExitButton = true;
  //PLUGIN CRASHES ON MENU.DISPLAY, DOESN'T PASS THIS LINE. Doesn't reach handler either.
  menu.Display(client, MENU_TIME_FOREVER);
}
Thanks a lot, any help appreciated.

Both servers are running latest sm version.
alerad is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 10-17-2018 , 08:45   Re: Help with accelerator crash
Reply With Quote #2

Well, there's definitely a SM bug. At worst, SM should report an error rather than crashing. It may not help, but can you provide the source to your plugin? Or, can you reproduce this with any of the base SM plugins?

What do you mean by "even when there are no players online?" Running the menu commands from the server console?
Fyren is offline
alerad
Junior Member
Join Date: Mar 2016
Old 10-29-2018 , 11:43   Re: Help with accelerator crash
Reply With Quote #3

No players except for me*

I fixed this issue by deleting all of the

delete menu;

lines
alerad is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 10-29-2018 , 13:03   Re: Help with accelerator crash
Reply With Quote #4

Can you provide a version of your source that causes the crash?
Fyren is offline
Reply


Thread Tools
Display Modes

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 16:07.


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