语言

Menu
Sites
Language
On App::Terminate - app was closed unexpectedly

Heho,

I'm trying to terminate my App with:

Tizen::App::Application::GetInstance()->Terminate();

However. When I call this I get an "app was closed unexpectedly" on the device.
The log shows:


06-19 15:35:04.295 : ERROR / GeocachingBasic ( 5215 : 5215 ) : result Tizen::Base::Collection::ArrayListT<Type>::IndexOf(const Type&, int, int, int&) const [with Type = Tizen::Ui::Animations::_VisualElementImpl*, result = long unsigned int](486) > [E_OUT_OF_RANGE] The startIndex(0) MUST be less than the number of elements(0).
06-19 15:35:04.295 : ERROR / Tizen::Ui::Animations ( 5215 : 5215 ) : result Tizen::Ui::Animations::_VisualElementImpl::RemoveChild(Tizen::Ui::Animations::_VisualElementImpl&, bool)(4252) > [E_OBJ_NOT_FOUND] child is not a child of this instance.
06-19 15:35:04.295 : INFO / GeocachingBasic ( 5215 : 5215 ) : virtual result Form1::OnTerminating()(313) > TERMINATING Form1...
06-19 15:35:04.310 : INFO / GeocachingBasic ( 5215 : 5215 ) : virtual GpsLocation::~GpsLocation()(47) > DESTRUCT GpsLocation...
06-19 15:35:04.310 : ERROR / Tizen::Locations ( 5215 : 5215 ) : result Tizen::Locations::_LocationProviderImpl::StopLocationUpdates()(174) > [E_INVALID_OPERATION] Location update has not been requested.
06-19 15:35:04.310 : INFO / GeocachingBasic ( 5215 : 5215 ) : virtual GpsLocation::~GpsLocation()(50) > DESTRUCT GpsLocation...complete.
06-19 15:35:04.310 : INFO / GeocachingBasic ( 5215 : 5215 ) : virtual Compass::~Compass()(20) > DESTRUCT Compass...
06-19 15:35:04.470 : INFO / GeocachingBasic ( 5215 : 5215 ) : virtual Compass::~Compass()(24) > DESTRUCT Compass...complete.
06-19 15:35:04.475 : ERROR / Tizen::Ui ( 5215 : 5215 ) : result Tizen::Ui::_Control::DetachChild(Tizen::Ui::_Control&)(1869) > [E_INVALID_ARG] Not my child.
06-19 15:35:04.475 : ERROR / Tizen::Ui::Controls ( 5215 : 5215 ) : result Tizen::Ui::Controls::_Toolbar::StopWaitingAnimation(Tizen::Ui::Controls::ToolbarAnimationPosition)(2724) > [E_INVALID_STATE] [E_INVALID_STATE] __pAnimation isn't constructed.
06-19 15:35:04.475 : ERROR / Tizen::Ui ( 5215 : 5215 ) : result Tizen::Ui::_Control::DetachChild(Tizen::Ui::_Control&)(1869) > [E_INVALID_ARG] Not my child.
06-19 15:35:04.475 : ERROR / Tizen::Ui::Controls ( 5215 : 5215 ) : result Tizen::Ui::Controls::_Toolbar::StopWaitingAnimation(Tizen::Ui::Controls::ToolbarAnimationPosition)(2724) > [E_INVALID_STATE] [E_INVALID_STATE] __pAnimation isn't constructed.
06-19 15:35:04.475 : ERROR / Tizen::Ui ( 5215 : 5215 ) : result Tizen::Ui::_Control::DetachChild(Tizen::Ui::_Control&)(1869) > [E_INVALID_ARG] Not my child.
06-19 15:35:04.485 : ERROR / Tizen::Ui::Animations ( 5215 : 5215 ) : virtual Tizen::Ui::Animations::_RootVisualElement::~_RootVisualElement()(60) > [E_INVALID_STATE] The RootVisualElement instance has been destroyed, but the layer information was not cleaned.
06-19 15:35:04.485 : ERROR / Tizen::Ui::Animations ( 5215 : 5215 ) : virtual Tizen::Ui::Animations::_RootVisualElement::~_RootVisualElement()(60) > [E_INVALID_STATE] The RootVisualElement instance has been destroyed, but the layer information was not cleaned.
06-19 15:35:04.485 : ERROR / Tizen::Ui::Animations ( 5215 : 5215 ) : virtual Tizen::Ui::Animations::_RootVisualElement::~_RootVisualElement()(60) > [E_INVALID_STATE] The RootVisualElement instance has been destroyed, but the layer information was not cleaned.
06-19 15:35:04.485 : ERROR / Tizen::Ui::Animations ( 5215 : 5215 ) : virtual Tizen::Ui::Animations::_RootVisualElement::~_RootVisualElement()(60) > [E_INVALID_STATE] The RootVisualElement instance has been destroyed, but the layer information was not cleaned.
06-19 15:35:04.485 : ERROR / Tizen::Ui::Animations ( 5215 : 5215 ) : virtual Tizen::Ui::Animations::_RootVisualElement::~_RootVisualElement()(60) > [E_INVALID_STATE] The RootVisualElement instance has been destroyed, but the layer information was not cleaned.
06-19 15:35:04.485 : ERROR / Tizen::Ui::Animations ( 5215 : 5215 ) : virtual Tizen::Ui::Animations::_RootVisualElement::~_RootVisualElement()(60) > [E_INVALID_STATE] The RootVisualElement instance has been destroyed, but the layer information was not cleaned.

The app is a bada2 ported app.

Does anyone has an idea whats the problem here? I don't use any animation or so.

Regards.

编辑者为: Brock Boland 17 3月, 2014 原因: Paragraph tags added automatically from tizen_format_fix module.

响应

19 回复
Pushpa G
is it possible for you to attach your app here for a better analysis
Keans
Can you give me some contact information of you? Or can you contact me? ICQ: 45949345, Jabber: Catscratch@xmppnet.de Then I can give you the code. I don't want to publish it here. :-) Thanks!
kavish
Hi Pushpa, I want to attach screen shot for error messagfe but not able to do it. Can you guide me how to attach screen shot or application. I did not find any option to attach. Waiting for your valuable response. Please guide me.
Pushpa G
ok, To terminate the app you have to use the following code in Tizen: UiApp* pApp = UiApp::GetInstance(); AppAssert(pApp); pApp->Terminate(); Just make a new Tizen Native app by going to Tizen IDE>File>New>Project>Tizen>Tizen Native Project>Form based app say without scenemanager and finish and check in its code in the IDE for app terminate in AppnameForm.cpp in OnFormBackRequested(Tizen::Ui::Controls::Form& source) method. Go through the structure of that full app code
Keans
Thats the way I try to close the app. Can you give me some contact information of you? Then I can give to access to the code. Thanks!
Pushpa G
ok. Then can you paste your piece of code at which line its getting stuck please
Pushpa G
my contact hpushpa18@gmail.com. Send your app, i will check and reply to you
Pushpa G
Hi Catscratch, i am unable to open the link of the app you have sent me, please can you attach it in .zip format and send it again to me Thanks,
Keans
Did it.
Keans
Heho, did you got time to take a look into the code?
Przemyslaw Klosok
I had similar problem . I solved it by deleting a Timer in OnTerminating(). delete pTimer; Try it if You are using a Timer.
Keans
Nice! You're right. The timer was the problem. Now everything is working correctly. Thank you very much!!! :-)
Pushpa G
Hi Kean, Sorry i will check today and tell you
Keans
Hi, you don't have to do so. I found the problem. But thanks anyway. :-)
Pushpa G
oh ok:) no probs
Pushpa G
waht was the issue and how you solved it, do let me know
Przemyslaw Klosok
Hello. Read my post above
kavish
Hi Pushpa, I still not get any response for my query(not able to to attached any document). May I contact you on give email address regarding this problem. I think this time I can get some positve response.
Pushpa G
Hi Kavish, While you are creating a new query , you get an option to insert the image,file etc. Please check it