Fix crash issue when restarting widgetApp 75/305075/1 accepted/tizen/7.0/unified/20240126.155607 accepted/tizen/7.0/unified/20240130.230303 accepted/tizen/7.0/unified/20240130.230340
authorsunghyun kim <scholb.kim@samsung.com>
Fri, 26 Jan 2024 06:42:13 +0000 (15:42 +0900)
committersunghyun kim <scholb.kim@samsung.com>
Fri, 26 Jan 2024 06:42:13 +0000 (15:42 +0900)
In the existing code, the remote surface was cleared here.
However, in general, WIDGET_INSTANCE_EVENT_FAULT is called later, so we can clear it at that time.

Currently, if we clear in advance at this point, a crash may occur in the process of restarting the widget.
(It seems that the malloc issue occurs in the process of replacing the existing callback)

Therefore, to avoid this crash, delete the part that was cleared at this point.

Change-Id: I4f54546a36295ae26382a39bb13913153b32cf69

widget_viewer_dali/internal/widget_view/widget_view_impl.cpp

index 0a8c8de4fda12db7749d37873834d0f4264923e6..7c28c2c6c2e9d69c3fc5189188f37218ebe90f2b 100644 (file)
@@ -174,12 +174,6 @@ static void OnBufferAdded( const char *appid, const char *instance_id, const int
 
 static void OnSurfaceRemoved( const char *appid, const char *instance_id, const int pid, void *data )
 {
-  Dali::WidgetView::Internal::WidgetView* widgetView = static_cast< Dali::WidgetView::Internal::WidgetView* >( data );
-
-  if( widgetView && !widgetView->IsWidgetFaulted() )
-  {
-    widgetView->CloseRemoteSurface();
-  }
 }
 
 } // unnamed namespace