Skip to content

Extension crashing #5591

@akbyrd

Description

@akbyrd

Issue Type: Bug

I'm having hard time tracking this one down. For weeks I've had no intellisense, go to definition etc. When I view the developer console I see

log.ts:197   ERR An unknown error occurred. Please consult the log for more details.

which I've correlated with the extension issue. When I check exthost.log I see only

[2020-06-01 13:08:21.183] [exthost] [error] [ms-vscode.cpptools] provider FAILED
[2020-06-01 13:08:21.183] [exthost] [error] undefined

What I've been able to narrow down is that it's related to folders in the workspace. As I add more folders it eventually starts crashing. It seems inconsistent about which folders cause the problem, so maybe it's something to do with the overall size of the workspace?

I've tried to reduce the workspace file to the minimum repro, but this is as far as I can get it. Remove any project causes the issues to stop appearing.

{
	"folders": [
		{ "path": "." },

		{ "path": "asdf-1", "name": "------" },
		{ "path": "../project" },
		{ "path": "../project/build/vs2017/premake_generated" },
		{ "path": "../project/build/vs2017/tool_generated" },

		{ "path": "asdf-2", "name": "------" },
	],
}

Note that the asdf folders don't actually exist. They're used a separators in the Explorer.

Extension version: 0.28.1
VS Code version: Code - Insiders 1.46.0-insider (2c1871d538c64df71af4902deba47d7fa4b53f27, 2020-06-01T10:34:11.096Z)
OS version: Windows_NT x64 10.0.18363

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6850K CPU @ 3.60GHz (12 x 3598)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.92GB (16.47GB free)
Process Argv
Screen Reader no
VM 0%

EDIT: I think it has something to do with those dummy separator folders. In my non-insiders installation with all my extensions and what not I have to eliminate everything but a single folder and the separators before it stops crashing. But if I leave all folders enabled and remove only the separators it also stops crashing. It also stops if I create those folders.

Metadata

Metadata

Assignees

Labels

Feature: Multi-rootLanguage Servicebugmore info neededThe issue report is not actionable in its current statenot reproingWe're not able to reproduce the issue (it's unlikely to get fixed until we find one).

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions