언어 설정

Menu
Sites
Language
Package installation fails on Win, works on Mac: Unknown Error [42]

Installing same WGT-package both succees and fails on emulator, depending on environment:

C:\>sdb -e install app-0.1.1.wgt
pushed: app-0.1.1.wgt -> /opt/usr/apps/tmp/app-0.1.1.wgt
1 file(s) pushed. 0 file(s) skipped.
app-0.1.1.wgt             4386 KB/s (872067 bytes in 0.194s)
path is /opt/usr/apps/tmp/app-0.1.1.wgt
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[start] val[install]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[0]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[0]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[3]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[3]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[3]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[7]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[7]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[7]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[23]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[26]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[26]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[26]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[26]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[26]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[26]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[26]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[26]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[26]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[26]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[34]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[34]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[34]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[34]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[34]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[34]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[38]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[42]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[42]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[42]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[46]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[46]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[46]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[46]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[46]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[46]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[57]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[57]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[57]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[65]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[65]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[icon_path] val[/opt/share/icons/default/small/98ecf8427e.app.png]
 
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[69]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[69]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[69]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[69]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[69]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[69]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[69]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[69]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[69]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[69]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[69]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[80]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[80]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[80]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[80]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[80]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[80]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[install_percent] val[80]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[error] val[42]
__return_cb req_id[1] pkg_type[wgt] pkgid[98ecf8427e] key[end] val[fail]
processing result : Unknown Error [42] failed

Log from emulator (while trying to install app): 

E/Tizen::Base::Runtime( 2584): static Tizen::Base::Runtime::_EventManager* Tizen::Base::Runtime::_EventManager::GetCurrentEventMan
ager()(292) > [E_OBJ_NOT_FOUND] This is not OSP thread.
E/Tizen::Base::Runtime( 2584): result Tizen::Base::Runtime::_Event::Initialize()(207) > [E_INVALID_OPERATION] Event manager does n
ot exist.
E/Tizen::Base::Runtime( 2584): static Tizen::Base::Runtime::_EventManager* Tizen::Base::Runtime::_EventManager::GetCurrentEventMan
ager()(292) > [E_OBJ_NOT_FOUND] This is not OSP thread.
E/Tizen::Base::Runtime( 2584): result Tizen::Base::Runtime::_Event::Initialize()(207) > [E_INVALID_OPERATION] Event manager does n
ot exist.

And as stated, same package can be installed succesfully in emulator and device in Mac OS X environment. Any ideas?

Responses

3 댓글
Raghavendra Reddy Shiva

At this point, you could try below options,

1) Installing the *.wgt using the CLI command "web-install" as below,

ex: web-install -w Sample.wgt

The CLI tools can be found at, C:\tizen-sdk\tools\ide\bin

https://developer.tizen.org/dev-guide/2.2.1/org.tizen.web.appprogramming/html/ide_sdk_tools/command_line_interface.htm

2) Try importing the widget using the Tizen SDK, build it and deploy to emulator.

Juha Mustonen

Thanks for the prompt response. The 2nd method (rebuild in using IDE) worked: 
Package can be now installed also in Windows environment.

The rootcause seems to be in missing signing. 

Raghavendra Reddy Shiva

Yeah from SDK 2.2 onwards, the apps cannot be deployed, if not signed.

Good to know that you are unblocked now.