Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - app. profiler often fails to find source code: (4 Items)
   
app. profiler often fails to find source code  
Windows XP w. 6.4.0 IDE installed. 

I can run the application profiler and get results, but often, when I click on a function name in the 'Execution Time' 
view , hoping to jump to the correct line in the annotated source code, it opens a new editor labelled '<unknown> with  
'Source not found' in red and an 'Edit Source lookup path'. Clicking it again, may then find it, but usually doesn't. It
 seems quite random. This is a single C file in a project - repeatable both from the example Application Profiler and 
also from a QNX C project

My .log file has entries like this from around the right time:

!ENTRY org.eclipse.debug.core 4 120 2008-11-10 10:42:54.718
!MESSAGE Error logged from Debug Core: 
!STACK 0
java.io.IOException: Write end dead
	at java.io.PipedInputStream.read(Unknown Source)
	at java.io.PipedInputStream.read(Unknown Source)
	at java.io.BufferedInputStream.read1(Unknown Source)
	at java.io.BufferedInputStream.read(Unknown Source)
	at java.io.FilterInputStream.read(Unknown Source)
	at org.eclipse.debug.internal.core.OutputStreamMonitor.read(OutputStreamMonitor.java:144)
	at org.eclipse.debug.internal.core.OutputStreamMonitor.access$1(OutputStreamMonitor.java:134)
	at org.eclipse.debug.internal.core.OutputStreamMonitor$1.run(OutputStreamMonitor.java:207)
	at java.lang.Thread.run(Unknown Source)

Any suggestions ?

Thanks !

Dave
Re: app. profiler often fails to find source code  
What are you clicking on? For example if you click on
_start->main
you will get this, because there is no source code for "_start".
This is standard behavior for cases where source not found for function or call pair.
I need more details on that.


Dave Bott wrote:
> Windows XP w. 6.4.0 IDE installed. 
> 
> I can run the application profiler and get results, but often, when I click on a function name in the 'Execution Time'
 view , hoping to jump to the correct line in the annotated source code, it opens a new editor labelled '<unknown> with 
 'Source not found' in red and an 'Edit Source lookup path'. Clicking it again, may then find it, but usually doesn't. 
It seems quite random. This is a single C file in a project - repeatable both from the example Application Profiler and 
also from a QNX C project
> 
> My .log file has entries like this from around the right time:
> 
> !ENTRY org.eclipse.debug.core 4 120 2008-11-10 10:42:54.718
> !MESSAGE Error logged from Debug Core: 
> !STACK 0
> java.io.IOException: Write end dead
> 	at java.io.PipedInputStream.read(Unknown Source)
> 	at java.io.PipedInputStream.read(Unknown Source)
> 	at java.io.BufferedInputStream.read1(Unknown Source)
> 	at java.io.BufferedInputStream.read(Unknown Source)
> 	at java.io.FilterInputStream.read(Unknown Source)
> 	at org.eclipse.debug.internal.core.OutputStreamMonitor.read(OutputStreamMonitor.java:144)
> 	at org.eclipse.debug.internal.core.OutputStreamMonitor.access$1(OutputStreamMonitor.java:134)
> 	at org.eclipse.debug.internal.core.OutputStreamMonitor$1.run(OutputStreamMonitor.java:207)
> 	at java.lang.Thread.run(Unknown Source)
> 
> Any suggestions ?
> 
> Thanks !
> 
> Dave
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post16330
> 
Re: app. profiler often fails to find source code  
Hi Elena,

I'm clicking on totally valid function names - things that have a 
'location' with the right source filename  (there's only one) and line 
number.
I put the SortTest.c code into a QNX C/C++ project - it runs fine and 
profiles fine (Function level instrumentation).
I click on .e.g the radix function and the first time it opened the file 
correctly. Click again and I get an 'unknown' window for it, or indeed 
any other function..
The process has terminated, but the navigation should still work

I've attached a screenshot (I hope it works). Not sure it helps.

I have 6.3.2 installed too, but set the configuration to 6.4.0 before I 
started the IDE (and I'm not running 6.3.2 on this Windows machine right 
now).

Dave


Elena Laskavaia wrote:
>
> What are you clicking on? For example if you click on
> _start->main
> you will get this, because there is no source code for "_start".
> This is standard behavior for cases where source not found for 
> function or call pair.
> I need more details on that.
>
>
> Dave Bott wrote:
> > Windows XP w. 6.4.0 IDE installed.
> >
> > I can run the application profiler and get results, but often, when 
> I click on a function name in the 'Execution Time' view , hoping to 
> jump to the correct line in the annotated source code, it opens a new 
> editor labelled '<unknown> with  'Source not found' in red and an 
> 'Edit Source lookup path'. Clicking it again, may then find it, but 
> usually doesn't. It seems quite random. This is a single C file in a 
> project - repeatable both from the example Application Profiler and 
> also from a QNX C project
> >
> > My .log file has entries like this from around the right time:
> >
> > !ENTRY org.eclipse.debug.core 4 120 2008-11-10 10:42:54.718
> > !MESSAGE Error logged from Debug Core:
> > !STACK 0
> > java.io.IOException: Write end dead
> >       at java.io.PipedInputStream.read(Unknown Source)
> >       at java.io.PipedInputStream.read(Unknown Source)
> >       at java.io.BufferedInputStream.read1(Unknown Source)
> >       at java.io.BufferedInputStream.read(Unknown Source)
> >       at java.io.FilterInputStream.read(Unknown Source)
> >       at 
> org.eclipse.debug.internal.core.OutputStreamMonitor.read(OutputStreamMonitor.java:144)
> >       at 
> org.eclipse.debug.internal.core.OutputStreamMonitor.access$1(OutputStreamMonitor.java:134)
> >       at 
> org.eclipse.debug.internal.core.OutputStreamMonitor$1.run(OutputStreamMonitor.java:207)
> >       at java.lang.Thread.run(Unknown Source)
> >
> > Any suggestions ?
> >
> > Thanks !
> >
> > Dave
> >
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post16330
> >
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post16333
>


-- 
Dave Bott (dbott@qnx.com)	Field Applications Engineer 
QNX Software Systems, Inc.	Voice: 408-879-7230 
900 E. Hamilton Ave #100	Fax:408-879-7221 
Campbell CA 95008		Cell:408 391-3535

Join Foundry27 <http://community.qnx.com>;  - the new QNX developer forum. 


Attachment: Image sorttest.JPG 132.87 KB
Re: app. profiler often fails to find source code  
Thanks, I will enter pr and try to reproduce it...

Dave Bott wrote:
> Hi Elena,
> 
> I'm clicking on totally valid function names - things that have a 
> 'location' with the right source filename  (there's only one) and line 
> number.
> I put the SortTest.c code into a QNX C/C++ project - it runs fine and 
> profiles fine (Function level instrumentation).
> I click on .e.g the radix function and the first time it opened the file 
> correctly. Click again and I get an 'unknown' window for it, or indeed 
> any other function..
> The process has terminated, but the navigation should still work
> 
> I've attached a screenshot (I hope it works). Not sure it helps.
> 
> I have 6.3.2 installed too, but set the configuration to 6.4.0 before I 
> started the IDE (and I'm not running 6.3.2 on this Windows machine right 
> now).
> 
> Dave
> 
> 
> Elena Laskavaia wrote:
>> What are you clicking on? For example if you click on
>> _start->main
>> you will get this, because there is no source code for "_start".
>> This is standard behavior for cases where source not found for 
>> function or call pair.
>> I need more details on that.
>>
>>
>> Dave Bott wrote:
>>> Windows XP w. 6.4.0 IDE installed.
>>>
>>> I can run the application profiler and get results, but often, when 
>> I click on a function name in the 'Execution Time' view , hoping to 
>> jump to the correct line in the annotated source code, it opens a new 
>> editor labelled '<unknown> with  'Source not found' in red and an 
>> 'Edit Source lookup path'. Clicking it again, may then find it, but 
>> usually doesn't. It seems quite random. This is a single C file in a 
>> project - repeatable both from the example Application Profiler and 
>> also from a QNX C project
>>> My .log file has entries like this from around the right time:
>>>
>>> !ENTRY org.eclipse.debug.core 4 120 2008-11-10 10:42:54.718
>>> !MESSAGE Error logged from Debug Core:
>>> !STACK 0
>>> java.io.IOException: Write end dead
>>>       at java.io.PipedInputStream.read(Unknown Source)
>>>       at java.io.PipedInputStream.read(Unknown Source)
>>>       at java.io.BufferedInputStream.read1(Unknown Source)
>>>       at java.io.BufferedInputStream.read(Unknown Source)
>>>       at java.io.FilterInputStream.read(Unknown Source)
>>>       at 
>> org.eclipse.debug.internal.core.OutputStreamMonitor.read(OutputStreamMonitor.java:144)
>>>       at 
>> org.eclipse.debug.internal.core.OutputStreamMonitor.access$1(OutputStreamMonitor.java:134)
>>>       at 
>> org.eclipse.debug.internal.core.OutputStreamMonitor$1.run(OutputStreamMonitor.java:207)
>>>       at java.lang.Thread.run(Unknown Source)
>>>
>>> Any suggestions ?
>>>
>>> Thanks !
>>>
>>> Dave
>>>
>>> _______________________________________________
>>> General
>>> http://community.qnx.com/sf/go/post16330
>>>
>> _______________________________________________
>> General
>> http://community.qnx.com/sf/go/post16333
>>
> 
> 
> 
> ------------------------------------------------------------------------
>