[Kernel-packages] [Bug 1731968] Re: 384.90-0ubuntu0.16.04.2 EGL crashes at startup

2019-02-13 Thread Saxon Druce
I've been documenting my attempt to work around this problem here:
https://stackoverflow.com/questions/47415198/missing-gl-version-from-
glewinit-using-egl/54668271#54668271

I discovered an nvidia blog post - https://devblogs.nvidia.com/linking-
opengl-server-side-rendering/ - which says:

"If you want to use EGL context management instead, link against
libOpenGL.so and libEGL.so."

After installing the nvidia-410 package, as reported in the original
post, the EGL test program from the original post doesn't work if
linking against libGL.so:

$ wget 
https://gist.githubusercontent.com/funchal/bff0a8d6dae5b3ace1a88c392416b5bc/raw/1427821a2390a30779881ab59c55b5550a468919/main.c
$ gcc main.c -lGL -lEGL
$ ./a.out
egl 1.5
a.out: main.c:53: main: Assertion `renderer' failed.
Aborted (core dumped)

However it does work if linking against libOpenGL.so:

$ wget 
https://gist.githubusercontent.com/funchal/bff0a8d6dae5b3ace1a88c392416b5bc/raw/1427821a2390a30779881ab59c55b5550a468919/main.c
$ gcc main.c -L/usr/lib/nvidia-410 -lOpenGL -lEGL
$ ./a.out
egl 1.5
renderer: Tesla K80/PCIe/SSE2
version: 4.6.0 NVIDIA 410.78

With installing via a runfile as mentioned by mmatl in post #8, the test
program works when linking against either libGL.so or libOpenGL.so.

The difference between the packaged and runfile drivers may be due to
the dependencies linked into libGL.so (I included a comparison in the
stackoverflow post).

The final solution is therefore to link against libOpenGL.so instead of
libGL.so.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to nvidia-graphics-drivers-390 in Ubuntu.
https://bugs.launchpad.net/bugs/1731968

Title:
  384.90-0ubuntu0.16.04.2 EGL crashes at startup

Status in nvidia-graphics-drivers package in Ubuntu:
  Confirmed
Status in nvidia-graphics-drivers-384 package in Ubuntu:
  Confirmed
Status in nvidia-graphics-drivers-390 package in Ubuntu:
  Confirmed

Bug description:
  Release: Ubuntu 16.04.3 LTS
  Package version: 384.90-0ubuntu0.16.04.2

  In the latest driver 384.90-0ubuntu0.16.04.2, EGL initialisation is
  now broken and the GL context returned is inconsistent leading to
  crashes. I have prepared a minimised testcase that showcases the
  problem with the latest driver. I have also made sure it works fine
  with both previous versions 384.90-0ubuntu0.16.04.1 and
  384.81-0ubuntu1 in a clean install.

  Here's the code:
  https://gist.github.com/funchal/bff0a8d6dae5b3ace1a88c392416b5bc

  It can be compiled using "gcc main.c -lGL -lEGL". The crash is:

  egl 1.4
  a.out: main.c:59: main: Assertion `renderer' failed.
  Aborted (core dumped)

  This is caused by NULL return from glGetString for GL renderer. Note
  this isn't the only way to cause a crash, for example attempting to
  use the GL context in other ways will also crash, but this shows the
  regression in a minimal testcase.

  Previous drivers successfully complete the testcase with return code
  0.

  I have tested this on both a desktop machine with a GTX 1080, and a
  display-less server with a Tesla K80, with a fresh Ubuntu install.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/1731968/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1731968] Re: 384.90-0ubuntu0.16.04.2 EGL crashes at startup

2018-08-27 Thread Matthew Matl
This works when installing using the runfile method, but fails for the
packaged drivers. So it definitely appears to be a packaging issue
specific to Ubuntu. Confirmed to work on Fedora and Arch with 390-series
drivers as well.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to nvidia-graphics-drivers-390 in Ubuntu.
https://bugs.launchpad.net/bugs/1731968

Title:
  384.90-0ubuntu0.16.04.2 EGL crashes at startup

Status in nvidia-graphics-drivers package in Ubuntu:
  Confirmed
Status in nvidia-graphics-drivers-384 package in Ubuntu:
  Confirmed
Status in nvidia-graphics-drivers-390 package in Ubuntu:
  Confirmed

Bug description:
  Release: Ubuntu 16.04.3 LTS
  Package version: 384.90-0ubuntu0.16.04.2

  In the latest driver 384.90-0ubuntu0.16.04.2, EGL initialisation is
  now broken and the GL context returned is inconsistent leading to
  crashes. I have prepared a minimised testcase that showcases the
  problem with the latest driver. I have also made sure it works fine
  with both previous versions 384.90-0ubuntu0.16.04.1 and
  384.81-0ubuntu1 in a clean install.

  Here's the code:
  https://gist.github.com/funchal/bff0a8d6dae5b3ace1a88c392416b5bc

  It can be compiled using "gcc main.c -lGL -lEGL". The crash is:

  egl 1.4
  a.out: main.c:59: main: Assertion `renderer' failed.
  Aborted (core dumped)

  This is caused by NULL return from glGetString for GL renderer. Note
  this isn't the only way to cause a crash, for example attempting to
  use the GL context in other ways will also crash, but this shows the
  regression in a minimal testcase.

  Previous drivers successfully complete the testcase with return code
  0.

  I have tested this on both a desktop machine with a GTX 1080, and a
  display-less server with a Tesla K80, with a fresh Ubuntu install.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/1731968/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1731968] Re: 384.90-0ubuntu0.16.04.2 EGL crashes at startup

2018-08-04 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: nvidia-graphics-drivers-390 (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to nvidia-graphics-drivers-390 in Ubuntu.
https://bugs.launchpad.net/bugs/1731968

Title:
  384.90-0ubuntu0.16.04.2 EGL crashes at startup

Status in nvidia-graphics-drivers package in Ubuntu:
  Confirmed
Status in nvidia-graphics-drivers-384 package in Ubuntu:
  Confirmed
Status in nvidia-graphics-drivers-390 package in Ubuntu:
  Confirmed

Bug description:
  Release: Ubuntu 16.04.3 LTS
  Package version: 384.90-0ubuntu0.16.04.2

  In the latest driver 384.90-0ubuntu0.16.04.2, EGL initialisation is
  now broken and the GL context returned is inconsistent leading to
  crashes. I have prepared a minimised testcase that showcases the
  problem with the latest driver. I have also made sure it works fine
  with both previous versions 384.90-0ubuntu0.16.04.1 and
  384.81-0ubuntu1 in a clean install.

  Here's the code:
  https://gist.github.com/funchal/bff0a8d6dae5b3ace1a88c392416b5bc

  It can be compiled using "gcc main.c -lGL -lEGL". The crash is:

  egl 1.4
  a.out: main.c:59: main: Assertion `renderer' failed.
  Aborted (core dumped)

  This is caused by NULL return from glGetString for GL renderer. Note
  this isn't the only way to cause a crash, for example attempting to
  use the GL context in other ways will also crash, but this shows the
  regression in a minimal testcase.

  Previous drivers successfully complete the testcase with return code
  0.

  I have tested this on both a desktop machine with a GTX 1080, and a
  display-less server with a Tesla K80, with a fresh Ubuntu install.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/1731968/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1731968] Re: 384.90-0ubuntu0.16.04.2 EGL crashes at startup

2018-08-04 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: nvidia-graphics-drivers (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to nvidia-graphics-drivers-390 in Ubuntu.
https://bugs.launchpad.net/bugs/1731968

Title:
  384.90-0ubuntu0.16.04.2 EGL crashes at startup

Status in nvidia-graphics-drivers package in Ubuntu:
  Confirmed
Status in nvidia-graphics-drivers-384 package in Ubuntu:
  Confirmed
Status in nvidia-graphics-drivers-390 package in Ubuntu:
  Confirmed

Bug description:
  Release: Ubuntu 16.04.3 LTS
  Package version: 384.90-0ubuntu0.16.04.2

  In the latest driver 384.90-0ubuntu0.16.04.2, EGL initialisation is
  now broken and the GL context returned is inconsistent leading to
  crashes. I have prepared a minimised testcase that showcases the
  problem with the latest driver. I have also made sure it works fine
  with both previous versions 384.90-0ubuntu0.16.04.1 and
  384.81-0ubuntu1 in a clean install.

  Here's the code:
  https://gist.github.com/funchal/bff0a8d6dae5b3ace1a88c392416b5bc

  It can be compiled using "gcc main.c -lGL -lEGL". The crash is:

  egl 1.4
  a.out: main.c:59: main: Assertion `renderer' failed.
  Aborted (core dumped)

  This is caused by NULL return from glGetString for GL renderer. Note
  this isn't the only way to cause a crash, for example attempting to
  use the GL context in other ways will also crash, but this shows the
  regression in a minimal testcase.

  Previous drivers successfully complete the testcase with return code
  0.

  I have tested this on both a desktop machine with a GTX 1080, and a
  display-less server with a Tesla K80, with a fresh Ubuntu install.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/1731968/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1731968] Re: 384.90-0ubuntu0.16.04.2 EGL crashes at startup

2018-08-03 Thread Matthew Matl
This is still a problem in 396.45 on Ubuntu 16.04. The minimal test case
fails, and EGL doesn't work cleanly. Tested on clean installation with
an Nvidia Titan Xp and Titan X (Pascal).

** Also affects: nvidia-graphics-drivers-390 (Ubuntu)
   Importance: Undecided
   Status: New

** Also affects: nvidia-graphics-drivers (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to nvidia-graphics-drivers-390 in Ubuntu.
https://bugs.launchpad.net/bugs/1731968

Title:
  384.90-0ubuntu0.16.04.2 EGL crashes at startup

Status in nvidia-graphics-drivers package in Ubuntu:
  New
Status in nvidia-graphics-drivers-384 package in Ubuntu:
  Confirmed
Status in nvidia-graphics-drivers-390 package in Ubuntu:
  New

Bug description:
  Release: Ubuntu 16.04.3 LTS
  Package version: 384.90-0ubuntu0.16.04.2

  In the latest driver 384.90-0ubuntu0.16.04.2, EGL initialisation is
  now broken and the GL context returned is inconsistent leading to
  crashes. I have prepared a minimised testcase that showcases the
  problem with the latest driver. I have also made sure it works fine
  with both previous versions 384.90-0ubuntu0.16.04.1 and
  384.81-0ubuntu1 in a clean install.

  Here's the code:
  https://gist.github.com/funchal/bff0a8d6dae5b3ace1a88c392416b5bc

  It can be compiled using "gcc main.c -lGL -lEGL". The crash is:

  egl 1.4
  a.out: main.c:59: main: Assertion `renderer' failed.
  Aborted (core dumped)

  This is caused by NULL return from glGetString for GL renderer. Note
  this isn't the only way to cause a crash, for example attempting to
  use the GL context in other ways will also crash, but this shows the
  regression in a minimal testcase.

  Previous drivers successfully complete the testcase with return code
  0.

  I have tested this on both a desktop machine with a GTX 1080, and a
  display-less server with a Tesla K80, with a fresh Ubuntu install.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/1731968/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp