Windows gtk client crashes on charts drawing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo GTK Client (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP sa GTK client R&D |
Bug Description
Hello.
I've posted this once, but it was refused due the bug hasn't been reproduced.
I'll try once again, describing the conditions of appearing the bug as detailed as possible.
Let's take a default database with demo data. In one of the production orders we shall set Repair Workhop as a workcenter(by default we have all oders appointed to Assembly Workshop). Now let's select Reporting-
File "tinygraph\
File "matplotlib\
File "matplotlib\
File "matplotlib\
File "matplotlib\
ValueError: In safezip, len(args[0])=4 but len(args[1])=2
It happens in the following code:
if len(axis_group)>1:
else:
The first two arguments of legend function must be of equal length, but in fact the debugger shows:
ais_group=list: ['Assembly workshop', 'Repairs workshop'] (2 items)
gvalue2=list: [<matplotlib.
(4 items)
There are 4 bars and 2 items in legend.
I removed the code that checks lenght of the arguments in safezip function of matlotlib as a temp solution and nothing bad happened, it displayed the chart.
I'm not sure how to fix it: maybe it must be gvalue instead gvalue2 in the third string?
Related branches
- Naresh(OpenERP): Needs Resubmitting
-
Diff: 46 lines (+13/-6)1 file modifiedbin/tinygraph/__init__.py (+13/-6)
- OpenERP sa GTK client R&D: Pending requested
-
Diff: 271 lines (+46/-25)10 files modifiedbin/modules/gui/main.py (+4/-2)
bin/modules/gui/window/win_import.py (+13/-4)
bin/openerp-client.py (+2/-0)
bin/openerp.glade (+2/-0)
bin/widget/model/field.py (+1/-1)
bin/widget/screen/screen.py (+1/-1)
bin/widget/view/calendar_gtk/parser.py (+3/-2)
bin/widget/view/form_gtk/reference.py (+1/-1)
bin/widget/view/list.py (+16/-9)
bin/widget_search/selection.py (+3/-5)
Changed in openobject-client: | |
assignee: | nobody → vrsb (shepilov555) |
Changed in openobject-client: | |
assignee: | vrsb (shepilov555) → nobody |
summary: |
- Windows gtk client crush on charts drawing + Windows gtk client crashes on charts drawing |
Changed in openobject-client: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → OpenERP sa GTK client R&D (openerp-dev-gtk) |
Seems that gvalue2 list contains len(axis_group)*n elements since its appended in the nested loop. That's why lengh of the first and the second lgend() arguments are not equal.