Central Forums Code Wiki Characters Tools Helpbot
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Pages: [1]   Go Down
Print
Topic: Error...  (Read 298 times)
« on: March 11, 2010, 02:23:04 »
Administrator
Novice

View Profile
*****

Epeen: 4
Posts: 326


"An exception has occurred. This application will now close."

"Exception:Source array was not long enough. Check srcIndex and length, and the array's lower bounds."


Happened whilst having a Reconnection fit.
Logged
« Reply #1 on: March 11, 2010, 09:09:12 »
Administrator
Grandmaster

View Profile
*****

Epeen: 23
Posts: 3075


Interesting.

I'll have to add in some more error logging as these error messages are too vague to pinpoint the issue.
*goes make ticket*
What isn't remembered never happened.
Memory is merely a record.
You just need to rewrite that record.
Logged
« Reply #2 on: March 12, 2010, 18:53:35 »
Administrator
Novice

View Profile
*****

Epeen: 4
Posts: 326


Same error conditions:-

-------------------------------------------------------------------------
12 March, 2010, 6:37:00 pm
-------------------------------------------------------------------------
System.ArgumentException: Source array was not long enough. Check srcIndex and length, and the array's lower bounds.
   at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
   at Vha.Net.Packets.Packet.popData(Byte[]& data, Int32& offset)
   at Vha.Net.Packets.FriendStatusPacket.BytesToData(Byte[] data)
   at Vha.Net.Chat.ParsePacket(ParsePacketData packetData, Boolean local)

Logged
« Reply #3 on: March 14, 2010, 08:40:48 »
Administrator
Grandmaster

View Profile
*****

Epeen: 23
Posts: 3075


Thank you. Will investigate it when I get the chance.
That error report is helping me shitloads Tongue
What isn't remembered never happened.
Memory is merely a record.
You just need to rewrite that record.
Logged
« Reply #4 on: March 17, 2010, 11:23:21 »
Administrator
Grandmaster

View Profile
*****

Epeen: 23
Posts: 3075


I found the cause... it's something completely silly.
The way some of the FriendsStatusPacket data is interpreted is just downright weird.
I can't believe nobody (including me) ever noticed before it was just stupid that way.
The same fault exists in AOChat Tongue

I really do wonder why the values were different for you though, which triggers the crash.
Maybe FC started using those values for something. Shocked
What isn't remembered never happened.
Memory is merely a record.
You just need to rewrite that record.
Logged
« Reply #5 on: March 17, 2010, 19:33:24 »
Administrator
Novice

View Profile
*****

Epeen: 4
Posts: 326


I'm not sure there's ANY rhyme or reason to the way things are set up.

But nice work on the bugfix, thats cool Smiley
Logged
« Reply #6 on: March 17, 2010, 22:31:02 »
Administrator
Grandmaster

View Profile
*****

Epeen: 23
Posts: 3075


This does remind me..
Reminder to self: backport fix to VhaBot Smiley
What isn't remembered never happened.
Memory is merely a record.
You just need to rewrite that record.
Logged
« Reply #7 on: March 21, 2010, 02:35:08 »
Freshman

View Profile
*

Epeen: 1
Posts: 36


I found the cause... it's something completely silly.
The way some of the FriendsStatusPacket data is interpreted is just downright weird.
I can't believe nobody (including me) ever noticed before it was just stupid that way.
The same fault exists in AOChat Tongue

I really do wonder why the values were different for you though, which triggers the crash.
Maybe FC started using those values for something. Shocked
Random thought of the day:
Could this be related to ignoring characters, and the fact you can't really ask the server to give you the uname of a given uid?
Logged
« Reply #8 on: August 26, 2010, 13:34:10 »
Administrator
Grandmaster

View Profile
*****

Epeen: 23
Posts: 3075


This thing is puzzling me again.

Been having another look, and it really does seem plausible to last part of the packet is a string.
It seems silly at first, but when comparing data I'm getting, it really does seem to be "0" and "1" (as in ascii 48 and 49) filling the data.
Even though, I've also been receiving a lot of ascii 1 for other characters.
So it's a string... but not a string...

What puzzles me is the error veremit had.
I 'cleverly' worked around it, but based on my last observations, I can't explain why veremit's data looked the way it did.
I'm probably going to revert this change (or change it at least) and add some extra debugging output in case it's triggered again.

edit: Confirmed the last argument indeed is a string. I now have a friend with the tag "banana" in my friendslist Cheesy
Will now test how AO reacts to it Tongue
« Last Edit: August 26, 2010, 13:49:57 by Vhab [rk1] »
What isn't remembered never happened.
Memory is merely a record.
You just need to rewrite that record.
Logged
« Reply #9 on: August 31, 2010, 15:12:22 »
Administrator
Novice

View Profile
*****

Epeen: 4
Posts: 326


Backport for Vhabot forthcoming .. and did you fix Vha.Net?! Tongue
Logged
Pages: [1]   Go Up
Print
Jump to: