SVN 2.0.7 | Error while calculating random route

This place is for Closed bug reports only. NOT for asking help!

Moderators: Moderators, Developers

h4rry84
Moderators
Moderators
Posts: 234
Joined: 04 Apr 2008, 09:30
Noob?: Yes
Location: My House

Re: SVN 2.0.7 | Error while calculating random route

#11 Post by h4rry84 »

blacksheep wrote:
help_us wrote:Are sure its nothing to do with your loaded plugins (stepSelector)?
But it only happens at the specific coordinates at (0, 399) or (399, 0)

As I checked, the 2.0.7 version do have a file "StepSelector.pl" while the 2.0.6 don't have. The file comes along with the download. Maybe this file is causing the problem? I have no idea.
we never give the download package containing any plugin, so where did you get that shit ?
Scarya
Moderators
Moderators
Posts: 136
Joined: 26 May 2008, 12:25
Noob?: No

Re: SVN 2.0.7 | Error while calculating random route

#12 Post by Scarya »

The same happened to me some times so I edited route.pm at line 80.

Code: Select all

if ($args{x} == 0 || $args{y} == 0) {
		ArgumentException->throw(error => "Invalid arguments.");
	}
And I changed it to:

Code: Select all

if ($args{x} == 0 || $args{y} == 0) {
		# ArgumentException->throw(error => "Invalid arguments.");
		$args{x} = 1;
		$args{y} = 1;
	}
Well, it's not a good fix but a working workaround. (well not 100% sure if I fixed it like this, maybe just commenting the line out worked)
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the universe trying to produce bigger and better idiots.
So far, the universe is winning.

Richard Cook

Wiki
kali
OpenKore Monk
OpenKore Monk
Posts: 457
Joined: 04 Apr 2008, 10:10

Re: SVN 2.0.7 | Error while calculating random route

#13 Post by kali »

Commenting out the exception throw will achieve the same thing.

Although the exception is being thrown precisely because the event that triggered it should not happen. Burying your head under the sand doesn't make the bugs go away :)

Best fix is to find out exactly why these things happen. If there were only unit tests for these functions ...
Got your topic trashed by a mod?

Trashing topics is one click, and moving a topic to its proper forum is a lot harder. You expend the least effort in deciding where to post, mods expend the least effort by trashing.

Have a nice day.
Scarya
Moderators
Moderators
Posts: 136
Joined: 26 May 2008, 12:25
Noob?: No

Re: SVN 2.0.7 | Error while calculating random route

#14 Post by Scarya »

kali wrote:Burying your head under the sand doesn't make the bugs go away :)
Yeah I know, but it's pretty annoying if every hour kore is going down so commenting it out worked ;P
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the universe trying to produce bigger and better idiots.
So far, the universe is winning.

Richard Cook

Wiki
kali
OpenKore Monk
OpenKore Monk
Posts: 457
Joined: 04 Apr 2008, 10:10

Re: SVN 2.0.7 | Error while calculating random route

#15 Post by kali »

Ha ha I like your sense of practicality :)

Still, this bug stays in bug reports until we can start finding out the root cause of that. :(
Got your topic trashed by a mod?

Trashing topics is one click, and moving a topic to its proper forum is a lot harder. You expend the least effort in deciding where to post, mods expend the least effort by trashing.

Have a nice day.