I'm developing an application using Python 3 / PyQt5. Everything seems ship-shape until I try to run the GUI (which is partially reliant on a live graph that is backed by pyqtgraph) on my Raspberry Pi 2 Model B (Raspbian Jessie), when it throws the error libEGL warning: DRI2: failed to authenticate. This question has a potential fix, but it's very long and might not be exactly what I need, so I don't want to embark on that reconfig journey unless I absolutely have to. I'm trying to make this software easy to configure on a fresh installation.

Exactly what happens: I execute my application from the terminal (python3 app.py) on the Pi. The application does start, but throws the aforementioned libEGL warning. My application consists of a starting window that has buttons to open the functional portions of my application. This starts fine, but when I try to open my "control panel" with a live plot in it, this new window stops responding. There is no Python error traceback.

Any ideas?

  • You'll surely need to show us some of your "questionable code" (play on your screen name) for us to have a chance to answer this. – Brick Nov 20 '17 at 0:04
  • Appreciate the play. What exactly do you need? My class definitions, how I call the GUI to appear, etc.? I know that's cryptic, but if you point me in the right direction I'd be happy to toss some stuff up there. I'd just like to avoid posting all of my source. – questionable_code Nov 20 '17 at 0:06
  • Posting all of your code is probably also bad - an extreme in the other direction. In this case, I'd try to follow these guidelines from the "parent" SE site: stackoverflow.com/help/mcve – Brick Nov 20 '17 at 0:08
  • Sure, I guess I'm just not exactly sure which particular code would be useful to solving this issue. There's no Python traceback that is shouting about anything in particular. It's just the libEGL warning that I'm seeing, and then the window I try to open freezes. I'll provide a few more details. – questionable_code Nov 20 '17 at 0:11
  • "DRI2: failed to authenticate" is an artifact of the brcm VC4 closed-source EGL driver. Try running sudo raspi-config to configure your Pi for full OpenGL (a reboot may be required), then warning will likely go away. However, it's usually benign and doesn't explain your hang. If you try running (and plotting from) examples/designerExample.py from github.com/pyqtgraph/pyqtgraph do you get the same hang? Whether or not will help you narrow down whether the problem is with your system configuration or your code. – jdonald Nov 20 '17 at 7:23

As far as I know now, these issues are unrelated. After some serious debugging of code I was reusing for the data acquisition, I noticed that there were some problems with process spawning that was causing the program to hang in the new implementation. I'm taking two separate scripts and trying to integrate them into a well-formatted, well-coded application, so I assume the problems were introduced when I tried to interface the old with the new.

Lesson learned: write better tests. If this pops back up as a real problem, I'll be sure to put it here.


driconf (cute little configuration utility) on a Raspberry Pi 3B tells me

Screen "0" is not direct rendering capable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.