언어 설정

Menu
Sites
Language
Cant deploy app to reference device after flashing to 2.2

I just updated my ref device to Tizen 2.2 and now I can't deploy any of my apps to it.

I have deleted all of my run configurations and recreated them. I have also verified through sdb that my device is connected. 

This is the message im getting...

Initializing the environment for launching the package failed.

error occurred at the below step.

 `step context handle`

 (Return Code:1005)web ide context - can't find 'target device'

Cannot connect to a target

Please start Emulator in Connection Explorer or check connected real device on your PC

Anyone else had this issue?

                      
Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.
답변 바로가기

Responses

39 댓글
Madhuri A
Hi Josh, When I installed Tizen 2.2, even I faced this issue. I could not point out the exact problem. I unistalled and installed Tizen 2.2 SDK and it worked. Please try this.
Josh Dobbs
I uninstalled and reinstalled the Tizen 2.2 SDK and I still get the same error. Any other suggestions?
Go to run configuration and delete any configuration there (from left panel..select and delete) and then double click again to create new configuration (click on left panel web configuration)
Josh Dobbs
Thanks for the suggestion but I have already tried that. Just tried again to make sure but I still get the same error.
Pushpa G
Right click on your project in the project Explorer->Go to Properties->C/C++ Build>Tizen settings and select Architecture as Armv-7a>ok, and then try deploying your app on device
Josh Dobbs
Hi Pushpa, I don't see the "C/C++ Build" option. I'm building apps with HTML so maybe that's why I don't have that option.
Pushpa G
oh ok. Is your emulator shown in the connection explorer? Try installing the following usb driver and check: http://down2.local.sec.samsung.com/uploadimg2/comLocal/service/support/consumer/download/SAMSUNG_USB_Driver_for_Mobile_Phones.zip
Josh Dobbs
Hi Pushpa, I'm not using an emulator. The device does show in the connection explorer after installing the usb driver. Now the app gets installed on the device but it won't launch. This is the error given in the log: 08-13 11:19:06.515 : ERROR / Tizen::Base::Collection ( 2668 : 2668 ) : virtual result Tizen::Base::Collection::ArrayList::IndexOf(const Tizen::Base::Object&, int, int, int&) const(290) > [E_OBJ_NOT_FOUND] The arraylist is empty. 08-13 11:19:06.515 : ERROR / Tizen::Base::Collection ( 2668 : 2668 ) : virtual result Tizen::Base::Collection::ArrayList::Remove(const Tizen::Base::Object&)(393) > [E_OBJ_NOT_FOUND] Propagating. 08-13 11:19:06.515 : ERROR / Tizen::Base::Collection ( 2668 : 2668 ) : virtual result Tizen::Base::Collection::ArrayList::IndexOf(const Tizen::Base::Object&, int, int, int&) const(290) > [E_OBJ_NOT_FOUND] The arraylist is empty. 08-13 11:19:06.515 : ERROR / Tizen::Base::Collection ( 2668 : 2668 ) : virtual result Tizen::Base::Collection::ArrayList::Remove(const Tizen::Base::Object&)(393) > [E_OBJ_NOT_FOUND] Propagating. 08-13 11:19:06.520 : ERROR / Tizen::App ( 2668 : 2668 ) : virtual void Tizen::App::_ContextManager::OnApplicationTerminated(const Tizen::App::AppId&, int)(477) > Not registered pid(12604) Thanks, Josh
Pushpa G
Can you check if native app is launching on the device? Or is it the issue only with web app launch and also check if sample apps(Available in IDE->File->new>Project>Tizen->web project/native project) are launching
Josh Dobbs
Native apps are not launching. None of the sample apps that i have tried are launching either. I see that it is connected when i type the sdb devices command however I can't deploy anything.
Pushpa G
oh ok. Have you set the correct date,time and region in the device?
Josh Dobbs
Yes. date, time and region are all set correctly.
Josh Dobbs
Am i the only one having issues? Has anyone else successfully deployed an app to the ref decice running 2.2?
Madhuri A
Hi Josh, Yesterday I faced similar problems after upgrading to 2.2, but the problem was fixed after I re-created the author certificates and set the system date and time. Also I did a clean build of the apps on 2.2. Please try it.
Josh Dobbs
Hi Madhuri, Thanks for the suggestion. I recreated the author certificates...double checked the system time and date and did clean build of the app however I still cant deploy to the device. I still get the same error Please select the target (emulator or device ) for launching the application.
Pushpa G
Hi Josh, can you give me the following details for a better analysis of the issue: 1. Tizen web app(wgt) / Tizen native app(tpk)? issue 2. installation failure or launching failure? 3. Can we get more logs? With logs, we can get more information.(dlogutil in device or logs on SDK) 4. During update of Tizen 2.2, ~/workspace was removed? Sometimes this makes a problem.
Josh Dobbs
Hi Pushpa, I am deploying a wgt. When I run the app the wgt does get installed onto the device but it does not launch. WHen I launch it manually by clicking the launch icon I get the following logs... 08-22 22:49:55.475 : ERROR / Tizen::Base::Collection ( 2682 : 2682 ) : virtual result Tizen::Base::Collection::ArrayList::IndexOf(const Tizen::Base::Object&, int, int, int&) const(290) > [E_OBJ_NOT_FOUND] The arraylist is empty. 08-22 22:49:55.475 : ERROR / Tizen::Base::Collection ( 2682 : 2682 ) : virtual result Tizen::Base::Collection::ArrayList::Remove(const Tizen::Base::Object&)(393) > [E_OBJ_NOT_FOUND] Propagating. 08-22 22:49:55.475 : ERROR / Tizen::Base::Collection ( 2682 : 2682 ) : virtual result Tizen::Base::Collection::ArrayList::IndexOf(const Tizen::Base::Object&, int, int, int&) const(290) > [E_OBJ_NOT_FOUND] The arraylist is empty. 08-22 22:49:55.475 : ERROR / Tizen::Base::Collection ( 2682 : 2682 ) : virtual result Tizen::Base::Collection::ArrayList::Remove(const Tizen::Base::Object&)(393) > [E_OBJ_NOT_FOUND] Propagating. 08-22 22:49:55.475 : ERROR / Tizen::App ( 2682 : 2682 ) : virtual void Tizen::App::_ContextManager::OnApplicationTerminated(const Tizen::App::AppId&, int)(477) > Not registered pid(6934) Workspace was not removed however I also tried creating a new workspace and am unable to even get the sample apps to run. Thanks, Josh
Kangho Kim
Please attach the full screenshot when the error occurs. And please check the following: /tools/sdb devices Is there a device in Connection Explorer view? If then, please select the device in Connection Explorer view and re-run. Thank you.
Josh Dobbs
Hi Kangho, There is no error message on the device. just the logs that i have entered in the last post to Pushpa. The device does show up in sdb (http://neatofun.com/screenshots/sdbdevices.png) and in the connection explorer (http://neatofun.com/screenshots/connectionexplorer.png).
Kangho Kim
Hmm. I thought you still has the problem you raised in the post. ---- Cannot connect to a target Please start Emulator in Connection Explorer or check connected real device on your PC ----- But is this error not occurring now? If then, I think your problem is related with web installer in target. Thank you.
Josh Dobbs
Oh. I did until you told me to click on the device in the Connection Explorer. After selecting device I can deploy and the app is installed however it will not launch. How would i go about troubleshooting or better yet fixing the web installer issue?
Kangho Kim
For the installer issue, I think Mr. Pushpa will add comment for that. He's communicating with the person in charge with the installer. Thank you.
Pushpa G
Hi Josh, Did you try to 'Run as' with Web Sample Application via Real device (not emulator)? What is the binary of device? SDK shows the cause of error. But there are nothing about that.
Xavier Seb
I had exactly the same error message "cant find device ..." and was hoping for a solution in here, but eventually found my own solution after 6 hours of frustration. I installed the latest driver from Samsung but that alone did not fix it, could be part of the problem that's why I mention it. Solution that worked for me: Deleted the [workspace]/.metadata directory and then re-imported the projects back. This finally got rid of the error and made it finally launch the apps of the device. ( Note that you also need to rebuild each project, and then in Run Configurations add each project back in the Tizen Native Application / Tizen Web Application. )
Josh Dobbs
Hi Xavier. Where did you download the driver from? Please provide a link if possible. Thanks, Josh
Josh Dobbs
Thanks for the suggestion. I think i'm closer but it's still not working. I have installed the latest driver and followed all of the steps that you provided and now i get the following error.... Installing the package failed. Error code: FATAL_ERROR Error message: Command: /usr/bin/pkgcmd -i -q -t wgt -p "/opt/usr/apps/tmp/MyApp.wgt" Management: Installation or uninstallation is not working temporarily.
Xavier Seb
Hi Josh, Try a Project/Clean on your project to do a clean build. Also try creating a blank project from the built in samples. After deleting the .metadata directory, I forgot to mention I then closed the IDE and restarted it, I also unplugged the phone and re-plugged it ( I'm using the RD-PQ the other one is no longer supported from what I read ). When you re-import your web app, you need to first re-build it, and then in Run Configurations right-click on "Tizen Web Application" if that's what you are building and click New from the list box, it should then automatically add your current project you just imported and built. Then click run. Side note: Click on Window/Show View/Connection explorer If your device is detected by the IDE it should be listed in that panel. Mine is a long hex number followed by device-1.
Josh Dobbs
Hi Xavier, I have done all of that as well and still no luck. I was able to build and install the touchpaint sample however it did not launch and I cannot manually launch it either. I have the newer test device that was given out at the end of the last session of the tizen dev conference. Thanks, Josh
Xavier Seb
Could be corrupt file on device. I checked my device, here is how it is set up (lthor done from linux ubuntu): I did lthor Tizen_RD-PQ_System_20130626_1.tar . Next lthor tizen-2.2_20130719.3_RD-PQ-REF.tar.gz . Also installed mali_2.2 latest version but that has nothing to do with your problem, just mentioning what I did. But I use the IDE on Windows 7 as I had too many problems on Windows 8. I also previously had app launch problems from bad digital signatures etc. The .wgt file must have a valid author-signature. Native apps need a developer key you can easily generate from the IDE or from the command prompt e.g. a p12 key e.g. "developer_name.p12".
Developer

Hi had similar issue. But in my case all web apps (my and samples) was able to install but not started.  Even system browser was not able to start. Native sample stated without issues.

Issue has been gone when I've reinstall image:

And enabled 3D acceleration see how to do it here Please note that for 2.2 file names are different.

Developer

Looks like you have to regenerate certificate after image flash.

Nathan Bennett

Did you ever find a solution? I am having this issue now. /:

Xavier Seb

I posted a solution in this thread on 8 September. 

Also the device seems to be very sensitive to any movement of the usb connector, I literally cannot move the device or its USB cable at all otherwise it corrupts the connection and the "can't find device" error reappears. 

Nathan Bennett

I'm just trying to run it in the web simulator. It's up and running... I don't own a tizen device myself.

Vulcan TheTerrible

Hi,

I am facing the same issue when trying to install apps on the Samsung Z1:

Cannot install application.

Error code: FATAL_ERROR
Error message: Success
Command: /usr/bin/pkgcmd -q -i -t tpk -p /opt/usr/apps/tmp/org.tizen.test-1.0.0-arm.tpk
Management: Installation or uninstallation is not working temporarily.

Background:

  1. I have enabled developer mode
  2. I am running on Tizen SDK 2.3 Revision 2 on Linux Mint (thats a direct Ubuntu derivative so this should work)
  3. I tried with a blank UI application, as well as a sample provided by the SDK (both Native).
  4. I also tried on Windows XP with SDK Rev2 (that gave me a different problem - It says "Initializing SBI failed" at startup and the Native Project page shows no templates nor samples and doesnt allow me to go ahead.

Please assist. The phone is awesome but I bought it only for development so its a bit pointless if that doesnt work.

daniel kim

Hi,

If you don't install the extension SDK for Z1, you need to visit below link and install it to run your application.

   http://developer.samsung.com/samsung-z

As far as I know, Tizen doesn't support Windows XP. so you need to run it on Windows 7 or Higher version.

I wish this will help you.

Vulcan TheTerrible

Do I need to do anything else? I just tried this (it installed successfully) and its still not working with the same error.

Mark as answer
John Ixion

Hi Vulcan,

there's a topic about that https://developer.tizen.org/forums/native-application-development/problems-installing-tpk-on-samsung-z1

Vulcan TheTerrible

Aweeesome.

Thanks a lot man - got it all installed and working with the certificate. You da man!