New issue
Advanced search Search tips

Issue 855231 link

Starred by 5 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Local CrOS on Linux build fails during GPU initialization (Ozone X11?)

Project Member Reported by pbos@chromium.org, Jun 21 2018

Issue description

Trying to start a local (target_os="chromeos") build I get crashes that indicate OpenGL errors. I can run glxgears fine, not sure what else to check for GPU capabilities. Building in a chromium checkout with "chromeos" set as target OS in both .gclient and gn args. This is mostly development hampering as I can't use this setup to develop for CrOS.

pbos@spectre:~$ glxinfo  | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.3.3
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 17.3.3
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 17.3.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:


$ out/Default/chrome
[88603:88603:0621/144141.073715:WARNING:chrome_browser_main_chromeos.cc(583)] Running as stub user with profile dir: test-user
[88603:88631:0621/144141.313627:ERROR:logging_chrome.cc(218)] Unable to create symlink /home/pbos/.config/chromium/test-user/chrome_debug.log pointing at /home/pbos/.config/chromium/test-user/chrome_debug_20180621-144141: File exists (17)
[88603:88603:0621/144141.326186:ERROR:display_color_manager.cc(276)] Display ID: 2200000000 cannot be found.
[88603:88603:0621/144141.954172:INFO:remote_commands_service.cc(36)] Fetching remote commands.
[88603:88603:0621/144141.954342:WARNING:remote_commands_service.cc(38)] Client is not registered.
[88603:88603:0621/144141.954490:INFO:remote_commands_invalidator.cc(32)] Initialize RemoteCommandsInvalidator.
[88603:88603:0621/144141.954602:INFO:remote_commands_invalidator.cc(57)] Starting RemoteCommandsInvalidator.
[88603:88603:0621/144141.954706:INFO:remote_commands_invalidator.cc(123)] RemoteCommandsInvalidator ReloadPolicyData.
[88603:88603:0621/144141.954795:INFO:remote_commands_invalidator.cc(167)] Unregister RemoteCommandsInvalidator.
[88603:88603:0621/144142.098805:WARNING:extension_service.cc(157)] Attempted uninstallation of unloaded/invalid extension with id: bepbmhgboaologfdajaanbcjmnhjmhfn
[88603:88603:0621/144142.098879:WARNING:extension_service.cc(157)] Attempted uninstallation of unloaded/invalid extension with id: nmmhkkegccagdldgiimedpiccmgmieda
[88603:88603:0621/144142.186094:INFO:chrome_cryptauth_service.cc(151)] Refresh token not yet available; waiting before starting CryptAuth managers.
[88603:88603:0621/144142.186257:INFO:remote_device_loader.cc(94)] Loading 0 remote devices
[88603:88603:0621/144142.186547:INFO:tether_service.cc(174)] TetherService has started. Initial user preference value: 1
[88603:88603:0621/144142.186661:INFO:tether_service.cc(430)] Tether state has changed. New state: [BLE is not present on the device], Old state: [TetherService initializing]
[88603:88603:0621/144142.747739:INFO:tether_service.cc(430)] Tether state has changed. New state: [no potential Tether hosts], Old state: [BLE is not present on the device]
[88603:88603:0621/144143.533260:ERROR:display_color_manager.cc(276)] Display ID: 2200000000 cannot be found.
[88603:88603:0621/144144.007716:ERROR:display_color_manager.cc(276)] Display ID: 2200000000 cannot be found.
[88603:88603:0621/144144.294838:INFO:CONSOLE(5032)] "Requesting volume list.", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5032)
[88603:88603:0621/144144.312107:INFO:CONSOLE(5460)] "Requesting file system.", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5460)
[88603:88603:0621/144144.335570:INFO:CONSOLE(5034)] "Volume list fetched with: 2 items.", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5034)
[88603:88603:0621/144144.371475:INFO:CONSOLE(5508)] "File system obtained: drive:drive-test-user", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5508)
[88603:88603:0621/144144.383135:INFO:CONSOLE(5044)] "Initializing volume: downloads:Downloads", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5044)
[88603:88603:0621/144144.388767:INFO:CONSOLE(5460)] "Requesting file system.", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5460)
[88603:88603:0621/144144.392429:INFO:CONSOLE(5044)] "Initializing volume: drive:drive-test-user", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5044)
[88603:88603:0621/144144.393032:INFO:CONSOLE(5460)] "Requesting file system.", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5460)
[88603:88603:0621/144144.405166:INFO:CONSOLE(5508)] "File system obtained: downloads:Downloads", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5508)
[88603:88603:0621/144144.408441:INFO:CONSOLE(5048)] "Initialized volume: downloads:Downloads", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5048)
[88603:88603:0621/144144.410593:INFO:CONSOLE(5508)] "File system obtained: drive:drive-test-user", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5508)
[88603:88603:0621/144144.413089:INFO:CONSOLE(5048)] "Initialized volume: drive:drive-test-user", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5048)
[88603:88603:0621/144144.414781:INFO:CONSOLE(5052)] "Initialized all volumes.", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5052)
[88642:88642:0621/144147.771892:INFO:GrGLInterface.cpp(453)] ../../third_party/skia/src/gpu/gl/GrGLInterface.cpp:453 GrGLInterface::validate() failed.

Received signal 11 SEGV_MAPERR 000000000098
#0 0x7f9824694e5d base::debug::StackTrace::StackTrace()
#1 0x7f98243e4ccc base::debug::StackTrace::StackTrace()
#2 0x7f98246948e8 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x7f97ff4360c0 <unknown>
#4 0x7f97f302b476 <unknown>
#5 0x7f97f30027c6 <unknown>
#6 0x7f9815a10a2d gl::GLApiBase::glClearFn()
#7 0x7f9815a67ba3 gl::RealGLApi::glClearFn()
#8 0x7f980b26f059 gpu::gles2::GLES2DecoderImpl::Initialize()
#9 0x7f980bc6b5f1 gpu::GLES2CommandBufferStub::Initialize()
#10 0x7f980bc74b20 gpu::GpuChannel::OnCreateCommandBuffer()
#11 0x7f980bc82408 _ZN4base20DispatchToMethodImplIPN3gpu10GpuChannelEMS2_FvRK28GPUCreateCommandBufferConfigiNS_18SharedMemoryHandleEPNS1_13ContextResultEPNS1_12CapabilitiesEENSt3__15tupleIJS4_iS7_EEENSF_IJS8_SA_EEEJLm0ELm1ELm2EEJLm0ELm1EEEEvRKT_T0_OT1_PT2_NSE_16integer_sequenceImJXspT3_EEEENSQ_ImJXspT4_EEEE
#12 0x7f980bc8212b _ZN4base16DispatchToMethodIPN3gpu10GpuChannelEMS2_FvRK28GPUCreateCommandBufferConfigiNS_18SharedMemoryHandleEPNS1_13ContextResultEPNS1_12CapabilitiesEENSt3__15tupleIJS4_iS7_EEENSF_IJS8_SA_EEEEEvRKT_T0_OT1_PT2_
#13 0x7f980bc77f19 _ZN3IPC8MessageTI38GpuChannelMsg_CreateCommandBuffer_MetaNSt3__15tupleIJ28GPUCreateCommandBufferConfigiN4base18SharedMemoryHandleEEEENS3_IJN3gpu13ContextResultENS8_12CapabilitiesEEEEE8DispatchINS8_10GpuChannelESE_vMSE_FvRKS4_iS6_PS9_PSA_EEEbPKNS_7MessageEPT_PT0_PT1_T2_
#14 0x7f980bc73783 gpu::GpuChannel::OnControlMessageReceived()
#15 0x7f980bc75882 gpu::GpuChannel::HandleMessageHelper()
#16 0x7f980bc7202d gpu::GpuChannel::HandleOutOfOrderMessage()
#17 0x7f980bc67cef _ZN4base8internal13FunctorTraitsIMN3gpu17CommandBufferStubEFvRKNS2_9SyncTokenEEvE6InvokeIS8_RKNS_7WeakPtrIS3_EEJS6_EEEvT_OT0_DpOT1_
#18 0x7f980bc67c55 _ZN4base8internal12InvokeHelperILb1EvE8MakeItSoIRKMN3gpu17CommandBufferStubEFvRKNS4_9SyncTokenEERKNS_7WeakPtrIS5_EEJS8_EEEvOT_OT0_DpOT1_
#19 0x7f980bc8149d _ZN4base8internal7InvokerINS0_9BindStateIMN3gpu10GpuChannelEFvRKN3IPC7MessageEEJNS_7WeakPtrIS4_EES6_EEEFvvEE7RunImplIRKSA_RKNSt3__15tupleIJSC_S6_EEEJLm0ELm1EEEEvOT_OT0_NSJ_16integer_sequenceImJXspT1_EEEE
#20 0x7f980bc813ac _ZN4base8internal7InvokerINS0_9BindStateIMN3gpu10GpuChannelEFvRKN3IPC7MessageEEJNS_7WeakPtrIS4_EES6_EEEFvvEE3RunEPNS0_13BindStateBaseE
#21 0x7f9824395ffe _ZNO4base12OnceCallbackIFvvEE3RunEv
#22 0x7f98243e60ba base::debug::TaskAnnotator::RunTask()
#23 0x7f982446fb5a base::internal::IncomingTaskQueue::RunTask()
#24 0x7f9824478dbb base::MessageLoop::RunTask()
#25 0x7f9824479005 base::MessageLoop::DeferOrRunPendingTask()
#26 0x7f98244792e4 base::MessageLoop::DoWork()
#27 0x7f98246d967b base::MessagePumpLibevent::Run()
#28 0x7f98244786ae base::MessageLoop::Run()
#29 0x7f9824521782 base::RunLoop::Run()
#30 0x7f981be94f8c content::GpuMain()
#31 0x7f981f2af212 content::RunOtherNamedProcessTypeMain()
#32 0x7f981f2b13c9 content::ContentMainRunnerImpl::Run()
#33 0x7f981f2a5c75 content::ContentServiceManagerMainDelegate::RunEmbedderProcess()
#34 0x7f98249a15fb service_manager::Main()
#35 0x7f981f2abe15 content::ContentMain()
#36 0x559bc7573036 ChromeMain
#37 0x559bc7572f42 main
#38 0x7f97fdd732b1 __libc_start_main
#39 0x559bc7572e1a _start
  r8: 000000000000c0ff  r9: 6d68732f7665642f r10: 000039845d3a76b0 r11: 0000000000000000
 r12: 000039845d845820 r13: 0000000000000000 r14: 000039845bfbe050 r15: 000039845d845820
  di: 0000000000000000  si: 0000000000000000  bp: 0000000000000032  bx: 000039845d4fe050
  dx: 000039845bfbe050  ax: 0000000000000000  cx: 000039845bfbe050  sp: 00007ffccc3b9198
  ip: 00007f97f302b476 efl: 0000000000010202 cgf: 002b000000000033 erf: 0000000000000004
 trp: 000000000000000e msk: 0000000000000000 cr2: 0000000000000098
[end of stack trace]
Calling _exit(1). Core file will not be generated.
[1:7:0621/144148.159635:INFO:GrGLInterface.cpp(36)] ../../third_party/skia/src/gpu/gl/GrGLInterface.cpp:36 GrGLInterface::validate() failed.

[88603:88603:0621/144148.163293:ERROR:command_buffer_proxy_impl.cc(132)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
[88603:88603:0621/144148.163378:ERROR:context_provider_command_buffer.cc(236)] GpuChannelHost failed to create command buffer.
[88713:88713:0621/144153.346470:INFO:GrGLInterface.cpp(453)] ../../third_party/skia/src/gpu/gl/GrGLInterface.cpp:453 GrGLInterface::validate() failed.

Received signal 11 SEGV_MAPERR 000000000098
#0 0x7fb7e3fdee5d base::debug::StackTrace::StackTrace()
#1 0x7fb7e3d2eccc base::debug::StackTrace::StackTrace()
#2 0x7fb7e3fde8e8 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x7fb7bed800c0 <unknown>
#4 0x7fb7b2975476 <unknown>
#5 0x7fb7b294c7c6 <unknown>
#6 0x7fb7d535aa2d gl::GLApiBase::glClearFn()
#7 0x7fb7d53b1ba3 gl::RealGLApi::glClearFn()
#8 0x7fb7cabb9059 gpu::gles2::GLES2DecoderImpl::Initialize()
#9 0x7fb7cb5b55f1 gpu::GLES2CommandBufferStub::Initialize()
#10 0x7fb7cb5beb20 gpu::GpuChannel::OnCreateCommandBuffer()
#11 0x7fb7cb5cc408 _ZN4base20DispatchToMethodImplIPN3gpu10GpuChannelEMS2_FvRK28GPUCreateCommandBufferConfigiNS_18SharedMemoryHandleEPNS1_13ContextResultEPNS1_12CapabilitiesEENSt3__15tupleIJS4_iS7_EEENSF_IJS8_SA_EEEJLm0ELm1ELm2EEJLm0ELm1EEEEvRKT_T0_OT1_PT2_NSE_16integer_sequenceImJXspT3_EEEENSQ_ImJXspT4_EEEE
#12 0x7fb7cb5cc12b _ZN4base16DispatchToMethodIPN3gpu10GpuChannelEMS2_FvRK28GPUCreateCommandBufferConfigiNS_18SharedMemoryHandleEPNS1_13ContextResultEPNS1_12CapabilitiesEENSt3__15tupleIJS4_iS7_EEENSF_IJS8_SA_EEEEEvRKT_T0_OT1_PT2_
#13 0x7fb7cb5c1f19 _ZN3IPC8MessageTI38GpuChannelMsg_CreateCommandBuffer_MetaNSt3__15tupleIJ28GPUCreateCommandBufferConfigiN4base18SharedMemoryHandleEEEENS3_IJN3gpu13ContextResultENS8_12CapabilitiesEEEEE8DispatchINS8_10GpuChannelESE_vMSE_FvRKS4_iS6_PS9_PSA_EEEbPKNS_7MessageEPT_PT0_PT1_T2_
#14 0x7fb7cb5bd783 gpu::GpuChannel::OnControlMessageReceived()
#15 0x7fb7cb5bf882 gpu::GpuChannel::HandleMessageHelper()
#16 0x7fb7cb5bc02d gpu::GpuChannel::HandleOutOfOrderMessage()
#17 0x7fb7cb5b1cef _ZN4base8internal13FunctorTraitsIMN3gpu17CommandBufferStubEFvRKNS2_9SyncTokenEEvE6InvokeIS8_RKNS_7WeakPtrIS3_EEJS6_EEEvT_OT0_DpOT1_
#18 0x7fb7cb5b1c55 _ZN4base8internal12InvokeHelperILb1EvE8MakeItSoIRKMN3gpu17CommandBufferStubEFvRKNS4_9SyncTokenEERKNS_7WeakPtrIS5_EEJS8_EEEvOT_OT0_DpOT1_
#19 0x7fb7cb5cb49d _ZN4base8internal7InvokerINS0_9BindStateIMN3gpu10GpuChannelEFvRKN3IPC7MessageEEJNS_7WeakPtrIS4_EES6_EEEFvvEE7RunImplIRKSA_RKNSt3__15tupleIJSC_S6_EEEJLm0ELm1EEEEvOT_OT0_NSJ_16integer_sequenceImJXspT1_EEEE
#20 0x7fb7cb5cb3ac _ZN4base8internal7InvokerINS0_9BindStateIMN3gpu10GpuChannelEFvRKN3IPC7MessageEEJNS_7WeakPtrIS4_EES6_EEEFvvEE3RunEPNS0_13BindStateBaseE
#21 0x7fb7e3cdfffe _ZNO4base12OnceCallbackIFvvEE3RunEv
#22 0x7fb7e3d300ba base::debug::TaskAnnotator::RunTask()
#23 0x7fb7e3db9b5a base::internal::IncomingTaskQueue::RunTask()
#24 0x7fb7e3dc2dbb base::MessageLoop::RunTask()
#25 0x7fb7e3dc3005 base::MessageLoop::DeferOrRunPendingTask()
#26 0x7fb7e3dc32e4 base::MessageLoop::DoWork()
#27 0x7fb7e402367b base::MessagePumpLibevent::Run()
#28 0x7fb7e3dc26ae base::MessageLoop::Run()
#29 0x7fb7e3e6b782 base::RunLoop::Run()
#30 0x7fb7db7def8c content::GpuMain()
#31 0x7fb7debf9212 content::RunOtherNamedProcessTypeMain()
#32 0x7fb7debfb3c9 content::ContentMainRunnerImpl::Run()
#33 0x7fb7debefc75 content::ContentServiceManagerMainDelegate::RunEmbedderProcess()
#34 0x7fb7e42eb5fb service_manager::Main()
#35 0x7fb7debf5e15 content::ContentMain()
#36 0x561d2546d036 ChromeMain
#37 0x561d2546cf42 main
#38 0x7fb7bd6bd2b1 __libc_start_main
#39 0x561d2546ce1a _start
  r8: 000000000000c0ff  r9: 6d68732f7665642f r10: 00000c5febf4dc50 r11: 0000000000000000
 r12: 00000c5febf35920 r13: 0000000000000000 r14: 00000c5feab9c050 r15: 00000c5febf35920
  di: 0000000000000000  si: 0000000000000000  bp: 0000000000000032  bx: 00000c5fec0c3050
  dx: 00000c5feab9c050  ax: 0000000000000000  cx: 00000c5feab9c050  sp: 00007ffce7974628
  ip: 00007fb7b2975476 efl: 0000000000010202 cgf: 002b000000000033 erf: 0000000000000004
 trp: 000000000000000e msk: 0000000000000000 cr2: 0000000000000098
[end of stack trace]
Calling _exit(1). Core file will not be generated.
[1:7:0621/144153.742272:INFO:GrGLInterface.cpp(36)] ../../third_party/skia/src/gpu/gl/GrGLInterface.cpp:36 GrGLInterface::validate() failed.

[88603:88603:0621/144153.742894:ERROR:command_buffer_proxy_impl.cc(132)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
[88603:88603:0621/144153.742978:ERROR:context_provider_command_buffer.cc(236)] GpuChannelHost failed to create command buffer.
[88603:88603:0621/144153.807863:WARNING:render_frame_host_impl.cc(427)] InterfaceRequest was dropped, the document is no longer active: content.mojom.RendererAudioOutputStreamFactory
[88721:88721:0621/144158.932877:INFO:GrGLInterface.cpp(453)] ../../third_party/skia/src/gpu/gl/GrGLInterface.cpp:453 GrGLInterface::validate() failed.

 

Comment 1 by pbos@chromium.org, Jun 21 2018

Components: Internals>GPU
Cc: reve...@chromium.org
+reveman because CrOS. Do you know what might be missing in the setup here?
Owner: dcasta...@chromium.org
Status: Assigned (was: Untriaged)
dcastagna: can you investigate/triage this?
Owner: pbos@chromium.org
pbos: Are you trying this setup on your laptop? I can't reproduce it on my desktop, but I suspect in your setup Chrome is loading a GLESv2 library that does not export the expected symbols.

Would you mind logging what your Chrome loads in gl::AddGLNativeLibrary and then make sure the loaded GLESv2 library exports "glClear"?
Owner: dcasta...@chromium.org
I couldn't easily see what the absolute path loaded is, but dlsym on it for "glClear" seems to work:

LoadNativeLibrary: libGL.so.1
dlopen: 0x2fef3c9fd020
dlerror: (null)
dlsym: 0x7f003cf87600
dlerror: (null)

[144484:144484:0919/134002.186249:ERROR:gl_implementation.cc(159)] gl::AddNativeLibrary: 0x2fef3c9fd020


Using the following patch:

pbos@spectre:~/chromium/src (master)$ git diff
diff --git a/base/native_library.cc b/base/native_library.cc
index 72012a333496..54cf7623e1b3 100644
--- a/base/native_library.cc
+++ b/base/native_library.cc
@@ -3,11 +3,13 @@
 // found in the LICENSE file.
 
 #include "base/native_library.h"
+#include "base/files/file_path.h"
 
 namespace base {
 
 NativeLibrary LoadNativeLibrary(const FilePath& library_path,
                                 NativeLibraryLoadError* error) {
+  printf("LoadNativeLibrary: %s\n", library_path.value().c_str());
   return LoadNativeLibraryWithOptions(
       library_path, NativeLibraryOptions(), error);
 }
diff --git a/base/native_library_posix.cc b/base/native_library_posix.cc
index 19ff7a4b0ba5..6472b56a0797 100644
--- a/base/native_library_posix.cc
+++ b/base/native_library_posix.cc
@@ -39,6 +39,11 @@ NativeLibrary LoadNativeLibraryWithOptions(const FilePath& library_path,
     flags |= RTLD_DEEPBIND;
 #endif
   void* dl = dlopen(library_path.value().c_str(), flags);
+  printf("dlopen: %p\n", dl);
+  printf("dlerror: %s\n", dlerror());
+  printf("dlsym: %p\n", dlsym(dl, "glClear"));
+  printf("dlerror: %s\n", dlerror());
+  puts("");
   if (!dl && error)
     error->message = dlerror();
 
diff --git a/ui/gl/gl_implementation.cc b/ui/gl/gl_implementation.cc
index 3e40d4513a27..5b05bcd91799 100644
--- a/ui/gl/gl_implementation.cc
+++ b/ui/gl/gl_implementation.cc
@@ -156,6 +156,8 @@ bool HasDesktopGLFeatures() {
 
 void AddGLNativeLibrary(base::NativeLibrary library) {
   DCHECK(library);
+  LOG(ERROR) << "gl::AddNativeLibrary: " << library;
+  printf("gl::AddNativeLibrary: %p", library);
 
   if (!g_libraries) {
     g_libraries = new LibraryArray;

Cc: -reve...@chromium.org
Owner: pbos@chromium.org
Can you verify glClearFn and other GL function ptrs are correctly initialized in DriverGL::InitializeStaticBindings?

Owner: dcasta...@chromium.org
Btw if this is not very interesting this laptop is reaching EOL and I've been asked to return it. If it's interesting to get to the bottom of this I'll try to keep it around for a bit.

glClearFn looks like it's resolving fine to a pointer. Looking at the log it looks like it fails under:

[88721:88721:0621/144158.932877:INFO:GrGLInterface.cpp(453)] ../../third_party/skia/src/gpu/gl/GrGLInterface.cpp:453 GrGLInterface::validate()

which is:

    if ((kGL_GrGLStandard == fStandard &&
         (glVer >= GR_GL_VER(4,3) || fExtensions.has("GL_ARB_program_interface_query"))) ||
        (kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,1))) {
        if (!fFunctions.fGetProgramResourceLocation) {
            RETURN_FALSE_INTERFACE
        }
    }

Adding some more logging around it, it looks like GLVersionInfo is 3.0 initially and GetProgramResourceFn doesn't get loaded, so when fGetProgramResourceLocation gets copied it's null. In subsequent calls the GLVersionInfo is 4.5 (what!?), I assume this mismatch is why the validation fails at least. I don't see any new loaded libraries so I don't know where the new (or old) versions are coming from:

LoadNativeLibrary: libGL.so.1
dlopen: 0x6d4f31f020
dlerror: (null)
dlsym: 0x7fd3f6556600
dlerror: (null)

[136952:136952:1008/141152.157871:ERROR:gl_implementation.cc(159)] gl::AddNativeLibrary: 0x6d4f31f020
[136952:136952:1008/141152.288068:ERROR:gl_bindings_autogen_gl.cc(54)] glClearFn: 1
[136952:136952:1008/141152.288138:ERROR:gl_bindings_autogen_gl.cc(57)] glClearFn ptr: 0x7fd3f6556600
[136952:136952:1008/141152.288610:ERROR:gl_bindings_autogen_gl.cc(286)] InitializeDynamicBindings, GLVersionInfo: is_es 0 major: 3 minor: 0
[136952:136952:1008/141152.289824:ERROR:create_gr_gl_interface.cc(313)] fGetProgramResourceLocation: 0
[136952:136952:1008/141152.289932:INFO:GrGLInterface.cpp(453)] ../../third_party/skia/src/gpu/gl/GrGLInterface.cpp:453 GrGLInterface::validate() failed.

[136952:136952:1008/141152.332209:ERROR:gl_bindings_autogen_gl.cc(54)] glClearFn: 1
[136952:136952:1008/141152.332333:ERROR:gl_bindings_autogen_gl.cc(57)] glClearFn ptr: 0x7fd3f6556600
[136952:136952:1008/141152.333444:ERROR:gl_bindings_autogen_gl.cc(286)] InitializeDynamicBindings, GLVersionInfo: is_es 0 major: 4 minor: 5
[136952:136952:1008/141152.333665:ERROR:gl_bindings_autogen_gl.cc(1298)] fn.glGetProgramResourceLocationFn: 1
[136952:136952:1008/141152.333751:ERROR:gl_bindings_autogen_gl.cc(1301)] fn.glGetProgramResourceLocationFn ptr: 0x7fd3f655d960
[136952:136952:1008/141152.343358:ERROR:gl_bindings_autogen_gl.cc(54)] glClearFn: 1
[136952:136952:1008/141152.343482:ERROR:gl_bindings_autogen_gl.cc(57)] glClearFn ptr: 0x7fd3f6556600
[136952:136952:1008/141152.344455:ERROR:gl_bindings_autogen_gl.cc(286)] InitializeDynamicBindings, GLVersionInfo: is_es 0 major: 4 minor: 5
[136952:136952:1008/141152.344683:ERROR:gl_bindings_autogen_gl.cc(1298)] fn.glGetProgramResourceLocationFn: 1
[136952:136952:1008/141152.344797:ERROR:gl_bindings_autogen_gl.cc(1301)] fn.glGetProgramResourceLocationFn ptr: 0x7fd3f655d960
[136952:136952:1008/141152.357666:ERROR:gl_bindings_autogen_gl.cc(54)] glClearFn: 1
[136952:136952:1008/141152.357784:ERROR:gl_bindings_autogen_gl.cc(57)] glClearFn ptr: 0x7fd3f6556600
[136952:136952:1008/141152.358739:ERROR:gl_bindings_autogen_gl.cc(286)] InitializeDynamicBindings, GLVersionInfo: is_es 0 major: 4 minor: 5
[136952:136952:1008/141152.358967:ERROR:gl_bindings_autogen_gl.cc(1298)] fn.glGetProgramResourceLocationFn: 1
[136952:136952:1008/141152.359059:ERROR:gl_bindings_autogen_gl.cc(1301)] fn.glGetProgramResourceLocationFn ptr: 0x7fd3f655d960
[136952:136952:1008/141152.371799:ERROR:gl_bindings_autogen_gl.cc(54)] glClearFn: 1
[136952:136952:1008/141152.371945:ERROR:gl_bindings_autogen_gl.cc(57)] glClearFn ptr: 0x7fd3f6556600
[136952:136952:1008/141152.372864:ERROR:gl_bindings_autogen_gl.cc(286)] InitializeDynamicBindings, GLVersionInfo: is_es 0 major: 4 minor: 5
[136952:136952:1008/141152.373088:ERROR:gl_bindings_autogen_gl.cc(1298)] fn.glGetProgramResourceLocationFn: 1
[136952:136952:1008/141152.373171:ERROR:gl_bindings_autogen_gl.cc(1301)] fn.glGetProgramResourceLocationFn ptr: 0x7fd3f655d960

This is affecting my laptop as well, but not my desktop.
Hitting this as well a fairly new gLinux laptop. Actually I have been hitting this on and off for a few weeks and never got around to digging much further.

I did also track it down to glClear, which also appeared to be a valid function pointer, but it crashes somewhere inside (inside the driver I assume?)

Comment 10 Deleted

I am also on a new gLinux laptop and see that if I run with the --no-sandbox flag, I am able to launch and run Chrome OS in Ozone x11 for about a minute before it crashes with a nacl error.
Cc: jmukthavaram@chromium.org
 Issue 909855  has been merged into this issue.
Executing chromium with no parameters causes an immediate crash.
Executing with the parameter --no-sandbox seems to work.
Combining --no-sandbox and --disable-gpu leads to an immediate crash too.
If I've understood correctly, the parameter --no-sandbox should never ever be used in real use.
So, is there anything I could do to contribute solving this issue?
What has sandbox to do with some GPU-related issues or library loading? 
Btw, I'm running a quite fresh install of Ubuntu 18.04 on Lenovo Thinkpad X280.

Sign in to add a comment