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

GLSL error using Ubuntu. #2

Open
diegozea opened this issue Feb 1, 2019 · 3 comments
Open

GLSL error using Ubuntu. #2

diegozea opened this issue Feb 1, 2019 · 3 comments

Comments

@diegozea
Copy link

diegozea commented Feb 1, 2019

I've found this problem when I was trying to run the README example using Ubuntu.

julia> Application(windows=[window1, window2], title="App", frame=(width=430, height=300))
┌ Error: [GL]: failed to compile vertex shader: 2: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES
│ 
└ @ Nuklear.GLFWBackend ~/.julia/packages/Nuklear/vnDoP/src/backend/GLFW/impl.jl:29
┌ Error: [GL]: failed to compile fragment shader: 2: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES
│ 
└ @ Nuklear.GLFWBackend ~/.julia/packages/Nuklear/vnDoP/src/backend/GLFW/impl.jl:40
ERROR: AssertionError: status_ref[] == GL_TRUE
Stacktrace:
 [1] nk_glfw3_device_create() at /home/zea/.julia/packages/Nuklear/vnDoP/src/backend/GLFW/impl.jl:48
 [2] nk_glfw3_init(::GLFW.Window, ::Int64, ::Int64, ::Int64) at /home/zea/.julia/packages/Nuklear/vnDoP/src/backend/GLFW/impl.jl:109
 [3] #setup_glfw#1 at /home/zea/.julia/packages/Poptart/sPKb9/src/Desktop/application.jl:32 [inlined]
 [4] (::getfield(Poptart.Desktop, Symbol("#kw##setup_glfw")))(::NamedTuple{(:title, :frame),Tuple{String,NamedTuple{(:width, :height),Tuple{Int64,Int64}}}}, ::typeof(Poptart.Desktop.setup_glfw)) at ./none:0
 [5] (::getfield(Poptart.Desktop, Symbol("##Application#2#4")))(::String, ::NamedTuple{(:width, :height),Tuple{Int64,Int64}}, ::Array{Poptart.Desktop.Windows.Window,1}, ::Bool, ::Type) at /home/zea/.julia/packages/Poptart/sPKb9/src/Desktop/application.jl:100
 [6] (::getfield(Core, Symbol("#kw#Type")))(::NamedTuple{(:windows, :title, :frame),Tuple{Array{Poptart.Desktop.Windows.Window,1},String,NamedTuple{(:width, :height),Tuple{Int64,Int64}}}}, ::Type{Application}) at ./none:0
 [7] top-level scope at none:0

System info:

Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
      Ubuntu 16.04.5 LTS
  uname: Linux 4.15.0-43-generic #46~16.04.1-Ubuntu SMP Fri Dec 7 13:31:08 UTC 2018 x86_64 x86_64
  CPU: Intel(R) Xeon(R) CPU E5-2609 v3 @ 1.90GHz: 
              speed         user         nice          sys         idle          irq
       #1  1487 MHz    2681662 s     101728 s     988295 s   90808597 s          0 s
       #2  1253 MHz    2660691 s      93147 s     969112 s   90851260 s          0 s
       #3  1734 MHz    2539026 s     105755 s     940643 s   90927014 s          0 s
       #4  1300 MHz    2513564 s     115664 s     969922 s   90797916 s          0 s
       #5  1197 MHz    2460855 s     100685 s     971067 s   90859970 s          0 s
       #6  1218 MHz    2509544 s     108416 s    1037186 s   90811892 s          0 s
       
  Memory: 31.339038848876953 GB (3910.5625 MB free)
  Uptime: 955860.0 sec
  Load Avg:  1.15673828125  1.5859375  1.7822265625
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, haswell)
Environment:
  TERM = xterm-256color
  XDG_SESSION_PATH = /org/freedesktop/DisplayManager/Session0
  XDG_SEAT_PATH = /org/freedesktop/DisplayManager/Seat0
  DEFAULTS_PATH = /usr/share/gconf/ubuntu.default.path
  PATH = /home/zea/bin:/home/zea/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/zea/bin:/home/zea/.linuxbrew/bin
  MANDATORY_PATH = /usr/share/gconf/ubuntu.mandatory.path
  HOME = /home/zea
  COMPIZ_BIN_PATH = /usr/bin/

@wookay
Copy link
Owner

wookay commented Feb 1, 2019

I don't have a linux machine now, by fix edbf1a0
could you update master branch and test it again?

@Gnimuc
Copy link

Gnimuc commented Feb 1, 2019

hi @diegozea, according to the following list, your desktop OpenGL version seems to be 3.0.

https://github.com/mattdesl/lwjgl-basics/wiki/glsl-versions#glsl-versions

unfortunately, I only implement a backend based on ModernGL(OpenGL 3.2+) for now, so you could try upgrading your GPU driver to see whether the hardware supports ModernGL.

@Gnimuc
Copy link

Gnimuc commented Feb 24, 2019

@diegozea I'm also writing a wrapper for imgui which do support GLSL 130, maybe you're interested in this https://github.com/Gnimuc/CImGui.jl/blob/master/examples/demo.jl

I'm currently translating imgui demos from C++ to Julia. For now, about 80% of the widgets can be working correctly but don't worry if you trigger segfaults, that's definitely my bad. :P

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

3 participants