Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2157] Android: On-Device-Debugging forces continuous app crash under certain circumstances

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-02-02T00:27:22.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labels3.0.0.GA, android, debug, debugger, debugger-android, debugging, device, kitchensink
ReporterMarkus Wutzler
AssigneeShak Hossain
Created2013-01-10T09:37:38.000+0000
Updated2016-03-08T07:41:08.000+0000

Description

Problem

The app stops after displaying the splash screen - it seems that app.js is not loaded

Target Environment

Host OS: Windows 7
OS Arch: x86
JRE Version: 1.6.0_24
JRE Vendor: Sun Microsystems Inc.
JRE Home: C:\Users\mrVVoo\AppData\Local\Titanium Studio\jre
Install Directory: file:/C:/Users/mrVVoo/AppData/Local/Titanium Studio/
Version: 3.0.1.201212181159
VM Arguments: -Xms40m
-Xmx1024m
-Declipse.p2.unsignedPolicy=allow
-Declipse.log.size.max=10000
-Declipse.log.backup.max=5
-Djava.awt.headless=true
-XX:MaxPermSize=256m
-Djava.class.path=C:\Users\mrVVoo\AppData\Local\Titanium Studio\\plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar

Workspace Directory: file:/D:/Projekte/titanium/
Language: de_DE

Titanium SDK Version: 2.0.1
Mobile SDK Modules API Version:2
Mobile SDK Timestamp: 04/12/12 16:33
Mobile SDK Build Number: 999c68a
Titanium SDK Location: C:\Users\mrVVoo\AppData\Roaming\Titanium\mobilesdk\win32\2.0.1.GA2

Titanium SDK Version: 2.0.2
Mobile SDK Modules API Version:2
Mobile SDK Timestamp: 05/30/12 10:21
Mobile SDK Build Number: 2ff31a3
Titanium SDK Location: C:\Users\mrVVoo\AppData\Roaming\Titanium\mobilesdk\win32\2.0.2.GA

Titanium SDK Version: 2.1.0
Mobile SDK Modules API Version:2
Mobile SDK Timestamp: 06/28/12 12:16
Mobile SDK Build Number: 6e3cab6
Titanium SDK Location: C:\Users\mrVVoo\AppData\Roaming\Titanium\mobilesdk\win32\2.1.0.GA

Titanium SDK Version: 2.1.3
Mobile SDK Modules API Version:2
Mobile SDK Timestamp: 10/02/12 16:16
Mobile SDK Build Number: 15997d0
Titanium SDK Location: C:\Users\mrVVoo\AppData\Roaming\Titanium\mobilesdk\win32\2.1.3.GA

Titanium SDK Version: 2.1.4
Mobile SDK Modules API Version:2
Mobile SDK Timestamp: 11/09/12 12:46
Mobile SDK Build Number: 51f2c64
Titanium SDK Location: C:\Users\mrVVoo\AppData\Roaming\Titanium\mobilesdk\win32\2.1.4.GA

Titanium SDK Version: 3.0.0
Mobile SDK Modules API Version:2
Mobile SDK Timestamp: 12/12/12 18:49
Mobile SDK Build Number: a5894b3
Titanium SDK Location: C:\Users\mrVVoo\AppData\Roaming\Titanium\mobilesdk\win32\3.0.0.GA


Titanium CLI Version: 3.0.22
Titanium CLI Enabled: true

Alloy Version: 0.3.4
--
HTC Desire, Android 2.2.2

Steps to reproduce

1. Create an app with Titanium 2.x 2. Run on Device 3. Upgrade SDK to 3.0.0 4. Run on Device (then we noticed several bugs and decided to use the new debugger) 5. Debug on Device (we noticed that debugging was to difficult at the moment and decided to switch back to 2.1.4.GA which we used before) 6. Downgrade to 2.1.4.GA 7. Run on Device Now the app always stops at the splash screen, maybe it's waiting for the remote debugger.

Additional details

I've noticed that two times on my Device and thought that my machine was wrong configured. Now i tried the same with KitchenSink again and reproduced the error as described above. So i think that this is no misconfiguration. The only way to get rid of this error seems to reset the whole device. I'll try that (i already did this the first time the error occured but i thought it was a configuration problem as [described here](http://developer.appcelerator.com/question/146536/android-app-doesnt-start-anymore-after-back-switch-from-sdk-30 and here: http://developer.appcelerator.com/question/146536/android-app-doesnt-start-anymore-after-back-switch-from-sdk-30) I thought again and again what i did today and finally i remembered that i used the on-device debugging. in both cases i did this and so i tried to reproduce this with KitchenSink and the error occurs.

Comments

  1. Markus Wutzler 2013-01-10

    Resetting the device is no soultion. Instead you should run the app again with SDK 3.0.0 in non-debug mode and THEN switch back to 2.1.4.GA. After that the app is running correctly.
  2. Eduardo Gomez 2013-01-24

    @Markus Wutzler Can you please provide Console logs? You can check the [JIRA Ticket Checklist](http://docs.appcelerator.com/titanium/latest/#!/guide/How_to_Submit_a_Bug_Report-section-29004732_HowtoSubmitaBugReport-JIRATicketChecklist) and complete this issue. Cause this ticket misses crucial information that must be included in order for a ticket to be accepted.
  3. Markus Wutzler 2013-01-26

    [~egomez] Sorry, but I'm working on commercial projects and providing all the logs would require too much time. The build.log files are at least equal except that i used SDK 3.0.0 instead of 2.1.4. So I don't think that this would be very helpful. Are there any other logs? Unfortunately our app doesn't work with SDK 3.0 at the moment.
  4. Markus Wutzler 2013-01-26

    you can also take a look at the log files attached to [TC-1730]. They contain the same information.
  5. Eduardo Gomez 2013-01-28

  6. Markus Wutzler 2013-02-01

    yes, unfortunately log files from 2.x are missing
  7. Eduardo Gomez 2013-02-02

    Without all the information issues can't be escalated. Please attach missing logs to adhere to [jira checklist](http://docs.appcelerator.com/titanium/latest/#!/guide/How_to_Submit_a_Bug_Report-section-29004732_HowtoSubmitaBugReport-JIRATicketChecklist) and replicate quicker. Once they have been attached, I'd be happy to look into it.

JSON Source