luckasRanarison / nvim-devdocs

Neovim DevDocs integration
MIT License
265 stars 19 forks source link

Fetching cpp documentation entries...Downloading cpp documentation...PANIC: unprotected error in call to Lua API (not enough memory) #39

Closed 5i1ent closed 1 year ago

5i1ent commented 1 year ago

NVIM v0.10.0-dev Build type: RelWithDebInfo LuaJIT 2.1.0-beta3

curl 7.81.0 (x86_64-pc-linux-gnu) - if related.

python-3.11 docs installed fine.

nvim --headless +"DevdocsInstall cpp" throws:

Fetching cpp documentation entries...Downloading cpp documentation...PANIC: unprotected error in call to Lua API (not enough memory)

also fails to install cpp docs inside neovim using DevdocsInstall. It's just closes neovim without any error.

luckasRanarison commented 1 year ago

How many RAM do you have? I'm able to build the cpp docs with my old 4GB RAM laptop though. I've observed high memory usage when building some documentations and I think it's because of the write process. The documentation entries are split into multiple files, and the cpp documentation has 4642 entries, so 4642 files need to be written to the disk. I'm still thinking on a way to handle the build process more efficiently.

5i1ent commented 1 year ago

16gb

I've observed high memory usage when building some documentations- it not even reach compilation.

luckasRanarison commented 1 year ago

it not even reach compilation.

Oh sorry, I only realize it now, it effectively failed in the download part. But I still can't reproduce the error.

Using curl 7.85.0 NVIM v0.10.0-dev+741-g996dd36c7 Build type: RelWithDebInfo LuaJIT 2.1.0-beta3

5i1ent commented 1 year ago

neovim related issue

works fine on: NVIM v0.9.1 Build type: Release LuaJIT 2.1.0-beta3

luckasRanarison commented 1 year ago

Closing this as completed.