vscode: VSCode Test Runner does not install or run correctly in Azure Dev Ops Builds

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: Latest stable
  • OS Version: Latest Azure DevOps Windows Container

Steps to Reproduce:

  1. Create a testing script that uses the VsCode Test Runner
  2. Attempt to run this script from Azure Dev Ops and produce an xunit test report.
  3. Notice the following error: [10480:1020/203958.625:ERROR:network_change_notifier_win.cc(225)] WSALookupServiceBegin failed with: 0 Exit code: 3221225477 Failed to run tests

image

NOTE: This also did not work on Linux based container builds on Azure Devops. If you would like access to our pipeline definition or build run, please let me know (internal repo and build).

The tests run fine locally.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (10 by maintainers)

Most upvoted comments

Crash was due to stackoverflow from trying to load system fonts on startup of the render process,

28528  Code.exe!static class gfx::Font gfx::win::`anonymous namespace'::SystemFonts::GetFontFromLOGFONT(const struct tagLOGFONTW & const) [system_fonts_win.cc : 111 + 0xd]
28529  Code.exe!void gfx::win::`anonymous namespace'::SystemFonts::AddFont(gfx::win::SystemFont, const struct gfx::win::FontAdjustment & const, struct tagLOGFONTW *) [system_fonts_win.cc : 215 + 0xb]
28530  Code.exe!gfx::win::GetSystemFont(gfx::win::SystemFont) [system_fonts_win.cc : 268 + 0x139]
28531  Code.exe!static void gfx::PlatformFontSkia::EnsuresDefaultFontIsInitialized() [platform_font_skia.cc : 160 + 0x8]
28532  Code.exe!void gfx::PlatformFontSkia::InitFromDetails(class sk_sp<SkTypeface>, const class std::__1::basic_string<char,std::__1::char_traits<char>,std::__1::allocator<char> > & const, int, int, gfx::Font::Weight, const struct gfx::FontRenderParams & const) [platform_font_skia.cc : 355 + 0x5]
28533  Code.exe!void gfx::PlatformFontSkia::PlatformFontSkia(const class std::__1::basic_string<char,std::__1::char_traits<char>,std::__1::allocator<char> > & const, int) [platform_font_skia.cc : 108 + 0x1f]
28534  Code.exe!gfx::PlatformFont::CreateFromNameAndSize(std::__1::basic_string<char,std::__1::char_traits<char>,std::__1::allocator<char> > const &,int) [platform_font_skia.cc : 466 + 0x1b]

This seems like an issue with the container given this article https://techcommunity.microsoft.com/t5/itops-talk-blog/adding-optional-font-packages-to-windows-containers/ba-p/3559761

Since we launched containers in Windows Server 2016, customers have told us how a slim container 
image impacts the overall performance. With that in mind, we
[removed](https://docs.microsoft.com/windows-server/administration/server-core/server-core-container-removed-roles) 
as much of the base container images as we could, including components such as fonts – 
which in most cases is not relevant.

Please report back if you see the crash after adding fonts to the container.

Nice! When @deepak1556 returns, maybe he could look into the crash dump to find out more:

11845f90-0fda-41e0-be04-da7fb8d0cb6f.dmp.zip