seg fault (trying to load font) - MacOS Catalina
davidalbertainley opened this issue · comments
Same thing on Ubuntu 16.04
Same issue on elementary OS Hera
./vid
create window wnd=0x55b2058522c0 ptr==0x55b205850e70
Trying to load font from RobotoMono-Regular.ttf
[1] 8000 segmentation fault ./vid
Same issue on Linux Mint.
There is warning while compiling:
warning: ./vid.v:1819:1: the following imports were never used:
* uiold
When run ./vid
the result is:
Trying to load font from RobotoMono-Regular.ttf
fish: “./vid” terminated by signal SIGSEGV (Address boundary error)
This error is actually due to a segfault that doesn't have anything to do with the font file. A quick work around on Linux/MacOS is to pick a file to open as a default, then put that file location in a ~/.vid/session file with:
echo "<full directory with file name at the end>" >> ~/.vid/session
then touch a couple other files in that directory with:
touch ~/.vid/tasks; touch ~/.vid/timer
It appears as though these files are required to exist in the ~/.vid directory. This should get the editor up and running (might have to Ctrl-c and open a second time to get it working). This still isn't a perfect solution as I can't seem to get the two-splits functionality working (I actually have three splits by default??? Not sure what is happening there).
Anyways, at least you can try things with this quick fix. I will post a proper solution if I find it...or hopefully @medvednikov will weigh ;)
I suspect if you try again with latest V, the problems are resolved. I just built ved on both Windows and Ubuntu, and it compiled and ran fine.