Skip to content
This repository was archived by the owner on Apr 28, 2021. It is now read-only.

ERROR: LoadError: GLX: Failed to create context: GLXBadFBConfig #129

Closed
lobingera opened this issue Nov 27, 2016 · 3 comments
Closed

ERROR: LoadError: GLX: Failed to create context: GLXBadFBConfig #129

lobingera opened this issue Nov 27, 2016 · 3 comments

Comments

@lobingera
Copy link

lobingera commented Nov 27, 2016

julia> Pkg.test("GLVisualize")
INFO: Computing test dependencies for GLVisualize...
INFO: Installing DocStringExtensions v0.3.0
INFO: Installing Highlights v0.2.0
INFO: Installing ImageMagick v0.1.8
INFO: Building ImageMagick
INFO: Testing GLVisualize
WARNING: unknown Cxx commit dc67ebe9, metadata may be ahead of package cache
ERROR: LoadError: GLX: Failed to create context: GLXBadFBConfig
 in (::GLFW.##5#6)(::Int32, ::String) at /home/lobi/.julia/v0.5/GLFW/src/GLFW.jl:22
 in ##ErrorCallbackWrapper#270(::Int32, ::Cstring) at /home/lobi/.julia/v0.5/GLFW/src/callback.jl:50
 in CreateWindow(::Int64, ::Int64, ::String, ::GLFW.Monitor, ::GLFW.Window) at /home/lobi/.julia/v0.5/GLFW/src/glfw3.jl:342
 in #create_glcontext#46(::Tuple{Int64,Int64}, ::Bool, ::Int64, ::Int64, ::Array{Tuple{UInt32,Int64},1}, ::Array{Tuple{UInt32,Integer},1}, ::Bool, ::Bool, ::GLWindow.#create_glcontext, ::String) at /home/lobi/.julia/v0.5/GLWindow/src/screen.jl:198
 in (::GLWindow.#kw##create_glcontext)(::Array{Any,1}, ::GLWindow.#create_glcontext, ::String) at ./<missing>:0
 in #Screen#47(::Tuple{Int64,Int64}, ::Bool, ::Int64, ::Int64, ::Array{Tuple{UInt32,Int64},1}, ::Array{Tuple{UInt32,Integer},1}, ::Array{Function,1}, ::Bool, ::ColorTypes.RGBA{FixedPointNumbers.UFixed{UInt8,8}}, ::Tuple{Float32,ColorTypes.RGBA{FixedPointNumbers.UFixed{UInt8,8}}}, ::Bool, ::Bool, ::Bool, ::Type{T}, ::String) at /home/lobi/.julia/v0.5/GLWindow/src/screen.jl:237
 in (::Core.#kw#Type)(::Array{Any,1}, ::Type{GLWindow.Screen}, ::String) at ./<missing>:0
 in #glscreen#60(::Tuple{Int64,Int64}, ::Bool, ::Bool, ::ColorTypes.RGBA{FixedPointNumbers.UFixed{UInt8,8}}, ::Tuple{Float32,ColorTypes.RGBA{FixedPointNumbers.UFixed{UInt8,8}}}, ::Bool, ::Bool, ::Function, ::String) at /home/lobi/.julia/v0.5/GLVisualize/src/renderloop.jl:73
 in (::GLVisualize.#kw##glscreen)(::Array{Any,1}, ::GLVisualize.#glscreen, ::String) at ./<missing>:0
 in (::Core.#kw#Type)(::Array{Any,1}, ::Type{ExampleRunner.RunnerConfig}) at ./<missing>:0
 in include_from_node1(::String) at ./loading.jl:488
 in process_options(::Base.JLOptions) at ./client.jl:262
 in _start() at ./client.jl:318
while loading /home/lobi/.julia/v0.5/GLVisualize/test/runtests.jl, in expression starting on line 31
=============================[ ERROR: GLVisualize ]=============================

failed process: Process(`/home/lobi/julia05/usr/bin/julia-debug -Cnative -J/home/lobi/julia05/usr/lib/julia/sys-debug.so --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes /home/lobi/.julia/v0.5/GLVisualize/test/runtests.jl`, ProcessExited(1)) [1]

================================================================================
INFO: Removing DocStringExtensions v0.3.0
INFO: Removing Highlights v0.2.0
INFO: Removing ImageMagick v0.1.8
ERROR: GLVisualize had test errors
 in #test#61(::Bool, ::Function, ::Array{AbstractString,1}) at ./pkg/entry.jl:740
 in (::Base.Pkg.Entry.#kw##test)(::Array{Any,1}, ::Base.Pkg.Entry.#test, ::Array{AbstractString,1}) at ./<missing>:0
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}})() at ./pkg/dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}}, ::String) at ./file.jl:59
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at ./pkg/dir.jl:31
 in (::Base.Pkg.Dir.#kw##cd)(::Array{Any,1}, ::Base.Pkg.Dir.#cd, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at ./<missing>:0
 in #test#3(::Bool, ::Function, ::String, ::Vararg{String,N}) at ./pkg/pkg.jl:258
 in test(::String, ::Vararg{String,N}) at ./pkg/pkg.jl:258

julia> 

julia> versioninfo()
Julia Version 0.5.1-pre+2
Commit f0d40ec* (2016-09-20 03:34 UTC)
DEBUG build
Platform Info:
  System: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, sandybridge)

$ glxinfo | grep version
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL core profile version string: 3.1 (Core Profile) Mesa 10.1.3
OpenGL core profile shading language version string: 1.40
OpenGL version string: 3.0 Mesa 10.1.3
OpenGL shading language version string: 1.30
@SimonDanisch
Copy link
Member

You have version 3.1, but 3.3 is needed. Are you sure you have the most current drivers installed? I was quite sure that modern linux offers at least 3.3 by now!
Mesa 10.1.3 sounds suspiciously old! ;)

@lobingera
Copy link
Author

lobingera commented Nov 28, 2016

Then please mention minimum dependencies somewhere in the documentation/Readme.
Or add version checks to the build process.

This is an only 2-years old Ubuntu 14.04...

SimonDanisch added a commit that referenced this issue Nov 28, 2016
@SimonDanisch
Copy link
Member

Yeah, linux was quite behind with OpenGL, and just became better in the last year or so.
I added a comment: d251317

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

No branches or pull requests

2 participants