Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-77910

Immediate crash with "Failed to create GL context with glXCreateContextAttribsARB."

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 5.14
    • WebEngine
    • None
    • Linux/X11

    Description

      When trying to run simplebrowser with the current 5.14 branch, I only see black where the web contents would be, and a second later it crashes:

      [26721:26742:0828/181745.554672:ERROR:gl_context_glx.cc(182)] Failed to create GL context with glXCreateContextAttribsARB.
      [26721:26742:0828/181745.554724:ERROR:gpu_channel_manager.cc(395)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
      [26721:26742:0828/181745.554734:ERROR:shared_image_stub.cc(297)] SharedImageStub: unable to create context
      [26721:26742:0828/181745.554787:ERROR:gpu_channel.cc(423)] GpuChannel: Failed to create SharedImageStub
      Xlib: sequence lost (0x1027f > 0x2a1) in reply type 0x0!
      Xlib: sequence lost (0x102c1 > 0x2ca) in reply type 0x0!
      [26721:26742:0828/181745.904626:ERROR:gl_context_glx.cc(182)] Failed to create GL context with glXCreateContextAttribsARB.
      [26721:26742:0828/181745.904735:ERROR:gpu_channel_manager.cc(395)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
      [26721:26742:0828/181745.904779:ERROR:shared_image_stub.cc(297)] SharedImageStub: unable to create context
      [26721:26742:0828/181745.904871:ERROR:gpu_channel.cc(423)] GpuChannel: Failed to create SharedImageStub
      Context is not shared, textures will be copied between contexts.
      [26721:26735:0828/181745.905308:FATAL:gpu_client.cc(90)] Check failed: channel_handle.is_valid() == status == GpuHostImpl::EstablishChannelStatus::kSuccess (0 vs. 1)
      #0 0x7f849cfaed65 base::debug::CollectStackTrace()
      #1 0x7f849cd98cef base::debug::StackTrace::StackTrace()
      #2 0x7f849cd98ca6 base::debug::StackTrace::StackTrace()
      #3 0x7f849cddbe4c logging::LogMessage::~LogMessage()
      #4 0x7f849f371bda viz::GpuClient::OnEstablishGpuChannel()
      #5 0x7f849f39e72f base::internal::FunctorTraits<>::Invoke<>()
      #6 0x7f849f3971f0 base::internal::InvokeHelper<>::MakeItSo<>()
      #7 0x7f849f38f75e _ZN4base8internal7InvokerINS0_9BindStateIMN3viz9GpuClientEFvN4mojo16ScopedHandleBaseINS5_17MessagePipeHandleEEERKN3gpu7GPUInfoERKNS9_14GpuFeatureInfoENS3_11GpuHostImpl22EstablishChannelStatusEEJNS_7WeakPtrIS4_EEEEEFvS8_SC_SF_SH_EE7RunImplISJ_St5tupleIJSL_EEJLm0EEEEvOT_OT0_St16integer_sequenceImJXspT1_EEEOS8_SC_SF_OSH_
      #8 0x7f849f388f01 base::internal::Invoker<>::RunOnce()
      #9 0x7f849f3843ac _ZNO4base12OnceCallbackIFvN4mojo16ScopedHandleBaseINS1_17MessagePipeHandleEEERKN3gpu7GPUInfoERKNS5_14GpuFeatureInfoEN3viz11GpuHostImpl22EstablishChannelStatusEEE3RunES4_S8_SB_SE_
      #10 0x7f849f376680 viz::GpuHostImpl::OnChannelEstablished()
      #11 0x7f849f39fbef base::internal::FunctorTraits<>::Invoke<>()
      #12 0x7f849f3982da base::internal::InvokeHelper<>::MakeItSo<>()
      #13 0x7f849f390a0c _ZN4base8internal7InvokerINS0_9BindStateIMN3viz11GpuHostImplEFviN4mojo16ScopedHandleBaseINS5_17MessagePipeHandleEEEEJNS_7WeakPtrIS4_EEiEEEFvS8_EE7RunImplISA_St5tupleIJSC_iEEJLm0ELm1EEEEvOT_OT0_St16integer_sequenceImJXspT1_EEEOS8_
      #14 0x7f849f389c77 base::internal::Invoker<>::RunOnce()
      #15 0x7f849848f2a7 _ZNO4base12OnceCallbackIFvN4mojo16ScopedHandleBaseINS1_17MessagePipeHandleEEEEE3RunES4_
      #16 0x7f84984810c6 viz::mojom::GpuService_EstablishGpuChannel_ForwardToCallback::Accept()
      #17 0x7f849d69055b mojo::InterfaceEndpointClient::HandleValidatedMessage()
      #18 0x7f849d68e4a9 mojo::InterfaceEndpointClient::HandleIncomingMessageThunk::Accept()
      #19 0x7f849d696a54 mojo::FilterChain::Accept()
      #20 0x7f849d68fb11 mojo::InterfaceEndpointClient::HandleIncomingMessage()
      #21 0x7f849d6a2f7f mojo::internal::MultiplexRouter::ProcessIncomingMessage()
      #22 0x7f849d6a17a1 mojo::internal::MultiplexRouter::Accept()
      #23 0x7f849d696a54 mojo::FilterChain::Accept()
      #24 0x7f849d68390c mojo::Connector::DispatchMessage()
      #25 0x7f849d683ee4 mojo::Connector::ReadAllAvailableMessages()
      #26 0x7f849d682d95 mojo::Connector::OnHandleReadyInternal()
      #27 0x7f849d682aa2 mojo::Connector::OnWatcherHandleReady()
      #28 0x7f849d6896dd base::internal::FunctorTraits<>::Invoke<>()
      #29 0x7f849d688bc1 base::internal::InvokeHelper<>::MakeItSo<>()
      #30 0x7f849d687ffe _ZN4base8internal7InvokerINS0_9BindStateIMN4mojo9ConnectorEFvjEJNS0_17UnretainedWrapperIS4_EEEEEFvjEE7RunImplIRKS6_RKSt5tupleIJS8_EEJLm0EEEEvOT_OT0_St16integer_sequenceImJXspT1_EEEOj
      #31 0x7f849d6871ae base::internal::Invoker<>::Run()
      #32 0x7f84963691ca _ZNKR4base17RepeatingCallbackIFvjEE3RunEj
      #33 0x7f84980483ce mojo::SimpleWatcher::DiscardReadyState()
      #34 0x7f849804cb25 base::internal::FunctorTraits<>::Invoke<>()
      #35 0x7f849804be1d base::internal::InvokeHelper<>::MakeItSo<>()
      #36 0x7f849804abda _ZN4base8internal7InvokerINS0_9BindStateIPFvRKNS_17RepeatingCallbackIFvjEEEjRKN4mojo18HandleSignalsStateEEJS5_EEEFvjSB_EE7RunImplIRKSD_RKSt5tupleIJS5_EEJLm0EEEEvOT_OT0_St16integer_sequenceImJXspT1_EEEOjSB_
      #37 0x7f8498049bc1 base::internal::Invoker<>::Run()
      #38 0x7f849d6dfb70 _ZNKR4base17RepeatingCallbackIFvjRKN4mojo18HandleSignalsStateEEE3RunEjS4_
      #39 0x7f849d6deb80 mojo::SimpleWatcher::OnHandleReady()
      #40 0x7f849d6e08af base::internal::FunctorTraits<>::Invoke<>()
      #41 0x7f849d6e05be base::internal::InvokeHelper<>::MakeItSo<>()
      #42 0x7f849d6e0032 _ZN4base8internal7InvokerINS0_9BindStateIMN4mojo13SimpleWatcherEFvijRKNS3_18HandleSignalsStateEEJNS_7WeakPtrIS4_EEijS5_EEEFvvEE7RunImplIS9_St5tupleIJSB_ijS5_EEJLm0ELm1ELm2ELm3EEEEvOT_OT0_St16integer_sequenceImJXspT1_EEE
      #43 0x7f849d6dfcac base::internal::Invoker<>::RunOnce()
      #44 0x7f84962e905c _ZNO4base12OnceCallbackIFvvEE3RunEv
      #45 0x7f849ce99362 base::TaskAnnotator::RunTask()
      #46 0x7f849cedd26e base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl()
      #47 0x7f849cedc8f8 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork()
      #48 0x7f849cfe7846 base::MessagePumpLibevent::Run()
      #49 0x7f849cedd945 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run()
      #50 0x7f849ce5539e base::RunLoop::RunWithTimeout()
      #51 0x7f849ce55053 base::RunLoop::Run()
      #52 0x7f849cf34dd3 base::Thread::Run()
      #53 0x7f849ac17762 content::BrowserProcessSubThread::IOThreadRun()
      #54 0x7f849ac173dd content::BrowserProcessSubThread::Run()
      #55 0x7f849cf353e6 base::Thread::ThreadMain()
      #56 0x7f849cfd75d9 base::(anonymous namespace)::ThreadFunc()
      #57 0x7f848bdbe57f start_thread
      #58 0x7f848b9a40e3 __GI___clone
      Task trace:
      #0 0x7f849d6df25f mojo::SimpleWatcher::Context::Notify()
      #1 0x7f84984d2299 _ZZN3viz14GpuServiceImpl19EstablishGpuChannelEimbbN4base12OnceCallbackIFvN4mojo16ScopedHandleBaseINS3_17MessagePipeHandleEEEEEEENKUl13scoped_refptrINS1_22SingleThreadTaskRunnerEES8_S6_E_clESB_S8_S6_
      #2 0x7f84984d241f viz::GpuServiceImpl::EstablishGpuChannel()
      #3 0x7f849d6df25f mojo::SimpleWatcher::Context::Notify()
      #4 0x7f849f371a3d viz::GpuClient::PreEstablishGpuChannel()
      

      I'm on Archlinux, glxinfo -B shows:

      name of display: :0
      display: :0  screen: 0
      direct rendering: Yes
      Extended renderer info (GLX_MESA_query_renderer):
          Vendor: Intel Open Source Technology Center (0x8086)
          Device: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2)  (0x1916)
          Version: 19.1.4
          Accelerated: yes
          Video memory: 3072MB
          Unified memory: yes
          Preferred profile: core (0x1)
          Max core profile version: 4.5
          Max compat profile version: 3.0
          Max GLES1 profile version: 1.1
          Max GLES[23] profile version: 3.2
      OpenGL vendor string: Intel Open Source Technology Center
      OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2) 
      OpenGL core profile version string: 4.5 (Core Profile) Mesa 19.1.4
      OpenGL core profile shading language version string: 4.50
      OpenGL core profile context flags: (none)
      OpenGL core profile profile mask: core profile
      
      OpenGL version string: 3.0 Mesa 19.1.4
      OpenGL shading language version string: 1.30
      OpenGL context flags: (none)
      
      OpenGL ES profile version string: OpenGL ES 3.2 Mesa 19.1.4
      OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
      

      When I launch with --disable-gpu I get no crash, but only a weird mirrored rendering of the window:

      No change with --disable-viz-display-compositor.

      Attachments

        1. disable-gpu.png
          36 kB
          Florian Bruhin

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              the compiler Florian Bruhin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes