Issue Details (XML | Word | Printable)

Key: LIBOMV-353
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: John Hurliman
Reporter: John Sohn
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
libopenmetaverse

When Logout is called, client_uploaddatacompleted throws nullreference exception.

Created: 12/Aug/08 05:50 PM   Updated: 15/Aug/08 03:12 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 0.6.0

File Attachments: 1. Text File PATCH FOR LIBSL.patch (5 kB)


Environment: .NET / Windows32


 Description  « Hide
My code is knee deep in retrieving prim and texture info including detailed properties using the "selectobject" method.

Prior to today's release, I would log out, and no problems, now the above exception (null reference) is thrown in the

private void Client_UploadDataCompleted(object sender, CapsBase.UploadDataCompletedEventArgs e)

method under eventqueue.cs module

in the last line of the following code...

if (e.Error != null)
{
HttpStatusCode code = HttpStatusCode.OK;
if (e.Error is WebException)
code = ((HttpWebResponse)((WebException)e.Error).Response).StatusCode;

the webexception object is not null, but the response field evidentally is.

hope this helps.



 All   Comments   Change History   Subversion Commits   Patches      Sort Order: Ascending order - Click to sort in descending order
John Sohn added a comment - 12/Aug/08 06:48 PM
This bug also occurs at random other points in code execution, I have attached a patch which does two things, albeit not both of them are associated with this bug,

one , which is, catches the exception, and thats all, if necessary recovery code need be added, I commented the section where the change is made.

two, the other which is not associated with this bug increases the speed at which requests are sent when requesting an image.


John Sohn added a comment - 12/Aug/08 06:48 PM
see comment above

John Hurliman added a comment - 15/Aug/08 03:12 PM
Resolved in r2092. I haven't applied the patch that causes image re-requests to happen every 300ms instead of every five seconds, because I think the reason image downloads are performing poorly has to do with the new outbound packet queue. I don't want to change too many variables while the problems with the queue are being nailed down.