Haskell-Things / implicitpipe

OpenGL 3D viewer for ImplicitCAD
MIT License
20 stars 2 forks source link

CreateSharedWindowException when running implicitview #6

Closed thiskappaisgrey closed 2 years ago

thiskappaisgrey commented 2 years ago

Hi, I get this exception when running implicitview

CreateSharedWindowException 
"WindowConfig {configWidth = 640, 
configHeight = 480, 
configTitle = \"\", 
configMonitor = Nothing, 
configHints = [WindowHint'Visible False,
WindowHint'ContextVersionMajor 3,WindowHint'ContextVersionMinor 3,WindowHint'OpenGLForwardCompat True,
WindowHint'OpenGLProfile OpenGLProfile'Core], configSwapInterval = Nothing}"

It might be related to my system, I am running Nixos, with hardware.opengl.enable = true;, using the xmonad window manager. Not using any Nvidia cards or anything, and other OpenGL programs seem to work(at least, if they are wrapped with nixGL. I used stack build --nix-pure to build the project (because quickspec is broken in Nixpkgs) and wasn't in the provided nix-shell. Let me know if you need more information.

Thank you in advance.

sorki commented 2 years ago

Hi, thanks for the report! Hopefully fixed by #7, recent implicit doesn't need quickspec so nix-build works fine again.

I've also pinned it to good known revision of nixpkgs, to build using systems nixpkgs you can use nix-build --argstr rev local.

I've tested nix-built version on a laptop with Intel graphics and it works well. I'm xmonad user as well :smiley:

thiskappaisgrey commented 2 years ago

I can report that it works on my machine now! Thank you so much!

sorki commented 2 years ago

Cool, you're welcome!