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

Bug 357525

Summary: [LTTng] Endless loop in Control Flow View or Resource View
Product: z_Archived Reporter: Bernd Hufmann <bernd.hufmann>
Component: LinuxToolsAssignee: Bernd Hufmann <bernd.hufmann>
Status: CLOSED FIXED QA Contact: Francois Chouinard <fchouinard>
Severity: normal    
Priority: P3 CC: jjohnstn
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Fix for bug jjohnstn: iplog+

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