{"action":"reopened","issue":{"url":"https://api.github.com/repos/singularityware/singularity/issues/1253","repository_url":"https://api.github.com/repos/singularityware/singularity","labels_url":"https://api.github.com/repos/singularityware/singularity/issues/1253/labels{/name}","comments_url":"https://api.github.com/repos/singularityware/singularity/issues/1253/comments","events_url":"https://api.github.com/repos/singularityware/singularity/issues/1253/events","html_url":"https://github.com/singularityware/singularity/issues/1253","id":288527339,"node_id":"MDU6SXNzdWUyODg1MjczMzk=","number":1253,"title":"headless OpenGL rendering using nvidia gpus and EGL libs","user":{"login":"arpit15","id":4703676,"node_id":"MDQ6VXNlcjQ3MDM2NzY=","avatar_url":"https://avatars1.githubusercontent.com/u/4703676?v=4","gravatar_id":"","url":"https://api.github.com/users/arpit15","html_url":"https://github.com/arpit15","followers_url":"https://api.github.com/users/arpit15/followers","following_url":"https://api.github.com/users/arpit15/following{/other_user}","gists_url":"https://api.github.com/users/arpit15/gists{/gist_id}","starred_url":"https://api.github.com/users/arpit15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arpit15/subscriptions","organizations_url":"https://api.github.com/users/arpit15/orgs","repos_url":"https://api.github.com/users/arpit15/repos","events_url":"https://api.github.com/users/arpit15/events{/privacy}","received_events_url":"https://api.github.com/users/arpit15/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"GodloveD","id":7672924,"node_id":"MDQ6VXNlcjc2NzI5MjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/7672924?v=4","gravatar_id":"","url":"https://api.github.com/users/GodloveD","html_url":"https://github.com/GodloveD","followers_url":"https://api.github.com/users/GodloveD/followers","following_url":"https://api.github.com/users/GodloveD/following{/other_user}","gists_url":"https://api.github.com/users/GodloveD/gists{/gist_id}","starred_url":"https://api.github.com/users/GodloveD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GodloveD/subscriptions","organizations_url":"https://api.github.com/users/GodloveD/orgs","repos_url":"https://api.github.com/users/GodloveD/repos","events_url":"https://api.github.com/users/GodloveD/events{/privacy}","received_events_url":"https://api.github.com/users/GodloveD/received_events","type":"User","site_admin":false},"assignees":[{"login":"GodloveD","id":7672924,"node_id":"MDQ6VXNlcjc2NzI5MjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/7672924?v=4","gravatar_id":"","url":"https://api.github.com/users/GodloveD","html_url":"https://github.com/GodloveD","followers_url":"https://api.github.com/users/GodloveD/followers","following_url":"https://api.github.com/users/GodloveD/following{/other_user}","gists_url":"https://api.github.com/users/GodloveD/gists{/gist_id}","starred_url":"https://api.github.com/users/GodloveD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GodloveD/subscriptions","organizations_url":"https://api.github.com/users/GodloveD/orgs","repos_url":"https://api.github.com/users/GodloveD/repos","events_url":"https://api.github.com/users/GodloveD/events{/privacy}","received_events_url":"https://api.github.com/users/GodloveD/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2018-01-15T09:23:32Z","updated_at":"2018-09-12T00:30:05Z","closed_at":null,"author_association":"NONE","body":"## Version of Singularity:\r\n2.4.2-master.g91881f7\r\n\r\n## Problem\r\nI am trying to do headless rendering using Nvidia EGL and OpenGL libs in a singularity container. \r\n\r\nI use [Singularity](https://gist.github.com/arpit15/7664833e2a5f4884d24d471f52299653) and then install Nvidia driver Version 375.26 to generate libOpenGL.so libEGL.so\r\nThe program which I am trying to run is in file([eglinfo.c](https://gist.github.com/arpit15/e21186411f9fb45c03a5d71f0a88b67a)) \r\n\r\nI am able to use the libs on my lab computer without singularity. However when I install everything in singularity and try to compile and run the same file I get an error. \r\n\r\nI don't know the source of error as the message from EGL is very sparse. Kindly let me know if you need anything else to debug this problem.\r\n\r\nHost: Ubuntu 14.04 \r\nNvidia driver version 375.26\r\nGuest: Ubuntu 16.04\r\n\r\n### Expected behavior\r\n\r\nThe successful output I get on my lab computer without singularity is in file [eglinfo_output.txt](https://gist.github.com/arpit15/1a818ab4bb72d3bfa1b42a8563f6a219)\r\n\r\n### Actual behavior\r\nERROR: Could not initialize EGL, error 0x3003\r\n### Steps to reproduce behavior\r\n```bash\r\nsudo singularity image.create ubuntu.img\r\nsudo singularity bootstrap ubuntu.img Singularity\r\nsudo singularity exec --writable your_image.img apt install gcc g++ build-essential kmod -y software-properties-common\r\nsudo singularity exec --writable your_image.img ./NVIDIA-Linux-x86_64-375.26.run -a --no-kernel-module -q --install-libglvnd\r\n\r\n$singularity shell ubuntu.img\r\nI compiled the eglinfo.c using the following command\r\n$g++ -I. eglinfo.c /usr/lib/x86_64-linux-gnu/libEGL.so /usr/lib/x86_64-linux-gnu/libOpenGL.so -DMESA_EGL_NO_X11_HEADERS\r\n```\r\n"}}
{"actor":{"display_login":"GodloveD"}}