Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

First WebClient request takes 3-5 seconds

$
0
0

I just started developing recently using Xamarin Android and have recently added functionality to make web service requests. The first request takes 3-5 seconds to complete. In debug log I see lots of messages about remapping assemblies, subsequently unloading the assembly image, and other unable to load dll failures. Does my log look normal and are these types of problems to be expected? If so, is there anyway to speed up the initial request?

I have included my debug output so you can see what I am talking about.

Forwarding debugger port 8845 Forwarding console port 8846 Detecting existing process [Trace] error opening trace file: Permission denied (13) [Mono] AOT failed to load AOT module mscorlib.dll.so: Cannot load library: load_library[1093]: Library '/data/data/MyApp/lib/mscorlib.dll.so' not found [Mono] GC_MAJOR: (mature allocation failure) pause 2.99ms, total 2.99ms, bridge 0.03ms major 112K/32K los 0K/0K [Mono] Assembly mscorlib[0x4e310378] added to domain RootDomain, ref_count=1 [Mono] Assembly Loader probing location: '/data/data/MyApp/files/.override/MyApp.Droid.dll'. [Mono] Assembly MyApp.Droid[0x5142bd98] added to domain RootDomain, ref_count=1 [Mono] AOT failed to load AOT module /data/data/MyApp/files/.override/MyApp.Droid.dll.so: Cannot load library: load_library[1093]: Library '/data/data/MyApp/lib//data/data/MyApp/files/.override/MyApp.Droid.dll.so' not found [Mono] Assembly Loader loaded assembly from location: '/data/data/MyApp/files/.override/MyApp.Droid.dll'. [Mono] Config attempting to parse: '/data/data/MyApp/files/.override/MyApp.Droid.dll.config'. [Mono] Config attempting to parse: '/Users/builder/data/lanes/monodroid-mlion-monodroid-4.10.2-branch/4b53fbd0/source/monodroid/builds/install/mono-armv7/etc/mono/assemblies/MyApp.Droid/MyApp.Droid.config'. [Mono] Assembly Loader probing location: '/data/data/MyApp/files/.override/Xamarin.Android.Support.v4.dll'. [Mono] Assembly Xamarin.Android.Support.v4[0x4e311c18] added to domain RootDomain, ref_count=1 [Mono] AOT failed to load AOT module /data/data/MyApp/files/.override/Xamarin.Android.Support.v4.dll.so: Cannot load library: load_library[1093]: Library '/data/data/MyApp/lib//data/data/MyApp/files/.override/Xamarin.Android.Support.v4.dll.so' not found [Mono] Assembly Loader loaded assembly from location: '/data/data/MyApp/files/.override/Xamarin.Android.Support.v4.dll'. [Mono] Config attempting to parse: '/data/data/MyApp/files/.override/Xamarin.Android.Support.v4.dll.config'. [Mono] Config attempting to parse: '/Users/builder/data/lanes/monodroid-mlion-monodroid-4.10.2-branch/4b53fbd0/source/monodroid/builds/install/mono-armv7/etc/mono/assemblies/Xamarin.Android.Support.v4/Xamarin.Android.Support.v4.config'. [Mono] Assembly Loader probing location: '/data/data/MyApp/files/.override/Xamarin.Android.Support.v7.AppCompat.dll'. [Mono] Assembly Xamarin.Android.Support.v7.AppCompat[0x4f08a788] added to domain RootDomain, ref_count=1 [Mono] AOT failed to load AOT module /data/data/MyApp/files/.override/Xamarin.Android.Support.v7.AppCompat.dll.so: Cannot load library: load_library[1093]: Library '/data/data/MyApp/lib//data/data/MyApp/files/.override/Xamarin.Android.Support.v7.AppCompat.dll.so' not found [Mono] Assembly Loader loaded assembly from location: '/data/data/MyApp/files/.override/Xamarin.Android.Support.v7.AppCompat.dll'. [Mono] Config attempting to parse: '/data/data/MyApp/files/.override/Xamarin.Android.Support.v7.AppCompat.dll.config'. [Mono] Config attempting to parse: '/Users/builder/data/lanes/monodroid-mlion-monodroid-4.10.2-branch/4b53fbd0/source/monodroid/builds/install/mono-armv7/etc/mono/assemblies/Xamarin.Android.Support.v7.AppCompat/Xamarin.Android.Support.v7.AppCompat.config'. [Mono] Assembly Loader probing location: '/data/data/MyApp/files/.override/Newtonsoft.Json.dll'. [Mono] Assembly Newtonsoft.Json[0x4f08af68] added to domain RootDomain, ref_count=1 [Mono] AOT failed to load AOT module /data/data/MyApp/files/.override/Newtonsoft.Json.dll.so: Cannot load library: load_library[1093]: Library '/data/data/MyApp/lib//data/data/MyApp/files/.override/Newtonsoft.Json.dll.so' not found [Mono] Assembly Loader loaded assembly from location: '/data/data/MyApp/files/.override/Newtonsoft.Json.dll'. [Mono] Config attempting to parse: '/data/data/MyApp/files/.override/Newtonsoft.Json.dll.config'. [Mono] Config attempting to parse: '/Users/builder/data/lanes/monodroid-mlion-monodroid-4.10.2-branch/4b53fbd0/source/monodroid/builds/install/mono-armv7/etc/mono/assemblies/Newtonsoft.Json/Newtonsoft.Json.config'. [Mono] Assembly Loader probing location: '/data/data/MyApp/files/.override/Xamarin.Mobile.dll'. [Mono] Assembly Xamarin.Mobile[0x4f2341b8] added to domain RootDomain, ref_count=1 [Mono] AOT failed to load AOT module /data/data/MyApp/files/.override/Xamarin.Mobile.dll.so: Cannot load library: load_library[1093]: Library '/data/data/MyApp/lib//data/data/MyApp/files/.override/Xamarin.Mobile.dll.so' not found [Mono] Assembly Loader loaded assembly from location: '/data/data/MyApp/files/.override/Xamarin.Mobile.dll'. [Mono] Config attempting to parse: '/data/data/MyApp/files/.override/Xamarin.Mobile.dll.config'. [Mono] Config attempting to parse: '/Users/builder/data/lanes/monodroid-mlion-monodroid-4.10.2-branch/4b53fbd0/source/monodroid/builds/install/mono-armv7/etc/mono/assemblies/Xamarin.Mobile/Xamarin.Mobile.config'. [monodroid-gc] GREF GC Threshold: 46800 [Mono] Assembly Mono.Android[0x4f08d060] added to domain RootDomain, ref_count=1 [Mono] AOT failed to load AOT module Mono.Android.dll.so: Cannot load library: load_library[1093]: Library '/data/data/MyApp/lib/Mono.Android.dll.so' not found [Mono] The request to load the assembly mscorlib v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image mscorlib.dll [0x4f36dc40]. Loaded assembly: /data/data/MyApp/files/.override/MyApp.Droid.dll Loaded assembly: /data/data/MyApp/files/.override/Xamarin.Android.Support.v4.dll [External] Loaded assembly: /data/data/MyApp/files/.override/Xamarin.Android.Support.v7.AppCompat.dll [External] Loaded assembly: /data/data/MyApp/files/.override/Newtonsoft.Json.dll [External] Loaded assembly: /data/data/MyApp/files/.override/Xamarin.Mobile.dll [External] Loaded assembly: Mono.Android.dll [External] [Mono] The request to load the assembly mscorlib v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image mscorlib.dll [0x50e013f8]. [Mono] The request to load the assembly mscorlib v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image mscorlib.dll [0x50e86a50]. [MonoDroid] Xamarin/Android Trial Mode Active [Mono] The request to load the assembly System.Core v2.0.5.0 was remapped to v3.5.0.0 [Mono] Assembly System.Core[0x50e9eac8] added to domain RootDomain, ref_count=1 [Mono] AOT failed to load AOT module System.Core.dll.so: Cannot load library: load_library[1093]: Library '/data/data/MyApp/lib/System.Core.dll.so' not found [Mono] The request to load the assembly mscorlib v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image mscorlib.dll [0x50ec3778]. Loaded assembly: System.Core.dll [External] [Mono] The request to load the assembly mscorlib v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image mscorlib.dll [0x4f2f3310]. [Mono] DllImport attempting to load: '__Internal'. [Mono] DllImport loaded library '(null)'. [Mono] DllImport searching in: '__Internal' ('(null)'). [Mono] Searching for '_monodroid_get_identity_hash_code'. [Mono] Probing '_monodroid_get_identity_hash_code'. [Mono] Found as '_monodroid_get_identity_hash_code'. Loaded assembly: MonoDroidConstructors [External] [Mono] DllImport searching in: '__Internal' ('(null)'). [Mono] Searching for '_monodroid_gref_inc'. [Mono] Probing '_monodroid_gref_inc'. [Mono] Found as '_monodroid_gref_inc'. [Mono] DllImport searching in: '__Internal' ('(null)'). [Mono] Searching for '_monodroid_gref_log_new'. [Mono] Probing '_monodroid_gref_log_new'. [Mono] Found as '_monodroid_gref_log_new'. [Mono] DllImport searching in: '__Internal' ('(null)'). [Mono] Searching for '_monodroid_gc_wait_for_bridge_processing'. [Mono] Probing '_monodroid_gc_wait_for_bridge_processing'. [Mono] Found as '_monodroid_gc_wait_for_bridge_processing'. [Mono] DllImport attempting to load: '/system/lib/liblog.so'. [Mono] DllImport loaded library '/system/lib/liblog.so'. [Mono] DllImport searching in: '/system/lib/liblog.so' ('/system/lib/liblog.so'). [Mono] Searching for '__android_log_print'. [Mono] Probing '__android_log_print'. [Mono] Found as '__android_log_print'. dm = DisplayMetrics{density=1.5, width=540, height=888, scaledDensity=1.5, xdpi=254.0, ydpi=256.67368} [Mono] DllImport searching in: '__Internal' ('(null)'). [Mono] Searching for '_monodroid_gref_dec'. [Mono] Probing '_monodroid_gref_dec'. [Mono] Found as '_monodroid_gref_dec'. [Mono] DllImport searching in: '__Internal' ('(null)'). [Mono] Searching for '_monodroid_gref_log_delete'. [Mono] Probing '_monodroid_gref_log_delete'. [Mono] Found as '_monodroid_gref_log_delete'. [Mono] The request to load the assembly System.Xml v2.0.5.0 was remapped to v2.0.0.0 [Mono] Assembly System.Xml[0x5114e9b0] added to domain RootDomain, ref_count=1 [Mono] AOT failed to load AOT module System.Xml.dll.so: Cannot load library: load_library[1093]: Library '/data/data/MyApp/lib/System.Xml.dll.so' not found [Mono] The request to load the assembly mscorlib v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image mscorlib.dll [0x511c0fc0]. Loaded assembly: System.Xml.dll [External] [Mono] The request to load the assembly System v2.0.5.0 was remapped to v2.0.0.0 [Mono] Assembly System[0x5123ca90] added to domain RootDomain, ref_count=1 [Mono] AOT failed to load AOT module System.dll.so: Cannot load library: load_library[1093]: Library '/data/data/MyApp/lib/System.dll.so' not found [Mono] The request to load the assembly mscorlib v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image mscorlib.dll [0x51241cf8]. Loaded assembly: System.dll [External] [Mono] The request to load the retargetable assembly mscorlib v2.0.5.0 was remapped to mscorlib v2.0.0.0 [Mono] Unloading image mscorlib.dll [0x51251268]. [Mono] Remapped public key token of retargetable assembly System from 7cec85d7bea7798e to b77a5c561934e089 [Mono] The request to load the retargetable assembly System v2.0.5.0 was remapped to System v2.0.0.0 [Mono] Unloading image System.dll [0x51252a80]. ***Loggin in Thread started: #2 ***MakeWebRequest elapsed time: 66.5649 [Mono] The request to load the assembly mscorlib v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image mscorlib.dll [0x512c93a8]. [Mono] The request to load the assembly System.Core v2.0.5.0 was remapped to v3.5.0.0 [Mono] Unloading image System.Core.dll [0x512c93a8]. [Mono] The request to load the assembly Mono.Security v2.0.5.0 was remapped to v2.0.0.0 [Mono] Assembly Mono.Security[0x51326350] added to domain RootDomain, ref_count=1 [Mono] AOT failed to load AOT module Mono.Security.dll.so: Cannot load library: load_library[1093]: Library '/data/data/MyApp/lib/Mono.Security.dll.so' not found [Mono] The request to load the assembly mscorlib v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image mscorlib.dll [0x51368698]. Loaded assembly: Mono.Security.dll [External] Thread started: #3 Thread started: #4 OnViewStateRestored [Mono] DllImport attempting to load: '/system/lib/libc.so'. [Mono] DllImport loaded library '/system/lib/libc.so'. [Mono] DllImport searching in: '/system/lib/libc.so' ('/system/lib/libc.so'). [Mono] Searching for 'gettid'. [Mono] Probing 'gettid'. [Mono] Found as 'gettid'. [Mono] The request to load the assembly Mono.Security v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image Mono.Security.dll [0x51392818]. [Mono] The request to load the assembly System v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image System.dll [0x51392818]. Thread started: #5 [Mono] The request to load the assembly System.Core v2.0.5.0 was remapped to v3.5.0.0 [Mono] Unloading image System.Core.dll [0x514db2c0]. [Mono] The request to load the assembly System v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image System.dll [0x514b8f10]. [Mono] The request to load the assembly System v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image System.dll [0x51508668]. Thread started: #6 Thread started: #7 Thread started: #8 Loaded assembly: Anonymously Hosted DynamicMethods Assembly [External] Thread started: #9 [Mono] The request to load the assembly System v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image System.dll [0x57994128]. [Mono] The request to load the assembly System v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image System.dll [0x57994128]. [Mono] The request to load the assembly System.Core v2.0.5.0 was remapped to v3.5.0.0 [Mono] Unloading image System.Core.dll [0x57b0f480]. [Mono] The request to load the assembly System.Core v2.0.5.0 was remapped to v3.5.0.0 [Mono] Unloading image System.Core.dll [0x57b07828]. [Mono] Remapped public key token of retargetable assembly System.Core from 7cec85d7bea7798e to b77a5c561934e089 [Mono] The request to load the retargetable assembly System.Core v2.0.5.0 was remapped to System.Core v2.0.0.0 [Mono] The request to load the assembly System.Core v2.0.0.0 was remapped to v3.5.0.0 [Mono] Unloading image System.Core.dll [0x5760ac30]. UploadValuesCompleted: ThreadId = 4 System.Threading.Thread [Mono] Remapped public key token of retargetable assembly System.Runtime.Serialization from 7cec85d7bea7798e to b77a5c561934e089 [Mono] The request to load the retargetable assembly System.Runtime.Serialization v2.0.5.0 was remapped to System.Runtime.Serialization v2.0.0.0 [Mono] The request to load the assembly System.Runtime.Serialization v2.0.0.0 was remapped to v3.0.0.0 [Mono] Assembly System.Runtime.Serialization[0x576b27e8] added to domain RootDomain, ref_count=1 [Mono] AOT failed to load AOT module System.Runtime.Serialization.dll.so: Cannot load library: load_library[1093]: Library '/data/data/MyApp/lib/System.Runtime.Serialization.dll.so' not found [Mono] The request to load the assembly mscorlib v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image mscorlib.dll [0x576b8e40]. Loaded assembly: System.Runtime.Serialization.dll [External] message = Logged in successfully ***Time to receive response from 'user/login' was 3743.9341


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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