LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   /dev/dri/ missing on GitHub Actions (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/dev-dri-missing-on-github-actions-4175677461/)

devdrimissing 06-22-2020 10:51 AM

/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!

jefro 06-25-2020 03:09 PM

/dev/dri/cardX would be more like it I'd think. I assume you are working on a freedesktop direct rendering manager issue?

devdrimissing 07-04-2020 06:56 PM

Quote:

Originally Posted by jefro (Post 6137936)
/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

devdrimissing 07-04-2020 07:03 PM

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_)


All times are GMT -5. The time now is 05:27 AM.