Skip to content

OpenGL error when starting AXIS on X11 #2416

@allistar

Description

@allistar

The issue tracker is not a support forum

Here are the steps I follow to reproduce the issue:

  1. Build and run the latest linuxCNC on an X11 (xorg) machine
  2. Run LinuxCNC

This is what I expected to happen:

The Axis GUI should start as expected.

This is what happened instead:

This error is happening:

Traceback (most recent call last): File "/home/allistar/Projects/linuxcnc-test/bin/axis", line 3964, in <module> get_coordinate_font(vars.dro_large_font.get()) File "/home/allistar/Projects/linuxcnc-test/bin/axis", line 3842, in get_coordinate_font glnav.use_pango_font(coordinate_font, 0, 128) File "/home/allistar/Projects/linuxcnc-test/lib/python/glnav.py", line 65, in use_pango_font glBitmap(1, 0, 0, 0, 0, h-d, bytearray([0]*4)) File "src/latebind.pyx", line 39, in OpenGL_accelerate.latebind.LateBind.__call__ File "src/wrapper.pyx", line 318, in OpenGL_accelerate.wrapper.Wrapper.__call__ File "src/wrapper.pyx", line 311, in OpenGL_accelerate.wrapper.Wrapper.__call__ File "/usr/lib/python3.11/site-packages/OpenGL/platform/baseplatform.py", line 415, in __call__ return self( *args, **named )

It worked properly before this:

I suspect this breakage is caused by an update to a system package. I know that reverting this commit fixes it.

Information about my hardware and software:

  • I am using this Linux distribution and version (often, shown by lsb_release -a): Gentoo Linux 2.13
  • I am using this kernel version (shown by uname -a): Linux 6.1.19-rt-rt8 # 3 SMP PREEMPT_RT
  • I am running ...
    • A binary version from linuxcnc.org (including buildbot.linuxcnc.org)
    • A binary I built myself
    • A binary version from some other source besides linuxcnc.org
  • I am using this LinuxCNC version (shown in package manager or, for git versions, scripts/get-version-from-git): 2.10.0-pre0-1093-g7ba312e3d8
  • I am using this user interface (GUI) (e.g., AXIS, Touchy, gmoccapy, etc): AXIS
  • I am using this interface hardware vendor and chipset (e.g., parallel port, ethernet port, FPGA card): Parallel port

I've attached a full error file of the issue here: linuxcnc_error.log

I have tracked this issue down to this commit. When I revert that commit the error no longer happens.

Does the second value passed in need to be determined based on whether we're running Wayland or X11?

This OpenGL problem has been mentioned in a few other issues and PRs:
#2259
#1599

Metadata

Metadata

Assignees

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