FreeEMS Issues - OLV
View Issue Details
0000515OLVGeneral Featurespublic2012-01-27 00:072012-02-03 21:00
Fred 
Fred 
normalminorsometimes
closedfixed 
0.0.3-SNAPSHOT 
0.0.30.0.3 
0000515: CSV parser fails
See trace, CSV code borks on the file linked here:

http://forum.diyefi.org/download/file.php?id=642 [^]

You have to manually remove the first line, however apparently all/most ms logs have it, so we should probably make some provision for handling that too. Right now, though, the bug, later the feature.

Smaller file of the three loads OK, other two do not, hogging CPU for ages, then giving the exception below.
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at org.diyefi.openlogviewer.genericlog.GenericDataElement.findMinAndMaxValues(GenericDataElement.java:229)
    at org.diyefi.openlogviewer.genericlog.GenericDataElement.getMinValue(GenericDataElement.java:222)
    at org.diyefi.openlogviewer.optionpanel.OptionFrameV2$ActiveHeaderLabel.setToolTipTextFinal(OptionFrameV2.java:591)
    at org.diyefi.openlogviewer.optionpanel.OptionFrameV2$ActiveHeaderLabel.getToolTipText(OptionFrameV2.java:586)
    at javax.swing.ToolTipManager$insideTimerAction.actionPerformed(ToolTipManager.java:662)
    at javax.swing.Timer.fireActionPerformed(Timer.java:291)
    at javax.swing.Timer$DoPostEvent.run(Timer.java:221)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:602)
    at java.awt.EventQueue$1.run(EventQueue.java:600)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
No tags attached.

Notes
(0001156)
Fred   
2012-01-27 00:09   
It still has one core on my box, I need to kill it, so it's found itself an infinite loop too :-)
(0001171)
BenFenner   
2012-01-31 20:50   
(edited on: 2012-01-31 20:51)
What format are these? These don't look like CSV files to me. =/
Are they tab delimited maybe?

(0001173)
Fred   
2012-01-31 21:54   
The 'C' in CSV is a very loosly used term :-) C can stand for comma, or tab, or numerous other things. I think MTX supports Tab and Comma only. The null thing, as discussed is a MegaJizzism, which we should support, by opening a new issue and eventually adding some hacky code to filter it out.
(0001174)
BenFenner   
2012-01-31 22:22   
Such a silly problem. One line code fix though. All done.

Git hash: 72863779a91f201ef805f15ac2f02e04ae66c5b7

This highlighted another issue though which I'll add ASAP.
(0001186)
Fred   
2012-02-03 21:00   
Fixed, and seems to work with "null" in the first line too!