Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Crash with UriImageSource with particular URI's

$
0
0

Hi
I'm trying to show Facebook profile images in an Image within a ListView using UriImageSource on Android using Xamarin Forms 1.3 pre 1

The following URI works fine:
https://fbcdn-profile-a.akamaihd.net/hprofile-ak-xpf1/v/t1.0-1/p50x50/10356313_10152858960804740_1402393010425598083_n.jpg?oh=3f553e6f7adf4ded075c33b1e270ab41&oe=54D47EF1&__gda__=1423186967_df15a131f1345eb977c8b3af8a26eb12

but this one (and others) crash or just don't display
https://fbcdn-profile-a.akamaihd.net/hprofile-ak-xaf1/v/t1.0-1/c14.14.172.172/s50x50/480520_10151389563453099_1943163511_n.jpg?oh=85752099d94bedff85225016677478e6&oe=550E22BE&__gda__=1426287230_3710e560532e1f3ae730be9303c61f7d

System.Diagnostics.Debugger.Mono_UnhandledException_internal () in 
System.Diagnostics.Debugger.Mono_UnhandledException (ex={System.NullReferenceException: Object reference not set to an instance of an object
at Xamarin.Forms.StreamWrapper.Read (byte[],int,int) <IL 0x00009, 0x00033>
at Android.Runtime.InputStreamAdapter.Read (byte[],int,int) [0x00000] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/src/Runtime/InputStreamAdapter.cs:38
at Java.IO.InputStream.n_Read_arrayBII (intptr,intptr,intptr,int,int) [0x00020] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Java.IO.InputStream.cs:256
at (wrapper dynamic-method) object.b81d275a-09ad-4f23-bc8e-e048034f456f (intptr,intptr,intptr,int,int) <IL 0x00023, 0x00037>
}) in 
object.b81d275a-09ad-4f23-bc8e-e048034f456f (arg0=0xffffffffba549618, arg1=0x20800015, arg2=0x1f600019, arg3=0, arg4=16384) in 
Xamarin.Forms.StreamWrapper.Read (buffer={byte[16384]}, offset=0, count=16384) in 
Android.Runtime.InputStreamAdapter.Read (bytes={byte[16384]}, offset=0, length=16384) in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/src/Runtime/InputStreamAdapter.cs:38
Java.IO.InputStream.n_Read_arrayBII (jnienv=0xffffffffba549618, native__this=0x20800015, native_buffer=0x1f600019, byteOffset=0, byteCount=16384) in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Java.IO.InputStream.cs:256
object.b81d275a-09ad-4f23-bc8e-e048034f456f (arg0=0xffffffffba549618, arg1=0x20800015, arg2=0x1f600019, arg3=0, arg4=16384) in 
Android.Runtime.JNIEnv.CallStaticObjectMethod (jclass=0x1d2002f6, jmethod=0xffffffff9f42bd40, parms={Android.Runtime.JValue[1]}) in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:1157
Android.Graphics.BitmapFactory.DecodeStream (is={Xamarin.Forms.StreamWrapper}) in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Android.Graphics.BitmapFactory.cs:631
Android.Graphics.BitmapFactory.DecodeStreamAsync.AnonymousMethod__0 () in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Android.Graphics.BitmapFactory.cs:638
System.Threading.Tasks.TaskActionInvoker.FuncInvoke<Android.Graphics.Bitmap>.Invoke (owner=Id = 199, Status = Running, state=(null), context=) in 
System.Threading.Tasks.Task.InnerInvoke (Parameters=) in 
System.Threading.Tasks.Task.ThreadStart (Parameters=) in 
System.Threading.Tasks.Task.Execute (Parameters=) in 
System.Threading.Tasks.TpScheduler.TaskExecuterCallback (Parameters=) in 

Ideas?


Viewing all articles
Browse latest Browse all 58056

Trending Articles