Jump to content

The 25 Day Bug.


DazzaJay

Recommended Posts

***I was unable to find the Report a Bug section so i posted here***

Here is a Bloody annoying bug that happens on my Dedicated servers (all 6 of them)

I call it the 25 Day bug.

After 25 Days of Server Uptime (Not nessacarrly the MTA server, it could be on for a few days total out of this) But the actual Server PC. if it has 25 Days worth of Uptime. The Votemanager in MTA will Start showing the same 8 maps in every vote. No errors will appear in console or anything, it will just show the same 8 maps every time.

The only way to fix this is to reboot the entire box. as restarting and even Reinstalling the MTA server on it Changes Nothing.

This bug has happened Numours times over the past 6 months. (probably even earlier but back then the server was rebooted often)

Every time 25 days passes, without fail, this bug will occour.

____________

rotatorsig.php

The Most Accurate Real Car Names List & Mod Ever. No Bullcrap. <-- Updated 20-January-2008!

The Most Awesome MTA Clan and Servers Ever! No Bullcrap! <-- We Are Recruting New Members!

[PS] Clan signups are open to the public! Click Here to join!

Link to comment

Bare with me but ... assume the random number gen uses some kind of 32 bit signed value (maybe the seed ?). 25 days of server up time is 25 * 24 * 60 * 60 * 1000 = 2160000000 milliseconds. The range of a 32 bit signed int is +/- (2^32)/2, so -2147483648 to +2147483647. That upper limit of 2147483648 is amazingly similar to 25 days of up time. If there is some internal 32 signed value that's used by the random number gen that is somehow connected to server up time I could see the randomness failing as the value wraps on the 25th day of uptime. Server time is often used to initially seed a random number generator on startup as it's a random value of sorts - so theoretically giving you a random sequence.

Also why was randInt() provided by the MTA team when math.random() exists ? Are there known issues with math.random() ?

Edit: After reading more on http://lua-users.org/wiki/MathLibraryTutorial

'If a "serious" random number generator is needed we must use other (please, surf in the www).'

Link to comment

Well, i think the bug starts after 24 days, but i usually let it go another day to see if it fixes itself, and it dosent.

I just realised, my Dynamic Weather script isnt affected after 25 days. it seems that Only votemanager gets affected.

____________

rotatorsig.php

The Most Accurate Real Car Names List & Mod Ever. No Bullcrap. <-- Updated 20-January-2008!

The Most Awesome MTA Clan and Servers Ever! No Bullcrap! <-- We Are Recruting New Members!

[PS] Clan signups are open to the public! Click Here to join!

Edited by Guest
Link to comment

I looked at the votemanager source and saw that it uses getTickCount() as a random seed before every math.random call - maybe this function keeps returning the same value after 25 days. Try opening votemanager_polls.lua and removing all lines containing math.randomseed; I expect that should fix it.

Link to comment

im on the way out now, iil make the changes when i get back, and iil test it. and after 25 days if it fix's it, iil post it in the recource center.

:::EDIT:::

Removed my Next post as im putting it in the correct section.

____________

rotatorsig.php

The Most Accurate Real Car Names List & Mod Ever. No Bullcrap. <-- Updated 20-January-2008!

The Most Awesome MTA Clan and Servers Ever! No Bullcrap! <-- We Are Recruting New Members!

[PS] Clan signups are open to the public! Click Here to join!

Edited by Guest
Link to comment
  • 1 month later...

Well, 28 days of uptime later, and the Bug is deffinatley still there.

I havnt been in the server for 3 days so i dont know if it started after 25 or not.

any other ideas?

Or is it just a problem with the MTA DP2 server itself and random choosing of things?

____________

rotatorsig.php

The Most Accurate Real Car Names List & Mod Ever. No Bullcrap. <-- Updated 20-January-2008!

The Most Awesome MTA Clan and Servers Ever! No Bullcrap! <-- We Are Recruting New Members!

[PS] Clan signups are open to the public! Click Here to join!

Link to comment
  • 2 weeks later...

Well, as far as i can tell, We have fixed ALL of Votemanager's Bugs.

(Big thanks to Mvol for fixing the stuff that was too hard for me)

The only problem that still remains is the 25 day bug.

Here is the List of changes we have made so far, and a link to the Download of Votemanager 2 Alpha 10:

Bugs Fixed:

Votemanager now acts like the one from MTA:Race:

Votemanager in DM used to just take the Maps from the Top of its list into Nomination 2, Ignoring everyones votes.

This has been changed to taking the maps that have been voted by the players into Nomination 2 (Just like MTA:Race)

Votemanager Now acts like the one from MTA:Race (part two)

Originally, Votemanager for DM would just output an error to console and close if the vote ended in a Tie or there wasnt enough percentage to pass the vote. (say 60% voted map one, and 40% voted map two, this would cause it to error as it did not meet the 75% Vote pass requirements)

This has been changed, Now if the vote ends in a Tie, Votemanager will just change to one of the tied maps by itself. (also fixing the insufficient percentage)

This makes it run more like the Votemanager from MTA:Race

Other Changes:

Vote 9 has had its label changed from "Don't Change" to "Cancel Vote" as a lot of people for some reason think "Don't Change" means "Restart map" ( To deter people from voting 9 thinking it Restarts the map :-s )

The vote selection has been changed from Red to Green.

Votemanager is 250% Wider than the original MTA:DM one, as a LOT of maps from MTA:Race had Long names, and the votemanager in DM OFTEN cut the names off because it wasnt wide enough.

Outputting of Peoples votes to the server log has been stopped Due to this crap filling the logs:

(a server with 10 people all mashing their vote numbers rapidly would cause the log file to grow by almost 1MB per SECOND.)

[23:20:27] Tux.Boy[iTA] voted 4 (Rocket Gunner 1)

[23:20:28] Tux.Boy[iTA] changed his vote to 5 (SF Fandango) from 4 (Rocket Gunner 1

[23:20:30] pukki93 voted 8 (Wu Zi Mu RX7)

[23:20:31] candyboy voted 5 (SF Fandango)

[23:20:31] MrNedFlanders voted 6 (Tourismo talent)

[23:20:31] DJ_rafal voted 6 (Tourismo talent)

[23:20:31] virve voted 5 (SF Fandango)

[23:20:33] DJ_rafal changed his vote to 7 (Track One) from 6 (Tourismo talent)

[23:20:34] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:34] DJ_rafal changed his vote to 5 (SF Fandango) from 7 (Track One)

[23:20:34] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:34] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:34] DJ_rafal changed his vote to 6 (Tourismo talent) from 5 (SF Fandango)

[23:20:34] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:34] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:35] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:35] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:35] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:35] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:35] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:35] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:35] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:36] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:36] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:36] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:36] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:36] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:36] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:37] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:37] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:37] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:37] H2o[iTA] voted 9 (Don't change)

[23:20:37] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:37] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:38] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:39] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:39] superivanho voted 4 (Rocket Gunner 1)

[23:20:39] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:39] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:39] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:39] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:39] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:39] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:39] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:39] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:39] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:39] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:40] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:40] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:40] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:40] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:40] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

[23:20:40] pukki93 changed his vote to 8 (Wu Zi Mu RX7) from 8 (Wu Zi Mu RX7)

If you want this Severly bug fixed version of Votemanager, Click the Image below:

377.jpg

------------------

other than that, any ideas on fixing the 25 day bug? as it is the final problem to fix in Votemanager.

____________

rotatorsig.php

The Most Accurate Real Car Names List & Mod Ever. No Bullcrap. <-- Updated 20-January-2008!

The Most Awesome MTA Clan and Servers Ever! No Bullcrap! <-- We Are Recruting New Members!

[PS] Clan signups are open to the public! Click Here to join!

Link to comment
  • Recently Browsing   0 members

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