intel / ozone-wayland

Wayland implementation for Chromium Ozone classes
BSD 3-Clause "New" or "Revised" License
219 stars 82 forks source link

Cannot run chromium! #448

Open vrotenberg opened 8 years ago

vrotenberg commented 8 years ago

Hi! I am trying to run chromium --no-sandbox and get the error: [30176:30176:0118/102610:ERROR:desktop_window_tree_host_ozone.cc(572)] Not implemented reached in virtual void views::DesktopWindowTreeHostOzone::SetWindowIcons (const gfx::ImageSkia &, const gfx::ImageSkia &) [30176:30176:0118/102610:ERROR:desktop_window_tree_host_ozone.cc(583)] Not implemented reached in virtual void views::DesktopWindowTreeHostOzone::InitModalType( ui::ModalType) [30176:30176:0118/102610:ERROR:ozone_webui.cc(51)] Not implemented reached in vi rtual gfx::FontRenderParams views::OzoneWebUI::GetDefaultFontRenderParams() cons t d to start the GPU process in software rendering mode. Software rendering is not supported in Ozone-Wayland, so this is fatal. Usually this error occurs because the GPU process crashed in hardware rendering mode, often due to failure to ini tialize EGL. To debug the GPU process, start Chrome with --gpu-startup-dialog so that the GPU process pauses on startup, then attach to it with 'gdb -p' and run the command 'signal SIGUSR1' in order to unpause it. If you have xterm then it is easier to run 'chrome --no-sandbox --gpu-launcher='xterm -title renderer -e g db --eval-command=run --args''

During the build I also had the errors: ninja: warning: multiple rules generate obj/ozone/ui/webui/webui.select_file_dialog_impl_webui.o. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn] ninja: warning: multiple rules generate obj/ozone/ui/webui/webui.ozone_webui.o. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn] ninja: warning: multiple rules generate obj/ozone/ui/webui/webui.input_method_context_impl_wayland.o. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn] Maybe because of that now I cannot run chromium? Please help!

vrotenberg commented 8 years ago

I think it's because of mesa. So Wayland cannot initialize EGL. But Mesa is installed...

vrotenberg commented 8 years ago

@kalyankondapally , please help! I cannot run chromium :(

vrotenberg commented 8 years ago

[2833:2833:0119/143808:ERROR:browser_main_loop.cc(216)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on. [2833:2833:0119/143809:ERROR:component_loader.cc(168)] Failed to parse extension manifest. [2833:2833:0119/143809:ERROR:desktop_window_tree_host_ozone.cc(572)] Not implemented reached in virtual void views::DesktopWindowTreeHostOzone::SetWindowIcons(const gfx::ImageSkia &, const gfx::ImageSkia &) [2833:2833:0119/143809:ERROR:ozone_webui.cc(60)] Not implemented reached in virtual void views::OzoneWebUI::GetDefaultFontDescription(std::string , int , int , gfx::FontRenderParams ) const [2833:2833:0119/143809:ERROR:ozone_webui.cc(51)] Not implemented reached in virtual gfx::FontRenderParams views::OzoneWebUI::GetDefaultFontRenderParams() const [2833:2833:0119/143809:ERROR:ozone_webui.cc(51)] Not implemented reached in virtual gfx::FontRenderParams views::OzoneWebUI::GetDefaultFontRenderParams() const [2833:2833:0119/143809:ERROR:ozone_webui.cc(51)] Not implemented reached in virtual gfx::FontRenderParams views::OzoneWebUI::GetDefaultFontRenderParams() const [2833:2833:0119/143809:ERROR:ozone_webui.cc(51)] Not implemented reached in virtual gfx::FontRenderParams views::OzoneWebUI::GetDefaultFontRenderParams() const [2833:2833:0119/143809:ERROR:ozone_webui.cc(51)] Not implemented reached in virtual gfx::FontRenderParams views::OzoneWebUI::GetDefaultFontRenderParams() const [2833:2833:0119/143809:ERROR:ozone_webui.cc(51)] Not implemented reached in virtual gfx::FontRenderParams views::OzoneWebUI::GetDefaultFontRenderParams() const [2833:2833:0119/143809:ERROR:ozone_webui.cc(51)] Not implemented reached in virtual gfx::FontRenderParams views::OzoneWebUI::GetDefaultFontRenderParams() const [2833:2833:0119/143809:ERROR:ozone_webui.cc(51)] Not implemented reached in virtual gfx::FontRenderParams views::OzoneWebUI::GetDefaultFontRenderParams() const [2833:2833:0119/143810:ERROR:ozone_webui.cc(51)] Not implemented reached in virtual gfx::FontRenderParams views::OzoneWebUI::GetDefaultFontRenderParams() const [2833:2833:0119/143810:ERROR:desktop_window_tree_host_ozone.cc(572)] Not implemented reached in virtual void views::DesktopWindowTreeHostOzone::SetWindowIcons(const gfx::ImageSkia &, const gfx::ImageSkia &) [2833:2833:0119/143810:ERROR:ozone_webui.cc(51)] Not implemented reached in virtual gfx::FontRenderParams views::OzoneWebUI::GetDefaultFontRenderParams() const [2833:2833:0119/143810:ERROR:ozone_webui.cc(51)] Not implemented reached in virtual gfx::FontRenderParams views::OzoneWebUI::GetDefaultFontRenderParams() const [2833:2833:0119/143810:ERROR:ozone_webui.cc(51)] Not implemented reached in virtual gfx::FontRenderParams views::OzoneWebUI::GetDefaultFontRenderParams() const [2833:2833:0119/143810:ERROR:logging.h(811)] Failed to call method: org.freedesktop.DBus.ObjectManager.GetManagedObjects: object_path= /: org.freedesktop.DBus.Error.UnknownMethod: Method "GetManagedObjects" with signature "" on interface "org.freedesktop.DBus.ObjectManager" doesn't exist

[2833:2833:0119/143810:WARNING:object_manager.cc(368)] org.bluez /: Failed to get managed objects [2833:2833:0119/143810:FATAL:display.cc(254)] The browser process has attempted to start the GPU process in software rendering mode. Software rendering is not supported in Ozone-Wayland, so this is fatal. Usually this error occurs because the GPU process crashed in hardware rendering mode, often due to failure to initialize EGL. To debug the GPU process, start Chrome with --gpu-startup-dialog so that the GPU process pauses on startup, then attach to it with 'gdb -p' and run the command 'signal SIGUSR1' in order to unpause it. If you have xterm then it is easier to run 'chrome --no-sandbox --gpu-launcher='xterm -title renderer -e gdb --eval-command=run --args''

0 0x0000a41575a4 base::debug::StackTrace::StackTrace()

1 0x0000a41a830f logging::LogMessage::~LogMessage()

2 0x0000a61ccd3c ozonewayland::WaylandDisplay::CreateCanvasForWidget()

3 0x0000abf35051 content::SoftwareOutputDeviceOzone::SoftwareOutputDeviceOzone()

4 0x0000abf16ffe content::GpuProcessTransportFactory::CreateSoftwareOutputDevice()

5 0x0000abf183de content::GpuProcessTransportFactory::EstablishedGpuChannel()

6 0x0000abf175a6 content::GpuProcessTransportFactory::CreateOutputSurface()

7 0x0000a626ab71 ui::Compositor::RequestNewOutputSurface()

8 0x0000a63f493e cc::LayerTreeHost::RequestNewOutputSurface()

9 0x0000a64b6d3f cc::SingleThreadProxy::RequestNewOutputSurface()

10 0x0000a64c2360 base::internal::RunnableAdapter<>::Run()

11 0x0000a64c2208 _ZN4base8internal12InvokeHelperILb1EvNS0_15RunnableAdapterIMN2cc17SingleThreadProxyEFvvEEENS0_8TypeListIJRKNS_7WeakPtrIS4_EEEEEE8MakeItSoES7SC

12 0x0000a64c2195 _ZN4base8internal7InvokerINS_13IndexSequenceIJLj0EEEENS0_9BindStateINS0_15RunnableAdapterIMN2cc17SingleThreadProxyEFvvEEEFvPS7_EJNS_7WeakPtrIS7_EEEEENS0_8TypeListIJNS0_12UnwrapTraitsISE_EEEEENS0_12InvokeHelperILb1EvSA_NSG_IJRKSE_EEEEEFvvEE3RunEPNS0_13BindStateBaseE

13 0x0000a302896b base::Callback<>::Run()

14 0x0000a36c79ae base::CancelableCallback<>::Forward()

15 0x0000a36c8230 base::internal::RunnableAdapter<>::Run()

16 0x0000a36c80d8 _ZN4base8internal12InvokeHelperILb1EvNS0_15RunnableAdapterIMNS_18CancelableCallbackIFvvEEEKFvvEEENS0_8TypeListIJRKNS_7WeakPtrIS5_EEEEEE8MakeItSoES8SD

17 0x0000a36c8065 _ZN4base8internal7InvokerINS_13IndexSequenceIJLj0EEEENS0_9BindStateINS0_15RunnableAdapterIMNS_18CancelableCallbackIFvvEEEKFvvEEEFvPKS8_EJNS_7WeakPtrIS8_EEEEENS0_8TypeListIJNS0_12UnwrapTraitsISG_EEEEENS0_12InvokeHelperILb1EvSB_NSI_IJRKSG_EEEEES7_E3RunEPNS0_13BindStateBaseE

18 0x0000a302896b base::Callback<>::Run()

19 0x0000a42eca17 base::debug::TaskAnnotator::RunTask()

20 0x0000a41be4bb base::MessageLoop::RunTask()

21 0x0000a41be89a base::MessageLoop::DeferOrRunPendingTask()

22 0x0000a41beaef base::MessageLoop::DoWork()

23 0x0000a413159b base::MessagePumpLibevent::Run()

24 0x0000a41bdd6b base::MessageLoop::RunHandler()

25 0x0000a4218842 base::RunLoop::Run()

26 0x0000a38a8bb0 ChromeBrowserMainParts::MainMessageLoopRun()

27 0x0000ab9cc295 content::BrowserMainLoop::RunMainMessageLoopParts()

28 0x0000ab1584f7 content::BrowserMainRunnerImpl::Run()

29 0x0000ab156858 content::BrowserMain()

30 0x0000a40909b6 content::RunNamedProcessTypeMain()

31 0x0000a409363e content::ContentMainRunnerImpl::Run()

32 0x0000a408fccc content::ContentMain()

33 0x0000a2eb71bf ChromeMain

34 0x0000a2eb7142 main

35 0x0000a1c45a83 __libc_start_main

36 0x0000a2eb7025 ▒i

vrotenberg commented 8 years ago

@joone , can you please help?

kalyankondapally commented 8 years ago

@vrotenberg Sorry missed this one. Can you share information about your hardware and drivers.

vrotenberg commented 8 years ago

We use Radeon HD 6320 and EGL r600 driver is installed in Mesa.

vrotenberg commented 8 years ago

I am trying to run this chromium on the regular Wayland version built from here: http://wayland.freedesktop.org/xserver.html

vrotenberg commented 8 years ago

@kalyankondapally, should I install another driver?

kalyankondapally commented 8 years ago

Can you set this environment variables and share any verbose it prints out after trying to run chromium.

export MESA_DEBUG=1 export EGL_LOG_LEVEL=debug export LIBGL_DEBUG=verbose

Also, have you tried running wayland demos ?

vrotenberg commented 8 years ago

The log is:

[10:24:34.685] weston 1.9.90 http://wayland.freedesktop.org Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.9.90 Build: 1.9.0-160-gc9626a3 compositor: Document routines relating to idle behavior (2015-12-22 14:57:43 -0800) [10:24:34.686] OS: Linux, 3.19.0-25-generic, #26~14.04.1-Ubuntu SMP Fri Jul 24 21:18:00 UTC 2015, i686 [10:24:34.686] Using config file '/home/victor/.config/weston.ini' [10:24:34.687] Output repaint window is 7 ms maximum. [10:24:34.688] Loading module '/home/victor/install/lib/weston/x11-backend.so' [10:24:34.700] initializing x11 backend [10:24:34.708] Loading module '/home/victor/install/lib/weston/gl-renderer.so' [10:24:34.725] EGL client extensions: EGL_EXT_client_extensions EGL_EXT_platform_base EGL_EXT_platform_wayland EGL_EXT_platform_x11 EGL_KHR_client_get_all_proc_addresses EGL_MESA_platform_gbm libEGL debug: added egl_dri2 to module array libEGL warning: DRI3: Screen seems not DRI3 capable libEGL debug: DRI2: dlopen(/home/victor/install/lib/dri/r600_dri.so) libEGL debug: found extension DRI_Core' libEGL info: found extension DRI_Core version 1 libEGL debug: found extensionDRI_IMAGE_DRIVER' libEGL debug: found extension DRI_DRI2' libEGL info: found extension DRI_DRI2 version 4 libEGL debug: found extensionDRI_ConfigOptions' libGL: Can't open configuration file /home/victor/.drirc: No such file or directory. libGL: Can't open configuration file /home/victor/.drirc: No such file or directory. libEGL debug: found extension DRI_TexBuffer' libEGL info: found extension DRI_TexBuffer version 2 libEGL debug: found extensionDRI2_Flush' libEGL info: found extension DRI2_Flush version 4 libEGL debug: found extension DRI_IMAGE' libEGL info: found extension DRI_IMAGE version 11 libEGL debug: found extensionDRI_RENDERER_QUERY' libEGL debug: found extension DRI_CONFIG_QUERY' libEGL debug: found extensionDRI2_Throttle' libEGL debug: found extension `DRI2_Fence' libEGL info: Using DRI2 libEGL debug: the best driver is DRI2 [10:24:34.781] warning: EGL_EXT_buffer_age not supported. Performance could be affected. [10:24:34.781] warning: EGL_EXT_swap_buffers_with_damage not supported. Performance could be affected. [10:24:34.781] Using gl renderer [10:24:34.843] EGL version: 1.4 (DRI2) [10:24:34.843] EGL vendor: Mesa Project [10:24:34.843] EGL client APIs: OpenGL OpenGL_ES OpenGL_ES2 [10:24:34.843] EGL extensions: EGL_CHROMIUM_sync_control EGL_EXT_image_dma_buf_import EGL_KHR_cl_event2 EGL_KHR_create_context EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_NOK_swap_region EGL_NOK_texture_from_pixmap EGL_NV_post_sub_buffer EGL_WL_bind_wayland_display [10:24:34.843] GL version: OpenGL ES 2.0 Mesa 11.2.0-devel (git-eaf7ec9) [10:24:34.843] GLSL version: OpenGL ES GLSL ES 1.0.16 [10:24:34.843] GL vendor: X.Org [10:24:34.843] GL renderer: Gallium 0.4 on AMD PALM (DRM 2.40.0) [10:24:34.843] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_filter_anisotropic GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_float_linear GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_EGL_image GL_OES_depth_texture GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV GL_OES_get_program_binary GL_APPLE_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_array_object GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_texture_rg GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug GL_OES_depth_texture_cube_map GL_OES_surfaceless_context GL_EXT_separate_shader_objects GL_EXT_draw_elements_base_vertex GL_KHR_context_flush_control GL_OES_draw_elements_base_vertex GL_EXT_blend_func_extended [10:24:34.844] GL ES 2 renderer features: read-back format: BGRA wl_shm sub-image to texture: yes EGL Wayland extension: yes [10:24:34.844] Chosen EGL config details: RGBA bits: 8 8 8 0 swap interval range: 0 - 1000 [10:24:34.844] x11 output 1024x640, window id 56623109 [10:24:34.844] Compositor capabilities: arbitrary surface rotation: yes screen capture uses y-flip: yes presentation clock: CLOCK_MONOTONIC_RAW, id 4 [10:24:34.846] Loading module '/home/victor/install/lib/weston/desktop-shell.so' [10:24:34.848] launching '/home/victor/install/libexec/weston-keyboard' [10:24:34.852] Loading module '/home/victor/install/lib/weston/xwayland.so' [10:24:34.856] xserver listening on display :1 [10:24:34.858] launching '/home/victor/install/libexec/weston-desktop-shell' ERROR loading icon from file '/usr/share/icons/gnome/24x24/apps/utilities-terminal.png', error: 'file not found' ERROR loading icon from file '/usr/share/icons/gnome/24x24/apps/utilities-terminal.png', error: 'file not found' ERROR loading icon from file '/usr/share/icons/hicolor/24x24/apps/google-chrome.png', error: 'file not found' ERROR loading icon from file '/usr/share/icons/gnome/24x24/apps/arts.png', error: 'file not found' ERROR loading icon from file '/usr/share/icons/hicolor/24x24/apps/google-chrome.png', error: 'file not found' /usr/share/backgrounds/gnome/Aqua.jpg: No such file or directory [10:27:40.354] forked X server, pid 2453 libGL: Can't open configuration file /home/victor/.drirc: No such file or directory. libGL: Can't open configuration file /home/victor/.drirc: No such file or directory. [10:27:40.476] xfixes version: 5.0 [10:27:40.521] created wm, root 608

I even installed driconfig so it has generated for me .drirc file so I don't see anymore "libGL: Can't open configuration file /home/victor/.drirc: No such file or directory" error but it didn't help.

I tried to run weston-simple-egl and it worked OK. Don't know what to do :(

kalyankondapally commented 8 years ago

Hmm not sure whats happening. Did you try debugging as mentioned here https://github.com/01org/ozone-wayland/blob/master/wayland/display.cc#L252

vrotenberg commented 8 years ago

No, it's very complicated. Maybe it need another driver - not r600? As you see it loads here: libEGL debug: DRI2: dlopen(/home/victor/install/lib/dri/r600_dri.so) r600 driver. How can I change it? Thanks.

PHLF commented 8 years ago

I don't know if that can help but I have the same issue with an amd A10-4600m apu on a fresh Arch Linux install using Wayland/Weston 1.9.0.