Replace the excepption case in tizen backend when display server does not work.
When display server does not work, then ecore_wl2_display_connect() does not work and crash occurs in application size.
To handle the failure case where the display server does not work in the Tizen backend, you can modify the ecore_wl2_display_connect() function to avoid crashing the application.
Specifically, replace the exit() call with a more graceful error handling mechanism.
Change-Id: Ice83d181fe468bc0b9bdcca48f2fcc6496d855f1
Ecore_Wl2_Display* display = ecore_wl2_display_connect(NULL);
if(!display)
{
- DALI_ASSERT_ALWAYS(0 && "Failed to get display");
+ DALI_LOG_ERROR("Failed to get display, then application will be exit");
+ exit(1);
}
{