Titanium Mobile
  1. Titanium Mobile
  2. TIMOB-7293

Android: App Freeze after being too much time in the background

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: High High
    • Resolution: Duplicate
    • Affects Version/s: Release 1.7.5, Release 1.8.0.1
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
      None
    • Environment:

      Studio 1.0.7.201112281340,
      Mobile SDK 1.8.0.1,
      deploying on Android 4.0/4.0.3
      Also tried latest builds/Android 2.2.3 and older builds (1.7.6).

      Description

      PROBLEM DESCRIPTION

      blank (black in my case) screen after being to long in the background. App then freezes and the generated report says:

      ANR keyDispatchingTimedOut in TiTabActivity
      Freeze
      Activity appname.android.app/ti.modules.titanium.ui.TiTabActivity
      Cause ANR keyDispatchingTimedOut
      

      MORE INFO

      Customer tried this, without any success:

      <android xmlns:android="http://schemas.android.com/apk/res/android">
              <tool-api-level>8</tool-api-level>
              <manifest android:installLocation="auto" android:versionCode="2" android:versionName="1.1">
                  <uses-sdk android:minSdkVersion="7" />
                  <supports-screens android:anyDensity="true"
                      android:largeScreens="true" android:normalScreens="true" android:smallScreens="true"/>
                  <application>
                      <activity android:alwaysRetainTaskState="true"
                          android:configChanges="keyboardHidden|orientation"
                          android:label="Applabel"
                          android:name=".ApplabelActivity" android:theme="@style/Theme.Titanium">
                          <intent-filter>
                              <action android:name="android.intent.action.MAIN"/>
                              <category android:name="android.intent.category.LAUNCHER"/>
                          </intent-filter>
                      </activity>
                  </application>
              </manifest>
          </android>
      
      1. stacktrace.txt
        6 kB
        Mauro Parra-Miranda

        Issue Links

          Activity

          Mauro Parra-Miranda created issue -
          Mauro Parra-Miranda made changes -
          Field Original Value New Value
          Attachment stacktrace.txt [ 25166 ]
          Mauro Parra-Miranda made changes -
          Attachment FailProjectFilesArjanBrinkman.rar [ 25167 ]
          Mauro Parra-Miranda made changes -
          Attachment FailProjectFilesArjanBrinkman.rar [ 25167 ]
          Mauro Parra-Miranda made changes -
          Description h4. PROBLEM DESCRIPTION
          blank (black in my case) screen after being to long in the background. App then freezes and the generated report says:

          ~~~
          ANR keyDispatchingTimedOut in TiTabActivity
          Freeze
          Activity appname.android.app/ti.modules.titanium.ui.TiTabActivity
          Cause ANR keyDispatchingTimedOut
          ~~~



          h4. MORE INFO
          Customer tried this, without any success:

          ~~~
          <android xmlns:android="http://schemas.android.com/apk/res/android">
                  <tool-api-level>8</tool-api-level>
                  <manifest android:installLocation="auto" android:versionCode="2" android:versionName="1.1">
                      <uses-sdk android:minSdkVersion="7" />
                      <supports-screens android:anyDensity="true"
                          android:largeScreens="true" android:normalScreens="true" android:smallScreens="true"/>
                      <application>
                          <activity android:alwaysRetainTaskState="true"
                              android:configChanges="keyboardHidden|orientation"
                              android:label="Applabel"
                              android:name=".ApplabelActivity" android:theme="@style/Theme.Titanium">
                              <intent-filter>
                                  <action android:name="android.intent.action.MAIN"/>
                                  <category android:name="android.intent.category.LAUNCHER"/>
                              </intent-filter>
                          </activity>
                      </application>
                  </manifest>
              </android>
          ~~~

          h4. PROBLEM DESCRIPTION
          blank (black in my case) screen after being to long in the background. App then freezes and the generated report says:

          {code}
          ANR keyDispatchingTimedOut in TiTabActivity
          Freeze
          Activity appname.android.app/ti.modules.titanium.ui.TiTabActivity
          Cause ANR keyDispatchingTimedOut
          {code}



          h4. MORE INFO
          Customer tried this, without any success:

          {code}
          <android xmlns:android="http://schemas.android.com/apk/res/android">
                  <tool-api-level>8</tool-api-level>
                  <manifest android:installLocation="auto" android:versionCode="2" android:versionName="1.1">
                      <uses-sdk android:minSdkVersion="7" />
                      <supports-screens android:anyDensity="true"
                          android:largeScreens="true" android:normalScreens="true" android:smallScreens="true"/>
                      <application>
                          <activity android:alwaysRetainTaskState="true"
                              android:configChanges="keyboardHidden|orientation"
                              android:label="Applabel"
                              android:name=".ApplabelActivity" android:theme="@style/Theme.Titanium">
                              <intent-filter>
                                  <action android:name="android.intent.action.MAIN"/>
                                  <category android:name="android.intent.category.LAUNCHER"/>
                              </intent-filter>
                          </activity>
                      </application>
                  </manifest>
              </android>
          {code}

          Mauro Parra-Miranda made changes -
          Comment [ Hello,

          here is the link to the project. I have been trying to reproduce this issue with emulator, without any success. According to the customer:

          1. We tests in ICS 4.0 or Android 2.2.3, on device. The app has to be in the background for 60-90 minutes, then try to get it back.

          The project:

          http://dl.dropbox.com/u/13492554/FailProjectFilesArjanBrinkman.rar

          Best,

          Mauro ]
          Neeraj Gupta made changes -
          Fix Version/s Sprint 2012-03 [ 12095 ]
          Neeraj Gupta made changes -
          Priority None [ 6 ] High [ 2 ]
          Neeraj Gupta made changes -
          Fix Version/s Release 1.9.0 [ 12593 ]
          Hieu Pham made changes -
          Assignee Marshall Culpepper [ mculpepper ] Hieu Pham [ hpham ]
          Hieu Pham made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Opie Cyrus made changes -
          Hieu Pham made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          Hieu Pham made changes -
          Assignee Hieu Pham [ hpham ] Bill Dawson [ billdawson ]
          Bill Dawson made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Bill Dawson made changes -
          Bill Dawson made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Fix Version/s Sprint 2012-03 [ 12095 ]
          Fix Version/s Release 1.9.0 [ 12593 ]
          Resolution Duplicate [ 3 ]
          Mauro Parra-Miranda made changes -
          Resolution Duplicate [ 3 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Neeraj Gupta made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Duplicate [ 3 ]

            People

            • Assignee:
              Bill Dawson
              Reporter:
              Mauro Parra-Miranda
            • Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development