question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fails with Ubuntu 22.04 LTS

See original GitHub issue

After upgrading Ubuntu to 22.04 LTS, creating a new conda environment, and installing cadquery with conda install -c conda-forge -c cadquery cadquery=master and cq-editor with conda install -c cadquery -c conda-forge cq-editor=master (nothing else installed), cq-editor comes up with a black window and the following messages:

libGL error: MESA-LOADER: failed to open crocus: /usr/lib/dri/crocus_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: crocus
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
libGL error: MESA-LOADER: failed to open crocus: /usr/lib/dri/crocus_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: crocus
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast

Investigating I found:

  • libgl1-mesa-dri is already the newest version (22.0.1-1ubuntu2)
  • libxrender1 is already the newest version (1:0.9.10-1build4)
  • sudo apt-get install freeglut3-dev didn’t help
  • sudo apt-get install -y libxtst-dev didn’t help
  • sudo apt-get install -y libxft-dev didn’t help

Any assistance would be appreciated.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jmwrightcommented, May 3, 2022

I can confirm that the fix by @lorenzncode does work. The PyInstaller builds run fine on 22.04 because libstdc++ is preemptively removed after the build process completes.

0reactions
jmwrightcommented, Oct 17, 2022

Here is a new static build with libstdc++ still bundled if anyone wants to try it.

https://github.com/jmwright/CQ-editor/actions/runs/3259613214

I’ll post this to the Arch Linux issue as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

An Ubuntu 22.04 LTS Fix Is Coming For A Very ... - Phoronix
That was happening on several systems across multiple clean installs. It turns out the issue is due to APT and currently propagates itself...
Read more >
Ubuntu update to 22.04.1 LTS failed with empty error message
network was overloaded. My guess: The network was overloaded for this task on Saturday. The update was new and probably a lot of...
Read more >
Fixing a failed upgrade to Ubuntu 22.04 LTS in recovery mode
Fixing a failed upgrade to Ubuntu 22.04 LTS in recovery mode · Hold the Shift key while booting the PC. · In the...
Read more >
Ubuntu 22.04: Beautiful Outside, Ugly Inside!
Ubuntu 22.04 Jammy Jellyfish looks gorgeous but there are some problems Let's have a look at them in this Ubuntu 22.04 review.
Read more >
5 Things to Do After Upgrading to Ubuntu 22.04 LTS
Do These 5 Things After Upgrading to Ubuntu 22.04 LTS · Remove old software · Check for AppImage support · Confirm your VPN...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found