Opened 14 years ago

Closed 14 years ago

#883 closed patch (fixed)

frontend crash on "Machine Status"

Reported by: Blaise Tarr Owned by: Isaac Richards
Priority: minor Milestone: 0.19
Component: mythtv Version: head
Severity: medium Keywords: mythfrontend status crash
Cc: Ticket locked: no

Description

mythfrontend crashes with a "floating point exception" when selecting "Machine Status" on the "System Status" screen.

Apparently QVariant::toInt() is returning 0 when the value is a float, resulting in a division by zero.

Attachments (1)

statusbox.patch (974 bytes) - added by Blaise Tarr 14 years ago.

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by Blaise Tarr

Attachment: statusbox.patch added

comment:1 Changed 14 years ago by cpinkham

Resolution: fixed
Status: newclosed

(In [8465]) Fix potential floating point exception in StatusBox? by using a cast instead of relying on QVariant to convert a float to an int(). Patch by Blaise Tarr, Closes #883.

Fix another bug in StatusBox? that would show swap as "Unknown" if the swap space was totally free.

Note: See TracTickets for help on using tickets.