Bug 4596 - error when using use oprofile tool
Summary: error when using use oprofile tool
Status: VERIFIED FIXED
Alias: None
Product: Eclipse Plugin
Classification: Yocto Project Subprojects
Component: eclipse-plugin (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.5
Assignee: Jessica
QA Contact: Alexandru Georgescu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-06-03 14:03 UTC by Alexandru Georgescu
Modified: 2015-08-07 12:59 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
print screen (201.25 KB, image/png)
2013-06-03 14:03 UTC, Alexandru Georgescu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.