我正在尝试在 Ubuntu 16.04 上运行当前的 Cobalt 主干(12.81256)。但它失败了:
[0814/100203:FATAL:graphics_system.cc(130)] Check failed: 1 == num_configs (1 vs. 0)
base::debug::StackTrace::StackTrace() [0x1f6202d]
logging::LogMessage::~LogMessage() [0x1f5fe99]
cobalt::renderer::backend::GraphicsSystemEGL::GraphicsSystemEGL() [0x67e5bdd]
cobalt::renderer::backend::CreateDefaultGraphicsSystem() [0x67e549e]
cobalt::renderer::RendererModule::Resume() [0x67dbe65]
cobalt::renderer::RendererModule::RendererModule() [0x67db776]
cobalt::browser::BrowserModule::BrowserModule() [0x1ce38c3]
cobalt::browser::Application::Application() [0x1cb71a5]
cobalt::browser::ApplicationStarboard::ApplicationStarboard() [0x1cb09c7]
cobalt::browser::CreateApplication() [0x1cb072e]
(anonymous namespace)::StartApplication() [0x1caef05]
cobalt::wrap_main::BaseEventHandler<>() [0x1cae9af]
SbEventHandle [0x1cae225]
starboard::shared::starboard::Application::DispatchAndDelete() [0x214dc7e]
starboard::shared::starboard::Application::DispatchStart() [0x214c07e]
starboard::shared::starboard::Application::Run() [0x214b8b7]
main [0x2120f95]
<unknown> [0x7f864632f830]
_start [0x1bd6029]
_start [0x1bd6029]
我发现 EGL 配置的问题来自于使用:
EGL_BIND_TO_TEXTURE_RGBA, EGL_TRUE
没有它 eglChooseConfig 将返回 1 个配置。
但是在调用之后它会再次失败
eglCreateWindowSurface()
在钴/渲染器/后端/egl/display.cc
[0814/111151:FATAL:display.cc(53)] Check failed: 0x3000 == eglGetError() (12288 vs. 12297)
由于这是 EGL_BAD_MATCH 错误,因此选择的 EGL 配置不好,但原始配置也不是。
我试过设置
'gl_type%': 'system_gles2',
在右舷/linux/shared/gyp_configuration.gypi,但结果是一样的。
我错过了什么吗?
重现崩溃的步骤:
建造:
cobalt/build/gyp_cobalt -C debug linux-x64x11
ninja -C out/linux-x64x11_debug cobalt
跑:
./out/linux-x64x11_debug/cobalt
是否可能对 EGL 或 GLES 库有一些依赖?