Timestamps not supported in dynamic mode: java.lang.ArithmeticException

Bug #613600 reported by Sébastien Heymann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gephi
Invalid
Medium
Unassigned

Bug Description

Way to reproduce:
1. Open the attached dataset
2. Open the Timeline

The nodes have start attributes like "1208119831". Note that the value reported by the exception does not exist in the dataset. Illegal cast?

java.lang.ArithmeticException: Value cannot fit in an int: 55615500677
 at org.joda.time.field.FieldUtils.safeToInt(FieldUtils.java:187)
 at org.joda.time.field.BaseDurationField.getDifference(BaseDurationField.java:140)
 at org.joda.time.chrono.ZonedChronology$ZonedDurationField.getDifference(ZonedChronology.java:331)
 at org.joda.time.chrono.BaseChronology.get(BaseChronology.java:260)
 at org.joda.time.base.BasePeriod.<init>(BasePeriod.java:100)
 at org.joda.time.Period.<init>(Period.java:463)
 at org.joda.time.base.AbstractInterval.toPeriod(AbstractInterval.java:433)
 at org.gephi.ui.timeline.plugin.drawers.minimal.MinimalDrawer.paintUpperRulerForInterval(MinimalDrawer.java:393)
 at org.gephi.ui.timeline.plugin.drawers.minimal.MinimalDrawer.paintComponent(MinimalDrawer.java:337)
 at javax.swing.JComponent.paint(JComponent.java:1029)
 at javax.swing.JComponent.paintChildren(JComponent.java:862)
 at javax.swing.JComponent.paint(JComponent.java:1038)
 at javax.swing.JComponent.paintChildren(JComponent.java:862)
 at javax.swing.JComponent.paint(JComponent.java:1038)
 at javax.swing.JComponent.paintChildren(JComponent.java:862)
 at javax.swing.JComponent.paint(JComponent.java:1038)
 at javax.swing.JComponent.paintChildren(JComponent.java:862)
 at javax.swing.JComponent.paint(JComponent.java:1038)
 at org.netbeans.swing.tabcontrol.TabbedContainer.paint(TabbedContainer.java:956)
 at javax.swing.JComponent.paintChildren(JComponent.java:862)
 at javax.swing.JComponent.paint(JComponent.java:1038)
 at javax.swing.JComponent.paintChildren(JComponent.java:862)
 at javax.swing.JComponent.paint(JComponent.java:1038)
 at org.netbeans.core.windows.view.ui.MultiSplitPane.paint(MultiSplitPane.java:325)
 at javax.swing.JComponent.paintChildren(JComponent.java:862)
 at javax.swing.JComponent.paint(JComponent.java:1038)
 at javax.swing.JComponent.paintChildren(JComponent.java:862)
 at javax.swing.JComponent.paint(JComponent.java:1038)
 at javax.swing.JLayeredPane.paint(JLayeredPane.java:567)
 at javax.swing.JComponent.paintChildren(JComponent.java:862)
 at javax.swing.JComponent.paint(JComponent.java:1038)
 at javax.swing.JComponent.paintToOffscreen(JComponent.java:5124)
 at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:278)
 at javax.swing.RepaintManager.paint(RepaintManager.java:1224)
 at javax.swing.JComponent._paintImmediately(JComponent.java:5072)
 at javax.swing.JComponent.paintImmediately(JComponent.java:4882)
 at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:785)
 at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:713)
 at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:693)
[catch] at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:125)
 at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
 at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:125)
 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)

Tags: timeline gexf
Revision history for this message
Sébastien Heymann (sebastien.heymann) wrote :
Changed in gephi:
milestone: none → 0.7alpha4
assignee: nobody → Mathieu Bastian (mathieu.bastian)
Julian Bilcke (flngr)
Changed in gephi:
importance: Undecided → Medium
assignee: Mathieu Bastian (mathieu.bastian) → Julian Bilcke (flngr)
Revision history for this message
Julian Bilcke (flngr) wrote :

I'm working on a fix for this bug

Changed in gephi:
status: New → Confirmed
Revision history for this message
Sébastien Heymann (sebastien.heymann) wrote :

According to the GEXF 1.2 specifications, a timestamp is formatted as an xsd:dateTime:

http://www.w3schools.com/schema/schema_dtypes_date.asp

This bug becomes then invalid.

Changed in gephi:
status: Confirmed → Invalid
assignee: Julian Bilcke (flngr) → nobody
Revision history for this message
Abbas Sarraf (sarraf) wrote :

I had the same issue. The reason is that the last graph has a timestamp which is compared to infinity, and that's where the exception is thrown.

To solve it, I made an empty graph file and made it the last timestep. By doing that, you give every node and edge a bound life time.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.