Traceback (most recent call last):
File"tmp/downloads/timeline-1.6.0/source/timelinelib/wxgui/components/timeline.py",line 372, in _on_size self.controller.window_resized()
File "tmp/downloads/timeline-1.6.0/source/timelinelib/view/drawingarea.py",line 216, in window_resized self._redraw_timeline()
File "tmp/downloads/timeline-1.6.0/source/timelinelib/view/drawingarea.py",line 498, in _redraw_timeline self.view.redraw_surface(fn_draw)
File "tmp/downloads/timeline-1.6.0/source/timelinelib/wxgui/components/timeline.py", line 246, in redraw_surface fn_draw(memdc)
File "tmp/downloads/timeline-1.6.0/source/timelinelib/view/drawingarea.py",line 486, in fn_draw self.drawing_algorithm.draw(dc, self.timeline, self.view_properties,self.config)
File "tmp/downloads/timeline-1.6.0/source/timelinelib/drawing/drawers/default.py",line 116, in draw self.scene = self._create_scene(dc.GetSizeTuple(), timeline, view_properties, self._get_text_extent)
File "tmp/downloads/timeline-1.6.0/source/timelinelib/drawing/drawers/default.py",line 126, in _create_scene scene.create()
File "tmp/downloads/timeline-1.6.0/source/timelinelib/drawing/scene.py",line 69, in create self._calc_strips()
File "tmp/downloads/timeline-1.6.0/source/timelinelib/drawing/scene.py",line 299, in _calc_strips self.major_strip, self.minor_strip = self._db.get_time_type().choose_strip(self._metrics, self._config)
File "tmp/downloads/timeline-1.6.0/source/timelinelib/time/numtime.py", line 90, in choose_strip period_width = metrics.calc_exact_width(period)
File "tmp/downloads/timeline-1.6.0/source/timelinelib/drawing/utils.py",line 53, in calc_exact_width return (self.calc_exact_x(time_period.end_time) -
File "tmp/downloads/timeline-1.6.0/source/timelinelib/drawing/utils.py",line 42, in calc_exact_x delta1 = self.time_type.div_timedeltas(time - self.time_period.start_time,OverflowError: long int too large to convert to float
Timeline version: 1.6.0
System version: Linux, julia-mobil, 3.16.0-4-amd64, #1 SMP Debian 3.16.7-
ckt9-3~deb8u1 (2015-04-24), x86_64,
Python version: 2.7.10 (default, Jun 1 2015, 16:21:46) [GCC 4.9.2] wxPython version: 3.0.2.0 gtk2 (classic)
The same problem was reported in version 1.5.0 (tickect #31).
I'll close #31 and keep this ticket.
Has been able to reproduce the error with a test case
This situation is handled by returning small constant values for x