Languages

Menu
Sites
Language
Can't install samsung tv app from IDE, but can from CLI

Hi, I am experiencing this issue on two different macOS boxes. 

I am able to install and run my application using the CLI tools, issuing commands like this:

~/tizen-studio/tools/ide/bin/tizen package -- ./dist/tizen -t wgt -s the-active-cert-in-certificate-manger

~/tizen-studio/tools/ide/bin/tizen install -t UN40MUXXXX --name MyApp.wgt

However, if i attempt to do a run as.. or debug as.. using the IDE, the console gives me this error (note; the uninstall seems to work, as it uninstalls what i previously installed using command line... that part is left out if the app is already uninstalled)

Launching the Tizen application...
# If you want to see the detailed information,
# please set the logging level to DEBUG in Preferences and check the log file in '/Users/gaiaapps/tizen-studio-data/ide/logs/ide-20210428_135356.log'.
[Initializing the launch environment...]
    RDS: Off
    Target information: UN40MUXXXX
    Application information: Id(xxx.xxx), Package Name(xxx), Project Name(xx)
[Transferring the package...]
    Transferred the package: wgt stream -> /home/owner/share/tmp/sdk_tools/tmp/Gaia.wgt
[Uninstalling the package...]
uninstall xxx.x
app_id[xxx.xxx] uninstall start
app_id[xxx.xxx] uninstalling[5]
app_id[xxx.xxx] uninstalling[10]
app_id[xxx.xxx] uninstalling[15]
app_id[xxx.xxx] uninstalling[20]
app_id[xxx.xxx] uninstalling[25]
app_id[xxx.xxx] uninstalling[30]
app_id[xxx.xxx] uninstalling[35]
app_id[xxx.xxx] uninstalling[40]
app_id[xxx.xxx] uninstalling[45]
app_id[xxx.xxx] uninstalling[50]
app_id[xxx.xxx] uninstalling[55]
app_id[xxx.xxx] uninstalling[60]
app_id[xxx.xxx] uninstalling[65]
app_id[xxx.xxx] uninstalling[70]
app_id[xxx.xxx] uninstalling[75]
app_id[xxx.xxx] uninstalling[80]
app_id[xxx.xxx] uninstalling[85]
app_id[xxx.xxx] uninstalling[90]
app_id[xxx.xxx] uninstalling[95]
app_id[xxx.xxx] uninstalling[100]
app_id[xxx.xxx] uninstall completed
spend time for wascmd is [1466]ms
cmd_ret:0
    Uninstalled the package: Id(xxx.xxx)
[Uninstalling the package...]
    Uninstalling the package... > Success
[Installing the package...]
install xxx.xxx
package_path /home/owner/share/tmp/sdk_tools/tmp/Gaia.wgt
was_install_app return WAS_TRUE
app_id[xxx.xxx] install start
app_id[xxx.xxx] installing[8]
app_id[xxx.xxx] installing[11]
app_id[xxx.xxx] installing[14]
app_id[xxx.xxx] installing[17]
app_id[xxx.xxx] installing[20]
app_id[xxx.xxx] installing[22]
app_id[xxx.xxx] install failed[118]
spend time for wascmd is [839]ms
cmd_ret:0
    An exception occurred
(Installing the package... > Fail)
An exception occurred
Unexpected stop progress...
(5.181 sec)

My primary goal is to be able to attach a web debugger and debug the app. It would be nice if i could do this via CLI, but i don't see a way to do it, so i use the IDE, but the IDE does not seem to be able to install apps, even though it installs fine using the CLI on the same box.

checking the ide log shows this

[2021.05.03 15:09:03][ERROR] AbstractLibraryLocation.java(111) - /Users/xxx/tizen-studio/platforms/tizen-3.0/tv-samsung/widlprocxmls/tizen.widlprocxml (No such file or directory)
java.io.FileNotFoundException: /Users/xxx/tizen-studio/platforms/tizen-3.0/tv-samsung/widlprocxmls/tizen.widlprocxml (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at org.tizen.web.project.initializer.AbstractLibraryLocation.getDocument(AbstractLibraryLocation.java:141)
at org.tizen.web.project.initializer.AbstractLibraryLocation.convertXmlToJs(AbstractLibraryLocation.java:97)
at org.tizen.web.project.initializer.AbstractLibraryLocation.<init>(AbstractLibraryLocation.java:83)
at org.tizen.web.project.initializer.TizenLibraryInitializer$TizenLibraryLocation.<init>(TizenLibraryInitializer.java:63)
at org.tizen.web.project.initializer.TizenLibraryInitializer$TizenLibraryLocation.getInstance(TizenLibraryInitializer.java:76)
at org.tizen.web.project.initializer.TizenLibraryInitializer.getLibraryLocation(TizenLibraryInitializer.java:96)
at org.eclipse.wst.jsdt.core.JsGlobalScopeContainerInitializer.getIncludepathEntries(JsGlobalScopeContainerInitializer.java:181)
at org.eclipse.wst.jsdt.internal.core.JavaModelManager.containerPutIfInitializingWithSameEntries(JavaModelManager.java:589)
at org.eclipse.wst.jsdt.internal.core.SetContainerOperation.execute(SetContainerOperation.java:54)
at org.eclipse.wst.jsdt.core.JavaScriptCore.setJsGlobalScopeContainer(JavaScriptCore.java:3924)
at org.eclipse.wst.jsdt.core.JsGlobalScopeContainerInitializer.initialize(JsGlobalScopeContainerInitializer.java:85)
at org.tizen.web.project.initializer.AbstractLibraryInitializer.initialize(AbstractLibraryInitializer.java:19)
at org.eclipse.wst.jsdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2216)
at org.eclipse.wst.jsdt.internal.core.JavaModelManager$6.run(JavaModelManager.java:2146)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267)
at org.eclipse.wst.jsdt.internal.core.JavaModelManager.initializeAllContainers(JavaModelManager.java:2162)
at org.eclipse.wst.jsdt.internal.core.JavaModelManager.getJsGlobalScopeContainer(JavaModelManager.java:1536)
at org.eclipse.wst.jsdt.core.JavaScriptCore.getJsGlobalScopeContainer(JavaScriptCore.java:1342)
at org.eclipse.wst.jsdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2747)
at org.eclipse.wst.jsdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:2026)
at org.eclipse.wst.jsdt.core.JavaScriptCore.initializeAfterLoad(JavaScriptCore.java:2678)
at org.eclipse.wst.jsdt.internal.ui.InitializeAfterLoadJob$RealJob.run(InitializeAfterLoadJob.java:32)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
[2021.05.03 15:09:05][ERROR] AbstractLibraryLocation.java(111) - /Users/xxx/tizen-studio/platforms/tizen-3.0/tv-samsung/widlprocxmls/w3cwidget.widlprocxml (No such file or directory)
java.io.FileNotFoundException: /Users/xxx/tizen-studio/platforms/tizen-3.0/tv-samsung/widlprocxmls/w3cwidget.widlprocxml (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at org.tizen.web.project.initializer.AbstractLibraryLocation.getDocument(AbstractLibraryLocation.java:141)
at org.tizen.web.project.initializer.AbstractLibraryLocation.convertXmlToJs(AbstractLibraryLocation.java:97)
at org.tizen.web.project.initializer.AbstractLibraryLocation.<init>(AbstractLibraryLocation.java:83)
at org.tizen.web.project.initializer.W3CLibraryInitializer$W3CLibraryLocation.<init>(W3CLibraryInitializer.java:62)
at org.tizen.web.project.initializer.W3CLibraryInitializer$W3CLibraryLocation.getInstance(W3CLibraryInitializer.java:75)
at org.tizen.web.project.initializer.W3CLibraryInitializer.getLibraryLocation(W3CLibraryInitializer.java:95)
at org.eclipse.wst.jsdt.core.JsGlobalScopeContainerInitializer.getIncludepathEntries(JsGlobalScopeContainerInitializer.java:181)
at org.eclipse.wst.jsdt.internal.core.JavaModelManager.containerPutIfInitializingWithSameEntries(JavaModelManager.java:589)
at org.eclipse.wst.jsdt.internal.core.SetContainerOperation.execute(SetContainerOperation.java:54)
at org.eclipse.wst.jsdt.core.JavaScriptCore.setJsGlobalScopeContainer(JavaScriptCore.java:3924)
at org.eclipse.wst.jsdt.core.JsGlobalScopeContainerInitializer.initialize(JsGlobalScopeContainerInitializer.java:85)
at org.tizen.web.project.initializer.AbstractLibraryInitializer.initialize(AbstractLibraryInitializer.java:19)
at org.eclipse.wst.jsdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2216)
at org.eclipse.wst.jsdt.internal.core.JavaModelManager$6.run(JavaModelManager.java:2146)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267)
at org.eclipse.wst.jsdt.internal.core.JavaModelManager.initializeAllContainers(JavaModelManager.java:2162)
at org.eclipse.wst.jsdt.internal.core.JavaModelManager.getJsGlobalScopeContainer(JavaModelManager.java:1536)
at org.eclipse.wst.jsdt.core.JavaScriptCore.getJsGlobalScopeContainer(JavaScriptCore.java:1342)
at org.eclipse.wst.jsdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2747)
at org.eclipse.wst.jsdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:2026)
at org.eclipse.wst.jsdt.core.JavaScriptCore.initializeAfterLoad(JavaScriptCore.java:2678)
at org.eclipse.wst.jsdt.internal.ui.InitializeAfterLoadJob$RealJob.run(InitializeAfterLoadJob.java:32)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
[2021.05.03 15:09:05][ERROR] AbstractLibraryLocation.java(111) - /Users/xxx/tizen-studio/platforms/tizen-3.0/tv-samsung/widlprocxmls/html5.widlprocxml (No such file or directory)
java.io.FileNotFoundException: /Users/xxx/tizen-studio/platforms/tizen-3.0/tv-samsung/widlprocxmls/html5.widlprocxml (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at org.tizen.web.project.initializer.AbstractLibraryLocation.getDocument(AbstractLibraryLocation.java:141)
at org.tizen.web.project.initializer.AbstractLibraryLocation.convertXmlToJs(AbstractLibraryLocation.java:97)
at org.tizen.web.project.initializer.AbstractLibraryLocation.<init>(AbstractLibraryLocation.java:83)
at org.tizen.web.project.initializer.HTML5LibraryInitializer$HTML5LibraryLocation.<init>(HTML5LibraryInitializer.java:62)
at org.tizen.web.project.initializer.HTML5LibraryInitializer$HTML5LibraryLocation.getInstance(HTML5LibraryInitializer.java:75)
at org.tizen.web.project.initializer.HTML5LibraryInitializer.getLibraryLocation(HTML5LibraryInitializer.java:95)
at org.eclipse.wst.jsdt.core.JsGlobalScopeContainerInitializer.getIncludepathEntries(JsGlobalScopeContainerInitializer.java:181)
at org.eclipse.wst.jsdt.internal.core.JavaModelManager.containerPutIfInitializingWithSameEntries(JavaModelManager.java:589)
at org.eclipse.wst.jsdt.internal.core.SetContainerOperation.execute(SetContainerOperation.java:54)
at org.eclipse.wst.jsdt.core.JavaScriptCore.setJsGlobalScopeContainer(JavaScriptCore.java:3924)
at org.eclipse.wst.jsdt.core.JsGlobalScopeContainerInitializer.initialize(JsGlobalScopeContainerInitializer.java:85)
at org.tizen.web.project.initializer.AbstractLibraryInitializer.initialize(AbstractLibraryInitializer.java:19)
at org.eclipse.wst.jsdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2216)
at org.eclipse.wst.jsdt.internal.core.JavaModelManager$6.run(JavaModelManager.java:2146)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267)
at org.eclipse.wst.jsdt.internal.core.JavaModelManager.initializeAllContainers(JavaModelManager.java:2162)
at org.eclipse.wst.jsdt.internal.core.JavaModelManager.getJsGlobalScopeContainer(JavaModelManager.java:1536)
at org.eclipse.wst.jsdt.core.JavaScriptCore.getJsGlobalScopeContainer(JavaScriptCore.java:1342)
at org.eclipse.wst.jsdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2747)
at org.eclipse.wst.jsdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:2026)
at org.eclipse.wst.jsdt.core.JavaScriptCore.initializeAfterLoad(JavaScriptCore.java:2678)
at org.eclipse.wst.jsdt.internal.ui.InitializeAfterLoadJob$RealJob.run(InitializeAfterLoadJob.java:32)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
[2021.05.03 15:09:09][ERROR] SchemaBasedValidator.java(117) - Invalid file or path: /schemas/widgets.xsd
[2021.05.03 15:09:22][ERROR] PrivilegeCheckUtil.java(245) - Faild to parse "/Gaia/bundle.js"
[2021.05.03 15:09:29][ERROR] InstallStep.java(176) - Return Code:1010)Tizen Web Application install failed.

note: only product.widlprocxml exists in that folder

the tizen.widlprocxml exists only under /tv/ not /tv-samsung/

The sdblib log looks like this

03:09:26 E/sdb: sdb rejected shell command (0 list_showcontrol "/"): closed
03:09:26 E/sdb: excute doLS failed:org.tizen.sdblib.exception.SdbCommandRejectedException: closed
03:09:26 E/sdb: sdb rejected shell command (0 list_showcontrol "/home"): closed
03:09:26 E/sdb: excute doLS failed:org.tizen.sdblib.exception.SdbCommandRejectedException: closed
03:09:26 E/sdb: sdb rejected shell command (0 list_showcontrol "/home/owner"): closed
03:09:26 E/sdb: excute doLS failed:org.tizen.sdblib.exception.SdbCommandRejectedException: closed
03:09:26 E/sdb: sdb rejected shell command (0 list_showcontrol "/home/owner/share"): closed
03:09:26 E/sdb: excute doLS failed:org.tizen.sdblib.exception.SdbCommandRejectedException: closed
03:09:26 E/sdb: sdb rejected shell command (0 list_showcontrol "/home/owner/share/tmp"): closed
03:09:26 E/sdb: excute doLS failed:org.tizen.sdblib.exception.SdbCommandRejectedException: closed
03:09:26 E/sdb: sdb rejected shell command (0 list_showcontrol "/home/owner/share/tmp/sdk_tools"): closed
03:09:26 E/sdb: excute doLS failed:org.tizen.sdblib.exception.SdbCommandRejectedException: closed
03:09:26 E/sdb: sdb rejected shell command (0 list_showcontrol "/home/owner/share/tmp/sdk_tools/tmp"): closed
03:09:26 E/sdb: excute doLS failed:org.tizen.sdblib.exception.SdbCommandRejectedException: closed
03:09:26 E/sdb: sdb rejected shell command (0 list_showcontrol "/"): closed
03:09:26 E/sdb: excute doLS failed:org.tizen.sdblib.exception.SdbCommandRejectedException: closed
03:09:26 E/sdb: sdb rejected shell command (0 list_showcontrol "/home"): closed
03:09:26 E/sdb: excute doLS failed:org.tizen.sdblib.exception.SdbCommandRejectedException: closed
03:09:26 E/sdb: sdb rejected shell command (0 list_showcontrol "/home/owner"): closed
03:09:26 E/sdb: excute doLS failed:org.tizen.sdblib.exception.SdbCommandRejectedException: closed
03:09:26 E/sdb: sdb rejected shell command (0 list_showcontrol "/home/owner/share"): closed
03:09:26 E/sdb: excute doLS failed:org.tizen.sdblib.exception.SdbCommandRejectedException: closed
03:09:26 E/sdb: sdb rejected shell command (0 list_showcontrol "/home/owner/share/tmp"): closed
03:09:26 E/sdb: excute doLS failed:org.tizen.sdblib.exception.SdbCommandRejectedException: closed
03:09:26 E/sdb: sdb rejected shell command (0 list_showcontrol "/home/owner/share/tmp/sdk_tools"): closed
03:09:26 E/sdb: excute doLS failed:org.tizen.sdblib.exception.SdbCommandRejectedException: closed
03:09:26 E/sdb: sdb rejected shell command (0 list_showcontrol "/home/owner/share/tmp/sdk_tools/tmp"): closed
03:09:26 E/sdb: excute doLS failed:org.tizen.sdblib.exception.SdbCommandRejectedException: closed

 

I saw this issue on the forum /installing-debug-package-on-tv-from-ide-fails/580/6

Which seems pretty similar, but note

- I still get the error after a fresh install using Tizen Studio 4.1

- the tv has been setup properly with the proper certificates and debug, and i assume this would need to be the case for it to work from CLI, which it does

- i have tv extensions 6.0 installed

 

Edited by: Russell Dobda on 03 May, 2021

Responses

5 Replies
Russell Dobda

update: now it no longer works from the CLI and i get the same error. Any suggestions? I'm going backwards.

install failed[118]

Russell Dobda

Does anyone read and respond on this forum?

On my other macOS box (an intel box), i am able to install the app using CLI, but when using the IDE, it failes, as mentioned above with the 118 error. So, again inconsistency between CLI and IDE, and leaving me unable to attach a debugger to the html tv app.

Russell Dobda

Update on this with a workaround but not a solution:

1. I was able to create the sample "clock app" included with the IDE and using an old version of chromium, i was able to attach the debugger

2. I then copied all the files from my project into the clock app directory (except for the the .sign folder, the config.xml, and the 2 sign xml files)

3. I was then able to run and debug my app

However, simply deleting the xml files and sign folder from my original folder does not let me run the app, i need to do this weird copy and paste to get it to work.

very strange. hopefully this helps someone else

russ

Michael Howell

This helped. I experienced the same thing.

I changed line 2 of my config.xml to match the default clock demo project. Then it worked.

<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/GatewayTest" version="1.0.0" viewmodes="maximized">
doreen fahey

Thanks for sharing