Closed etna closed 4 years ago
Please, add use_system_minigbm=true
Please, add use_system_minigbm=true
Tried building with it, same results:
[26632:26632:0223/172703.474326:ERROR:wayland_connection.cc(409)] No data device manager. Clipboard won't be fully functional [26632:26632:0223/172703.632167:ERROR:desktop_window_tree_host_platform.cc(433)] Not implemented reached in virtual void views::DesktopWindowTreeHostPlatform::InitModalType(ui::ModalType) [26632:26632:0223/172703.632269:ERROR:desktop_window_tree_host_platform.cc(443)] Not implemented reached in virtual bool views::DesktopWindowTreeHostPlatform::IsAnimatingClosed() const [26632:26632:0223/172703.653133:ERROR:desktop_window_tree_host_platform.cc(456)] Not implemented reached in virtual void views::DesktopWindowTreeHostPlatform::SizeConstraintsChanged() [26658:26658:0223/172703.835005:ERROR:sandbox_linux.cc(369)] InitializeSandbox() called with multiple threads in process gpu-process. [26632:26632:0223/172703.855613:ERROR:desktop_window_tree_host_platform.cc(427)] Not implemented reached in virtual void views::DesktopWindowTreeHostPlatform::SetWindowIcons(const gfx::ImageSkia &, const gfx::ImageSkia &) [26632:26632:0223/172703.855685:ERROR:desktop_window_tree_host_platform.cc(360)] Not implemented reached in virtual bool views::DesktopWindowTreeHostPlatform::SetWindowTitle(const base::string16 &) [26632:26632:0223/172703.875018:ERROR:desktop_window_tree_host_platform.cc(298)] Not implemented reached in virtual void views::DesktopWindowTreeHostPlatform::Activate() [26632:26632:0223/172703.876994:ERROR:desktop_window_tree_host_platform.cc(209)] Not implemented reached in virtual bool views::DesktopWindowTreeHostPlatform::IsVisible() const Received signal 11 SEGV_MAPERR 000000000000
r8: 0000000000000000 r9: 00000db9b268a440 r10: 0000000000000000 r11: 0000562d5f298020 r12: 0000000000000000 r13: 0000000000000000 r14: 00007f23a9fc0e00 r15: 00000db9b25b6540 di: 0000000000000038 si: 0000000000000004 bp: 00007f23a9fc0de0 bx: 00000db9b28cb440 dx: 0000000000000007 ax: 00000db9b2545cc0 cx: 0000562d5f0e6ff8 sp: 00007f23a9fc0dc0 ip: 0000562d58fbd067 efl: 0000000000010202 cgf: 002b000000000033 erf: 0000000000000004 trp: 000000000000000e msk: 0000000000000000 cr2: 0000000000000000 [end of stack trace] Calling _exit(1). Core file will not be generated. [26632:26632:0223/172704.165357:ERROR:wayland_connection_connector.cc(49)] Not implemented reached in virtual void ui::WaylandConnectionConnector::OnChannelDestroyed(int) [26730:26730:0223/172704.520636:ERROR:sandbox_linux.cc(369)] InitializeSandbox() called with multiple threads in process gpu-process. Received signal 11 SEGV_MAPERR 000000000000
r8: 0000000000000000 r9: 00001ce512fb9f50 r10: 0000000000000000 r11: 000055ff6c672020 r12: 0000000000000000 r13: 0000000000000000 r14: 00007fbcbd4b3df0 r15: 00001ce512c89540 di: 0000000000000038 si: 0000000000000004 bp: 00007fbcbd4b3dd0 bx: 00001ce512fb8ec0 dx: 0000000000000007 ax: 00001ce512c18cc0 cx: 000055ff6c4c0ff8 sp: 00007fbcbd4b3db0 ip: 000055ff66397067 efl: 0000000000010206 cgf: 002b000000000033 erf: 0000000000000004 trp: 000000000000000e msk: 0000000000000000 cr2: 0000000000000000 [end of stack trace] Calling _exit(1). Core file will not be generated. [26632:26632:0223/172704.786358:ERROR:wayland_connection_connector.cc(49)] Not implemented reached in virtual void ui::WaylandConnectionConnector::OnChannelDestroyed(int) [26762:26762:0223/172705.117321:ERROR:sandbox_linux.cc(369)] InitializeSandbox() called with multiple threads in process gpu-process. Received signal 11 SEGV_MAPERR 000000000000
r8: 0000000000000000 r9: 000004121540a1b0 r10: 0000000000000000 r11: 000055c064426020 r12: 0000000000000000 r13: 0000000000000000 r14: 00007f36208fddf0 r15: 0000041215335540 di: 0000000000000038 si: 0000000000000004 bp: 00007f36208fddd0 bx: 0000041215647b00 dx: 0000000000000007 ax: 00000412152c4cc0 cx: 000055c064274ff8 sp: 00007f36208fddb0 ip: 000055c05e14b067 efl: 0000000000010206 cgf: 002b000000000033 erf: 0000000000000004 trp: 000000000000000e msk: 0000000000000000 cr2: 0000000000000000 [end of stack trace] Calling _exit(1). Core file will not be generated. [26632:26632:0223/172705.379353:ERROR:wayland_connection_connector.cc(49)] Not implemented reached in virtual void ui::WaylandConnectionConnector::OnChannelDestroyed(int) Received signal 11 SEGV_MAPERR 000000000000
r8: 0000000000000000 r9: 0000077b8b854c40 r10: 0000000000000000 r11: 00005570f3e05020 r12: 0000000000000000 r13: 0000000000000000 r14: 00007fca93852df0 r15: 0000077b8b818540 di: 0000000000000038 si: 0000000000000004 bp: 00007fca93852dd0 bx: 0000077b8b846400 dx: 0000000000000007 ax: 0000077b8b7a7cc0 cx: 00005570f3c53ff8 sp: 00007fca93852db0 ip: 00005570edb2a067 efl: 0000000000010206 cgf: 002b000000000033 erf: 0000000000000004 trp: 000000000000000e msk: 0000000000000000 cr2: 0000000000000000 [end of stack trace] Calling _exit(1). Core file will not be generated. [26632:26632:0223/172705.846246:ERROR:wayland_connection_connector.cc(49)] Not implemented reached in virtual void ui::WaylandConnectionConnector::OnChannelDestroyed(int) Received signal 11 SEGV_MAPERR 000000000000
r8: 0000000000000000 r9: 000007c2438be9d0 r10: 0000000000000000 r11: 0000563f7b3c9020 r12: 0000000000000000 r13: 0000000000000000 r14: 00007faff0e07df0 r15: 000007c24387e540 di: 0000000000000038 si: 0000000000000004 bp: 00007faff0e07dd0 bx: 000007c2438ad100 dx: 0000000000000007 ax: 000007c24380dcc0 cx: 0000563f7b217ff8 sp: 00007faff0e07db0 ip: 0000563f750ee067 efl: 0000000000010206 cgf: 002b000000000033 erf: 0000000000000004 trp: 000000000000000e msk: 0000000000000000 cr2: 0000000000000000 [end of stack trace] Calling _exit(1). Core file will not be generated. [26632:26632:0223/172706.305423:ERROR:wayland_connection_connector.cc(49)] Not implemented reached in virtual void ui::WaylandConnectionConnector::OnChannelDestroyed(int) Received signal 11 SEGV_MAPERR 000000000000
r8: 0000000000000000 r9: 0000221167dc5b60 r10: 0000000000000000 r11: 00005621f0b70020 r12: 0000000000000000 r13: 0000000000000000 r14: 00007f9c6bc04df0 r15: 0000221167d88540 di: 0000000000000038 si: 0000000000000004 bp: 00007f9c6bc04dd0 bx: 0000221167db7400 dx: 0000000000000007 ax: 0000221167d17cc0 cx: 00005621f09beff8 sp: 00007f9c6bc04db0 ip: 00005621ea895067 efl: 0000000000010206 cgf: 002b000000000033 erf: 0000000000000004 trp: 000000000000000e msk: 0000000000000000 cr2: 0000000000000000 [end of stack trace] Calling _exit(1). Core file will not be generated. [26632:26632:0223/172706.774097:ERROR:wayland_connection_connector.cc(49)] Not implemented reached in virtual void ui::WaylandConnectionConnector::OnChannelDestroyed(int) Received signal 11 SEGV_MAPERR 000000000000
r8: 0000000000000000 r9: 000024dd384da8a0 r10: 0000000000000000 r11: 000055e3d7929020 r12: 000024dd38239ee0 r13: 0000000000000000 r14: 00007fb4bd15bf80 r15: 0000000000000003 di: 000024dd37833a00 si: 0000000000000000 bp: 00007fb4bd15bf40 bx: 0000000000000000 dx: 000055e3d7dae750 ax: 0000000000000000 cx: 000055e3d7777a48 sp: 00007fb4bd15bde0 ip: 000055e3d4791167 efl: 0000000000010246 cgf: 002b000000000033 erf: 0000000000000004 trp: 000000000000000e msk: 0000000000000000 cr2: 0000000000000000 [end of stack trace] Calling _exit(1). Core file will not be generated.
first of all, you either run chromium with wrong gl implementation (swiftshader), which crashes at the moment (the patch to fix the software rendering is under review in the upstream), or your system doesn’t haven’t gbm, which results in falling back to software composition when a separate gpu process is spawn (though, there is no a message about that), or you have wayland gbm disabled (use_wayland_gbm=true must be set automatically), or you have zwp Linux dmabuf interface unavailable.
All these cases are fixed and patches are under review now.
Can I also know the flags you pass to run chromium? Maybe, you need to pass —ignore-gpu-blacklist?
first of all, you either run chromium with wrong gl implementation (swiftshader), which crashes at the moment (the patch to fix the software rendering is under review in the upstream), or your system doesn’t haven’t gbm, which results in falling back to software composition when a separate gpu process is spawn (though, there is no a message about that), or you have wayland gbm disabled (use_wayland_gbm=true must be set automatically), or you have zwp Linux dmabuf interface unavailable.
All these cases are fixed and patches are under review now.
Can I also know the flags you pass to run chromium? Maybe, you need to pass —ignore-gpu-blacklist?
I'm on OpenSuse 15.0 with the Nouveau drivers. GBM is already installed:
Results of zypper -v search gbm
:
S | Name | Summary | Type
--+--------------------+-----------------------------------+--------
i | libgbm-devel | Development files for the EGL API | package
| libgbm-devel-32bit | Development files for the EGL API | package
i | libgbm1 | Generic buffer management API | package
| libgbm1-32bit | Generic buffer management API | package
Also, I'm not passing any special run flags to Chromium beyond --ozone-platform=wayland
.
I tried adding —ignore-gpu-blacklist
without any results too.
One weird thing is that I can't see anything suspicious from the logs.
Can you please add logs to https://github.com/Igalia/chromium/blob/ozone-wayland-dev/ui/ozone/platform/wayland/gpu/wayland_connection_proxy.h#L76 to make sure gbm device is set. then to https://github.com/Igalia/chromium/blob/ozone-wayland-dev/ui/ozone/platform/wayland/wayland_surface_factory.cc#L38 where it returns nullptr.
Also, can you try switching to system libdrm? I identified some issues and it might be connected. The flag is use_system_libdrm=true
Finally got a chance to test.
GN args:
ffmpeg_branding="Chrome" proprietary_codecs=true remove_webcore_debug_symbols=true symbol_level=0 treat_warnings_as_errors=false target_cpu="x64" use_ozone=true use_system_minigbm=true use_xkbcommon=true is_debug=false enable_nacl=false use_wayland_gbm=true use_system_libdrm=true
Output:
etna@linux-oieh:~/Runtime/Applications/ChromiumWayland/Build3Mar2019-NotWorking/out> LD_LIBRARY_PATH=/home/etna/Runtime/lib:/home/etna/Runtime/lib64:$LD_LIBRARY_PATH PATH=/home/etna/Runtime/bin:$PATH ./chrome --ozone-platform=wayland
[3742:3742:0324/123527.742213:ERROR:wayland_connection.cc(457)] No data device manager. Clipboard won't be fully functional
[3742:3742:0324/123527.939635:ERROR:desktop_window_tree_host_platform.cc(439)] Not implemented reached in virtual void views::DesktopWindowTreeHostPlatform::InitModalType(ui::ModalType)
[3742:3742:0324/123527.939716:ERROR:desktop_window_tree_host_platform.cc(449)] Not implemented reached in virtual bool views::DesktopWindowTreeHostPlatform::IsAnimatingClosed() const
[3742:3742:0324/123527.960158:ERROR:desktop_window_tree_host_platform.cc(462)] Not implemented reached in virtual void views::DesktopWindowTreeHostPlatform::SizeConstraintsChanged()
[3742:3742:0324/123528.130553:ERROR:desktop_window_tree_host_platform.cc(433)] Not implemented reached in virtual void views::DesktopWindowTreeHostPlatform::SetWindowIcons(const gfx::ImageSkia &, const gfx::ImageSkia &)
[3742:3742:0324/123528.130628:ERROR:desktop_window_tree_host_platform.cc(366)] Not implemented reached in virtual bool views::DesktopWindowTreeHostPlatform::SetWindowTitle(const base::string16 &)
[3742:3742:0324/123528.150544:ERROR:desktop_window_tree_host_platform.cc(304)] Not implemented reached in virtual void views::DesktopWindowTreeHostPlatform::Activate()
[3742:3742:0324/123528.152596:ERROR:desktop_window_tree_host_platform.cc(215)] Not implemented reached in virtual bool views::DesktopWindowTreeHostPlatform::IsVisible() const
[3767:3767:0324/123528.202253:ERROR:sandbox_linux.cc(369)] InitializeSandbox() called with multiple threads in process gpu-process.
[3767:3825:0324/123528.267298:ERROR:wayland_canvas_surface.cc(85)] Not implemented reached in virtual std::unique_ptr<gfx::VSyncProvider> ui::WaylandCanvasSurface::CreateVSyncProvider()
[1:7:0324/123528.320309:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
No protocol specified
No protocol specified
xcb_connection_has_error() returned true
After 'xcb_connection_has_error() returned true' is shown, nothing happens. No window, no additional statuses. Just...nothing. Have to Ctrl-C to kill the task.
Here's what's returned by ps aux
when attempting to run:
etna@linux-oieh:~> ps aux | grep chrome
etna 3868 3.4 0.0 606472 121496 pts/5 Sl+ 12:35 0:01 /home/etna/Runtime/Applications/ChromiumWayland/Build3Mar2019-NotWorking/out/chrome --ozone-platform=wayland
etna 3871 0.0 0.0 342536 41888 pts/5 S+ 12:35 0:00 /home/etna/Runtime/Applications/ChromiumWayland/Build3Mar2019-NotWorking/out/chrome --type=zygote
etna 3873 0.0 0.0 342536 11496 pts/5 S+ 12:35 0:00 /home/etna/Runtime/Applications/ChromiumWayland/Build3Mar2019-NotWorking/out/chrome --type=zygote
etna 3894 1.1 0.0 661716 103384 pts/5 Sl+ 12:35 0:00 /home/etna/Runtime/Applications/ChromiumWayland/Build3Mar2019-NotWorking/out/chrome --type=gpu-process --field-trial-handle=11930041229795616963,84814354585049725,131072 --ozone-platform=wayland --gpu-preferences=KAAAAAAAAAAgAAAgAQAAAAAAAAAAAGAAAAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAA --service-request-channel-token=12668523735353324264
etna 3927 1.6 0.0 667108 98524 pts/5 Sl+ 12:35 0:00 /home/etna/Runtime/Applications/ChromiumWayland/Build3Mar2019-NotWorking/out/chrome --type=renderer --ozone-platform=wayland --field-trial-handle=11930041229795616963,84814354585049725,131072 --lang=en-US --instant-process --enable-offline-auto-reload --enable-offline-auto-reload-visible-only --num-raster-threads=4 --enable-main-frame-before-activation --service-request-channel-token=18072352816979474898 --renderer-client-id=4 --no-v8-untrusted-code-mitigations --shared-files=v8_context_snapshot_data:100,v8_natives_data:101
etna 3952 0.0 0.0 576324 43616 pts/5 Sl+ 12:35 0:00 /home/etna/Runtime/Applications/ChromiumWayland/Build3Mar2019-NotWorking/out/chrome --type=renderer --ozone-platform=wayland --field-trial-handle=11930041229795616963,84814354585049725,131072 --lang=en-US --enable-offline-auto-reload --enable-offline-auto-reload-visible-only --num-raster-threads=4 --enable-main-frame-before-activation --service-request-channel-token=17399243848249776471 --renderer-client-id=5 --no-v8-untrusted-code-mitigations --shared-files=v8_context_snapshot_data:100,v8_natives_data:101
etna 3974 0.1 0.0 670740 48664 pts/5 Sl+ 12:35 0:00 /home/etna/Runtime/Applications/ChromiumWayland/Build3Mar2019-NotWorking/out/chrome --type=utility --field-trial-handle=11930041229795616963,84814354585049725,131072 --lang=en-US --service-sandbox-type=audio --service-request-channel-token=13538486441820458483 --shared-files=v8_context_snapshot_data:100,v8_natives_data:101
etna 3975 0.0 0.0 366332 10476 pts/5 S+ 12:35 0:00 /home/etna/Runtime/Applications/ChromiumWayland/Build3Mar2019-NotWorking/out/chrome --type=utility --field-trial-handle=11930041229795616963,84814354585049725,131072 --lang=en-US --service-sandbox-type=audio --service-request-channel-token=13538486441820458483 --shared-files=v8_context_snapshot_data:100,v8_natives_data:101
--no-sandbox --user-data-dir=$(mktemp -d)
?And please, make sure you're running with latest ToT. From the logs, it looks like you're running a pretty old version, since that's been removed in https://crrev.com/c/1487853 ~1 month ago.
[3742:3742:0324/123527.742213:ERROR:wayland_connection.cc(457)] No data device manager. Clipboard won't be fully functional
And please, make sure you're running with latest ToT. From the logs, it looks like you're running a pretty old version, since that's been removed in https://crrev.com/c/1487853 ~1 month ago.
[3742:3742:0324/123527.742213:ERROR:wayland_connection.cc(457)] No data device manager. Clipboard won't be fully functional
I'm following the checkout instructions as provided here: https://github.com/Igalia/chromium/issues/524#issuecomment-460146192
Nowadays all the work is done in the tot and Id suggest to use the upstream checkout instead.
GN Args:
Console log: