nvimdev / dashboard-nvim

vim dashboard
MIT License
2.3k stars 187 forks source link

Trailing null char (`\0`) in cache leading to crash #362

Closed hlcfan closed 12 months ago

hlcfan commented 1 year ago

Stacktrace:

image

The paths string from cache looks like below somehow

"return { \"/Users/username/lexical/projects/lexical_plugin\", \"/Users/username/lexical/apps/protocol\", \"/Users/username/lexical\
", \"/Users/username/lexical/projects/lexical_shared\", \"/Users/username/dotfiles\" }\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"

I recently upgraded to MacOS Ventura 13.4, not sure if it's related tho. Also don't find any thing fishy in the project_delete function. Hence, do some clean up before loadstring of the data.

johnstonbl01 commented 1 year ago

Also began experiencing this issue recently. 🙏