vlang / ved

1 MB text editor written in V with hardware accelerated text rendering. Compiles in <1s.
GNU General Public License v3.0
1.36k stars 79 forks source link

Crash when no monitor found. #31

Open Henrixounez opened 5 years ago

Henrixounez commented 5 years ago

OS Windows Subsystem for Linux (Ubuntu)

$ ./vid vid.v
vid: /build/glfw3-KYdbSD/glfw3-3.2.1/src/monitor.c:394: glfwGetVideoMode: Assertion `monitor != NULL' failed.
Aborted (core dumped)
medvednikov commented 5 years ago

Do you have a monitor connected? :)

Or were you building it via SSH?

Henrixounez commented 5 years ago

It was on Windows Subsystem for Linux, it did that because there is no graphical interface. I also managed to do the same of a Linux tty Virtual Console.

medvednikov commented 5 years ago

I see, thanks. This error should be handled.

Water261 commented 4 years ago

This will be fun

JalonSolov commented 4 years ago

V no longer uses or includes glfw.

Currently on WSL, I see this:

jalon@Ripper:~/git/ved$ v run .
FULL SCREEN=true
open multiple workspaces
/home/jalon/git/ved/ved
load session "/home/jalon/.ved/session"
gg error: GLX: failed to create GL context
Aborted
jalon@Ripper:~/git/ved$