[ITC][dali-adaptor][Non-ACR][fixed crash issue]
authorJoogab Yun <joogab.yun@samsung.com>
Mon, 8 Oct 2018 06:15:04 +0000 (15:15 +0900)
committerjoogab yun <joogab.yun@samsung.com>
Mon, 8 Oct 2018 08:27:18 +0000 (08:27 +0000)
Thread 2 "RenderThread" received signal SIGSEGV, Segmentation fault.
[Switching to LWP 8824]
0xb7a6a9b2 in ?? () from /lib/libc.so.6
(gdb) bt full
No symbol table info available.
(this=0x80091cd4, newSurface=0x800a2428) at
../../../dali/internal/graphics/common/render-helper.cpp:117
        __FUNCTION__ = "ReplaceSurface"
Dali::Internal::Adaptor::CombinedUpdateRenderController::UpdateRenderThread
(this=0x80091cb8) at
../../../dali/internal/adaptor/common/combined-update-render-controller.cpp:460
        timeSinceLastFrame = <optimized out>
        newSurface = 0x800a2428
        frameDelta = <optimized out>
        keepUpdatingStatus = <optimized out>
        surfaceResized = <optimized out>
        currentFrameStartTime = 5203762643050
        isRenderingToFbo = <optimized out>
        currentTime = <optimized out>
        renderStatus = {needsUpdate = false, needsPostRender = false}
        nextFrameTime = <optimized out>
        noOfFramesSinceLastUpdate = <optimized out>
        updateStatus = {keepUpdating = 3082720424, needsNotification =
144, surfaceRectChanged = 255, secondsFromLastFrame = 1.40129846e-45}
        lastFrameTime = 5203762643050
        useElapsedTime = true
        updateRequired = <optimized out>
        timeToSleepUntil = 0
        extraFramesDropped = 0
        renderToFboInterval = 0
        renderToFboEnabled = <optimized out>
        frameCount = 0
        __FUNCTION__ = "UpdateRenderThread"
Dali::Internal::Adaptor::CombinedUpdateRenderController::InternalUpdateRenderThreadEntryFunc
(This=0x80091cb8)
    at
../../../dali/internal/adaptor/common/combined-update-render-controller.h:249
No locals.

Change-Id: Ie433f95d60506b54c1838976a3bcce89ab859ccd

src/itc/dali-adaptor/application/ITs-application.cpp

index aa1fa61a4808b96f0a721db8cbd7e1db221756a4..3127433a5e9a10c8d233379b7ad68246a73c77c2 100755 (executable)
@@ -105,6 +105,7 @@ namespace
                
                bool Tick()
                {
+                   Validate();
                        mTimer.Stop();
                        mApplication.Quit();
                        return true;
@@ -130,10 +131,6 @@ namespace
                                //~ ApplicationResetSignal(mApplication);
                                //~ break;
                          
-                               case APPLICATION_REPLACE_WINDOW:
-                               ApplicationReplaceWindow(mApplication);
-                               break;
-                         
                                case APPLICATION_ASSIGNMENT_OPERATOR:
                                ApplicationAssignmentOperator(mApplication);
                                break;
@@ -172,6 +169,16 @@ namespace
                        }
                }
                
+           void Validate()
+           {
+               switch( mTestCase )
+               {
+              case APPLICATION_REPLACE_WINDOW:
+              ApplicationReplaceWindow(mApplication);
+              break;
+               }
+           }
+
                void OnIdle()
                {
                        gIdleCalled = true;