locked
"Unloading image System.dll" log spam RRS feed

  • Question

  • User3352 posted

    In the last few releases of Xamarin.Android, we've been seeing an incredible amount of log spam of the following form:

    [Mono] Image addref System(0x6ba674c8) - System.dll(0x57b6f3c8): 1799 [Mono] Image addref System(0x6bc55338) - System.dll(0x57b6f3c8): 1800 [Mono] The request to load the assembly System v2.0.5.0 was remapped to v2.0.0.0 [Mono] The request to load the assembly System v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image System.dll [0x6c159948]. [Mono] Unloading image System.dll [0x6a1d94a0]. [Mono] Image addref System(0x6ba674c8) - System.dll(0x57b6f3c8): 1801 [Mono] Image addref System(0x6bc55338) - System.dll(0x57b6f3c8): 1802 [Mono] The request to load the assembly System v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image System.dll [0x6c159948]. [Mono] Image addref System(0x6bc55338) - System.dll(0x57b6f3c8): 1802 [Mono] The request to load the assembly System v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image System.dll [0x6c159948]. [Mono] Image addref System(0x6bc55338) - System.dll(0x57b6f3c8): 1803 Thread finished: <Thread Pool> #33 Thread finished: <Thread Pool> #33 [Mono] The request to load the assembly System v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image System.dll [0x69789ab8]. [Mono] Image addref System(0x69150bc8) - System.dll(0x57b6f3c8): 1804 [Mono] The request to load the assembly System v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image System.dll [0x69789ab8]. [Mono] Image addref System(0x69150bc8) - System.dll(0x57b6f3c8): 1805 [Mono] The request to load the assembly System v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image System.dll [0x69789ab8]. [Mono] Image addref System(0x69150bc8) - System.dll(0x57b6f3c8): 1806 [Mono] The request to load the assembly System v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image System.dll [0x68e91888]. [Mono] Image addref System(0x69150bc8) - System.dll(0x57b6f3c8): 1807 [Mono] The request to load the assembly System v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image System.dll [0x68e91888]. [Mono] Image addref System(0x69150bc8) - System.dll(0x57b6f3c8): 1808 [Mono] The request to load the assembly System v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image System.dll [0x68e91888]. [Mono] Image addref System(0x69150bc8) - System.dll(0x57b6f3c8): 1809 [Mono] The request to load the assembly System v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image System.dll [0x6b6c96d0]. [Mono] Image addref System(0x69150bc8) - System.dll(0x57b6f3c8): 1810 [Mono] The request to load the assembly System v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image System.dll [0x6a124b10]. [Mono] Image addref System(0x407dc420) - System.dll(0x57b6f3c8): 1811

    We only see this in Debug mode. We think it might be related to our networking code. Has anyone else been seeing this? Any idea what's causing it and whether its affecting app performance in general?

    Friday, November 15, 2013 7:49 PM

All replies

  • User1862 posted

    I am getting these too. I would appreciate any info on how to take care of these warnings.

    Friday, November 15, 2013 8:23 PM
  • User26010 posted

    Ditto... This started when I updated Xamarin.Android ... This is substantially affecting the performance of our application and debugging...

    I was thinking I might have hosed something in our project... But I get the messages when using the monodroid-samples/NotePad-Mono.Data.Sqlite

    Xamarin.Android: Version: 4.10.1 (Business Edition) Android SDK: /Users/cjustus/Library/Developer/Xamarin/android-sdk-macx86 Supported Android versions: 2.1 (API level 7) 2.2 (API level 8) 2.3 (API level 10) 3.1 (API level 12) 4.0 (API level 14) 4.0.3 (API level 15) 4.2 (API level 17) 4.3 (API level 18) 4.4 (API level 19) Java SDK: /usr java version "1.6.065" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609) Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

    --- Application Output ---

    Detecting existing process [Mono] Image addref mscorlib[0xb7fdc470] -> mscorlib.dll[0xb7fdb910]: 1 [Mono] AOT failed to load AOT module mscorlib.dll.so: dlopen failed: library "/data/data/Notepad.Notepad/lib/mscorlib.dll.so" not found [Mono] GCMAJOR: (mature allocation failure) pause 0.77ms, total 0.77ms, bridge 0.03ms major 112K/32K los 0K/0K [Mono] Assembly mscorlib[0xb7fdc470] added to domain RootDomain, refcount=1 [Mono] Assembly Loader probing location: '/data/data/Notepad.Notepad/files/.override/Notepad.dll'. [Mono] Image addref Notepad[0xb80114c0] -> /data/data/Notepad.Notepad/files/.override/Notepad.dll[0xb8010880]: 2 [Mono] Assembly Notepad[0xb80114c0] added to domain RootDomain, refcount=1 [Mono] AOT failed to load AOT module /data/data/Notepad.Notepad/files/.override/Notepad.dll.so: dlopen failed: library "/data/data/Notepad.Notepad/lib//data/data/Notepad.Notepad/files/.override/Notepad.dll.so" not found [Mono] Assembly Loader loaded assembly from location: '/data/data/Notepad.Notepad/files/.override/Notepad.dll'. [Mono] Config attempting to parse: '/data/data/Notepad.Notepad/files/.override/Notepad.dll.config'. [Mono] Config attempting to parse: '/Users/builder/data/lanes/monodroid-mlion-monodroid-4.10.1-branch/9d03ce3e/source/monodroid/builds/install/mono-x86/etc/mono/assemblies/Notepad/Notepad.config'. [monodroid-gc] GREF GC Threshold: 1800 [Mono] Image addref Mono.Android[0xb8010820] -> Mono.Android.dll[0xb80118c0]: 1 [Mono] Assembly Mono.Android[0xb8010820] added to domain RootDomain, refcount=1 [Mono] AOT failed to load AOT module Mono.Android.dll.so: dlopen failed: library "/data/data/Notepad.Notepad/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 [0xb8032100]. Loaded assembly: /data/data/Notepad.Notepad/files/.override/Notepad.dll Loaded assembly: Mono.Android.dll [External] [Mono] Assembly Ref addref Mono.Android[0xb8010820] -> mscorlib[0xb7fdc470]: 2 [Mono] The request to load the assembly System.Core v2.0.5.0 was remapped to v3.5.0.0 [Mono] Image addref System.Core[0xb8042010] -> System.Core.dll[0xb804bc10]: 1 [Mono] Assembly System.Core[0xb8042010] added to domain RootDomain, refcount=1 [Mono] AOT failed to load AOT module System.Core.dll.so: dlopen failed: library "/data/data/Notepad.Notepad/lib/System.Core.dll.so" not found [Mono] Assembly Ref addref Mono.Android[0xb8010820] -> System.Core[0xb8042010]: 2 [Mono] The request to load the assembly mscorlib v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image mscorlib.dll [0xb8063010]. Loaded assembly: System.Core.dll [External] [Mono] Assembly Ref addref System.Core[0xb8042010] -> mscorlib[0xb7fdc470]: 3 [Mono] Assembly Ref addref Notepad[0xb80114c0] -> Mono.Android[0xb8010820]: 2 [Mono] DllImport attempting to load: 'Internal'. [Mono] DllImport loaded library '(null)'. [Mono] DllImport searching in: 'Internal' ('(null)'). [Mono] Searching for 'monodroidgetidentityhashcode'. [Mono] Probing 'monodroidgetidentityhashcode'. Loaded assembly: MonoDroidConstructors [External] [Mono] Found as 'monodroidgetidentityhashcode'. [Mono] The request to load the assembly mscorlib v2.0.5.0 was remapped to v2.0.0.0 [Mono] Unloading image mscorlib.dll [0xb810dc30]. [Mono] Assembly Ref addref Notepad[0xb80114c0] -> mscorlib[0xb7fdc470]: 4 [Mono] DllImport searching in: 'Internal' ('(null)'). [Mono] Searching for 'monodroidgrefinc'. [Mono] Probing 'monodroidgrefinc'. [Mono] Found as 'monodroidgrefinc'. [Mono] DllImport searching in: 'Internal' ('(null)'). [Mono] Searching for 'monodroidgreflognew'. [Mono] Probing 'monodroidgreflognew'. [Mono] Found as 'monodroidgreflognew'. [Mono] DllImport searching in: 'Internal' ('(null)'). [Mono] Searching for 'monodroidgcwaitforbridgeprocessing'. [Mono] Probing 'monodroidgcwaitforbridgeprocessing'. [Mono] Found as 'monodroidgcwaitforbridgeprocessing'. [dalvikvm-heap] Grow heap (frag case) to 3.696MB for 1127532-byte allocation [Mono] Image addref Mono.Data.Sqlite[0xb825d660] -> Mono.Data.Sqlite.dll[0xb825cb60]: 1 [Mono] Assembly Mono.Data.Sqlite[0xb825d660] added to domain RootDomain, refcount=1 [Mono] AOT failed to load AOT module Mono.Data.Sqlite.dll.so: dlopen failed: library "/data/data/Notepad.Notepad/lib/Mono.Data.Sqlite.dll.so" not found [Mono] Assembly Ref addref Notepad[0xb80114c0] -> Mono.Data.Sqlite[0xb825d660]: 2 [Mono] The request to load the assembly System.Data v2.0.5.0 was remapped to v2.0.0.0 [Mono] Image addref System.Data[0xb8267590] -> System.Data.dll[0xb825a7e0]: 1 [Mono] Assembly System.Data[0xb8267590] added to domain RootDomain, refcount=1 [Mono] AOT failed to load AOT module System.Data.dll.so: dlopen failed: library "/data/data/Notepad.Notepad/lib/System.Data.dll.so" not found [Mono] Assembly Ref addref Mono.Data.Sqlite[0xb825d660] -> System.Data[0xb8267590]: 2 [Mono] The request to load the assembly System v2.0.5.0 was remapped to v2.0.0.0 [Mono] Image addref System[0xb826e140] -> System.dll[0xb826d5f0]: 1 [Mono] Assembly System[0xb826e140] added to domain RootDomain, refcount=1 [Mono] AOT failed to load AOT module System.dll.so: dlopen failed: library "/data/data/Notepad.Notepad/lib/System.dll.so" not found [Mono] Assembly Ref addref System.Data[0xb8267590] -> System[0xb826e140]: 2 [Mono] The request to load the assembly mscorlib v2.0.5.0 was remapped to v2.0.0.0

    Tuesday, November 19, 2013 6:10 PM
  • User26010 posted

    This was bugging me, so I went and RTFM...

    Here's the relevant page: http://docs.xamarin.com/guides/android/advanced_topics/environment/

    I was able to correct this by running:

    adb shell setprop debug.mono.env "'MONOLOGLEVEL=warn|MONOLOGMASK=asm'"

    Tuesday, November 19, 2013 8:44 PM
  • User3352 posted

    It's glorious, thank you.

    I'm still worried about what it's actually doing though. Loading/unloading the system.dll doesn't seem good... Unless it brings AOT to us faster, then all is forgiven : )

    Tuesday, November 19, 2013 9:01 PM
  • User43083 posted

    Do you guys get warning on Build?

    Wednesday, March 19, 2014 11:05 PM
  • User1817 posted

    Is it a bug or not? Don't want to squash the log statements if they're flagging up something bad.

    Thursday, March 27, 2014 11:11 AM
  • User1817 posted

    Any news about this? Is it a performance problem?

    Wednesday, April 30, 2014 9:36 AM
  • User1798 posted

    Also seeing this. Would be nice to know if there was a performance impact. The wording makes me think there is.

    Thursday, September 4, 2014 8:23 PM
  • User57438 posted

    This also happens to me when doing network calls. When I call our test-server there are no messages like this. When I call our production-server there are about 8-10 per call (also System.Core.dll).

    Only difference I can think of is https? (server code is the same but they are running on different servers). I get significant performance degradation (1000%).

    Some code: 09-23 13:46:24.647 D/Mono (13657): Unloading image System.dll [0x7d8d4a78]. 09-23 13:46:24.647 D/Mono (13657): Image addref System[0x7d435348] -> System.dll[0x7a75dce8]: 2167 09-23 13:46:24.647 D/Mono (13657): Unloading image System.dll [0x7d8d4a78]. 09-23 13:46:24.647 D/Mono (13657): Image addref System[0x7d8e33e0] -> System.dll[0x7a75dce8]: 2168 09-23 13:46:24.647 D/Mono (13657): Unloading image System.dll [0x7d8d4a78]. 09-23 13:46:24.657 D/Mono (13657): Image addref System[0x7d435348] -> System.dll[0x7a75dce8]: 2169 09-23 13:46:24.677 D/Mono (13657): Unloading image System.dll [0x7d8d4a78]. 09-23 13:46:24.677 D/Mono (13657): Image addref System[0x7d8e33e0] -> System.dll[0x7a75dce8]: 2170 09-23 13:46:24.677 D/Mono (13657): Unloading image System.dll [0x7d8d4a78]. 09-23 13:46:24.687 D/Mono (13657): Image addref System[0x7d8e33e0] -> System.dll[0x7a75dce8]: 2171 09-23 13:46:24.687 D/Mono (13657): Unloading image System.dll [0x7d8d4a78]. 09-23 13:46:24.687 D/Mono (13657): Image addref System[0x7d6e7d20] -> System.dll[0x7a75dce8]: 2172 09-23 13:46:24.687 D/Mono (13657): Unloading image System.dll [0x7d8d4a78]. 09-23 13:46:24.687 D/Mono (13657): Image addref System[0x7d8e33e0] -> System.dll[0x7a75dce8]: 2173 09-23 13:46:24.707 D/Mono (13657): Unloading image System.Core.dll [0x7e9c30c8]. 09-23 13:46:24.707 D/Mono (13657): Image addref System.Core[0x7e9c4a98] -> System.Core.dll[0x7a615f00]: 622 09-23 13:46:24.707 D/Mono (13657): Unloading image System.Core.dll [0x7e9c30c8]. 09-23 13:46:24.707 D/Mono (13657): Image addref System.Core[0x7d85f388] -> System.Core.dll[0x7a615f00]: 623

    Tuesday, September 23, 2014 11:52 AM
  • User15741 posted

    "Me too". It would be nice to get a steer from Xamarin about this and the performance implications.

    Friday, October 31, 2014 12:09 PM
  • User19323 posted

    Any updates on this? Xamarin?

    Tuesday, November 18, 2014 8:26 PM
  • User107294 posted

    Still seeing this, would love some feedback.

    Tuesday, February 24, 2015 6:32 PM
  • User70647 posted

    Me too, could I add my voice into this information request.

    Friday, March 6, 2015 2:44 PM
  • User36338 posted

    I would also like to know the reason for this as recently it has gotten worse. Have executed the adb command to remove it for now.

    Friday, March 6, 2015 4:15 PM
  • User80275 posted

    Happened to me as well

    Tuesday, March 10, 2015 8:32 AM
  • User91015 posted

    Me too (read: YABT - Another beta tester who pays for the privilege). It sure would be nice to get some official word on this. Thanks.

    Wednesday, March 18, 2015 5:28 PM
  • User91015 posted

    All this seems to imply that https://bugzilla.xamarin.com/show_bug.cgi?id=25737 is not actually "RESOLVED ANSWERED "

    Wednesday, March 18, 2015 5:51 PM
  • User102435 posted

    Same issue for me, each HTTPS request triggers this.

    Saturday, March 28, 2015 5:38 PM
  • User15741 posted

    Like some other commenters, I see this for HTTPS but not for HTTP. I'm not particularly worried about the performance implications given that network operations are always going to be an order of magnitude slower than library loading. However, HTTPS calls eventually fail completely for me after my app has been running for a long time and I would like to rule this out as a suspect.

    @JonathanPryor As the only Xamarin rep who has commented on the Bugzilla post for this issue (no good deed goes unpunished :smile:), can you find someone from the relevant team to look into this?

    Tuesday, April 7, 2015 11:03 AM
  • User84071 posted

    This issue is KILLING ME. It just started a few days ago. I updated to most recent version of Xamarin and it persists. I tried disabling the log via adb shell setprop debug.mono.env "'MONOLOGLEVEL=warn|MONOLOGMASK=asm'" but that just masks the problem while my app hangs during debugging while tying to make HTTPS calls (and development stops while I watch Unloading image System.Core.dll [0x9a6bf800]. 06-08 15:48:07.664 D/Mono (14526): Image addref System.Core[0x9a4278e0] -> System.Core.dll[0xb4f11000]: 23 happen 200 times

    Monday, June 8, 2015 7:49 PM
  • User73939 posted

    Same issue for me. HTTPS requests seem to be the cause...

    06-25 14:55:23.877 D/Mono ( 5046): Image addref System.Core[0x918fa820] -> System.Core.dll[0xa081c400]: 500 06-25 14:55:23.878 D/Mono ( 5046): Unloading image System.Core.dll [0x95d7e400].

    Thursday, June 25, 2015 10:40 PM
  • User73730 posted

    Xamarin techs must fear these kinds of questions. Will any Xamarin tech like to chime in at any time. Do we have control over this System.dll or not? Is it being loaded and unloaded from memory? How can we keep it in memory.

    Wednesday, July 8, 2015 4:12 PM
  • User142951 posted

    In our app which loads large amounts of data via multiple requests, http is at least twice as fast as https in total and the main visible difference is this unloading/loading between each request. The time between http requests is about 1-1.5s while for https requests it is more likely to take 3-5s.

    Sunday, July 19, 2015 11:20 AM
  • User142462 posted

    I've been seeing the same issue and as my application grows so does the amount of "unloading image" spam messages... It's now to the point where simple navigations take up 2 - 3 seconds and there isn't a solution in sight.

    Wednesday, January 20, 2016 12:39 PM
  • User186547 posted

    Also have this problem. No solutions in sight?

    Wednesday, January 27, 2016 3:49 PM
  • User167205 posted

    the level of support xamarin is giving is truely overwhelming. i've got 2,6 seconds of loading during requests and xamarin doesn't seem to care about this the slightest bit. yeahy beta testing

    Friday, June 10, 2016 7:55 AM
  • User55046 posted

    I'm seeing this log spam with https requests as well. We're also seeing poor performance, but don't think this is the cause, but it would be nice to at least understand why we're seeing these log messages spammed and whether it's something to be concerned about or not.

    Wednesday, July 19, 2017 2:59 PM
  • User338465 posted

    I've been seeing these during https requests, too. Any ideas?

    Monday, August 21, 2017 6:57 PM