brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.99k stars 2.36k forks source link

Brave doesn't start a UI window on Manjaro GNOME #18774

Open putzwasser opened 3 years ago

putzwasser commented 3 years ago

Description

Brave doesn't start correctly. A process gets started, but no UI gets rendered.

Steps to Reproduce

  1. Start brave

Actual result:

No Brave window gets shown.

Expected result:

A Brave window.

Reproduces how often:

Easily reproduced

Brave version (brave://version info)

brave --version
Brave Browser 94.1.30.89

Version/Channel Information:

Other Additional Information:

Miscellaneous Information:

System:

  Kernel: 5.10.70-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
  Desktop: GNOME 40.5 tk: GTK 3.24.30 wm: gnome-shell dm: GDM 40.1
  Distro: Manjaro Linux base: Arch Linux

Terminal output when starting Brave

$ brave

[10933:10933:1014/174540.717235:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is egl, ANGLE is 
[10933:10933:1014/174540.722452:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
[10883:10926:1014/174540.792460:ERROR:component_installer.cc(349)] Failed to read manifest or verify installation for OnDeviceHeadSuggest (/home/USER/.config/BraveSoftware/Brave-Browser/OnDeviceHeadSuggestModel/20210930.400478837).: Success (0)
[10883:10883:1014/174540.931310:ERROR:cursor_loader.cc(115)] Failed to load a platform cursor of type kNull
[10933:10933:1014/174541.260270:ERROR:gl_surface_egl.cc(780)] EGL Driver message (Error) eglCreateImageKHR: dri2_create_image_khr_texture
[10933:10933:1014/174541.260402:ERROR:gl_image_egl.cc(42)] Error creating EGLImage: EGL_BAD_MATCH
[10933:10933:1014/174541.260531:ERROR:gpu_memory_buffer_factory_native_pixmap.cc(267)] Failed to create GLImage 5376x3584, BGRA_8888, usage SCANOUT
[10933:10933:1014/174541.260683:ERROR:gl_surface_egl.cc(780)] EGL Driver message (Error) eglCreateImageKHR: dri2_create_image_khr_texture
[10933:10933:1014/174541.260759:ERROR:gl_image_egl.cc(42)] Error creating EGLImage: EGL_BAD_MATCH
[10933:10933:1014/174541.260850:ERROR:gpu_memory_buffer_factory_native_pixmap.cc(267)] Failed to create GLImage 5376x3584, BGRA_8888, usage GPU_READ
[10933:10933:1014/174541.260927:ERROR:shared_image_backing_factory_gl_image.cc(348)] CreateSharedImage: Failed to create bindable image
[10933:10933:1014/174541.260988:ERROR:shared_image_factory.cc(557)] CreateSharedImage: could not create backing.
[10933:10933:1014/174541.261256:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[10933:10933:1014/174541.268183:ERROR:shared_image_stub.cc(506)] SharedImageStub: context already lost
[10933:10933:1014/174541.269506:ERROR:shared_image_stub.cc(506)] SharedImageStub: context already lost
[10933:10933:1014/174541.271383:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[10883:10883:1014/174541.273387:ERROR:command_buffer_proxy_impl.cc(328)] GPU state invalid after WaitForGetOffsetInRange.
[10883:10999:1014/174541.280968:ERROR:wayland_event_watcher.cc(242)] Fatal Wayland protocol error 7 on interface zwp_linux_buffer_params_v1 (object 50). Shutting down..
[10933:10933:1014/174541.300262:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[10933:10933:1014/174541.300505:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[10933:10933:1014/174541.303414:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
Failed to parse JSON adblock resources: EOF while parsing a value at line 1 column 0
[10933:10933:1014/174541.416293:ERROR:gl_surface_egl.cc(780)] EGL Driver message (Error) eglCreateImageKHR: dri2_create_image_khr_texture
[10933:10933:1014/174541.416431:ERROR:gl_image_egl.cc(42)] Error creating EGLImage: EGL_BAD_MATCH
[10933:10933:1014/174541.416553:ERROR:gpu_memory_buffer_factory_native_pixmap.cc(267)] Failed to create GLImage 5376x3584, BGRA_8888, usage SCANOUT
[10933:10933:1014/174541.416712:ERROR:gl_surface_egl.cc(780)] EGL Driver message (Error) eglCreateImageKHR: dri2_create_image_khr_texture
[10933:10933:1014/174541.416793:ERROR:gl_image_egl.cc(42)] Error creating EGLImage: EGL_BAD_MATCH
[10933:10933:1014/174541.417018:ERROR:gpu_memory_buffer_factory_native_pixmap.cc(267)] Failed to create GLImage 5376x3584, BGRA_8888, usage GPU_READ
[10933:10933:1014/174541.417262:ERROR:shared_image_backing_factory_gl_image.cc(348)] CreateSharedImage: Failed to create bindable image
[10933:10933:1014/174541.417892:ERROR:shared_image_factory.cc(557)] CreateSharedImage: could not create backing.
[10883:10906:1014/174542.015534:ERROR:gpu_process_host.cc(956)] GPU process exited unexpectedly: exit_code=133
[11118:1:1014/174542.046624:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[10974:1:1014/174542.052775:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[11195:11195:1014/174542.106434:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is egl, ANGLE is 
[11195:11195:1014/174542.113735:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
[11195:11195:1014/174542.356909:ERROR:gl_surface_egl.cc(780)] EGL Driver message (Error) eglCreateImageKHR: dri2_create_image_khr_texture
[11195:11195:1014/174542.357035:ERROR:gl_image_egl.cc(42)] Error creating EGLImage: EGL_BAD_MATCH
[11195:11195:1014/174542.357152:ERROR:gpu_memory_buffer_factory_native_pixmap.cc(267)] Failed to create GLImage 5376x3584, BGRA_8888, usage SCANOUT
[11195:11195:1014/174542.357297:ERROR:gl_surface_egl.cc(780)] EGL Driver message (Error) eglCreateImageKHR: dri2_create_image_khr_texture
[11195:11195:1014/174542.357360:ERROR:gl_image_egl.cc(42)] Error creating EGLImage: EGL_BAD_MATCH
[11195:11195:1014/174542.357433:ERROR:gpu_memory_buffer_factory_native_pixmap.cc(267)] Failed to create GLImage 5376x3584, BGRA_8888, usage GPU_READ
[11195:11195:1014/174542.357494:ERROR:shared_image_backing_factory_gl_image.cc(348)] CreateSharedImage: Failed to create bindable image
[11195:11195:1014/174542.357549:ERROR:shared_image_factory.cc(557)] CreateSharedImage: could not create backing.
[11195:11195:1014/174542.358456:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11195:11195:1014/174542.358589:ERROR:raster_decoder.cc(1189)]   RasterDecoderImpl: Context lost during MakeCurrent.
[11195:11195:1014/174542.358700:ERROR:shared_image_stub.cc(506)] SharedImageStub: context already lost
[11195:11195:1014/174542.359427:ERROR:shared_image_stub.cc(506)] SharedImageStub: context already lost
[10883:10883:1014/174542.359495:ERROR:command_buffer_proxy_impl.cc(328)] GPU state invalid after WaitForGetOffsetInRange.
[11195:11195:1014/174542.366139:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11195:11195:1014/174542.366243:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11195:11195:1014/174542.366341:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11195:11195:1014/174542.366411:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11195:11195:1014/174542.366490:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11195:11195:1014/174542.366581:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11195:11195:1014/174542.366687:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11195:11195:1014/174542.366790:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11195:11195:1014/174542.372889:ERROR:raster_decoder.cc(1189)]   RasterDecoderImpl: Context lost during MakeCurrent.
[11195:11195:1014/174542.373949:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11195:11195:1014/174542.374116:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11195:11195:1014/174542.382857:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11195:11195:1014/174542.383061:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11195:11195:1014/174542.383227:ERROR:shared_image_stub.cc(506)] SharedImageStub: context already lost
[11118:1:1014/174542.383384:ERROR:command_buffer_proxy_impl.cc(328)] GPU state invalid after WaitForGetOffsetInRange.
[11195:11195:1014/174542.384152:ERROR:shared_image_stub.cc(506)] SharedImageStub: context already lost
[11195:11195:1014/174542.384302:ERROR:shared_image_stub.cc(506)] SharedImageStub: context already lost
[10974:1:1014/174542.384513:ERROR:command_buffer_proxy_impl.cc(328)] GPU state invalid after WaitForGetOffsetInRange.
[11118:1:1014/174542.384585:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[11195:11195:1014/174542.385143:ERROR:shared_image_stub.cc(506)] SharedImageStub: context already lost
[10974:1:1014/174542.385486:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[11195:11195:1014/174542.466635:ERROR:gl_surface_egl.cc(780)] EGL Driver message (Error) eglCreateImageKHR: dri2_create_image_khr_texture
[11195:11195:1014/174542.466792:ERROR:gl_image_egl.cc(42)] Error creating EGLImage: EGL_BAD_MATCH
[11195:11195:1014/174542.466875:ERROR:gpu_memory_buffer_factory_native_pixmap.cc(267)] Failed to create GLImage 5376x3584, BGRA_8888, usage SCANOUT
[11195:11195:1014/174542.466992:ERROR:gl_surface_egl.cc(780)] EGL Driver message (Error) eglCreateImageKHR: dri2_create_image_khr_texture
[11195:11195:1014/174542.467051:ERROR:gl_image_egl.cc(42)] Error creating EGLImage: EGL_BAD_MATCH
[11195:11195:1014/174542.467144:ERROR:gpu_memory_buffer_factory_native_pixmap.cc(267)] Failed to create GLImage 5376x3584, BGRA_8888, usage GPU_READ
[11195:11195:1014/174542.467219:ERROR:shared_image_backing_factory_gl_image.cc(348)] CreateSharedImage: Failed to create bindable image
[11195:11195:1014/174542.467282:ERROR:shared_image_factory.cc(557)] CreateSharedImage: could not create backing.
[10974:1:1014/174543.143202:ERROR:command_buffer_proxy_impl.cc(328)] GPU state invalid after WaitForGetOffsetInRange.
[11118:1:1014/174543.143225:ERROR:command_buffer_proxy_impl.cc(328)] GPU state invalid after WaitForGetOffsetInRange.
[10883:10906:1014/174543.174615:ERROR:gpu_process_host.cc(956)] GPU process exited unexpectedly: exit_code=133
[11248:11248:1014/174543.260759:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is egl, ANGLE is 
[11248:11248:1014/174543.265216:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
[11248:11248:1014/174543.398931:ERROR:gl_surface_egl.cc(780)] EGL Driver message (Error) eglCreateImageKHR: dri2_create_image_khr_texture
[11248:11248:1014/174543.399039:ERROR:gl_image_egl.cc(42)] Error creating EGLImage: EGL_BAD_MATCH
[11248:11248:1014/174543.399137:ERROR:gpu_memory_buffer_factory_native_pixmap.cc(267)] Failed to create GLImage 5376x3584, BGRA_8888, usage SCANOUT
[11248:11248:1014/174543.399254:ERROR:gl_surface_egl.cc(780)] EGL Driver message (Error) eglCreateImageKHR: dri2_create_image_khr_texture
[11248:11248:1014/174543.399318:ERROR:gl_image_egl.cc(42)] Error creating EGLImage: EGL_BAD_MATCH
[11248:11248:1014/174543.399396:ERROR:gpu_memory_buffer_factory_native_pixmap.cc(267)] Failed to create GLImage 5376x3584, BGRA_8888, usage GPU_READ
[11248:11248:1014/174543.399450:ERROR:shared_image_backing_factory_gl_image.cc(348)] CreateSharedImage: Failed to create bindable image
[11248:11248:1014/174543.399501:ERROR:shared_image_factory.cc(557)] CreateSharedImage: could not create backing.
[11248:11248:1014/174543.399716:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11248:11248:1014/174543.399813:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11248:11248:1014/174543.399885:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11248:11248:1014/174543.399977:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11248:11248:1014/174543.400045:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11248:11248:1014/174543.410786:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11248:11248:1014/174543.410948:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11248:11248:1014/174543.411168:ERROR:raster_decoder.cc(1189)]   RasterDecoderImpl: Context lost during MakeCurrent.
[11248:11248:1014/174543.415003:ERROR:shared_image_stub.cc(506)] SharedImageStub: context already lost
[10974:1:1014/174543.415277:ERROR:command_buffer_proxy_impl.cc(328)] GPU state invalid after WaitForGetOffsetInRange.
[11248:11248:1014/174543.418716:ERROR:shared_image_stub.cc(506)] SharedImageStub: context already lost
[10974:1:1014/174543.419200:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[11248:11248:1014/174543.422144:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11248:11248:1014/174543.422321:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11248:11248:1014/174543.422948:ERROR:raster_decoder.cc(1189)]   RasterDecoderImpl: Context lost during MakeCurrent.
[11248:11248:1014/174543.424854:ERROR:raster_decoder.cc(1189)]   RasterDecoderImpl: Context lost during MakeCurrent.
[11248:11248:1014/174543.425263:ERROR:raster_decoder.cc(1189)]   RasterDecoderImpl: Context lost during MakeCurrent.
[11248:11248:1014/174543.425588:ERROR:shared_image_stub.cc(506)] SharedImageStub: context already lost
[11248:11248:1014/174543.426395:ERROR:shared_image_stub.cc(506)] SharedImageStub: context already lost
[11248:11248:1014/174543.426941:ERROR:shared_image_stub.cc(506)] SharedImageStub: context already lost
[11248:11248:1014/174543.428037:ERROR:shared_image_stub.cc(506)] SharedImageStub: context already lost
[10883:10883:1014/174543.431312:ERROR:command_buffer_proxy_impl.cc(328)] GPU state invalid after WaitForGetOffsetInRange.
[11248:11248:1014/174543.443707:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11248:11248:1014/174543.443939:ERROR:skia_output_surface_impl_on_gpu.cc(1554)] Failed to make current.
[11248:11248:1014/174543.517275:ERROR:gl_surface_egl.cc(780)] EGL Driver message (Error) eglCreateImageKHR: dri2_create_image_khr_texture
[11248:11248:1014/174543.517373:ERROR:gl_image_egl.cc(42)] Error creating EGLImage: EGL_BAD_MATCH
[11248:11248:1014/174543.517456:ERROR:gpu_memory_buffer_factory_native_pixmap.cc(267)] Failed to create GLImage 5376x3584, BGRA_8888, usage SCANOUT
[11248:11248:1014/174543.517606:ERROR:gl_surface_egl.cc(780)] EGL Driver message (Error) eglCreateImageKHR: dri2_create_image_khr_texture
[11248:11248:1014/174543.517671:ERROR:gl_image_egl.cc(42)] Error creating EGLImage: EGL_BAD_MATCH
[11248:11248:1014/174543.517769:ERROR:gpu_memory_buffer_factory_native_pixmap.cc(267)] Failed to create GLImage 5376x3584, BGRA_8888, usage GPU_READ
[11248:11248:1014/174543.517843:ERROR:shared_image_backing_factory_gl_image.cc(348)] CreateSharedImage: Failed to create bindable image
[11248:11248:1014/174543.517927:ERROR:shared_image_factory.cc(557)] CreateSharedImage: could not create backing.
[11013:7:1014/174544.137921:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[11026:7:1014/174544.138009:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[10883:10906:1014/174544.175122:ERROR:gpu_process_host.cc(956)] GPU process exited unexpectedly: exit_code=133
[10883:10883:1014/174544.176909:ERROR:command_buffer_proxy_impl.cc(328)] GPU state invalid after WaitForGetOffsetInRange.
[11292:11292:1014/174544.222254:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is 
[11292:11292:1014/174544.227215:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
[11013:7:1014/174544.234420:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[11026:7:1014/174544.234641:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[11000:7:1014/174544.236125:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[10883:10905:1014/174545.324650:ERROR:chrome_browser_main_extra_parts_metrics.cc(228)] crbug.com/1216328: Checking Bluetooth availability started. Please report if there is no report that this ends.
[10883:10905:1014/174545.324685:ERROR:chrome_browser_main_extra_parts_metrics.cc(231)] crbug.com/1216328: Checking Bluetooth availability ended.
[10883:10905:1014/174545.324695:ERROR:chrome_browser_main_extra_parts_metrics.cc(234)] crbug.com/1216328: Checking default browser status started. Please report if there is no report that this ends.
[10883:10905:1014/174545.442566:ERROR:chrome_browser_main_extra_parts_metrics.cc(238)] crbug.com/1216328: Checking default browser status ended.
[10883:10883:1014/174546.460097:ERROR:object_proxy.cc(642)] Failed to call method: org.freedesktop.ScreenSaver.GetActive: object_path= /org/freedesktop/ScreenSaver: org.freedesktop.DBus.Error.NotSupported: This method is not implemented
[10883:10883:1014/174546.465095:ERROR:object_proxy.cc(642)] Failed to call method: org.gnome.ScreenSaver.GetActive: object_path= /: org.freedesktop.DBus.Error.UnknownMethod: Object doesn't exist at »/«
fmarier commented 3 years ago

I assume you installed Brave following these instructions?

Do you have brave://flags/#ignore-gpu-blocklist enabled or disabled? Screenshot from 2021-10-19 16-49-29

putzwasser commented 3 years ago

It is enabled.

I installed it like described in the link, yes.

This bug/behavior doesn't occur every time. It seems to depend on something during boot. Sometimes Brave works, sometimes it doesn't.

fmarier commented 3 years ago

Ok, I would suggest you disable that flag. The GPU blocklist exists to disable hardware acceleration on GPUs / drivers that are known to cause problems. Using software rendering might fix the stability issues you are seeing.

putzwasser commented 3 years ago

I tried to start brave using brave --ignore-gpu-blacklist --enable-features=UseOzonePlatform --ozone-platform=wayland when it didn't create an UI. It didn't help. Steps: Start brave => no UI => sudo killall brave => brave --ignore-gpu-blacklist --enable-features=UseOzonePlatform --ozone-platform=wayland The only thing that helps is one (or more) restarts.

Hugo-Trentesaux commented 9 months ago

The only thing that helps is one (or more) restarts.

One was enough >< @poka-IT