Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357525 - [LTTng] Endless loop in Control Flow View or Resource View
Summary: [LTTng] Endless loop in Control Flow View or Resource View
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: LinuxTools (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Bernd Hufmann CLA
QA Contact: Francois Chouinard CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-13 13:27 EDT by Bernd Hufmann CLA
Modified: 2022-01-13 14:53 EST (History)
1 user (show)

See Also:


Attachments
Fix for bug (1.24 KB, patch)
2011-09-13 13:38 EDT, Bernd Hufmann CLA
jjohnstn: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Hufmann CLA 2011-09-13 13:27:27 EDT
The endless loop happens when trying to paint during switching of experiments when trace doesn't contain control flow resource information.

The paint-method of class TimeStateCtrl of package org.eclipse.linuxtools.tmf.ui.viewers.timeAnalysis.widgets ends up in a endless loop. 

To reproduce:

Keep switching experiments while one experiment doesn't contain control flow and resource information. When it happens, the GUI will freeze. To see if it's actually looping forever in the above while loop, the test needs to be done in debug mode, so that the execution can be stopped.
Comment 1 Bernd Hufmann CLA 2011-09-13 13:38:57 EDT
Created attachment 203266 [details]
Fix for bug

A check for _timeDelta == 0 is missing to exit the while(true)-loop. The patch fixes this bug.
Comment 2 Bernd Hufmann CLA 2011-09-13 13:39:18 EDT
Comment on attachment 203266 [details]
Fix for bug

Patch committed.
Comment 3 Bernd Hufmann CLA 2011-09-13 13:39:50 EDT
Bug fixed with changes of patch.
Comment 4 Francois Chouinard CLA 2012-03-26 13:52:46 EDT
Delivered in 0.9.0