0

After setting gl_type as system_gles2 to use the Mali implement of the egl, it will crash in display.cc(55) at starting up, and the error msg seemed so be EGL_BAD_NATIVE_WINDOW, from the guideline in cobalt guideline, there need to set gl_typeto support egl, but it does not works, so is there any other things which need to be done to support egl?

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.5.3 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2010  The world wide DirectFB Open Source Community
        (c) 2000-2004  Convergence (integrated media) GmbH
      ----------------------------------------------------------------
[0101/001609:ERROR:user_log.cc(32)] Not implemented reached in static bool base::UserLog::IsRegistrationSupported()
[2531:969391044:WARNING:thread_set_name.cc(36)] Thread name "StorageManager SQL" was truncated to "StorageManager "
[0101/001609:FATAL:display.cc(55)] Check failed: 0x3000 == eglGetError() (12288 vs. 12299)

Caught signal: SIGABRT (6)
        <unknown> [0xb5acb4d8]
        <unknown> [0xb5acc8a4]
        SbSystemGetErrorString [0xbca1c]
        logging::LogMessage::~LogMessage() [0x7f348]
        logging::LogMessage::~LogMessage() [0x7f348]
        logging::LogMessage::~LogMessage() [0x7f348]
bitchainer
  • 535
  • 2
  • 19

1 Answers1

1

You need to make sure that the value returned by SbWindowGetPlatformHandle() is compatible with the EGL implementation on your system. You can look in EGL/eglplatform.h to see what EGLNativeWindowType is typedef'd to for your platform. On Raspberry Pi, for instance, it's a pointer to a EGL_DISPMANX_WINDOW_T that contains several fields.

David Ghandehari
  • 534
  • 3
  • 12
  • yeah, it is the problem as you said, after making the type compatiable with the platform, then it's works, thanks so much for your kind help! – bitchainer Mar 01 '17 at 12:27