You are not logged in.

#1 2018-03-29 14:18:23

ishanjain28
Member
Registered: 2018-03-29
Posts: 5

[SOLVED]GLContext Creation failed

Laptop Specification
i7 4710HQ
8GB DDR3
1 TB 7200 RPM SSHD
Nvidia gtx 960M

Nvidia Driver version 390.48-1
X11
i3 WM
uname -a: Linux y50 4.15.13-1-ARCH #1 SMP PREEMPT Sun Mar 25 11:27:57 UTC 2018 x86_64 GNU/Linux

Here is what I was doing,
1. 2 Firefox windows each with 50+ tabs
2. 3 Alacritty Terminals(This terminal uses opengl)
3. Thunderbird/Telegram.
4. Song playing via open.spotify.com in a firefox tab.

I close all alacritty windows and after a then after a second, I press the shortcut key to restart a new window but it doesn't works!
So, I open xterm, xterm works fine, Anything that doesn't uses opengl to create windows works fine, Like Telegram or my small vulkan projects, They work fine.

So, I open xterm, And Run alacritty, It fails with a GLContext Creation failed error. I try to open some of my other Opengl projects and all of them fail to start with the same error.

I did not run any command in that one second after closing alacritty tabs, So, I suspect that something went wrong when I had all those windows open, nothing fell apart immediately because all the windows that were open had already created a Opengl context, But when I closed them and attempted to restart, That's when I noticed that something had went wrong.

This has happened before a couple of times and everytime I didn't do anything.


I have googled a couple of times before and once again today but nothing that remotely relates to my problem.

Has anyone encountered this before? As of now, The only solution I know is to restart my laptop, If I restart it, Everything starts working again, But I don't want to do it right now, because I won't be able to replicate the current state of my OS once I restart it.


This is quite annoying problem and I'd be glad if someone can help me here.

Regards
Ishan

Last edited by ishanjain28 (2018-03-30 00:38:31)

Offline

#2 2018-03-29 14:23:48

seth
Member
Registered: 2012-09-03
Posts: 56,446

Re: [SOLVED]GLContext Creation failed

lspci, glxinfo, xorg log?

Online

#3 2018-03-29 14:27:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,739

Re: [SOLVED]GLContext Creation failed

Do you use render offloading as described on the nvidia optimus wiki page? I.e. is your primary renderer the Nvidia GPU? Did you upgrade the nvidia-utils and/or linux package during this session? If the answer to all of these is "Yes" then that is normal behaviour. Nvidia's OpenGL library is closely coupled to the corresponding version. If you have an update to the Nvidia driver that introduces a new nvidia GL version you won't be able to open up new GL contexts using the old driver version (which is what your current kernel has loaded).

That said, those outputs would be interesting as well indeed.

Last edited by V1del (2018-03-29 14:27:54)

Offline

#4 2018-03-29 14:49:30

ishanjain28
Member
Registered: 2018-03-29
Posts: 5

Re: [SOLVED]GLContext Creation failed

lspci output:

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.1 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #2 (rev d5)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d5)
00:1c.4 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM87 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
08:00.0 Network controller: Intel Corporation Wireless 7260 (rev 83)
09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
0a:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5249 PCI Express Card Reader (rev 01)


glxinfo output:


name of display: :0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  85
  Current serial number in output stream:  86


Xorg Log Link:
https://hastebin.com/bonuxobafa.scala

Offline

#5 2018-03-29 14:51:15

ishanjain28
Member
Registered: 2018-03-29
Posts: 5

Re: [SOLVED]GLContext Creation failed

V1del wrote:

Do you use render offloading as described on the nvidia optimus wiki page? I.e. is your primary renderer the Nvidia GPU? Did you upgrade the nvidia-utils and/or linux package during this session? If the answer to all of these is "Yes" then that is normal behaviour. Nvidia's OpenGL library is closely coupled to the corresponding version. If you have an update to the Nvidia driver that introduces a new nvidia GL version you won't be able to open up new GL contexts using the old driver version (which is what your current kernel has loaded).

That said, those outputs would be interesting as well indeed.


My Primary render is the Nvidia GPU, My card supports Optimus but I don't use it at all. I did ran pacman -Syu  and the nvidia package was updated. Your reason makes sense. I'll wait a couple of hours and then close this issue.

Thank you so much for the reply.

Offline

#6 2018-03-30 00:28:10

ishanjain28
Member
Registered: 2018-03-29
Posts: 5

Re: [SOLVED]GLContext Creation failed

If someone is reading this, Please mark this thread as solved and close it. I don't know how you do that here..

Offline

#7 2018-03-30 00:37:19

loqs
Member
Registered: 2014-03-06
Posts: 17,881

Re: [SOLVED]GLContext Creation failed

ishanjain28 wrote:

Please mark this thread as solved and close it. I don't know how you do that here..

Code_of_conduct#How_to_post

Last edited by loqs (2018-03-30 00:37:48)

Offline

Board footer

Powered by FluxBB