Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

browser lagged on niri but not on hyprland #313

Open
glyh opened this issue Apr 27, 2024 · 4 comments
Open

browser lagged on niri but not on hyprland #313

glyh opened this issue Apr 27, 2024 · 4 comments
Labels
bug Something isn't working question Further information is requested

Comments

@glyh
Copy link

glyh commented Apr 27, 2024

When starting thorium(a chrome fork), I have to wait for ~10 sec before the browser showed itself. The same case doesn't happen to Hyprland.

The log is as following:

The fastest browser on Earth.
src/nv_gbm.c:288: GBM-DRV error (nv_gbm_create_device_native): nv_common_gbm_create_device failed (ret=-1)

[5526:5526:0427/090443.351933:ERROR:policy_logger.cc(157)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(161) Cloud management controller initialization aborted as CBCM is not enabled. Please use the `--enable-chrome-browser-cloud-management` command line flag to enable it if you are not using the official Google Chrome build.
[5526:5526:0427/090443.554581:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.ScreenSaver.GetActive: object_path= /org/freedesktop/ScreenSaver: org.freedesktop.DBus.Error.UnknownMethod: Unknown method 'GetActive'
src/nv_gbm.c:288: GBM-DRV error (nv_gbm_create_device_native): nv_common_gbm_create_device failed (ret=-1)

INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
src/nv_gbm.c:288: GBM-DRV error (nv_gbm_create_device_native): nv_common_gbm_create_device failed (ret=-1)

[5573:5573:0427/090446.111793:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[5573:5573:0427/090446.111902:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[5573:5573:0427/090446.111982:ERROR:shared_image_factory.cc(999)] CreateSharedImage: could not create backing.
[5573:5573:0427/090446.112054:ERROR:shared_image_factory.cc(765)] DestroySharedImage: Could not find shared image mailbox
[5573:5573:0427/090446.112195:ERROR:gpu_service_impl.cc(1153)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[5684:1:0427/090446.117252:ERROR:command_buffer_proxy_impl.cc(323)] GPU state invalid after WaitForGetOffsetInRange.
[5526:5526:0427/090446.126014:ERROR:gpu_process_host.cc(1002)] GPU process exited unexpectedly: exit_code=8704
src/nv_gbm.c:288: GBM-DRV error (nv_gbm_create_device_native): nv_common_gbm_create_device failed (ret=-1)

src/nv_gbm.c:288: GBM-DRV error (nv_gbm_create_device_native): nv_common_gbm_create_device failed (ret=-1)

[5891:5891:0427/090449.153046:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[5891:5891:0427/090449.153113:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[5891:5891:0427/090449.153160:ERROR:shared_image_factory.cc(999)] CreateSharedImage: could not create backing.
[5891:5891:0427/090449.153203:ERROR:shared_image_factory.cc(765)] DestroySharedImage: Could not find shared image mailbox
[5891:5891:0427/090449.153285:ERROR:gpu_service_impl.cc(1153)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[5526:5526:0427/090449.158108:ERROR:gpu_process_host.cc(1002)] GPU process exited unexpectedly: exit_code=8704
src/nv_gbm.c:288: GBM-DRV error (nv_gbm_create_device_native): nv_common_gbm_create_device failed (ret=-1)

src/nv_gbm.c:288: GBM-DRV error (nv_gbm_create_device_native): nv_common_gbm_create_device failed (ret=-1)

[5926:5926:0427/090452.166050:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[5926:5926:0427/090452.166220:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[5926:5926:0427/090452.166315:ERROR:shared_image_factory.cc(999)] CreateSharedImage: could not create backing.
[5926:5926:0427/090452.166336:ERROR:shared_image_factory.cc(765)] DestroySharedImage: Could not find shared image mailbox
[5926:5926:0427/090452.166405:ERROR:gpu_service_impl.cc(1153)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[5710:1:0427/090452.169798:ERROR:command_buffer_proxy_impl.cc(323)] GPU state invalid after WaitForGetOffsetInRange.
[5526:5526:0427/090452.172589:ERROR:gpu_process_host.cc(1002)] GPU process exited unexpectedly: exit_code=8704
src/nv_gbm.c:288: GBM-DRV error (nv_gbm_create_device_native): nv_common_gbm_create_device failed (ret=-1)

[5955:5955:0427/090455.732874:ERROR:angle_platform_impl.cc(44)] RendererVk.cpp:203 (VerifyExtensionsPresent): Extension not supported: VK_EXT_headless_surface
ERR: RendererVk.cpp:203 (VerifyExtensionsPresent): Extension not supported: VK_EXT_headless_surface
[5955:5955:0427/090455.732988:ERROR:angle_platform_impl.cc(44)] Display.cpp:1070 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, enableInstanceExtensions:1715.
ERR: Display.cpp:1070 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, enableInstanceExtensions:1715.
[5955:5955:0427/090455.733015:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, enableInstanceExtensions:1715.
[5955:5955:0427/090455.733029:ERROR:gl_display.cc(786)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[5955:5955:0427/090455.733043:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed.
[5955:5955:0427/090455.733058:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[5955:5955:0427/090457.562471:ERROR:angle_platform_impl.cc(44)] RendererVk.cpp:203 (VerifyExtensionsPresent): Extension not supported: VK_EXT_headless_surface
ERR: RendererVk.cpp:203 (VerifyExtensionsPresent): Extension not supported: VK_EXT_headless_surface
[5955:5955:0427/090457.562598:ERROR:angle_platform_impl.cc(44)] Display.cpp:1070 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, enableInstanceExtensions:1715.
ERR: Display.cpp:1070 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, enableInstanceExtensions:1715.
[5955:5955:0427/090457.562672:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, enableInstanceExtensions:1715.
[5955:5955:0427/090457.562751:ERROR:gl_display.cc(786)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[5955:5955:0427/090457.562847:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed.
[5955:5955:0427/090457.562941:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[5955:5955:0427/090457.564023:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
src/nv_gbm.c:288: GBM-DRV error (nv_gbm_create_device_native): nv_common_gbm_create_device failed (ret=-1)

[5597:1:0427/090513.088911:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

System Information

  • niri version:
niri 0.1.5 (6a80078)
  • lspci
00:00.0 Host bridge: Intel Corporation 12th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
00:01.0 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x16 Controller #1 (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Alder Lake-P GT1 [UHD Graphics] (rev 0c)
00:04.0 Signal processing controller: Intel Corporation Alder Lake Innovation Platform Framework Processor Participant (rev 02)
00:06.0 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x4 Controller #0 (rev 02)
00:08.0 System peripheral: Intel Corporation 12th Gen Core Processor Gaussian & Neural Accelerator (rev 02)
00:0a.0 Signal processing controller: Intel Corporation Platform Monitoring Technology (rev 01)
00:14.0 USB controller: Intel Corporation Alder Lake PCH USB 3.2 xHCI Host Controller (rev 01)
00:14.2 RAM memory: Intel Corporation Alder Lake PCH Shared SRAM (rev 01)
00:14.3 Network controller: Intel Corporation Alder Lake-P PCH CNVi WiFi (rev 01)
00:15.0 Serial bus controller: Intel Corporation Alder Lake PCH Serial IO I2C Controller #0 (rev 01)
00:16.0 Communication controller: Intel Corporation Alder Lake PCH HECI Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation Alder Lake PCH-P PCI Express Root Port #9 (rev 01)
00:1f.0 ISA bridge: Intel Corporation Alder Lake PCH eSPI Controller (rev 01)
00:1f.3 Audio device: Intel Corporation Alder Lake PCH-P High Definition Audio Controller (rev 01)
00:1f.4 SMBus: Intel Corporation Alder Lake PCH-P SMBus Host Controller (rev 01)
00:1f.5 Serial bus controller: Intel Corporation Alder Lake-P PCH SPI Controller (rev 01)
01:00.0 VGA compatible controller: NVIDIA Corporation AD107M [GeForce RTX 4060 Max-Q / Mobile] (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 22be (rev a1)
02:00.0 Non-Volatile memory controller: Yangtze Memory Technologies Co.,Ltd PC300 NVMe SSD (DRAM-less) (rev 03)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 15)
@glyh glyh added the bug Something isn't working label Apr 27, 2024
@YaLTeR
Copy link
Owner

YaLTeR commented Apr 27, 2024

~10 sec

That sounds suspiciously like a D-Bus timeout. Do you have D-Bus properly working in niri?

@glyh
Copy link
Author

glyh commented Apr 27, 2024

I don't know, does the log implies so? BTW the log start to spit instantaneously when I launched throium.

@YaLTeR YaLTeR added the question Further information is requested label Apr 30, 2024
@YaLTeR
Copy link
Owner

YaLTeR commented May 5, 2024

If you use systemd, then make sure you're starting niri-session. If you're not using systemd, then you need something along dbus-run-session -- niri --session.

@YaLTeR
Copy link
Owner

YaLTeR commented May 21, 2024

Any news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants