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:  Fixed
Privacy:  Public Assigned to:  meanmicio
Open/Closed:  Closed Release:  4.0.0
Module:  health_reporting Component:  Hospital Management

Mon 12 Dec 2022 08:03:57 PM UTC, comment #1: 

Thank you, Axel!

Fixed at
https://hg.savannah.gnu.org/hgweb/health-hmis-client/rev/62d23a5b6366

Please test and report :)

Luis Falcon <meanmicio>
Group administrator
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>

 

(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 meanmicio (Posted a comment)
  • -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.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-12-22 meanmicio StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2022-12-12 meanmicio StatusNone Ready For Test
        ReleaseNone 4.0.0

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code