question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running publish can hang after printing the banner

See original GitHub issue

Today, I have built an updated Yocto image which contains four SDK based projects. Each publishing step for these four projects hung during the build.

Yocto builds the projects in parallel and each runs through building the client-side packages with node and then runs the equivalent of dotnet publish -c Release -o … -f net471 for each project. The projects all have their private source code tree (it’s a copy from the actual GIT repository), so they don’t share any code files, bin or obj folders, but there is a common NuGet cache. From the build logs, I can see that the publish command went as far as printing the startup banner

Microsoft (R) Build Engine version 15.7.179.6572 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

and didn’t do anything beyond that. The dotnet processes existed (by looking at pstree), but weren’t doing anything. There were two kinds of dotnet processes: some attached directly to the init process and those being spawned by the Yocto bitbake infrastructure from the shell.

After killing the entire build process, I restarted it and the publish commands hung again. Manually running one of the publish commands on the command line instead of the build scripts hung as well.

I then killall dotnet’ed all existing dotnet processes and everything went back to normal. I haven’t seen a hang since.

Steps to reproduce

I don’t know.

Environment data

dotnet --info output:

.NET Core SDK (reflecting any global.json):
 Version:   2.1.301
 Commit:    59524873d6

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  16.04
 OS Platform: Linux
 RID:         ubuntu.16.04-x64
 Base Path:   /usr/share/dotnet/sdk/2.1.301/

Host (useful for support):
  Version: 2.1.1
  Commit:  6985b9f684

.NET Core SDKs installed:
  1.0.1 [/usr/share/dotnet/sdk]
  2.0.0 [/usr/share/dotnet/sdk]
  2.1.3 [/usr/share/dotnet/sdk]
  2.1.301 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 1.0.4 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 1.1.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.0.4 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Tragetaschencommented, Jul 20, 2018

I’ve not been able to reproduce this with another 100+100 runs.

I blame cosmic rays.

1reaction
rainersigwaldcommented, Jul 16, 2018

It would also be great if you could enable and capture logging, which might give more clues as to where the hang is happening. Normally I’d suggest using a binary log by passing -bl to MSBuild, but since this is a hang a text log might be safer in the face of unexpected process termination. Something like -filelog -fileloggerparameters:verbosity=diagnostic;LogFile=Publish.log would be helpful.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Background plotting and publishing hangs on "Publish job ...
When you plot, publish, or batch plot in AutoCAD or in DWG TrueView, the process gets stuck on "Publish job in progress" and...
Read more >
Banner Media Buckling - Solutions? : r/CommercialPrinting
Everything we've done looks like it should eliminate any wandering or buckling media, but it still happens frequently on long banner prints.
Read more >
print jobs always hang after printing first job
Locate Print Spooler in the list. Check that it has started and that the StartUp type is Automatic. If it has stopped check...
Read more >
Computer freezes when printing in Windows 11/10
Here's what you can do to mitigate this issue: Launch Print Application with Admin permission; Run Printer Troubleshooter; Restart Printer ...
Read more >
Issue with printing hanging - Windows Server
Hi All. Hoping someone can shed some light and a strange issue we are experiencing with a customer. In summary they have a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found