vid not working in Manjaro (Arch)
jangofett4 opened this issue · comments
System Information
freetype2 and glfw-x11 is installed (couldn't find freetype6 and 'normal' glfw)
Steps to reproduce
- Clone and compile
$ git clone https://github.com/vlang/vid
$ cd vid
$ v .
- Run
$ ./vid
A fullscreen app opens and closes immediately leaving behind this log:
create window wnd=0x556517844fc0 ptr==0x556517843f10
Trying to load font from RobotoMono-Regular.ttf
Parçalama arızası (çekirdek döküldü) // this says segmentation fault (core halted?)
RobotoMono-Regular.ttf does exists in vid folder. This problem is probably caused from freetype or glfw but not entirely sure.
I've got the same error on MacOs Catalina :
freetype does not install RobotoMono-Regular.ttf
I've installed it with this font zip package but it didn't resolve anything : https://www.wfonts.com/font/roboto-mono
I suppose that : in Mac you need to call RobotoMono
font and not RobotoMono-Regular
Check partial solution in #63
This seg fault isn't a problem with the font file and @jangofett4 is correct that the lines of code he highlighted are where the seg fault happens. The error is due to 'line' pointing to invalid memory on the first iteration of the for loop at line 53, but the actual problem is due to some missing files and improper checks (or defaults) imo.
Please try again with the latest version of V. I can't test on either Manjaro or Mac, but I just compiled ved on both Windows and Ubuntu Linux, and it compiled clean and ran fine.