crash on graphs

Bug #295506 reported by Ferdinand
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

trunk revision 725
during the last hours this bug was introduced
I had the same matplot lib error only with some graphs in 4.2.2 already

working Dashboards
* CRM Statistics
* Production

Connecting Dashboard crashes
IMHO must have something to do with values returned by the query

opening
Traceback (most recent call last):
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/modules/gui/window/tree.py", line 190, in sig_open
    if not self.sig_action(widget, 'tree_but_open', warning=False):
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/modules/gui/window/tree.py", line 184, in sig_action
    warning=warning)
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/modules/action/main.py", line 181, in exec_keyword
    self._exec_action(action, data, context=context)
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/modules/action/main.py", line 128, in _exec_action
    limit=datas['limit'], auto_refresh=datas['auto_refresh'])
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/modules/gui/window/__init__.py", line 51, in create
    auto_refresh=auto_refresh)
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/modules/gui/window/form.py", line 77, in __init__
    window=self.window, limit=limit, readonly=bool(auto_refresh))
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/widget/screen/screen.py", line 100, in __init__
    self.display()
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/widget/screen/screen.py", line 501, in display
    self.current_view.display()
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/widget/view/form.py", line 342, in display
    widget.display(model, state)
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/widget/view/form.py", line 44, in display
    self.widget.display(model, False)
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/widget/view/form_gtk/action.py", line 106, in display
    self.screen.load(res_id)
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/widget/screen/screen.py", line 492, in load
    self.display(ids[0])
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/widget/screen/screen.py", line 501, in display
    self.current_view.display()
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/widget/view/graph.py", line 60, in display
    self.view.display(self.screen.models)
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/widget/view/graph_gtk/graph.py", line 109, in display
    tinygraph.tinygraph(self._subplot, self.attrs.get('type', 'pie'), self.axis, self.axis_data, datas, axis_group_field=self.axis_group, orientation=self.attrs.get('orientation', 'vertical'))
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/tinygraph/__init__.py", line 78, in tinygraph
    subplot.legend(aa, labels, shadow = True, loc = 'best', prop = font_property)
  File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 3617, in legend
    self.legend_ = mlegend.Legend(self, handles, labels, **kwargs)
  File "/usr/lib64/python2.5/site-packages/matplotlib/legend.py", line 182, in __init__
    self.legendHandles = self._get_handles(handles, self.texts)
  File "/usr/lib64/python2.5/site-packages/matplotlib/legend.py", line 248, in _get_handles
    for handle, label in safezip(handles, texts):
  File "/usr/lib64/python2.5/site-packages/matplotlib/cbook.py", line 900, in safezip
    raise ValueError(_safezip_msg % (Nx, i+1, len(arg)))

Revision history for this message
Christophe Simonis (OpenERP) (kangol) wrote :

which version of matplotlib do you use ?

Revision history for this message
Ferdinand (office-chricar) wrote :

Today it works ...

Client revision 736.
Server revision 1266.
addons revision 1865.
python-matplotlib-0.98.3-2.1

Revision history for this message
Ferdinand (office-chricar) wrote :
Download full text (3.2 KiB)

today sales dashboard crashes

Traceback (most recent call last):
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/modules/gui/window/tree.py", line 190, in sig_open
    if not self.sig_action(widget, 'tree_but_open', warning=False):
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/modules/gui/window/tree.py", line 184, in sig_action
    warning=warning)
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/modules/action/main.py", line 181, in exec_keyword
    self._exec_action(action, data, context=context)
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/modules/action/main.py", line 128, in _exec_action
    limit=datas['limit'], auto_refresh=datas['auto_refresh'])
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/modules/gui/window/__init__.py", line 51, in create
    auto_refresh=auto_refresh)
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/modules/gui/window/form.py", line 77, in __init__
    window=self.window, limit=limit, readonly=bool(auto_refresh))
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/widget/screen/screen.py", line 100, in __init__
    self.display()
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/widget/screen/screen.py", line 501, in display
    self.current_view.display()
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/widget/view/form.py", line 342, in display
    widget.display(model, state)
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/widget/view/form.py", line 44, in display
    self.widget.display(model, False)
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/widget/view/form_gtk/action.py", line 106, in display
    self.screen.load(res_id)
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/widget/screen/screen.py", line 492, in load
    self.display(ids[0])
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/widget/screen/screen.py", line 501, in display
    self.current_view.display()
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/widget/view/graph.py", line 60, in display
    self.view.display(self.screen.models)
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/widget/view/graph_gtk/graph.py", line 109, in display
    tinygraph.tinygraph(self._subplot, self.attrs.get('type', 'pie'), self.axis, self.axis_data, datas, axis_group_field=self.axis_group, orientation=self.attrs.get('orientation', 'vertical'))
  File "/hd/sdb1/daten/downloads/bzr/openobject-client/bin/tinygraph/__init__.py", line 78, in tinygraph
    subplot.legend(aa, labels, shadow = True, loc = 'best', prop = font_property)
  File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 3617, in legend
    self.legend_ = mlegend.Legend(self, handles, labels, **kwargs)
  File "/usr/lib64/python2.5/site-packages/matplotlib/legend.py", line 182, in __init__
    self.legendHandles = self._get_handles(handles, self.texts)
  File "/usr/lib64/python2.5/site-packages/matplotlib/legend.py", line 248, in _get_handles
    for handle, label in safezip(handles, texts):
  File "/usr/lib64/python2.5/site-packages/matplotlib/cbook.py", line 900, in safezip
    raise ValueError(_safezip_msg % (Nx, i+1, len(arg)))...

Read more...

Changed in openobject-client:
status: New → Fix Released
Revision history for this message
Quentin THEURET @Amaris (qtheuret) wrote :

The bug is fixed but I don't see the fix and I have the same problem.

When I want to display the production dashboard, my GTK client crashes (Windows and Linux).

I use these versions :

Server : 5.0.6
Client : 5.0.6
Matplotlib : 0.91.2-0ubuntu1

How to fix this bug ?

Revision history for this message
Ferdinand (office-chricar) wrote :
Revision history for this message
Quentin THEURET @Amaris (qtheuret) wrote :

Thank you .

Revision history for this message
Quentin THEURET @Amaris (qtheuret) wrote :

I install the last version of matplotlib, but the problem also occured.

I have an other question : Where do come the problem, openobject-client or openobject-server ?

There is my traceback:
  File "/home/quentin/OpenERP/openerp-base/client/bin/widget/screen/screen.py", line 535, in load
    self.display(ids[0])
  File "/home/quentin/OpenERP/openerp-base/client/bin/widget/screen/screen.py", line 544, in display
    self.current_view.display()
  File "/home/quentin/OpenERP/openerp-base/client/bin/widget/view/graph.py", line 60, in display
    self.view.display(self.screen.models)
  File "/home/quentin/OpenERP/openerp-base/client/bin/widget/view/graph_gtk/graph.py", line 119, in display
    tinygraph.tinygraph(self._subplot, self.attrs.get('type', 'pie'), self.axis, self.axis_data, datas, axis_group_field=self.axis_group, orientation=self.attrs.get('orientation', 'vertical'))
  File "/home/quentin/OpenERP/openerp-base/client/bin/tinygraph/__init__.py", line 122, in tinygraph
    subplot.legend(gvalue2,axis_group,shadow=True,loc='best',prop = font_property)
  File "/usr/lib/pymodules/python2.6/matplotlib/axes.py", line 4026, in legend
    self.legend_ = mlegend.Legend(self, handles, labels, **kwargs)
  File "/usr/lib/pymodules/python2.6/matplotlib/legend.py", line 304, in __init__
    self._init_legend_box(handles, labels)
  File "/usr/lib/pymodules/python2.6/matplotlib/legend.py", line 599, in _init_legend_box
    handle_label = safezip(handleboxes, labelboxes)
  File "/usr/lib/pymodules/python2.6/matplotlib/cbook.py", line 908, in safezip
    raise ValueError(_safezip_msg % (Nx, i+1, len(arg)))
ValueError: In safezip, len(args[0])=8 but len(args[1])=4

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.