Languages

Menu
Sites
Language
Problem with GoForward

Hello!

I have a problem with SceneManager. Sometimes after calling GoForward method the application crashes.

 

result r = pSceneManager->GoForward(ForwardSceneTransition(L"ID_SCENE_TODAY", SCENE_TRANSITION_ANIMATION_TYPE_FADE_IN_OUT));

AppLog(GetErrorMessage(r));

 

FormFactory.cpp:

else if (formId == L"IDF_TODAY") {

TodayFilmsForm* pForm = new TodayFilmsForm();
pForm->Initialize();
pSceneManager->AddSceneEventListener(sceneId, *pForm);
pNewForm = pForm;
}
 

After calling GoForward called OnInitializing method of the form (with TableView) to which I turn. CreateItem method for TableView items also called, but OnSceneActivated is not called and application crashed.

What could be the problem?

 

Thanks!

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

4 Replies
Alex Dem
Hi, Using GoForward this way I got a crash too. Try to perform transition without animation at first : pSceneManager->GoForward(SceneTransitionId(ID_SCENE_TODAY)); Perhaps some details were missed or it wrong to use SceneManager this way. Alexey.
Valery Sukovyh
Thanks! Without scene animation it works stable.
Alex Dem
Just FYI: I guess you have used this one method to register scene: result RegisterScene(const Tizen::Base::String& resourceId); If so try to use another RegisterScene method for your case: result RegisterScene(const SceneId& sceneId, const Tizen::Base::String& formId, const Tizen::Base::String& panelId); ... pSceneManager->RegisterScene(ID_SCENE_TODAY,IDF_TODAY, ID of panel or emtpy string); ... First way to use GoForward should works in this case. Alexey.
Zoltan Puski
Good to found this thread! I just wanted to report, if I have scene transition animations during scene change, sporadically - but sooner or later for sure - the App crashes. It's more likely to crash if I have another animation is running, or if the system a bit busy (playing music, etc) while scene is being changed WITH animation. Attaching the stack trace, it seems some Tizen bug?
 
0	0x432daf9a	0: Tizen::Ui::Animations::_VisualElementImpl::CaptureI(Tizen::Graphics::Canvas&, Tizen::Graphics::FloatRectangle const&, Tizen::Ui::Animations::_VisualElementImpl&, Tizen::Graphics::FloatRectangle const&, Tizen::Graphics::FloatRectangle const&, bool, int) + 0x32d (0x432daf9a) [/usr/lib/osp/libosp-uifw.so] + 0x23ef9a
1	0x432dae25	1: Tizen::Ui::Animations::_VisualElementImpl::CaptureI(Tizen::Graphics::Canvas&, Tizen::Graphics::FloatRectangle const&, Tizen::Ui::Animations::_VisualElementImpl&, Tizen::Graphics::FloatRectangle const&, Tizen::Graphics::FloatRectangle const&, bool, int) + 0x1b8 (0x432dae25) [/usr/lib/osp/libosp-uifw.so] + 0x23ee25
2	0x432dba79	2: Tizen::Ui::Animations::_VisualElementImpl::Capture(Tizen::Graphics::Canvas&, Tizen::Graphics::FloatRectangle const&, Tizen::Graphics::FloatRectangle const&, bool) + 0xfc (0x432dba79) [/usr/lib/osp/libosp-uifw.so] + 0x23fa79
3	0x4330de97	3: (0x4330de97) [/usr/lib/osp/libosp-uifw.so] + 0x271e97
4	0x4330ed11	4: (0x4330ed11) [/usr/lib/osp/libosp-uifw.so] + 0x272d11
5	0x4330fead	5: (0x4330fead) [/usr/lib/osp/libosp-uifw.so] + 0x273ead
6	0x433100af	6: (0x433100af) [/usr/lib/osp/libosp-uifw.so] + 0x2740af
7	0x435de6f3	7: (0x435de6f3) [/usr/lib/osp/libosp-uifw.so] + 0x5426f3
8	0x435df163	8: (0x435df163) [/usr/lib/osp/libosp-uifw.so] + 0x543163
9	0x435e1c31	9: (0x435e1c31) [/usr/lib/osp/libosp-uifw.so] + 0x545c31
10	0x435d6671	10: Tizen::Ui::Scenes::SceneManager::GoForward(Tizen::Ui::Scenes::ForwardSceneTransition const&, Tizen::Base::Collection::IList const*) + 0x18 (0x435d6671) [/usr/lib/osp/libosp-uifw.so] + 0x53a671
11	0x44798eb8	11: FormMainMenu::OnUserEventReceivedN(long, Tizen::Base::Collection::IList*) + 0x464 (0x44798eb8) [/opt/apps/rCDkPoj55O/bin/MathAdventures.exe] + 0x22eb8
12	0x43351f65	12: Tizen::Ui::_ControlImpl::OnUserEventReceivedN(long, Tizen::Base::Collection::IList*) + 0x18 (0x43351f65) [/usr/lib/osp/libosp-uifw.so] + 0x2b5f65
13	0x43353c1d	13: Tizen::Ui::_ControlImpl::SendNotification(Tizen::Ui::_ControlImpl const&, Tizen::Base::Collection::IList*) + 0x70 (0x43353c1d) [/usr/lib/osp/libosp-uifw.so] + 0x2b7c1d
14	0x4335b737	14: Tizen::Ui::_ControlImpl::CoreEventListener::OnNotifiedN(Tizen::Ui::_Control const&, Tizen::Base::Collection::IList*) + 0x16 (0x4335b737) [/usr/lib/osp/libosp-uifw.so] + 0x2bf737
15	0x433b56d1	15: Tizen::Ui::_UiNotificationEvent::FireListener(Tizen::Ui::_INotificationEventListener const*, bool&) + 0x50 (0x433b56d1) [/usr/lib/osp/libosp-uifw.so] + 0x3196d1
16	0x433b57bf	16: Tizen::Ui::_UiNotificationEvent::OnEventProcessing(Tizen::Ui::_Control const&, bool&) + 0x2a (0x433b57bf) [/usr/lib/osp/libosp-uifw.so] + 0x3197bf
17	0x433aaadf	17: Tizen::Ui::_UiEvent::ProcessEvent(Tizen::Ui::_Control const&, bool&) + 0x32 (0x433aaadf) [/usr/lib/osp/libosp-uifw.so] + 0x30eadf
18	0x433ab48d	18: Tizen::Ui::_UiEventManager::ProcessBubblingEvent(Tizen::Base::Collection::LinkedListT > const&, Tizen::Ui::_UiEvent const&, bool&) + 0x78 (0x433ab48d) [/usr/lib/osp/libosp-uifw.so] + 0x30f48d
19	0x433ab719	19: Tizen::Ui::_UiEventManager::ProcessEvent(Tizen::Ui::_UiEvent const&, bool&) + 0x1ec (0x433ab719) [/usr/lib/osp/libosp-uifw.so] + 0x30f719
20	0x433ab821	20: Tizen::Ui::_UiEventManager::Fire(Tizen::Ui::_UiEvent const&) + 0xb0 (0x433ab821) [/usr/lib/osp/libosp-uifw.so] + 0x30f821
21	0x433ab88f	21: Tizen::Ui::_UiEventManager::SendEvent(Tizen::Ui::_UiEvent const&) + 0x6 (0x433ab88f) [/usr/lib/osp/libosp-uifw.so] + 0x30f88f