nolanderc / glsl_analyzer

Language server for GLSL (autocomplete, goto-definition, formatter, and more)
GNU General Public License v3.0
156 stars 3 forks source link

Windows/Neovim Segmentation Fault #62

Open msagca opened 1 month ago

msagca commented 1 month ago

The language server didn't seem to work inside my neovim, so I tried to test the binary directly by providing a file with the --parse-file option and it caused segmentation fault. Both the binary provided here and that built from source (with Zig 0.12) have the same problem. This looks like an issue with Zig, but I'm not sure.

Segmentation fault at address 0x16424d3008d
/opt/hostedtoolcache/zig/0.12.0/x64/lib/std/fs/Dir.zig:800:56: 0x6c1f6a in openFile (glsl_analyzer.exe.obj)      
/opt/hostedtoolcache/zig/0.12.0/x64/lib/std/fs/Dir.zig:1873:37: 0x6c219b in readFileAlloc (glsl_analyzer.exe.obj)
/home/runner/work/glsl_analyzer/glsl_analyzer/src/main.zig:55:50: 0x6e79e7 in main (glsl_analyzer.exe.obj)       
/opt/hostedtoolcache/zig/0.12.0/x64/lib/std/start.zig:484:75: 0x6eee66 in main (glsl_analyzer.exe.obj)
/opt/hostedtoolcache/zig/0.12.0/x64/lib/libc/mingw/crt/crtexe.c:267:0: 0x74e515 in __tmainCRTStartup (crt2.obj)  
/opt/hostedtoolcache/zig/0.12.0/x64/lib/libc/mingw/crt/crtexe.c:188:0: 0x74e565 in mainCRTStartup (crt2.obj)     
???:?:?: 0x7ff8e5907343 in ??? (KERNEL32.DLL)
???:?:?: 0x7ff8e78fcc90 in ??? (ntdll.dll)

OS info:

Edition: Windows 10 Home
Version: 22H2
OS build: 19045.4529