ui-viewmgr: Fix utc deadlock. 32/243732/1 accepted/tizen/unified/20200914.001506 accepted/tizen/unified/20200914.131354 submit/tizen/20200909.105344 submit/tizen/20200913.215058 submit/tizen/20200913.221825
authorWoochanlee <wc0917.lee@samsung.com>
Wed, 9 Sep 2020 10:49:30 +0000 (19:49 +0900)
committerWoochanlee <wc0917.lee@samsung.com>
Wed, 9 Sep 2020 10:50:23 +0000 (19:50 +0900)
Calling efl API before init if got something wrong.

Change-Id: I5d5158b39f9b96de2c3d439aa4e6d5b1d253515d
Signed-off-by: Woochanlee <wc0917.lee@samsung.com>
src/lib/efl/mobile/c/ui_application.cpp

index c5100bf26ce670ba1abd95954876fbf15d81b396..69a9fdf82d457de53d199b6bd4bfc4951230e6b3 100644 (file)
@@ -119,6 +119,12 @@ EAPI int ui_application_init()
        ui_app_capi *app = g_app;
        if (app) return UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS;
 
+       //When the viewmgr app launching if the candidate process has been terminated already,
+       //or CPU usage reason, the app process will execute by execv() by appfw.
+       //At that case the elm_init is not happed before call ui_app_main in the app.
+       //If user call ui_application_init function in case the application got something wrong.
+       elm_init(0, NULL);
+
        app = new(std::nothrow) ui_app_capi();
        if (!app)
        {