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

Android crash on showing image

$
0
0

It works great on iOS and Windows

[MonoDroid] System.NullReferenceException: Object reference not set to an instance of an object
[MonoDroid] at Xamarin.Forms.Platform.Android.ResourceManager.GetId (System.Type type, System.String propertyName) <0xa32e77e8 + 0x00030> in :0
[MonoDroid] at Xamarin.Forms.Platform.Android.ResourceManager.IdFromTitle (System.String title, System.Type type) <0xa32e73f8 + 0x00023> in :0
[MonoDroid] at Xamarin.Forms.Platform.Android.ResourceManager.GetBitmapAsync (Android.Content.Res.Resources resource, System.String name) <0xa32e7378 + 0x00023> in :0
[MonoDroid] at Xamarin.Forms.Platform.Android.FileImageSourceHandler+d__0.MoveNext () <0xa32e6f30 + 0x000ab> in :0
[MonoDroid] --- End of stack trace from previous location where exception was thrown ---
[MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0xa32e9d50 + 0x00024> in :0
[MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0xa32e97a8 + 0x000bb> in :0
[MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0xa32e9580 + 0x0008b> in :0
[MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0xa3556f70 + 0x0003f> in :0
[MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter1[TResult].GetResult () <0xa32e94d8 + 0x0001b> in <filename unknown>:0 [MonoDroid] at Xamarin.Forms.Platform.Android.ImageRenderer+<UpdateBitmap>d__3.MoveNext () <0xa32e5d20 + 0x0035b> in <filename unknown>:0 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0xa32e9d50 + 0x00024> in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>m__0 (System.Object state) <0xa2784ce0 + 0x0003f> in <filename unknown>:0 [MonoDroid] at Android.App.SyncContext+<Post>c__AnonStorey0.<>m__0 () <0xa2784c50 + 0x00027> in <filename unknown>:0 [MonoDroid] at Java.Lang.Thread+RunnableImplementor.Run () <0xa32cdc58 + 0x0003f> in <filename unknown>:0 [MonoDroid] at Java.Lang.IRunnableInvoker.n_Run (IntPtr jnienv, IntPtr native__this) <0xa32cdbb0 + 0x0003f> in <filename unknown>:0 [MonoDroid] at (wrapper dynamic-method) System.Object:3e716327-7e3a-45ae-a37a-63c8372f140f (intptr,intptr) [art] JNI RegisterNativeMethods: attempt to register 0 native methods for android.runtime.JavaProxyThrowable [AndroidRuntime] Shutting down VM [AndroidRuntime] FATAL EXCEPTION: main [AndroidRuntime] Process: easyfill.app.com, PID: 30304 [AndroidRuntime] java.lang.RuntimeException: java.lang.reflect.InvocationTargetException [AndroidRuntime] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) [AndroidRuntime] Caused by: java.lang.reflect.InvocationTargetException [AndroidRuntime] at java.lang.reflect.Method.invoke(Native Method) [AndroidRuntime] at java.lang.reflect.Method.invoke(Method.java:372) [AndroidRuntime] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) [AndroidRuntime] ... 1 more [AndroidRuntime] Caused by: android.runtime.JavaProxyThrowable: System.NullReferenceException: Object reference not set to an instance of an object [AndroidRuntime] at Xamarin.Forms.Platform.Android.ResourceManager.GetId (System.Type type, System.String propertyName) <0xa32e77e8 + 0x00030> in <filename unknown>:0 [AndroidRuntime] at Xamarin.Forms.Platform.Android.ResourceManager.IdFromTitle (System.String title, System.Type type) <0xa32e73f8 + 0x00023> in <filename unknown>:0 [AndroidRuntime] at Xamarin.Forms.Platform.Android.ResourceManager.GetBitmapAsync (Android.Content.Res.Resources resource, System.String name) <0xa32e7378 + 0x00023> in <filename unknown>:0 [AndroidRuntime] at Xamarin.Forms.Platform.Android.FileImageSourceHandler+<LoadImageAsync>d__0.MoveNext () <0xa32e6f30 + 0x000ab> in <filename unknown>:0 [AndroidRuntime] --- End of stack trace from previous location where exception was thrown --- [AndroidRuntime] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0xa32e9d50 + 0x00024> in <filename unknown>:0 [AndroidRuntime] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0xa32e97a8 + 0x000bb> in <filename unknown>:0 [AndroidRuntime] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0xa32e9580 + 0x0008b> in <filename unknown>:0 [AndroidRuntime] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0xa3556f70 + 0x0003f> in <filename unknown>:0 [AndroidRuntime] at System.Runtime.CompilerServices.TaskAwaiter1[TResult].GetResult () <0xa32e94d8 + 0x0001b> in :0
[AndroidRuntime] at Xamarin.Forms.Platform.Android.ImageRenderer+d__3.MoveNext () <0xa32e5d20 + 0x0035b> in :0
[AndroidRuntime] --- End of stack trace from previous location where exception was thrown ---
[AndroidRuntime] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0xa32e9d50 + 0x00024> in :0
[AndroidRuntime] at System.Runtime.CompilerServices.AsyncMethodBuilderCore.m__0 (System.Object state) <0xa2784ce0 + 0x0003f> in :0
[AndroidRuntime] at Android.App.SyncContext+c__AnonStorey0.<>m__0 () <0xa2784c50 + 0x00027> in :0
[AndroidRuntime] at Java.Lang.Thread+RunnableImplementor.Run () <0xa32cdc58 + 0x0003f> in :0
[AndroidRuntime] at Java.Lang.IRunnableInvoker.n_Run (IntPtr jnienv, IntPtr native__this) <0xa32cdbb0 + 0x0003f> in :0
[AndroidRuntime] at (wrapper dynamic-method) System.Object:3e716327-7e3a-45ae-a37a-63c8372f140f (intptr,intptr)
[AndroidRuntime] at mono.java.lang.RunnableImplementor.n_run(Native Method)
[AndroidRuntime] at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:30)
[AndroidRuntime] at android.os.Handler.handleCallback(Handler.java:739)
[AndroidRuntime] at android.os.Handler.dispatchMessage(Handler.java:95)
[AndroidRuntime] at android.os.Looper.loop(Looper.java:135)
[AndroidRuntime] at android.app.ActivityThread.main(ActivityThread.java:5343)
[AndroidRuntime] ... 4 more
[Process] Sending signal. PID: 30304 SIG: 9


Viewing all articles
Browse latest Browse all 77050

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>