Skip to content

The kcl language server server crashed when open example/abstraction #68

@qianlongzt

Description

@qianlongzt

Bug Report

The kcl language server server crashed 5 times in the last 3x
minutes

1. Minimal reproduce step (Required)

git clone https://github.com/kcl-lang/kcl-lang.io.git/
cd ./kcl-lang.io/examples/abstraction
code .

2. What did you expect to see? (Required)

lsp work well

3. What did you see instead (Required)

[Info  - 9:45:31 PM] Init workspaces
[Info  - 9:45:31 PM] Start watch "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction"
[Info  - 9:45:31 PM] Start watch "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction"
[Info  - 9:45:31 PM] on did open file: AbsPathBuf("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:31 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:31 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:31 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:31 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:31 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:31 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:31 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:31 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:31 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:31 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:31 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:31 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:31 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:31 PM] Not contains in any workspace, compile: "d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k"
[Info  - 9:45:31 PM] Compile workspace: ModFile("D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\kcl.mod"), main_pkg files: ["D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\app.k", "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\docker_compose_render.k", "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\kubernetes_render.k", "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k"], changed file: None, options: Some(LoadProgramOptions { work_dir: "", k_code_list: [], vendor_dirs: ["D:\\Users\\qianlongzt\\.kcl\\kpm"], package_maps: {}, mode: ParseComments, load_packages: true, load_plugins: false }), metadate: Some(Metadata { packages: {} }), use 230257 micros
[Info  - 9:45:31 PM] Workspace ModFile("D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\kcl.mod") compile success

thread '<unknown>' has overflowed its stack
[Info  - 9:45:32 PM] Connection to server got closed. Server will restart.
true
[Error - 9:45:32 PM] Server process exited with code 3221225725.
[Info  - 9:45:32 PM] Init workspaces
[Info  - 9:45:32 PM] Start watch "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction"
[Info  - 9:45:32 PM] Start watch "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction"
[Info  - 9:45:32 PM] on did open file: AbsPathBuf("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:32 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:32 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:32 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:32 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:32 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:32 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:32 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:32 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:32 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:32 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:32 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:32 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:32 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:32 PM] Not contains in any workspace, compile: "d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k"
[Info  - 9:45:32 PM] Compile workspace: ModFile("D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\kcl.mod"), main_pkg files: ["D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\app.k", "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\docker_compose_render.k", "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\kubernetes_render.k", "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k"], changed file: None, options: Some(LoadProgramOptions { work_dir: "", k_code_list: [], vendor_dirs: ["D:\\Users\\qianlongzt\\.kcl\\kpm"], package_maps: {}, mode: ParseComments, load_packages: true, load_plugins: false }), metadate: Some(Metadata { packages: {} }), use 225652 micros
[Info  - 9:45:32 PM] Workspace ModFile("D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\kcl.mod") compile success

thread '<unknown>' has overflowed its stack
[Info  - 9:45:33 PM] Connection to server got closed. Server will restart.
true
[Error - 9:45:33 PM] Server process exited with code 3221225725.
[Info  - 9:45:33 PM] Init workspaces
[Info  - 9:45:33 PM] Start watch "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction"
[Info  - 9:45:33 PM] Start watch "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction"
[Info  - 9:45:33 PM] on did open file: AbsPathBuf("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:33 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:33 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:33 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:33 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:33 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:33 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:33 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:33 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:33 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:33 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:33 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:33 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:33 PM] Not contains in any workspace, compile: "d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k"
[Info  - 9:45:33 PM] Compile workspace: ModFile("D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\kcl.mod"), main_pkg files: ["D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\app.k", "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\docker_compose_render.k", "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\kubernetes_render.k", "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k"], changed file: None, options: Some(LoadProgramOptions { work_dir: "", k_code_list: [], vendor_dirs: ["D:\\Users\\qianlongzt\\.kcl\\kpm"], package_maps: {}, mode: ParseComments, load_packages: true, load_plugins: false }), metadate: Some(Metadata { packages: {} }), use 211272 micros
[Info  - 9:45:33 PM] Workspace ModFile("D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\kcl.mod") compile success

thread '<unknown>' has overflowed its stack
[Info  - 9:45:34 PM] Connection to server got closed. Server will restart.
true
[Error - 9:45:34 PM] Server process exited with code 3221225725.
[Info  - 9:45:34 PM] Init workspaces
[Info  - 9:45:34 PM] Start watch "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction"
[Info  - 9:45:34 PM] Start watch "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction"
[Info  - 9:45:34 PM] on did open file: AbsPathBuf("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:34 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:34 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:34 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:34 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:34 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:34 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:34 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:34 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:34 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:34 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:34 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:34 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:34 PM] Not contains in any workspace, compile: "d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k"
[Info  - 9:45:34 PM] Compile workspace: ModFile("D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\kcl.mod"), main_pkg files: ["D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\app.k", "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\docker_compose_render.k", "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\kubernetes_render.k", "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k"], changed file: None, options: Some(LoadProgramOptions { work_dir: "", k_code_list: [], vendor_dirs: ["D:\\Users\\qianlongzt\\.kcl\\kpm"], package_maps: {}, mode: ParseComments, load_packages: true, load_plugins: false }), metadate: Some(Metadata { packages: {} }), use 222045 micros
[Info  - 9:45:34 PM] Workspace ModFile("D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\kcl.mod") compile success

thread '<unknown>' has overflowed its stack
[Error - 9:45:35 PM] Server process exited with code 3221225725.
[Info  - 9:45:35 PM] Connection to server got closed. Server will restart.
true
[Info  - 9:45:35 PM] Init workspaces
[Info  - 9:45:35 PM] Start watch "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction"
[Info  - 9:45:35 PM] Start watch "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction"
[Info  - 9:45:35 PM] on did open file: AbsPathBuf("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:35 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:35 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:35 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:35 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:35 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:35 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:35 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:35 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:35 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:35 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:35 PM] Process changed file, open Ok("d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k")
[Info  - 9:45:35 PM] Not contains in any workspace, compile: "d:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k"
[Info  - 9:45:35 PM] Compile workspace: ModFile("D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\kcl.mod"), main_pkg files: ["D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\app.k", "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\docker_compose_render.k", "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\kubernetes_render.k", "D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\main.k"], changed file: None, options: Some(LoadProgramOptions { work_dir: "", k_code_list: [], vendor_dirs: ["D:\\Users\\qianlongzt\\.kcl\\kpm"], package_maps: {}, mode: ParseComments, load_packages: true, load_plugins: false }), metadate: Some(Metadata { packages: {} }), use 195280 micros
[Info  - 9:45:35 PM] Workspace ModFile("D:\\code\\server-notes\\kcl-lang.io\\examples\\abstraction\\kcl.mod") compile success

thread '<unknown>' has overflowed its stack
[Error - 9:45:35 PM] The kcl language server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 9:45:35 PM] Server process exited with code 3221225725.

4. What is your KCL components version? (Required)

kcl-language-server.exe --version
kcl-language-server Version: 0.11.2-c020ab3eb4b9179219d6837a57f5d323
Platform: x86_64-pc-windows-msvc
GitCommit: 48c6244163dedf2d10fc7cdb1545b7afba0168e4

kcl version                                                                                                                 
0.11.2

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions