AppDomain.Unload Problems in BuildLogs

Hi there,

I discovered strange warnings in my build logs. They don't seem to have any effect on the build outcome, but I would like to understand what's going on and to fix it if possible.
In the build logs I see:

[Step 3/6] 2014-07-09 17:51:21,192 [JetPool #2 (LL)] WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain., , (null)
[17:51:21][Step 3/6] 2014-07-09 17:51:21,247 [JetPool #6 (SB)] WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain., , (null)
[17:51:21][Step 3/6] 2014-07-09 17:51:21,250 [JetPool #8 (SH)] WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain., , (null)
[17:51:21][Step 3/6] 2014-07-09 17:51:21,317 [JetPool #4 (SL)] WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain., , (null)
[17:51:21][Step 3/6] 2014-07-09 17:51:21,323 [JetPool #3 (LL)] WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain., , (null)
[17:51:21][Step 3/6] 2014-07-09 17:51:21,327 [JetPool #1 (LL)] WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain., , (null)
[17:51:21][Step 3/6] 2014-07-09 17:51:21,340 [JetPool #5 (SB)] WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain., , (null)
[17:51:21][Step 3/6] 2014-07-09 17:51:21,564 [JetPool #7 (SA)] WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain., , (null)
[17:51:21][Step 3/6] 2014-07-09 17:51:21,583 [JetPool Manager] WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain., , (null)
[17:51:43][Step 3/6] AppDomain.Unload failed for assembly 'KaVE.VsFeedbackGenerator.RS8Tests.dll'.
[17:51:43][Step 3/6] System.CannotUnloadAppDomainException: Error while unloading appdomain. (Exception from HRESULT: 0x80131015) at System.AppDomain.Unload(AppDomain domain) at JetBrains.TeamCity.Utils.AppDomainWrapper.Unload() in c:\BuildAgent\work\925d57d78eef3931\src\Utils\src\AppDomainWrapper.cs:line 105

KaVE.VsFeedbackGenerator.RS8Tests ist a R#-Test project. I don't know where the warnings about the unloaded AppDomain come from, as there is not stacktrace to be found (I also checked the BuildAgent logs on disk).
Does anyone know where this warnings come from and what causes them? Or where I can find more information about the messages? Any help would be greatly appreciated!!!

Thank you,
Best,
Sven

4 comments
Comment actions Permalink

Hi,

This warning should not affect your builds. We have a related issue http://youtrack.jetbrains.com/issue/TW-25531, please vatch and vote.
It would be appreciated, if you provide us with full build log with turned on debug mode.

0
Comment actions Permalink

Hi Alina,

thanks for you reply! I posted the log to the issue and upvoted it.
Anyways, good to know that this is not caused by us. Troubles me much less now ;)

Best,
Sven

0
Comment actions Permalink

Same probleme, TeamCity Enterprise 2018.1.3 (build 58658)

Part of debug log:

[2019-05-06 13:28:07,923] DEBUG - jetbrains.buildServer.XMLRPC - >>> XML-RPC request >>>
[2019-05-06 13:28:07,923] DEBUG - jetbrains.buildServer.XMLRPC - <?xml version="1.0"?><methodCall><methodName>buildServer.log</methodName><params><param><value><![CDATA[41310]]></value></param><param><value><array><data><value><![CDATA[<bm><f2>Text</f2><f3>2</f3><f4>1557138484744</f4><f5>02331e40-e899-461b-ba68-d57148c802dd</f5><v1 class="java.lang.String">AppDomain.Unload failed for assembly &apos;ConcertRu.RabbitMQ.Test.dll&apos;.</v1></bm>]]></value><value><![CDATA[<bm><f2>Text</f2><f3>2</f3><f4>1557138484744</f4><f5>02331e40-e899-461b-ba68-d57148c802dd</f5><v1 class="java.lang.String">System.CannotUnloadAppDomainException: Error while unloading appdomain. (Exception from HRESULT: 0x80131015)
at System.AppDomain.Unload(AppDomain domain)
at JetBrains.TeamCity.Utils.AppDomainWrapper.Unload() in c:\BuildAgent\work\f11f27326b5f4a3f\src\Utils\src\AppDomainWrapper.cs:line 106</v1></bm>]]></value><value><![CDATA[<bm><f2>FlowFinished</f2><f4>1557138484752</f4><f5>b7889c42-9268-4d69-8386-fe8b9ad3ff63</f5><v1 class="FlowData"><myFlow>02331e40-e899-461b-ba68-d57148c802dd</myFlow><myParentFlow>b7889c42-9268-4d69-8386-fe8b9ad3ff63</myParentFlow></v1></bm>]]></value></data></array></value></param></params></methodCall>
[2019-05-06 13:28:07,927] DEBUG - jetbrains.buildServer.XMLRPC - <<< XML-RPC response <<<
[2019-05-06 13:28:07,927] DEBUG - jetbrains.buildServer.XMLRPC - <?xml version="1.0"?><methodResponse><params><param><value><boolean>1</boolean></value></param></params></methodResponse>

Full log - https://drive.google.com/open?id=1oyN2RulYQdzYe8fhfAuwPO2UsdRKNFE_

I see attempt in [2019-05-06 13:28:07,923], but test ended earler - 

2019-05-06 13: 27: 40,649 [WorkPool-Session # 1: Connection (224fe521-2a60-4a53-9f3d-ad19e041ee54, amqp: //89.208.141.124: 5672)] INFO RabbitMQConsuming; BasicConsumerOnReceived <- The subscription worked. key = 'ConcertUserCreation.0' body = '{"UserInfo": {"Id": 0, "Login": null, "Password": "KXoK3g", "Description": null, "Created": "0001-01 -01T00: 00: 00 "," From ": null," Email ":" testd5-bf3c-491b-8835-7a297dfe37c9@mail.ru "," Phone ": null," FullName ":" Vasya Pupkin "," PasswordHash ": null," IsConfirmed ": null," IsAnonymousUser ": false}," OrderId ": 0," Created ":" 2019-05-06T13: 27: 30.4289275 + 03: 00 "," AttemptToWork ": 1, "Delay": 0, "Attempts": [], "CurrentAttempt": null} '
2019-05-06 13: 27: 41,761 [WorkPool-Session # 1: Connection (224fe521-2a60-4a53-9f3d-ad19e041ee54, amqp: //89.208.141.124: 5672)] INFO RabbitMQConsuming; BasicConsumerOnReceived <- Subscription processing is complete.

2019-05-06 13: 27: 42,496 [TestRunnerThread] INFO RabbitMQConsuming; Stopping the subscriber service RabbitMQ ...
2019-05-06 13: 27: 42,496 [TestRunnerThread] INFO RabbitMQConsuming; Subscriber stops: _inRocess = False (true - busy, false - free)
2019-05-06 13: 27: 42,496 [TestRunnerThread] INFO RabbitMQConsuming; Waiting for the completion of all processes ...
2019-05-06 13: 27: 42,496 [TestRunnerThread] INFO RabbitMQConsuming; All processes are completed.

 

 

0
Comment actions Permalink

Hi Alex,

 

please refer to the issue in the tracker mentioned by Alina (https://youtrack.jetbrains.com/issue/TW-25531), watch and vote for it. 

0

Please sign in to leave a comment.