ved icon indicating copy to clipboard operation
ved copied to clipboard

seg fault (trying to load font) - MacOS Catalina

Open davidalbertainley opened this issue 5 years ago • 5 comments

Yo! Just wanted to give a heads up, it looks like there's a segfault happening on Catalina.
image

davidalbertainley avatar Feb 15 '20 16:02 davidalbertainley

Same thing on Ubuntu 16.04

mrLSD avatar Feb 15 '20 22:02 mrLSD

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

Fanna1119 avatar Feb 23 '20 06:02 Fanna1119

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)

salif avatar Mar 07 '20 00:03 salif

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 ;)

wilsonk avatar Mar 14 '20 11:03 wilsonk

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.

JalonSolov avatar Sep 08 '20 00:09 JalonSolov