Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13209] Tizen : App run on tizen device fails from studio where as from CLI works properly

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-03-27T16:39:42.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.1.0, 2013 Sprint 07
ComponentsTizen
Labelsqe-testadded, sdk-tizen
ReporterLokesh Choudhary
AssigneePraveen Innamuri
Created2013-03-25T22:51:25.000+0000
Updated2014-01-30T15:31:27.000+0000

Description

NOTE: 1.)This issue is only seen when run through studio. With CLI the app builds & run fine on the device 2.)The tizen environments have been freshly setup today after the invalid environment issue which we had earlier. 3.)From studio run on emulator works fine Description: 1.Follow the setup instructions on the preview page & do the tizen setup 2.Connect the tizen device to the machine 3.Create an app with tizen as target 4.Run on device Actual Results: 1.The app does not install on the device & launch fails 2.Studio logs:
!ENTRY com.aptana.core 1 0 2013-03-25 15:33:56.870
!MESSAGE (Build 3.1.0.201303240100) [INFO] com.aptana.core/debug/shell Running process:
Process: "C:\tizen-sdk\tools\sdb.EXE" "devices"
Working directory: null
Environment: {!::=::\, ALLUSERSPROFILE=C:\ProgramData, ANDROID_NDK=C:\Users\tester\Desktop\android\android-ndk-r8d, ANDROID_SDK=C:\Users\tester\Desktop\android\android_sdk_r21, APPDATA=C:\Users\tester\AppData\Roaming, APTANA_VERSION=3.1.0.1358389152, COMMONPROGRAMFILES=C:\Program Files (x86)\Common Files, COMMONPROGRAMFILES(X86)=C:\Program Files (x86)\Common Files, COMMONPROGRAMW6432=C:\Program Files\Common Files, COMPUTERNAME=LABTESTER-PC, COMSPEC=C:\Windows\system32\cmd.exe, FP_NO_HOST_CHECK=NO, HOME=C:\Users\tester, HOMEDRIVE=C:, HOMEPATH=\Users\tester, JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_38\, LOCALAPPDATA=C:\Users\tester\AppData\Local, LOGONSERVER=\\LABTESTER-PC, NUMBER_OF_PROCESSORS=4, OS=Windows_NT, PATH=c:/Users/tester/Desktop/tistud/rc/titanium-studio/jre/bin/client;c:/Users/tester/Desktop/tistud/rc/titanium-studio/jre/bin;c:/Users/tester/Desktop/tistud/rc/titanium-studio/jre/lib/i386;c:/Program Files (x86)/Java/jdk1.6.0_38/bin;c:/Program Files/Microsoft SQL Server/110/Tools/Binn/;c:/Program Files/nodejs/;c:/Windows/system32;c:/Windows;c:/Windows/System32/Wbem;c:/Windows/System32/WindowsPowerShell/v1.0/;c:/gperf/bin;/usr/cmd/;c:/Python27;c:/Users/tester/Desktop/android/android_sdk_r21/platform-tools;c:/Users/tester/Desktop/android/android_sdk_r21/tools;c:/Users/tester/AppData/Roaming/npm/;c:/Users/tester/Desktop/tistud/rc/titanium-studio;.;C:/Users/tester/AppData/Roaming/npm/, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, PROCESSOR_ARCHITECTURE=x86, PROCESSOR_ARCHITEW6432=AMD64, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 15 Stepping 11, GenuineIntel, PROCESSOR_LEVEL=6, PROCESSOR_REVISION=0f0b, PROGRAMDATA=C:\ProgramData, PROGRAMFILES=C:\Program Files (x86), PROGRAMFILES(X86)=C:\Program Files (x86), PROGRAMW6432=C:\Program Files, PSMODULEPATH=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\, PUBLIC=C:\Users\Public, PWD=/c/Users/tester/Desktop/tistud/rc/titanium-studio, SESSIONNAME=Console, SHLVL=1, SSH_AGENT_PID=2116, SSH_AUTH_SOCK=/tmp/ssh-QoOwlU4084/agent.4084, SYSTEMDRIVE=C:, SYSTEMROOT=C:\Windows, TEMP=/tmp, TERM=cygwin, USERDOMAIN=labTester-PC, USERNAME=tester, USERPROFILE=C:\Users\tester, VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\, WINDIR=C:\Windows, WINDOWS_TRACING_FLAGS=3, WINDOWS_TRACING_LOGFILE=C:\BVTBin\Tests\installpackage\csilogfile.log}

!ENTRY com.aptana.core 1 0 2013-03-25 15:33:56.909
!MESSAGE (Build 3.1.0.201303240100) [INFO] com.aptana.core/debug/shell Running process:
Process: "c:\Users\tester\AppData\Roaming\npm\titanium.CMD" "status" "-o" "json" "--no-colors" "--no-prompt" "--no-banner"
Working directory: null
Environment: {=::=::\, ALLUSERSPROFILE=C:\ProgramData, ANALYTICS_SOURCE=studio, ANDROID_NDK=C:\Users\tester\Desktop\android\android-ndk-r8d, ANDROID_SDK=C:\Users\tester\Desktop\android\android_sdk_r21, APPDATA=C:\Users\tester\AppData\Roaming, COMPUTERNAME=LABTESTER-PC, ComSpec=C:\Windows\system32\cmd.exe, CommonProgramFiles=C:\Program Files (x86)\Common Files, CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files, CommonProgramW6432=C:\Program Files\Common Files, FP_NO_HOST_CHECK=NO, HOMEDRIVE=C:, HOMEPATH=\Users\tester, JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_38\, LOCALAPPDATA=C:\Users\tester\AppData\Local, LOGONSERVER=\\LABTESTER-PC, NUMBER_OF_PROCESSORS=4, OS=Windows_NT, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, PROCESSOR_ARCHITECTURE=x86, PROCESSOR_ARCHITEW6432=AMD64, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 15 Stepping 11, GenuineIntel, PROCESSOR_LEVEL=6, PROCESSOR_REVISION=0f0b, PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\, PUBLIC=C:\Users\Public, Path=C:\Program Files (x86)\Java\jdk1.6.0_38\\bin;C:/Users/tester/Desktop/tistud/rc/titanium-studio/jre/bin/client;C:/Users/tester/Desktop/tistud/rc/titanium-studio/jre/bin;C:/Users/tester/Desktop/tistud/rc/titanium-studio/jre/lib/i386;C:\Program Files (x86)\Java\jdk1.6.0_38\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\nodejs\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\gperf\bin;C:\Program Files (x86)\Git\cmd\;C:\Program Files (x86)\Java\jdk1.6.0_38\bin;C:\Python27;C:\Users\tester\Desktop\android\android_sdk_r21\platform-tools;C:\Users\tester\Desktop\android\android_sdk_r21\tools;C:\Users\tester\AppData\Roaming\npm\;C:\Users\tester\Desktop\tistud\rc\titanium-studio;;C:\Users\tester\Desktop\tistud\rc\titanium-studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1338515509\python, ProgramData=C:\ProgramData, ProgramFiles=C:\Program Files (x86), ProgramFiles(x86)=C:\Program Files (x86), ProgramW6432=C:\Program Files, SESSIONNAME=Console, SSH_AGENT_PID=2116, SSH_AUTH_SOCK=/tmp/ssh-QoOwlU4084/agent.4084, SystemDrive=C:, SystemRoot=C:\Windows, TEMP=C:\Users\tester\AppData\Local\Temp, TMP=C:\Users\tester\AppData\Local\Temp, USERDOMAIN=labTester-PC, USERNAME=tester, USERPROFILE=C:\Users\tester, VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\, windir=C:\Windows, windows_tracing_flags=3, windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log}

!ENTRY com.aptana.core 1 0 2013-03-25 15:33:58.901
!MESSAGE (Build 3.1.0.201303240100) [INFO] com.aptana.core/debug/shell Running process:
Process: "c:\Users\tester\AppData\Roaming\npm\titanium.CMD" "build" "--platform" "tizen" "--run-dev-id=4df19a7153da9f00" "--sdk" "3.1.0.v20130325081923" "--log-level" "trace" "--no-colors" "--no-prompt"
Working directory: C:\Users\tester\Desktop\tistud\rc\workspace\tizen-555
Environment: {=::=::\, ALLUSERSPROFILE=C:\ProgramData, ANALYTICS_SOURCE=studio, ANDROID_NDK=C:\Users\tester\Desktop\android\android-ndk-r8d, ANDROID_SDK=C:\Users\tester\Desktop\android\android_sdk_r21, APPDATA=C:\Users\tester\AppData\Roaming, COMPUTERNAME=LABTESTER-PC, ComSpec=C:\Windows\system32\cmd.exe, CommonProgramFiles=C:\Program Files (x86)\Common Files, CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files, CommonProgramW6432=C:\Program Files\Common Files, FP_NO_HOST_CHECK=NO, HOMEDRIVE=C:, HOMEPATH=\Users\tester, JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_38\, LOCALAPPDATA=C:\Users\tester\AppData\Local, LOGONSERVER=\\LABTESTER-PC, NUMBER_OF_PROCESSORS=4, OS=Windows_NT, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, PROCESSOR_ARCHITECTURE=x86, PROCESSOR_ARCHITEW6432=AMD64, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 15 Stepping 11, GenuineIntel, PROCESSOR_LEVEL=6, PROCESSOR_REVISION=0f0b, PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\, PUBLIC=C:\Users\Public, Path=C:\Program Files (x86)\Java\jdk1.6.0_38\\bin;C:/Users/tester/Desktop/tistud/rc/titanium-studio/jre/bin/client;C:/Users/tester/Desktop/tistud/rc/titanium-studio/jre/bin;C:/Users/tester/Desktop/tistud/rc/titanium-studio/jre/lib/i386;C:\Program Files (x86)\Java\jdk1.6.0_38\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\nodejs\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\gperf\bin;C:\Program Files (x86)\Git\cmd\;C:\Program Files (x86)\Java\jdk1.6.0_38\bin;C:\Python27;C:\Users\tester\Desktop\android\android_sdk_r21\platform-tools;C:\Users\tester\Desktop\android\android_sdk_r21\tools;C:\Users\tester\AppData\Roaming\npm\;C:\Users\tester\Desktop\tistud\rc\titanium-studio;;C:\Users\tester\Desktop\tistud\rc\titanium-studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1338515509\python, ProgramData=C:\ProgramData, ProgramFiles=C:\Program Files (x86), ProgramFiles(x86)=C:\Program Files (x86), ProgramW6432=C:\Program Files, SESSIONNAME=Console, SSH_AGENT_PID=2116, SSH_AUTH_SOCK=/tmp/ssh-QoOwlU4084/agent.4084, SystemDrive=C:, SystemRoot=C:\Windows, TEMP=C:\Users\tester\AppData\Local\Temp, TMP=C:\Users\tester\AppData\Local\Temp, USERDOMAIN=labTester-PC, USERNAME=tester, USERPROFILE=C:\Users\tester, VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\, windir=C:\Windows, windows_tracing_flags=3, windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log}

!ENTRY com.aptana.editor.common 1 0 2013-03-25 15:34:04.961
!MESSAGE (Build 3.1.0.201303240100) [INFO] com.aptana.editor.common/debug/presentation Initiating presentation reconciling for region at offset 0, length 3,994 in document of length 3,994

!ENTRY com.appcelerator.titanium.ui.ide 1 0 2013-03-25 15:34:05.511
!MESSAGE (Build 3.1.0.201303240100) [INFO] com.appcelerator.titanium.core/debug Updating the TiApp cloud section after a model change...

!ENTRY com.aptana.editor.common 1 0 2013-03-25 15:34:05.920
!MESSAGE (Build 3.1.0.201303240100) [INFO] com.aptana.editor.common/debug/presentation Initiating presentation reconciling for region at offset 0, length 3,994 in document of length 3,994

!ENTRY com.aptana.editor.common 1 0 2013-03-25 15:34:05.932
!MESSAGE (Build 3.1.0.201303240100) [INFO] com.aptana.editor.common/debug/presentation Initiating presentation reconciling for region at offset 1,886, length 97 in document of length 3,994

!ENTRY com.appcelerator.titanium.ui.ide 1 0 2013-03-25 15:34:06.004
!MESSAGE (Build 3.1.0.201303240100) [INFO] com.appcelerator.titanium.core/debug Updating the TiApp section after a module resource change...

!ENTRY com.appcelerator.titanium.ui.ide 2 0 2013-03-25 15:34:06.004
!MESSAGE (Build 3.1.0.201303240100) [WARNING] com.appcelerator.titanium.core/debug Unexpected null SDKEntity for 

!ENTRY com.aptana.editor.common 1 0 2013-03-25 15:34:28.125
!MESSAGE (Build 3.1.0.201303240100) [INFO] com.aptana.editor.common/debug/presentation Initiating presentation reconciling for region at offset 0, length 23,681 in document of length 23,681

!ENTRY com.aptana.editor.common 1 0 2013-03-25 15:34:28.402
!MESSAGE (Build 3.1.0.201303240100) [INFO] com.aptana.editor.common/debug/presentation Initiating presentation reconciling for region at offset 0, length 23,935 in document of length 23,935
3.Console log:
Titanium Command-Line Interface, CLI version 3.0.25-alpha, Titanium SDK version 3.1.0.v20130325081923
Copyright (c) 2012-2013, Appcelerator, Inc.  All Rights Reserved.
[INFO] :   Compiling "development" build
[INFO] :   Reading Titanium Mobile Web package.json file
[INFO] :   Target device Id:  "4df19a7153da9f00" 
[INFO] :   Processing tizen section of tiapp.xml
[INFO] :   Validating theme
[INFO] :   Copying project files
[INFO] :   Finding all Titanium API dependencies
[INFO] :   Creating favicon and Apple touch icons
[INFO] :   Finding all required modules to be cached
[INFO] :   Finding all precached modules
[INFO] :   Finding all precached images
[INFO] :   No Titanium Modules required, continuing
[INFO] :   Finding all distinct cached modules
[INFO] :   Found 338 dependencies, 1 package, 340 modules
[INFO] :   Assembling titanium.js
[INFO] :   Processing splash screen
[INFO] :   Assembling titanium.css
[INFO] :   Creating the filesystem registry
[INFO] :   Creating the index.html
[INFO] :   delete C:\Users\tester\Desktop\tistud\rc\workspace\tizen-555/build/tizen/mobileweb/apple_startup_images
[INFO] :   Signing application in  "C:\Users\tester\Desktop\tistud\rc\workspace\tizen-555/build/tizen" 
[INFO] :   Signer commandline:  "java -jar "C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.v20130325081923\tizen\utils\signapp.jar" -sig_proj C:\Users\tester\Desktop\tistud\rc\workspace\tizen-555/build/tizen" 
[INFO] :   Packaging application into wgt
[INFO] :   Reading Tizen SDK location from: C:\Users\tester\AppData\Local\tizen-sdk-data\tizensdkpath
[INFO] :   Tizen SDK found at: C:\tizen-sdk
[INFO] :   Executing: C:\tizen-sdk\tools\ide\bin\web-uninstall.bat -t 10 -i 6Hwl90KIUH --device=4df19a7153da9f00
[INFO] :   Uninstall failed, '6Hwl90KIUH' widget is not installed.
[INFO] :   Executing: C:\tizen-sdk\tools\ide\bin\web-install.bat -t 10  --widget="C:\Users\tester\Desktop\tistud\rc\workspace\tizen-555\build\tizen\tizenapp.wgt" --device=4df19a7153da9f00
[INFO] :   'tizenapp.wgt' file transfer successful.
Enable developer mode.
'6Hwl90KIUH' install successful.
[INFO] :   Executing: C:\tizen-sdk\tools\ide\bin\web-run.bat -t 10 -i 6Hwl90KIUH --device=4df19a7153da9f00
[INFO] :   '6Hwl90KIUH' launch failed.
[INFO] :   Project built successfully in 6s 428ms
Expected Device: 1.The app should run on device normally & expected

Comments

  1. Praveen Innamuri 2013-03-26

    When Tizen app is created from Studio, it creates a default template URL "http://" in the URL field of TiApp. Tizen CLI fails to parse this url while installing the app on device and thus, the launch fails. Note that this field is populated for all apps. If the TiApp is modified to remove the URL, then the app launches on device without any problems.
  2. Anatoliy Odukha 2013-03-26

    Does it work after you changed "http://" to valid url? Could you check device firmware version and attach wgt please? I repeated steps. There was "http://" in url. But I failed to reproduce it. Applications runs well on tizen device.
  3. Neeraj Gupta 2013-03-27

    Anatoily added code in Tizen platform to take care of this issue.
  4. Lokesh Choudhary 2013-03-27

    Verified the fix & it works as expected. This closing the issue. Environment: Ti SDK : 3.1.0.v20130326111901 Ti Studio : 3.1.0.201303252247 win 7 win 8 mac osx 10.8.2 linux 12.04 LTS

JSON Source