[Mono-bugs] [Bug 648862] HttpWebRequest fails spectacularly in MonoDroid

2011-08-07 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=648862

https://bugzilla.novell.com/show_bug.cgi?id=648862#c12


Jonathan Pryor  changed:

   What|Removed |Added

 CC||jonpr...@vt.edu

--- Comment #12 from Jonathan Pryor  2011-08-08 02:50:59 UTC 
---
One followup: as per:

http://lists.ximian.com/mailman/private/monodroid/2011-August/005734.html

Setting HttpWebRequest.KeepAlive to false also appears to make things more
stable, e.g.

var request = (HttpWebRequest) WebRequest.Create(url);
request.KeepAlive = false;

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
You are the assignee for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 648862] HttpWebRequest fails spectacularly in MonoDroid

2011-03-18 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=648862

https://bugzilla.novell.com/show_bug.cgi?id=648862#c11


Jonathan Pryor  changed:

   What|Removed |Added

 Status|NEEDINFO|CLOSED
   InfoProvider|bryancostan...@hotmail.com  |
 Resolution||NORESPONSE

--- Comment #11 from Jonathan Pryor  2011-03-19 02:22:28 UTC 
---
Closing due to lack of response. Please re-open if you have an updated test
case.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
You are the assignee for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 648862] HttpWebRequest fails spectacularly in MonoDroid

2011-01-28 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=648862

https://bugzilla.novell.com/show_bug.cgi?id=648862#c10


--- Comment #10 from Mike Kestner  2011-01-28 19:10:31 UTC 
---
So to follow up on jonp's epic comment, is this reproducable for you in preview
11.2?

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
You are the assignee for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 648862] HttpWebRequest fails spectacularly in MonoDroid

2011-01-11 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=648862

https://bugzilla.novell.com/show_bug.cgi?id=648862#c9


--- Comment #9 from Jonathan Pryor  2011-01-11 20:23:33 UTC 
---
TL;DR: I can't reproduce.  Can you cook up a different repro?  Also, the
emulator sucks.  Also, you need to make sure that you dispose of the Stream
returned by HttpWebRequest.GetResponse() or Bad Thingsā„¢ happen.

The long version:

 1. I'm testing this on MonoDroid trunk, so things may differ from Preview 10,
but I doubt it.
 2. FYI, Log.D() messages are stripped on-device.  I'd suggest using Log.I().
:-)
 3. Don't use Console.WriteLine.  Console.WriteLine() goes to stdout, and
stdout isn't saved by default.

http://developer.android.com/guide/developing/tools/adb.html#stdout

I would suggest using Log.E() unless you're running within a debugger
(which I'm not).

As a consequence of (2), I didn't see your GImageSearch messages at first, and
as a consequence of (3) your `catch` blocks weren't actually printing anything.

Yay.

As for README.txt, most of its contents can be ignored, as per monodroid-list
discussions (in unrelated threads).  System.Net ~always generates "An address
incompatible with the requested protocol was used" messages, so it's presence
can be ignored, as can the System.Security.Cryptography messages (there's no
Store, hence the error, and for https we delegate to Android anyway), and the
ArgumentNullExceptions seem similarly ignorable.

I also find it odd that your GImageSearch process dies; all exceptions are
caught, so it shouldn't be dying (unless README contains traces from a run w/o
the catch blocks?).  It certainly hasn't died for me.

That said, I have seen circumstances where Android can't resolve a URL and will
throw an exception; perhaps this is what you've seen?  Curiously, attempting
the SAME URL again results in success, so I'm not sure what to make of this,
but it doesn't appear to be a MonoDroid issue.

To show that it (can) work, here is `adb logcat` output on my N1, with Log.D()
changed to Log.I() and Console.WriteLine() changed to Log.E().  Note that both
the "Before web request" and "After web request" messages are shown, thus
showing that that the intervening messages are, in fact, ignorable (as they're
apparently caught internally or never thrown):

I/ActivityManager(   87): Start proc gimagesearch.gimagesearch for activity
gimagesearch.gimagesearch/gimagesearch.GImageSearch: pid=13430 uid=10067
gids={3003}
I/ActivityThread(13430): Publishing provider
gimagesearch.gimagesearch.__mono_init__: mono.MonoRuntimeProvider
V/RenderScript_jni(  164): surfaceDestroyed
D/dalvikvm(13430): Trying to load lib
/data/data/gimagesearch.gimagesearch/lib/libmonodroid.so 0x449e3f40
D/dalvikvm(13430): Added shared lib
/data/data/gimagesearch.gimagesearch/lib/libmonodroid.so 0x449e3f40
D/dalvikvm(13430): GC_FOR_MALLOC freed 12807 objects / 479056 bytes in 30ms
D/dalvikvm(13430): GC_FOR_MALLOC freed 10227 objects / 477624 bytes in 29ms
I/GImageSearch(13430): Before web request
D/dalvikvm(13430): GC_EXPLICIT freed 7465 objects / 366296 bytes in 30ms
E/mono(13430): [0x3a3da0:] EXCEPTION handling:
System.Net.Sockets.SocketException: An address incompatible with the requested
protocol was used
D/dalvikvm(13430): GC_EXPLICIT freed 32 objects / 1080 bytes in 27ms
E/mono(13430): [0x3de0f8:] EXCEPTION handling:
System.Security.Cryptography.CryptographicException: Store Root doesn't exists.
E/mono(13430): [0x3de0f8:] EXCEPTION handling:
System.Security.Cryptography.CryptographicException: Store Root doesn't exists.
E/mono(13430): [0x3de0f8:] EXCEPTION handling:
System.Security.Cryptography.CryptographicException: Store CA doesn't exists.
E/mono(13430): [0x3de0f8:] EXCEPTION handling:
System.Security.Cryptography.CryptographicException: Store CA doesn't exists.
E/mono(13430): [0x3de0f8:] EXCEPTION handling:
System.ArgumentNullException: Argument cannot be null.
E/mono(13430): Parameter name: type
E/mono(13430): [0x3de0f8:] EXCEPTION handling:
System.ArgumentNullException: Argument cannot be null.
E/mono(13430): Parameter name: type
E/mono(13430): [0x3de0f8:] EXCEPTION handling:
System.ArgumentNullException: Argument cannot be null.
E/mono(13430): Parameter name: type
E/mono(13430): [0x3de0f8:] EXCEPTION handling:
System.ArgumentNullException: Argument cannot be null.
E/mono(13430): Parameter name: type
E/mono(13430): [0x3de0f8:] EXCEPTION handling:
System.ArgumentNullException: Argument cannot be null.
E/mono(13430): Parameter name: type
E/mono(13430): [0x3de0f8:] EXCEPTION handling:
System.ArgumentNullException: Argument cannot be null.
E/mono(13430): Parameter name: type
E/mono(13430): [0x3de0f8:] EXCEPTION handling:
System.ArgumentNullException: Argument cannot be null.
E/mono(13430): Parameter name: type
D/dalvikvm(13430): GC_FOR_MALLOC freed 8387 objects / 538344 bytes in 38ms
D/dalvikvm(13430): GC_FOR_MALLOC freed 8057 objects / 5057

[Mono-bugs] [Bug 648862] HttpWebRequest fails spectacularly in MonoDroid

2011-01-10 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=648862

https://bugzilla.novell.com/show_bug.cgi?id=648862#c8


--- Comment #8 from Kevin McMahon  2011-01-11 
05:12:06 UTC ---
(In reply to comment #7)
> Created an attachment (id=407712)
 --> (http://bugzilla.novell.com/attachment.cgi?id=407712) [details]
> Kevin McMahon's repro of HttpWebRequest
The code is really simple and I've included a console app that works with the
same code and the android app that throws.  In the README.txt there is also the
trace from DDMS.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
You are the assignee for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 648862] HttpWebRequest fails spectacularly in MonoDroid

2011-01-10 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=648862

https://bugzilla.novell.com/show_bug.cgi?id=648862#c7


--- Comment #7 from Kevin McMahon  2011-01-11 
05:04:30 UTC ---
Created an attachment (id=407712)
 --> (http://bugzilla.novell.com/attachment.cgi?id=407712)
Kevin McMahon's repro of HttpWebRequest

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
You are the assignee for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 648862] HttpWebRequest fails spectacularly in MonoDroid

2011-01-10 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=648862

https://bugzilla.novell.com/show_bug.cgi?id=648862#c6


Jonathan Pryor  changed:

   What|Removed |Added

 CC||jpr...@novell.com

--- Comment #6 from Jonathan Pryor  2011-01-10 20:03:07 UTC 
---
@Keven: Yes, we could use another repro, as the code provided in the original
comment doesn't generate any error for me.

Note: I have seen some instances where WebRequest/etc. would throw because the
URL couldn't be resolved, and restarting the app would "fix" the error.  If
this is the case, I don't know how to "fix" it, as the issue would be with
Android not resolving a URL, which would require "higher-level" error handling
(e.g. catch the exception, alert the user, and try a different URL).

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
You are the assignee for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 648862] HttpWebRequest fails spectacularly in MonoDroid

2011-01-10 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=648862

https://bugzilla.novell.com/show_bug.cgi?id=648862#c5


Kevin McMahon  changed:

   What|Removed |Added

 CC||kevin+nov...@methodsix.com

--- Comment #5 from Kevin McMahon  2011-01-10 
18:33:35 UTC ---
Yes. I am still seeing issues with HttpWebRequest.  Do you need another repro
case?

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
You are the assignee for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 648862] HttpWebRequest fails spectacularly in MonoDroid

2010-12-24 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=648862

https://bugzilla.novell.com/show_bug.cgi?id=648862#c4


Mike Kestner  changed:

   What|Removed |Added

 Status|NEW |NEEDINFO
   InfoProvider||bryancostan...@hotmail.com

--- Comment #4 from Mike Kestner  2010-12-24 14:49:14 UTC 
---
This is pretty old, and I have not heard any recent grumblings.  Is this still
a problem?

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
You are the assignee for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 648862] HttpWebRequest fails spectacularly in MonoDroid

2010-10-24 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=648862

https://bugzilla.novell.com/show_bug.cgi?id=648862#c3


--- Comment #3 from bryan costanich  2010-10-25 
00:32:59 UTC ---
So i found jpobst on teh irc chans and we started talking lolcatz, and then i
was like "hey dood." and he was like "fersher." and then we ate a cinnamon
roll, and he was like "so bro, i think i'll check the log. you know. just to be
sure." and i was like, "yeah, that would be teh awesums" cause gshackles was
getting the err, as was chrisntr, and those guys are like hardcore right? so
then he was like "yeah, i got teh err brotha, but only on the first times.
after that , no err." and also "your bluetooth is probably a problem." and then
i was like "what? i have blue teeth?" and he was like: ^_^ and i was like O_o.
and then i went into settings on the emu (which is like an ostridge, but it
runs android" and i was like "woah. my bluetooths are err'd" so i was all like
"click" on the bluetooths and then it turned off. and then i was like "fersher
gonna run that shit agains." so i did. and the err went away and stuff werked.

so i think maybe something is wrong and you guys are trying to open a socket on
the bluetooth instead of something else. thoughts?

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
You are the assignee for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 648862] HttpWebRequest fails spectacularly in MonoDroid

2010-10-24 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=648862

https://bugzilla.novell.com/show_bug.cgi?id=648862#c2


Jonathan Pobst  changed:

   What|Removed |Added

 CC||jpo...@novell.com

--- Comment #2 from Jonathan Pobst  2010-10-24 21:16:02 UTC 
---
Hmm, I don't get an error doing this.  I verified that the response is correct
by sticking it in a toast.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
You are the assignee for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 648862] HttpWebRequest fails spectacularly in MonoDroid

2010-10-23 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=648862

https://bugzilla.novell.com/show_bug.cgi?id=648862#c1


--- Comment #1 from bryan costanich  2010-10-24 
00:19:06 UTC ---
Created an attachment (id=396685)
 --> (http://bugzilla.novell.com/attachment.cgi?id=396685)
repro project

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
You are the assignee for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs