Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13916] Android: Packaging - Debug information is being printed out to DDMS when packaging to production

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-05-30T23:45:21.000+0000
Affected Version/sRelease 3.1.0
Fix Version/s2013 Sprint 11 Core, 2013 Sprint 11, Release 3.1.1, Release 3.2.0
ComponentsAndroid
Labelsmodule_android, qe-closed-3.1.1, qe-testadded, regression
Reporterchua swee siong
AssigneeAllen Yeung
Created2013-05-20T11:17:24.000+0000
Updated2014-02-21T20:11:20.000+0000

Description

*Problem description* After packaging distribution for Android and installing it to device, debug data is being printed out to DDMS. It is a regression. Refer TIMOB-6425. *Steps to reproduce* 1. Import KitchenSink to TiStudio 2. Package KitchenSink via TiStudio's "Distribute - Android" menu option 3. Open DDMS 4. Install KitchenSink.apk to device 5. Run and observe logs below *Log*
05-20 11:12:21.937: D/Module(5118): Loading module: ui/handheld/android/ApplicationWindow -> Resources/ui/handheld/android/ApplicationWindow.js
05-20 11:12:21.947: D/Module(5118): Loading module: ui/common/ApplicationTabGroup -> Resources/ui/common/ApplicationTabGroup.js
05-20 11:12:21.972: D/Module(5118): Loading module: ui/common/BaseUIWindow -> Resources/ui/common/BaseUIWindow.js
05-20 11:12:21.982: D/Module(5118): Loading module: ui/common/ControlsWindow -> Resources/ui/common/ControlsWindow.js
05-20 11:12:21.987: D/Module(5118): Loading module: ui/common/PhoneWindow -> Resources/ui/common/PhoneWindow.js
05-20 11:12:21.997: D/Module(5118): Loading module: ui/common/PlatformWindow -> Resources/ui/common/PlatformWindow.js
05-20 11:12:22.007: D/Module(5118): Loading module: ui/common/MashupsWindow -> Resources/ui/common/MashupsWindow.js
05-20 11:12:22.162: D/Module(5118): Loading module: ui/common/MessageWindow -> Resources/ui/common/MessageWindow.js

Comments

  1. Daniel Sefton 2013-05-20

    Tested and confirmed on Samsung Galaxy S2 Android 2.3.6, Ti SDK 3.1 GA.
  2. Allen Yeung 2013-05-23

    This is happening in 3.0.0.GA as well.
  3. Allen Yeung 2013-05-23

    PR: https://github.com/appcelerator/titanium_mobile/pull/4326
  4. Hieu Pham 2013-05-24

    3.1.X PR: https://github.com/appcelerator/titanium_mobile/pull/4327
  5. Ingo Muschenetz 2013-05-30

    Reopening as debug info is still written out in some circumstances.
  6. Eric Merriman 2013-05-30

    Hello, I think the intent here is to remove all debug output, whether generated by the SDK or from Ti.API.debug statements. Here are examples of output from KS: Packaged: I/TiAPI (13012): Welcome to Kitchen Sink for Titanium/3.1.1 D/TiAPI (13012): user agent set to Dalvik/1.6.0 (Linux; U; Android 4.2; Nexus 7 Build/JOP40C) Titanium/3.1.1 D/TiAPI (13012): locale specific date is 5/29/13 D/TiAPI (13012): locale specific date (medium) is May 29, 2013 D/TiAPI (13012): locale specific date (long) is May 29, 2013 D/TiAPI (13012): locale specific time is 5:47 PM D/TiAPI (13012): locale specific currency is $12.99 D/TiAPI (13012): locale specific decimal is 12.99 Not packaged: D/Module ( 5774): Loading module: ui/common/MessageWindow -> Resources/ui/common/MessageWindow.js I/power ( 644): *** release_dvfs_lock : lockType : 1 D/PowerManagerService( 644): releaseDVFSLockLocked : all DVFS_MIN_LIMIT are released W/ActivityManager( 644): mDVFSLock.release() I/TiAPI ( 5774): Welcome to Kitchen Sink for Titanium/3.1.1 D/TiAPI ( 5774): user agent set to Dalvik/1.6.0 (Linux; U; Android 4.0.4; SAMSUNG-SGH-I747 Build/IMM76D) Titanium/3.1.1 D/TiAPI ( 5774): locale specific date is 5/29/13 D/memalloc( 331): ion: Freeing buffer base:0x44c55000 size:3768320 fd:64 D/TiAPI ( 5774): locale specific date (medium) is May 29, 2013 D/TiAPI ( 5774): locale specific date (long) is May 29, 2013 D/TiAPI ( 5774): locale specific time is 3:06 PM D/TiAPI ( 5774): locale specific currency is $12.99 D/TiAPI ( 5774): locale specific decimal is 12.99
  7. Ping Wang 2013-05-30

    PR: https://github.com/appcelerator/titanium_mobile/pull/4339
  8. Ping Wang 2013-05-30

    For FR, 1. run KS in production mode and debug messages should not show in the console. 2. clean the project and run KS in development and debug mode. Debug messages should show.
  9. Ping Wang 2013-05-30

    3_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/4341
  10. Olga Romero 2013-05-31

    Tested and verified fix with: Appcelerator Studio, build: 3.1.1.201305312408 SDK, build: 3.1.1.v20130530204550 Device: Galaxy S3 4.0.4 Actual result:
        I/TiAPI   ( 3663):  Welcome to Kitchen Sink for Titanium/3.1.1
        I/TiAPI   ( 3663):  should be en, was = en
        I/TiAPI   ( 3663):  welcome_message = Welcome to Kitchen Sink for Titanium/
        

JSON Source