cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX task exit on error when switching screen - only happen on target not in simulation

BParh.1
Senior III

I have implemented a screen transition from screen1 to screen2 upon receiving event from Backend in Model class. But it lead to task exit on error.

Snippet to change screen:

application().gotoHomeScreenNoTransition();

What I know so far:

  1. Only happen on target, does not happen on simulation
  2. Only happen after I add additional widgets on screen2 with additonal codes
  3. Increasing the task stack size does not help
  4. Increasing heap size does not help.

Can someone give me some pointer please.

  following is callstack, here GUIUpdaterTask is actually default TouchGFX task, I just renamed it. 

[__exit + 0xb]

[_Znwj + 0x1b]

std::_Tree_comp_alloc<std::_Tmap_traits<MenuOverlay::MenuId, ListItem::ItemProps, std::less<MenuOverlay::MenuId>, std::allocator<std::pair<MenuOverlay::MenuId const, ListItem::ItemProps>>, false>>::_Buyheadnode()

std::_Tree_comp_alloc<std::_Tmap_traits<MenuOverlay::MenuId, ListItem::ItemProps, std::less<MenuOverlay::MenuId>, std::allocator<std::pair<MenuOverlay::MenuId const, ListItem::ItemProps>>, false>>::_Construct() ***

std::_Tree<std::_Tmap_traits<MenuOverlay::MenuId, ListItem::ItemProps, std::less<MenuOverlay::MenuId>, std::allocator<std::pair<MenuOverlay::MenuId const, ListItem::ItemProps>>, false>>::_Tree(struct std::less<MenuOverlay::MenuId> const &, class std::allocator<std::pair<MenuOverlay::MenuId const, ListItem::ItemProps>> const &) ***

void std::_Tree<std::_Tmap_traits<MenuOverlay::MenuId, ListItem::ItemProps, std::less<MenuOverlay::MenuId>, std::allocator<std::pair<MenuOverlay::MenuId const, ListItem::ItemProps>>, false>>::insert<std::pair<MenuOverlay::MenuId const, ListItem::ItemProps> const *>(struct std::pair<MenuOverlay::MenuId const, ListItem::ItemProps> const *, struct std::pair<MenuOverlay::MenuId const, ListItem::ItemProps> const *) ***

MenuOverlay::MenuOverlay()

HomeViewBase::HomeViewBase()

HomeView::HomeView()

class HomePresenter * touchgfx::makeTransition<HomeView, HomePresenter, touchgfx::NoTransition, Model>(class touchgfx::Screen * *, class touchgfx::Presenter * *, class touchgfx::MVPHeap &, class touchgfx::Transition * *, class Model *)

FrontendApplicationBase::gotoHomeScreenNoTransitionImpl()

touchgfx::MVPApplication::evaluatePendingScreenTransition() ***

[_ZN8touchgfx3HAL4tickEv + 0x6f]

TouchGFXHAL::taskEntry()

GUIUpdaterTask

prvTaskExitError

0 REPLIES 0