Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vid not working in Manjaro (Arch) #62

Closed
jangofett4 opened this issue Feb 4, 2020 · 4 comments
Closed

vid not working in Manjaro (Arch) #62

jangofett4 opened this issue Feb 4, 2020 · 4 comments

Comments

@jangofett4
Copy link

System Information

image
freetype2 and glfw-x11 is installed (couldn't find freetype6 and 'normal' glfw)

Steps to reproduce

  1. Clone and compile
$ git clone https://github.com/vlang/vid
$ cd vid
$ v .
  1. 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.

@jangofett4
Copy link
Author

So I think I pinpointed where the error occurs:
image
Not sure what 'timer' is or what this function is loading but at first line string.contains is segfaulting (seems like a v error?)

@shiipou
Copy link

shiipou commented Feb 11, 2020

I've got the same error on MacOs Catalina :

Capture d’écran 2020-02-11 à 15 26 29

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

Capture d’écran 2020-02-11 à 15 29 04

I suppose that : in Mac you need to call RobotoMono font and not RobotoMono-Regular

@wilsonk
Copy link

wilsonk commented Mar 14, 2020

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.

@JalonSolov
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants