Add error log to check AsyncTaskManager::AddTask memory issue 95/305895/1
authorseungho baek <sbsh.baek@samsung.com>
Tue, 13 Feb 2024 05:01:48 +0000 (14:01 +0900)
committerseungho baek <sbsh.baek@samsung.com>
Tue, 13 Feb 2024 05:01:48 +0000 (14:01 +0900)
Change-Id: Icdabe8e65d69f73f769602cc86bb4d7f4b5d78f7
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
dali/internal/system/common/async-task-manager-impl.cpp

index 2064dfd..c488d2f 100644 (file)
@@ -685,7 +685,12 @@ void AsyncTaskManager::AddTask(AsyncTaskPtr task)
   while(index++ < count)
   {
     auto processHelperIt = mTasks.GetNext();
-    DALI_ASSERT_ALWAYS(processHelperIt != mTasks.End());
+    if(processHelperIt == mTasks.End())
+    {
+      DALI_LOG_ERROR("Invalid memory accessed. Count : %d, Current Index : %d, Number Of Element : %d, Is Processor Registered : %s, Is Adaptor Available : %s\n", count, index, mTasks.GetElementCount(), mProcessorRegistered ? "true" : "false", Dali::Adaptor::IsAvailable() ? "true" : "false");
+      DALI_ASSERT_ALWAYS(processHelperIt != mTasks.End());
+    }
+
     if(processHelperIt->Request())
     {
       break;