Android application closing problem with sdk 1.9.0 (V8)

You must Login before you can answer or comment on any questions.

Hi, i have Android Application using 1.9.0 with V8 (Testing on Samsung Galaxy ACE android 2.2.3).

When i close the application (android back button), seams that it doesn't exit immediately.

It's not appearing in task manager, but if i try to open it, it crashes.

I need to wait about 10-20 sec beetween two application starts.

The same issue with KitchenSink or new Mobile Project (creating it with one of titanium template).

Someone else has the same problem?

Any solutions?

Thanks....

4 Answers

I'm not sure if its the "right" solution, but works for me when I intercept the android:back event and issue;-

var activity = Titanium.Android.currentActivity;
activity.finish();

Same issue here with nightly build 1.8.2.

This issue doesn't exist in "Feb 2 2012 10:31 rcacde6be" but in "Feb 14 2012 16:31 r43d708c2".

So, it has to be caused by one change from this merge/commit https://github.com/appcelerator/titanium_mobile/commit/43d708c2e6c315ae747fe9e6d9aad2fc070ec120

Can reproduce this with KitchenSink and with my app on my Samsung Galaxy S2

— answered 1 year ago by Markus Krug
answer permalink
2 Comments
  • You're right, but with "Feb 2 2012 10:31 rcacde6be" I have serious memory leaks with table view, my previous question:

    Android Memory Leaks SDK 1.8.1 with V8 and tableview

    thanks anyway..

    — commented 1 year ago by maja miletic

  • This is exactly my problem too. Want to release a new version of my app. But can't use "Feb 2" cause of the memory issues and now I can't use a newer build cause of this issue

    — commented 1 year ago by Markus Krug

It's fixed in master. Haven't tested 1_8_x but I think it's fixed there too.

— answered 1 year ago by Markus Krug
answer permalink
2 Comments
  • it's not yet fixed in Branch 1_8_x

    — commented 1 year ago by Markus Krug

  • ok, it is not fixed in master. Can reproduce it even with latest build from master.

    — commented 1 year ago by Markus Krug

I can reproduce it even with 2.1.0GA. I have to postpone publishing my app because of this stupid issue. Until now the only way I found to bypass this crashing on relaunch is build with Rhino, although Rhino is slower than V8 very much

Your Answer

Think you can help? Login to answer this question!