intel / ozone-wayland

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

Chromium with ozone-wayland crashes on startup #450

Open arrdalan opened 8 years ago

arrdalan commented 8 years ago

I followed the instructions in here to download Chromium and Ozone-wayland and build them. I can successfully build but when I try to run ./out/Debug/chrome --no-sandbox, I get errors. I've attached the error messages below. Note that I've enabled verbose logging for Mesa, EGL, and LIBGL (as recommended here).

The setup is as follows: I'm using a third-gen Intel GPU and I'm running Ubuntu 15.04 with Wayland/Weston (no X or Xwayland). I can successfully run the simple Weston demos such as the simple-egl demo so I think my Wayland/Weston setup in working.

I will really appreciate some tips on what I need to do.

Error messages:

[15046:15046:0131/182251: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. [15046:15046:0131/182251:ERROR:ozone_webui.cc(60)] Not implemented reached in virtual void views::OzoneWebUI::GetDefaultFontDescription(std::string , int , int , gfx::FontRenderParams ) const [15046:15046:0131/182251:ERROR:desktop_window_tree_host_ozone.cc(572)] Not implemented reached in virtual void views::DesktopWindowTreeHostOzone::SetWindowIcons(const gfx::ImageSkia &, const gfx::ImageSkia &) [15046:15046:0131/182251:ERROR:desktop_window_tree_host_ozone.cc(583)] Not implemented reached in virtual void views::DesktopWindowTreeHostOzone::InitModalType(ui::ModalType) [15046:15046:0131/182251:ERROR:ozone_webui.cc(51)] Not implemented reached in virtual gfx::FontRenderParams views::OzoneWebUI::GetDefaultFontRenderParams() const libEGL debug: Native platform type: wayland (environment overwrite) libEGL debug: added egl_dri2 to module array

libEGL debug: the best driver is DRI2 (test only)

libEGL debug: pci id for fd 95: 8086:0162, driver i965

[15046:15046:0131/182251:ERROR:desktop_window_tree_host_ozone.cc(572)] Not implemented reached in virtual void views::DesktopWindowTreeHostOzone::SetWindowIcons(const gfx::ImageSkia &, const gfx::ImageSkia &) libEGL debug: DRI2: dlopen(/usr/lib/dri/i965_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_DriverVtable' libEGL debug: found extension DRI_ConfigOptions' libGL: Can't open configuration file /root/.drirc: No such file or directory. libEGL debug: found extensionDRI_TexBuffer' libEGL info: found extension DRI_TexBuffer version 3 libEGL debug: found extension DRI2_Fence' 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 extensionDRI_Robustness' libEGL debug: the best driver is DRI2 [15046:15046:0131/182251:ERROR:logging.h(811)] Failed to call method: org.freedesktop.DBus.ObjectManager.GetManagedObjects: object_path= /: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files [15046:15046:0131/182251:WARNING:object_manager.cc(368)] org.bluez /: Failed to get managed objects [15046:15046:0131/182251:ERROR:logging.h(811)] Failed to call method: org.freedesktop.DBus.ObjectManager.GetManagedObjects: object_path= /: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files libGL: Can't open configuration file /root/.drirc: No such file or directory. [15046:15046:0131/182251:WARNING:object_manager.cc(368)] org.bluez /: Failed to get managed objects libGL: Can't open configuration file /root/.drirc: No such file or directory. [15076:15076:0131/182251:ERROR:sandbox_linux.cc(333)] InitializeSandbox() called with multiple threads in process gpu-process libGL: Can't open configuration file /root/.drirc: No such file or directory. Mesa: User error: GL_INVALID_ENUM in glBindRenderbufferEXT(target) Mesa: User error: GL_INVALID_OPERATION in glFramebufferTexture3D(invalid textarget GL_TEXTURE_2D) Received signal 11 SEGV_MAPERR 000000008d40

0 0x7fb2ef0361ce base::debug::StackTrace::StackTrace()

1 0x7fb2ef035d0f base::debug::(anonymous namespace)::StackDumpSignalHandler()

2 0x7fb2e846dd10

3 0x7fb2e0107628

4 0x7fb2f0cf50ed gfx::GLApiBase::glCheckFramebufferStatusEXTFn()

5 0x7fb2f7cf4f05 gpu::gles2::FeatureInfo::InitializeFeatures()

6 0x7fb2f7cf39a6 gpu::gles2::FeatureInfo::Initialize()

7 0x7fb2f7ce8f7c gpu::gles2::ContextGroup::Initialize()

8 0x7fb2f7d2791a gpu::gles2::GLES2DecoderImpl::Initialize()

9 0x7fb2f7c54763 content::GpuCommandBufferStub::OnInitialize()

10 0x7fb2f7c5ea34 _ZN4base20DispatchToMethodImplIN7content20GpuCommandBufferStubEMS2_FvNS_14FileDescriptorEPN3IPC7MessageEEJS3_EJRS5_EJLm0EEJLm0EEEEvPT_T0_RKNS_5TupleIJDpT1_EEEPNSD_IJDpT2_EEENS_13IndexSequenceIJXspT3_EEEENSN_IJXspT4_EEEE

11 0x7fb2f7c5e978 _ZN4base16DispatchToMethodIN7content20GpuCommandBufferStubEMS2_FvNS_14FileDescriptorEPN3IPC7MessageEEJS3_EJRS5_EEEvPT_T0_RKNS_5TupleIJDpT1_EEEPNSD_IJDpT2_EEE

12 0x7fb2f7c5e803 _ZN3IPC17SyncMessageSchemaIN4base5TupleIJNS1_14FileDescriptorEEEENS2_IJRbRN3gpu12CapabilitiesEEEEE32DispatchDelayReplyWithSendParamsIN7content20GpuCommandBufferStubEMSD_FvS3_PNS_7MessageEEEEbbRKS4_PKSE_PTT0

13 0x7fb2f7c5c02e GpuCommandBufferMsg_Initialize::DispatchDelayReply<>()

14 0x7fb2f7c52446 content::GpuCommandBufferStub::OnMessageReceived()

15 0x7fb2f7bf19cb content::MessageRouter::RouteMessage()

16 0x7fb2f7c3d7c7 content::GpuChannel::HandleMessage()

17 0x7fb2ee312a99 base::internal::RunnableAdapter<>::Run()

18 0x7fb2ee34c431 _ZN4base8internal12InvokeHelperILb1EvNS0_15RunnableAdapterIMN9prerender16PrerenderManagerEFvvEEENS0_8TypeListIJRKNS_7WeakPtrIS4_EEEEEE8MakeItSoES7SC

19 0x7fb2f7c47fd0 _ZN4base8internal7InvokerINS_13IndexSequenceIJLm0EEEENS0_9BindStateINS0_15RunnableAdapterIMN7content10GpuChannelEFvvEEEFvPS7_EJNS_7WeakPtrIS7_EEEEENS0_8TypeListIJNS0_12UnwrapTraitsISE_EEEEENS0_12InvokeHelperILb1EvSA_NSG_IJRKSE_EEEEEFvvEE3RunEPNS0_13BindStateBaseE

20 0x7fb2ee35307e base::Callback<>::Run()

21 0x7fb2ef17f833 base::debug::TaskAnnotator::RunTask()

22 0x7fb2ef08d5b6 base::MessageLoop::RunTask()

23 0x7fb2ef08d838 base::MessageLoop::DeferOrRunPendingTask()

24 0x7fb2ef08da02 base::MessageLoop::DoWork()

25 0x7fb2ef09fee3 base::MessagePumpDefault::Run()

26 0x7fb2ef08cfef base::MessageLoop::RunHandler()

27 0x7fb2ef0d5134 base::RunLoop::Run()

28 0x7fb2ef08c076 base::MessageLoop::Run()

29 0x7fb2f777fd70 content::GpuMain()

30 0x7fb2eef90c46 content::RunNamedProcessTypeMain()

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

32 0x7fb2eef903c2 content::ContentMain()

33 0x7fb2ee244232 ChromeMain

34 0x7fb2ee2441e2 main

35 0x7fb2e80b3a40 __libc_start_main

36 0x7fb2ee2440b9 _start

r8: 00007fb2e8459960 r9: 00007fb2ed4f6900 r10: 00007fb2e0582e6d r11: 0000000000000000 r12: 00007fb2e0891180 r13: 00007ffe80a98030 r14: 00003e3b44f5e048 r15: 0000000000000000 di: 0000000000008d40 si: 0000000000008d40 bp: 000000000002c240 bx: 0000000000008d40 dx: 00007fb2fd87d508 ax: 0000000000008d3f cx: 00007fb2e8676340 sp: 00007ffe80a98030 ip: 00007fb2e0107628 efl: 0000000000010202 cgf: 0000000000000033 erf: 0000000000000004 trp: 000000000000000e msk: 0000000000000000 cr2: 0000000000008d40 [end of stack trace] [15046:15061:0131/182252:WARNING:channel.cc(359)] RawChannel write error [15046:15046:0131/182252:ERROR:command_buffer_proxy_impl.cc(186)] Could not send GpuCommandBufferMsg_Initialize. [15046:15046:0131/182252:ERROR:webgraphicscontext3d_command_buffer_impl.cc(210)] CommandBufferProxy::Initialize failed. [15046:15046:0131/182252:ERROR:webgraphicscontext3d_command_buffer_impl.cc(229)] Failed to initialize command buffer. [15046:15046:0131/182252:ERROR:webgraphicscontext3d_command_buffer_impl.cc(286)] Failed to initialize context. [15046:15046:0131/182252:ERROR:gpu_channel_host.cc(267)] Failed to send GpuChannelMsg_CreateOffscreenCommandBuffer. [15046:15046:0131/182252:ERROR:webgraphicscontext3d_command_buffer_impl.cc(200)] GpuChannelHost failed to create command buffer. [15046:15046:0131/182252:ERROR:webgraphicscontext3d_command_buffer_impl.cc(229)] Failed to initialize command buffer. [15046:15046:0131/182252:ERROR:webgraphicscontext3d_command_buffer_impl.cc(286)] Failed to initialize context. libEGL debug: Native platform type: wayland (environment overwrite) libEGL debug: added egl_dri2 to module array

libEGL debug: the best driver is DRI2 (test only)

libEGL debug: pci id for fd 95: 8086:0162, driver i965

libEGL debug: DRI2: dlopen(/usr/lib/dri/i965_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_DriverVtable' libEGL debug: found extension DRI_ConfigOptions' libGL: Can't open configuration file /root/.drirc: No such file or directory. libEGL debug: found extensionDRI_TexBuffer' libEGL info: found extension DRI_TexBuffer version 3 libEGL debug: found extension DRI2_Fence' 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 extensionDRI_Robustness' libEGL debug: the best driver is DRI2 libGL: Can't open configuration file /root/.drirc: No such file or directory. libGL: Can't open configuration file /root/.drirc: No such file or directory. [15080:15080:0131/182252:ERROR:sandbox_linux.cc(333)] InitializeSandbox() called with multiple threads in process gpu-process [15046:15046:0131/182252: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 0x7f222fc471ce base::debug::StackTrace::StackTrace()

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

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

3 0x7f22355ab54b content::SoftwareOutputDeviceOzone::SoftwareOutputDeviceOzone()

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

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

6 0x7f223559d278 base::internal::RunnableAdapter<>::Run()

7 0x7f223559d1b0 _ZN4base8internal12InvokeHelperILb1EvNS0_15RunnableAdapterIMN7content26GpuProcessTransportFactoryEFvNS_7WeakPtrIN2ui10CompositorEEEbiEEENS0_8TypeListIJRKNS5_IS4_EERKS8_RKbRKiEEEE8MakeItSoESB_SF_SH_SJSL

8 0x7f223559d123 _ZN4base8internal7InvokerINS_13IndexSequenceIJLm0ELm1ELm2ELm3EEEENS0_9BindStateINS0_15RunnableAdapterIMN7content26GpuProcessTransportFactoryEFvNS_7WeakPtrIN2ui10CompositorEEEbiEEEFvPS7_SB_biEJNS8_IS7_EESB_biEEENS0_8TypeListIJNS0_12UnwrapTraitsISH_EENSK_ISB_EENSK_IbEENSK_IiEEEEENS0_12InvokeHelperILb1EvSE_NSJ_IJRKSH_RKSB_RKbRKiEEEEEFvvEE3RunEPNS0_13BindStateBaseE

9 0x7f222ef6407e base::Callback<>::Run()

10 0x7f2235325186 content::BrowserGpuChannelHostFactory::GpuChannelEstablished()

11 0x7f2235324c43 content::BrowserGpuChannelHostFactory::EstablishRequest::FinishOnMain()

12 0x7f222ef23a99 base::internal::RunnableAdapter<>::Run()

13 0x7f222ef64ed9 _ZN4base8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMN9prerender22PrerenderMessageFilterEFvvEEENS0_8TypeListIJRKPS4_EEEE8MakeItSoES7SB

14 0x7f2235327b60 _ZN4base8internal7InvokerINS_13IndexSequenceIJLm0EEEENS0_9BindStateINS0_15RunnableAdapterIMN7content28BrowserGpuChannelHostFactory16EstablishRequestEFvvEEEFvPS8_EJSC_EEENS0_8TypeListIJNS0_12UnwrapTraitsISC_EEEEENS0_12InvokeHelperILb0EvSB_NSF_IJRKSC_EEEEEFvvEE3RunEPNS0_13BindStateBaseE

15 0x7f222ef6407e base::Callback<>::Run()

16 0x7f222fd90833 base::debug::TaskAnnotator::RunTask()

17 0x7f222fc9e5b6 base::MessageLoop::RunTask()

18 0x7f222fc9e838 base::MessageLoop::DeferOrRunPendingTask()

19 0x7f222fc9ea02 base::MessageLoop::DoWork()

20 0x7f222fc22e5e base::MessagePumpLibevent::Run()

21 0x7f222fc9dfef base::MessageLoop::RunHandler()

22 0x7f222fce6134 base::RunLoop::Run()

23 0x7f22343494c0 chrome::(anonymous namespace)::SimpleMessageBoxViews::RunDialogAndGetResult()

24 0x7f2234349069 chrome::(anonymous namespace)::ShowMessageBoxImpl()

25 0x7f2234348e56 chrome::ShowMessageBox()

26 0x7f22343a780d ChromeBrowserMainExtraPartsAura::DetectRunningAsRoot()

27 0x7f22343a7755 ChromeBrowserMainExtraPartsAura::PreProfileInit()

28 0x7f222f6062a8 ChromeBrowserMainParts::PreProfileInit()

29 0x7f222f2bfce0 ChromeBrowserMainPartsLinux::PreProfileInit()

30 0x7f222f605443 ChromeBrowserMainParts::PreMainMessageLoopRunImpl()

31 0x7f222f604a6f ChromeBrowserMainParts::PreMainMessageLoopRun()

32 0x7f22351e0b19 content::BrowserMainLoop::PreMainMessageLoopRun()

33 0x7f222ef23a99 base::internal::RunnableAdapter<>::Run()

34 0x7f222ef23a1c _ZN4base8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIM29MediaCaptureDevicesDispatcherFvvEEENS0_8TypeListIJPS3_EEEE8MakeItSoES6S8

35 0x7f22351e56b8 _ZN4base8internal7InvokerINS_13IndexSequenceIJLm0EEEENS0_9BindStateINS0_15RunnableAdapterIMN7content15BrowserMainLoopEFivEEEFiPS7_EJNS0_17UnretainedWrapperIS7_EEEEENS0_8TypeListIJNS0_12UnwrapTraitsISE_EEEEENS0_12InvokeHelperILb0EiSA_NSG_IJSB_EEEEEFivEE3RunEPNS0_13BindStateBaseE

36 0x7f222ef6407e base::Callback<>::Run()

37 0x7f223557d27b content::StartupTaskRunner::RunAllTasksNow()

38 0x7f22351dedad content::BrowserMainLoop::CreateStartupTasks()

39 0x7f2234bbd3ea content::BrowserMainRunnerImpl::Initialize()

40 0x7f2234bbc60d content::BrowserMain()

41 0x7f222fba1c46 content::RunNamedProcessTypeMain()

42 0x7f222fba37fd content::ContentMainRunnerImpl::Run()

43 0x7f222fba13c2 content::ContentMain()

44 0x7f222ee55232 ChromeMain

45 0x7f222ee551e2 main

46 0x7f2228cc4a40 __libc_start_main

47 0x7f222ee550b9 _start