Bug 4596

Summary: error when using use oprofile tool
Product: [Yocto Project Subprojects] Eclipse Plugin Reporter: Alexandru Georgescu <alexandru.c.georgescu>
Component: eclipse-pluginAssignee: Jessica <jessica.zhang>
Status: VERIFIED FIXED QA Contact: Alexandru Georgescu <alexandru.c.georgescu>
Severity: normal    
Priority: Medium+ CC: bogdanx.a.voiculescu, ioanax.grigoropol, jessica.zhang, yp.ep.watcher, yp.watcher
Version: 1.5   
Target Milestone: 1.5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
print screen none

Description Alexandru Georgescu 2013-06-03 14:03:09 UTC
Created attachment 1235 [details]
print screen

eclipse-poky:


STEPS TO REPRODUCE:
1. Install eclipse plugin
2. Have oprofile configured in the host system
3. Install adt-installer (for x86-64). Launch qemu,
4. Use the oprofile tool:

YoctoProjectTools -> Oprofile

5. Create a new connection if needed to connect to QEMU image, then press OK

EXPECTED RESULTS:
5. Pressing OK launches oprofile-viewer and the user can get profiling data from the QEMU image

ACTUAL RESULTS:
5. An error appears on the screen, saying:
"Cannot find resources/yocto_tool.sh" 
See printscreen


The error in eclipse console:
java.lang.reflect.InvocationTargetException: Cannot find resources/yocto_tool.sh
	at org.yocto.sdk.remotetools.actions.BaseModel.preProcess(Unknown Source)
	at org.yocto.sdk.remotetools.actions.BaseModel.run(Unknown Source)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.io.IOException: Cannot find resources/yocto_tool.sh
	at org.eclipse.core.internal.runtime.FindSupport.openStream(FindSupport.java:274)
	at org.eclipse.core.runtime.FileLocator.openStream(FileLocator.java:188)
	at org.yocto.remote.utils.RSEHelper.putRemoteFileInPlugin(Unknown Source)
	... 3 more



OTHER COMMENTS
The script is available in eclipse-poky directory:

[tester@yocto-asus resources]$ cd ./plugins//org.yocto.remote.utils/resources/
bash: cd: ./plugins//org.yocto.remote.utils/resources/: No such file or directory
[tester@yocto-asus resources]$
Comment 1 Alexandru Georgescu 2013-06-03 14:05:44 UTC
The same behavior is happening when trying to use the powertop plugin.
Comment 2 Ioana Grigoropol 2013-06-03 14:43:20 UTC
I cannot reproduce this bug with the latest master. The resources appear to be under the org.yocto.remote.utils/resources.
What version of the plugin did you install ?
Comment 3 Alexandru Georgescu 2013-06-03 14:52:46 UTC
I can reproduce on Fedora 17 64bit, with the latest weekly build: 
commit ff4ccb4d65243f2a28eb89c72e9b425702b6c3aa

eclipse plugin installed from here: 
http://autobuilder.yoctoproject.org/pub/nightly/20130528-2/eclipse-plugin/org.yocto.sdk-development-201305281849-archive.zip

eclipse was installed using the headless build.
Comment 5 Alexandru Georgescu 2013-09-30 12:22:38 UTC
Verified.