Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334564

Summary: [LTTng] LTTng does not report problems to the Problems view
Product: z_Archived Reporter: Daniel U. Thibault <d.u.thibault>
Component: LinuxToolsAssignee: Francois Chouinard <fchouinard>
Status: CLOSED WONTFIX QA Contact: Francois Chouinard <fchouinard>
Severity: normal    
Priority: P3 CC: d.u.thibault, patrick.tasse
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Part 1 of a sample trace that will cause warnings to be issued when loaded into an LTTng perspective
none
Part 2 of a sample trace that will cause warnings to be issued when loaded into an LTTng perspective none

Description Daniel U. Thibault CLA 2011-01-17 13:46:37 EST
Build Identifier: 20100917-0705

"events lost" warnings (and possibly others) are not captured in the Problems view: they can only be seen from the terminal used to launch Eclipse. If Eclipse was launched from a menu entry or icon on the desktop or elsewhere, nothing will be seen.

Reproducible: Always

Steps to Reproduce:
1. Launch Eclipse from a terminal (e.g. "$ eclipse &")
2. Open the Linux Tools LTTng perspective
3. Bring the Problems view to the fore
4. Create an LTTng project
5. Import a trace with "events lost" problems (see attachment)
6. Create an experiment and add the trace to it
7. Open the experiment
8. Observe how the Problems view reports nothing at all while warnings scroll in the terminal window
Comment 1 Daniel U. Thibault CLA 2011-01-17 13:59:30 EST
Created attachment 186936 [details]
Part 1 of a sample trace that will cause warnings to be issued when loaded into an LTTng perspective

This trace generates hundreds of warnings like this:

** (Eclipse:14770): WARNING **: 594 events lost so far in tracefile /home/daniel/workspace/My LTTng Verification Project/Traces/trace6/vm_state_2 at block 2
Comment 2 Daniel U. Thibault CLA 2011-01-17 14:00:04 EST
Created attachment 186937 [details]
Part 2 of a sample trace that will cause warnings to be issued when loaded into an LTTng perspective

This trace generates hundreds of warnings like this:

** (Eclipse:14770): WARNING **: 594 events lost so far in tracefile /home/daniel/workspace/My LTTng Verification Project/Traces/trace6/vm_state_2 at block 2
Comment 3 Francois Chouinard CLA 2011-06-02 11:48:30 EDT
These warnings are from liblttvtraceread, the C library that parses the traces. The lib writes directly to stderr and does not provide any notification mechanism that can be used by the viewer through the JNI wrapper. There's not much that we can do on this front without the help of the lib guys. Monitoring and parsing the console output is not worth it, IMHO.

This is where things get interesting. LTTng is moving towards the Common Trace Format (CTF), a new, more generic binary trace format. They will adapt their format along this standard. We are also told that there will be a utility to convert the old trace formats to the new one.

The good news is that we are working on an Eclipse implementation of a CTF parser - in Java - that will be used in lieu of the current, legacy, C libs.

The bad news is that we won't fix this particular problem. Unless someone is interested in providing a fix for this issue, I will close it shortly.
Comment 4 Patrick Tasse CLA 2013-05-17 17:23:41 EDT
Legacy LTTng support is being removed in Linux Tools 2.0.