Skip to content

GLFW_jll : Segfault on finding XOpenDisplay #1407

@willcoxe

Description

@willcoxe

Hi all,

Briefly, I fist opened this issue here on discourse to which I received no responses so I opened another issue in the GLFW github and they referred me here, suggesting this was a BinaryBuilder issue.

TLDR; The issue is one of GLFW.Window() segfaulting, irrespective of

  1. julia version or julia installed with
    a) juliaup
    b) git clone & make
    c) snap
  2. GLFW version
  3. julia> dllist() finding libX11
  4. using a single monitor or two
  5. C example code for opening a window compiling and running properly
  6. glxinfo -B showing no issues

OS: Ubuntu 24.04.3 LTS

Some glxinfo:

~> glxinfo | grep -i OpenGl
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: AMD Radeon Graphics
OpenGL core profile version string: 4.6.0 Core Profile Context 25.10.250708
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6.0 Compatibility Profile Context 25.10.250708
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2.0 25.10.250708 
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

Some info from vulkaninfo:

========
GPU0:
	apiVersion         = 1.4.308
	driverVersion      = 2.0.342
	vendorID           = 0x1002
	deviceID           = 0x1681
	deviceType         = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
	deviceName         = AMD Radeon Graphics
	driverID           = DRIVER_ID_AMD_PROPRIETARY
	driverName         = AMD proprietary driver
	driverInfo         = (AMD proprietary shader compiler)
	conformanceVersion = 1.4.0.0

Segfault in julia:

julia> GLFW.Window()
lib for symbol XOpenDisplay is missing

[401894] signal 11 (1): Segmentation fault
in expression starting at REPL[2]:1
unknown function (ip: (nil)) at (unknown file)
Allocations: 3086097 (Pool: 3084732; Big: 1365); GC: 5

There is some additional information in the discourse and the GLFW issue.
Any idea what the problem might be?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions