Bug 85211

Summary: kst consumes 100% cpu when plotting data with missing secondary files
Product: [Applications] kst Reporter: Matthew Truch <matt>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Matthew Truch 2004-07-15 00:17:26 UTC
Version:           0.98 (using KDE KDE 3.2.1)
Installed from:    RedHat RPMs
OS:                Linux

When plotting data (from a dirfile) where one (or more) of the vectors is derived and requires a secondary file (for example, a lookup table), and the secondary file is non-existant, kst displays wrong data (zeros), and consumes all the cpu.  

How to reproduce:  Get dirfile data where at least one vector depends on an external file, and delete (or move) the external file.  Plot that vector vs. INDEX.

Expected behavior:  kst at the very least shouldn't consume all the cpu, and probably should spit out an error about the datasource being invalid.
Comment 1 Matthew Truch 2004-07-22 03:20:06 UTC
This (100% cpu usage) is also true when the actual data is temporarily unavailable (ie the data is on an nfs share, which has been temporarily taken down).  
Comment 2 Netterfield 2004-07-27 19:06:34 UTC
Fixed: now silently returns 0 if linterp file is bad or missing.