LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 06-22-2020, 10:51 AM   #1
devdrimissing
LQ Newbie
 
Registered: Jun 2020
Posts: 5

Rep: Reputation: Disabled
/dev/dri/ missing on GitHub Actions


Hey!

I am using GitHub Actions to execute some .NETCore tests on the Ubuntu Virtual Machines that they provide: https://github.com/actions/virtual-e...u16/20200512.2

The code testing suite involves the use of OpenTK graphics which uses the /dev/dri to display graphics (to the best of my knowledge).

When executing the code I get the following error:
Code:
Error Message:
   System.TypeInitializationException : The type initializer for 'OpenTK.DisplayDevice' threw an exception.
  ----> System.IO.DirectoryNotFoundException : Could not find a part of the path '/dev/dri'.
  Stack Trace:
     at OpenTK.DisplayDevice.get_Default()
   at OpenTK.GameWindow..ctor(Int32 width, Int32 height)
It fails on both Ubuntu 18.04 and 16.04 so I will post the info for 16.04.
The installed software on the virtual machine can be seen here: https://github.com/actions/virtual-e...1604-README.md

OS Information as provided by GitHub actions log:
Code:
 Current runner version: '2.262.1'
Operating System
  Ubuntu
  16.04.6
  LTS
Virtual Environment
  Environment: ubuntu-16.04
  Version: 20200512.2
  Included Software: https://github.com/actions/virtual-environments/blob/ubuntu16/20200512.2/images/linux/Ubuntu1604-README.md

If more information is required let me know.

I can execute bash commands when setting up the runner, but outside of that I do not have much control over the virtual environment.

Does anyone know what is missing, and potentially if there is something I can apt-get to fix the /dev/dri path missing?

Thanks!
 
Old 06-25-2020, 03:09 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,022

Rep: Reputation: 3147Reputation: 3147Reputation: 3147Reputation: 3147Reputation: 3147Reputation: 3147Reputation: 3147Reputation: 3147Reputation: 3147Reputation: 3147Reputation: 3147
/dev/dri/cardX would be more like it I'd think. I assume you are working on a freedesktop direct rendering manager issue?
 
Old 07-04-2020, 06:56 PM   #3
devdrimissing
LQ Newbie
 
Registered: Jun 2020
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
/dev/dri/cardX would be more like it I'd think. I assume you are working on a freedesktop direct rendering manager issue?
Apologies for the late reply;

Yes, exactly. To the best of my knowledge OpenGL uses Mesa https://dri.freedesktop.org/wiki

I've been able to fix this issue on dekstops by simply updating drivers or Linux versions however in a virtual environment, such as GitHub actions, I have been unable to fix it.

I'm uncertain what exactly would expose the desired dev/dri/cardX path

Last edited by devdrimissing; 07-04-2020 at 07:05 PM.
 
Old 07-04-2020, 07:03 PM   #4
devdrimissing
LQ Newbie
 
Registered: Jun 2020
Posts: 5

Original Poster
Rep: Reputation: Disabled
The bit of code that causes the error is specifically the following call to the GameWindow constructor (https://opentk.net/api/OpenTK.GameWi..._System_Int32_)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Can GitHub Actions replace your CI server? LXer Syndicated Linux News 0 09-03-2019 09:44 AM
LXer: Adding versions to your GitHub Actions LXer Syndicated Linux News 0 09-01-2019 09:45 AM
LXer: GitHub Actions moves GitHub into DevOps LXer Syndicated Linux News 0 08-09-2019 01:04 PM
LXer: Nadella tells worried GitHub devs: Judge us by our actions LXer Syndicated Linux News 0 06-05-2018 04:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 10:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration