bugGNU Health - Bugs: bug #62849, Top Diseases report crashes on...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #62849: Top Diseases report crashes on DemoServer

Submitter:  Axel Braun <coogor>
Submitted:  Mon 01 Aug 2022 12:48:05 PM UTC
 
Category:  reporting Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  meanmicio
Open/Closed:  Open Release:  None
Module:  health_reporting Component:  Hospital Management

Mon 01 Aug 2022 12:48:05 PM UTC, original submission:  

I feel we have seen this before.....
executing the Top diseases report, result on 'Infectious' is empty.

Click on 'Switch View':

test@localhost:~> gnuhealth-client
ERROR:gnuhealth.common.common:  File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/form.py", line 297, in sig_switch
    self.screen.switch_view()
  File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/view_form/screen/screen.py", line 554, in switch_view
    self.display()
  File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/view_form/screen/screen.py", line 944, in display
    view.display()
  File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/view_form/view/graph.py", line 92, in display
    self.widgets['root'].display(self.screen.group)
  File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/view_form/view/graph_gtk/graph.py", line 337, in display
    self.setColorScheme()
  File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/view_form/view/graph_gtk/graph.py", line 465, in setColorScheme
    r, g, b = hex2rgb(COLOR_SCHEMES.get(color, color))
  File "/usr/lib/python3.10/site-packages/gnuhealth/common/common.py", line 1034, in hex2rgb
    r = int(hexstring[1:digits + 1], 16)

TypeError: 'NoneType' object is not subscriptable

followed by:

ERROR:gnuhealth.common.common:  File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/view_form/view/graph_gtk/graph.py", line 113, in do_draw
    self.updateArea(cr, width, height)
  File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/view_form/view/graph_gtk/graph.py", line 412, in updateArea
    for value, label in self.YLabels():
  File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/view_form/view/graph_gtk/bar.py", line 177, in YLabels
    ylabels = super(VerticalBar, self).YLabels()
  File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/view_form/view/graph_gtk/graph.py", line 175, in YLabels
    if self.yrange == 0.0:

AttributeError: 'VerticalBar' object has no attribute 'yrange'

Session has to be killed!

Axel Braun <coogor>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by coogor (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.9