oakes / vim_cubed

Vim rendered on a cube for no reason
The Unlicense
2.71k stars 38 forks source link

Assertion `window != NULL' failed. #30

Open execb5 opened 4 years ago

execb5 commented 4 years ago

This is what happens when I try to execute vim3:

vim3: /home/execb5/.nimble/pkgs/nimgl-1.1.1/nimgl/private/glfw/src/window.c:506: glfwSetWindowIcon: Assertion `window != NULL' failed.
Traceback (most recent call last)
/home/execb5/repos/vim_cubed/src/vim3.nim(28) vim3
/home/execb5/.nimble/pkgs/nimgl-1.1.1/nimgl/glfw.nim(5136) glfwCreateWindow
SIGABRT: Abnormal termination.

I'm on a VM running arco linux (basically arch) with bspwm as its window manager, does anyone know how to fix this issue?

daemoncrafter commented 4 years ago

running on ubuntu bionic i get: Building vim3/vim3 using c backend vim3: /.../.nimble/pkgs/nimgl-1.1.1/nimgl/private/glfw/src/window.c:506: glfwSetWindowIcon: Assertion `window != NULL' failed. Traceback (most recent call last) /.../vim_cubed/src/vim3.nim(28) vim3 /.../.nimble/pkgs/nimgl-1.1.1/nimgl/glfw.nim(5136) glfwCreateWindow SIGABRT: Abnormal termination.

oakes commented 4 years ago

are you guys sure your systems can run opengl? @execb5 since you're in a VM there is a good chance it isn't set up to work with your host OS's graphics driver. for example here's a small example game you can try to run -- if you get the same error, it's probably that opengl doesn't work on your system: https://github.com/paranim/parakeet

execb5 commented 4 years ago

@oakes I can't run the parakeet project, but it's a different error, unhadled exception OSError. I can run an old college assignment that I had to do with pure opengl using freeglut, don't know if that says anything though.

I'm sorry, I didn't know nim before trying to run this project and have a barely minimal experience with opengl.