History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-2680
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Steve Luo
Reporter: Benoit Maury-Bouet
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
QuickBuild

MSBUILD : error MSB4017: The build stopped unexpectedly because of an unexpected logger failure

Created: 31/Mar/16 02:11 PM   Updated: 01/Dec/16 07:56 AM
Component/s: None
Affects Version/s: 6.1.2
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Windows 7 / Visual Studio 2015 / Msbuild140.exe


 Description  « Hide
Dear all,

We juste an error from the quickbuild logger, here's the stack trace from the step log
[code]
MSBUILD : error MSB4017: The build stopped unexpectedly because of an unexpected logger failure.
15:24:44,454 INFO - Microsoft.Build.Exceptions.InternalLoggerException: The build stopped unexpectedly because of an unexpected logger failure. ---> System.ArgumentException: Unable to sort because the IComparer.Compare() method returns inconsistent results. Either a value does not compare equal to itself, or one value repeatedly compared to another value yields different results. IComparer: 'Microsoft.Build.BuildEngine.BaseConsoleLogger+PerformanceCounter+DescendingByElapsedTime'.
15:24:44,454 INFO - at System.Collections.Generic.IntrospectiveSortUtilities.ThrowOrIgnoreBadComparer(Object comparer)
15:24:44,454 INFO - at System.Array.SorterObjectArray.IntrospectiveSort(Int32 left, Int32 length)
15:24:44,454 INFO - at System.Array.Sort(Array keys, Array items, Int32 index, Int32 length, IComparer comparer)
15:24:44,454 INFO - at System.Collections.ArrayList.Sort(Int32 index, Int32 count, IComparer comparer)
15:24:44,454 INFO - at System.Collections.ArrayList.Sort(IComparer comparer)
15:24:44,454 INFO - at Microsoft.Build.BuildEngine.BaseConsoleLogger.DisplayCounters(Hashtable counters)
15:24:44,454 INFO - at Microsoft.Build.BuildEngine.BaseConsoleLogger.ShowPerfSummary()
15:24:44,454 INFO - at Microsoft.Build.BuildEngine.SerialConsoleLogger.BuildFinishedHandler(Object sender, BuildFinishedEventArgs e)
15:24:44,454 INFO - at Microsoft.Build.Framework.BuildFinishedEventHandler.Invoke(Object sender, BuildFinishedEventArgs e)
15:24:44,454 INFO - at Microsoft.Build.Evaluation.ProjectCollection.ReusableLogger.BuildFinishedHandler(Object sender, BuildFinishedEventArgs e)
15:24:44,454 INFO - at Microsoft.Build.BackEnd.Logging.EventSourceSink.RaiseBuildFinishedEvent(Object sender, BuildFinishedEventArgs buildEvent)
15:24:44,454 INFO - --- End of inner exception stack trace ---
15:24:44,454 INFO - at Microsoft.Build.Exceptions.InternalLoggerException.Throw(Exception innerException, BuildEventArgs e, String messageResourceName, Boolean initializationException, String[] messageArgs)
15:24:44,454 INFO - at Microsoft.Build.BackEnd.Logging.EventSourceSink.RaiseBuildFinishedEvent(Object sender, BuildFinishedEventArgs buildEvent)
15:24:44,454 INFO - at Microsoft.Build.BackEnd.Logging.EventSourceSink.Consume(BuildEventArgs buildEvent)
15:24:44,454 INFO - at Microsoft.Build.BackEnd.Logging.EventSourceSink.Consume(BuildEventArgs buildEvent, Int32 sinkId)
15:24:44,454 INFO - at Microsoft.Build.BackEnd.Logging.EventRedirectorToSink.Microsoft.Build.Framework.IEventRedirector.ForwardEvent(BuildEventArgs buildEvent)
15:24:44,454 INFO - at Microsoft.Build.BackEnd.Logging.CentralForwardingLogger.EventSource_AnyEventRaised(Object sender, BuildEventArgs buildEvent)
15:24:44,454 INFO - at Microsoft.Build.BackEnd.Logging.EventSourceSink.RaiseAnyEvent(Object sender, BuildEventArgs buildEvent)
15:24:44,469 INFO - Executing post-execute action...
15:24:44,469 ERROR - Step 'master>Build x64 Tools -- release>Wintools (msbuild)' is failed: Executing below MSBuild command failed (0 errors, 0 warnings):
"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" /nologo /t:Build /noconsolelogger /l:QBLogger,C:\__QB__Buildagent\framework\configuration\org.eclipse.osgi\com\pmease\quickbuild\plugin\builder\msbuild\PMEase.QuickBuild.MSBuild.Logger.dll;v=diagnostic /p:Configuration=Release D:\Odyssey\Code\Main\projects\WinTools.sln
See detailed errors in the log
15:24:44,469 TRACE - Stack trace for the failure
    com.pmease.quickbuild.QuickbuildException: Executing below MSBuild command failed (0 errors, 0 warnings):
     "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" /nologo /t:Build /noconsolelogger /l:QBLogger,C:\__QB__Buildagent\framework\configuration\org.eclipse.osgi\com\pmease\quickbuild\plugin\builder\msbuild\PMEase.QuickBuild.MSBuild.Logger.dll;v=diagnostic /p:Configuration=Release D:\Odyssey\Code\Main\projects\WinTools.sln
    See detailed errors in the log

     at com.pmease.quickbuild.plugin.builder.msbuild.MSBuildStep.run(MSBuildStep.java:110)

     at com.pmease.quickbuild.plugin.builder.msbuild.MSBuildStep$$EnhancerByCGLIB$$bccf6247.CGLIB$run$0(<generated>)

     at com.pmease.quickbuild.plugin.builder.msbuild.MSBuildStep$$EnhancerByCGLIB$$bccf6247$$FastClassByCGLIB$$e1edaeb2.invoke(<generated>)

     at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)

     at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:261)

     at com.pmease.quickbuild.plugin.builder.msbuild.MSBuildStep$$EnhancerByCGLIB$$bccf6247.run(<generated>)

     at com.pmease.quickbuild.stepsupport.Step.execute(Step.java:539)

     at com.pmease.quickbuild.stepsupport.StepExecutionJob.executeStepAwareJob(StepExecutionJob.java:30)

     at com.pmease.quickbuild.stepsupport.StepAwareJob.executeBuildAwareJob(StepAwareJob.java:45)

     at com.pmease.quickbuild.BuildAwareJob.execute(BuildAwareJob.java:60)

     at com.pmease.quickbuild.grid.GridJob.run(GridJob.java:106)

     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

     at java.util.concurrent.FutureTask.run(Unknown Source)

     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

     at java.lang.Thread.run(Unknown Source)
[/code]


 All   Comments   Work Log   Change History      Sort Order:
Steve Luo [23/Jun/16 01:44 PM]
To me, this seems to be caused by MSBuild itself, not by QuickBuild. Would you please run your build in the command line to see if it can work correctly?

Steve Luo [23/Jun/16 01:45 PM]
I mean run below command:
"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" /nologo /t:Build /p:Configuration=Release D:\Odyssey\Code\Main\projects\WinTools.sln