Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2649] Android: Detecting Second Instance causes NPE.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:59:42.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M03
ComponentsAndroid
Labelsandroid, defect, regression, release-1.5.2, release-1.6.0, reported-1.5.1
ReporterDon Thorp
AssigneeDon Thorp
Created2011-04-15T03:25:49.000+0000
Updated2011-04-17T01:59:42.000+0000

Description

When launching the app from the install point, not the home launcher on device, an NPE is generated when trying to release modules because it assumes that the app is already set up.

See http://developer.appcelerator.com/question/92671/android---freezing-on-startup"> Q&A 92671

~~~ com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
12-20 12:46:09.205: ERROR/AndroidRuntime(13433): at dalvik.system.NativeStart.main(Native Method)
12-20 12:46:09.205: ERROR/AndroidRuntime(13433): Caused by: java.lang.NullPointerException
12-20 12:46:09.205: ERROR/AndroidRuntime(13433): at org.appcelerator.titanium.TiRootActivity.onDestroy(TiRootActivity.java:420)
12-20 12:46:09.205: ERROR/AndroidRuntime(13433): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3861)
12-20 12:46:09.205: ERROR/AndroidRuntime(13433): ... 11 more
~~~

Comments

  1. Don Thorp 2011-04-15

    (from [86ad0ed0cb9ef1a58aca6ad657c3db2b56f53de1]) [#2649 state:fixed-in-qa] Added null checking. https://github.com/appcelerator/titanium_mobile/commit/86ad0ed0cb9ef1a58aca6ad657c3db2b56f53de1"> https://github.com/appcelerator/titanium_mobile/commit/86ad0ed0cb9e...

  2. Don Thorp 2011-04-15

    (from [9a159e763acfefd09606a665102e595b506795f4]) [#2649 state:fixed-in-qa] Added null checking. https://github.com/appcelerator/titanium_mobile/commit/9a159e763acfefd09606a665102e595b506795f4"> https://github.com/appcelerator/titanium_mobile/commit/9a159e763acf...

  3. Don Thorp 2011-04-15

    adding release-1.5.2 tag for tracking fix pushed to 1_5_X branch.

  4. Thomas Huelbert 2011-04-15

    "an application restart is required" 2.2.1 (G2), 1.6 (G1) Titanium SDK version: 1.5.2 (01/05/11 08:30 981dff2) and Titanium SDK version: 1.6.0 (01/04/11 08:01 e49700d)

  5. Chris Brooks 2011-04-15

    This is still occurring for me on today's (21/02/2011) current Continuous 1.6.0 builds.

    If I install the App from the marketplace and click from the Point Of Install, (Marketplace or Notifications Bar), the App crashes on first run.

    If I open it for first run from the Homescreen the App launches without error.

    Tracelog pastie http://pastie.org/1589654t" title= "Here">Here

    Question on Developer Q&A http://www.google.co.uk/search?sourceid=chrome&;ie=UTF-8&q=Appcelerator%2Bapp%2Bcrash%2BOTA" title="Here">Here

  6. Chris Brooks 2011-04-15

    Correction:

    Question on Developer Q&A http://developer.appcelerator.com/question/114801/android-force-close-on-first-run-after-submitted-to-market" title="Here">Here

    Old Related Question (Now Closed) http://developer.appcelerator.com/question/92811/help-runs-fine-on-android-simulator---stops-at-the-splash-screen-on-device" title="Here">Here

  7. Chris Brooks 2011-04-15

    Sorry I've made a mistake, after taking another look at the Stack Trace I realised that this is not the same issue, but a different issue which causes the same results. (Crash when launched from point of install).

JSON Source