Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#3102 closed patch (fixed)

FIX: mythfrontend crashes bring up the guide when no channels are defined

Reported by: redmundt@… Owned by: Isaac Richards
Priority: trivial Milestone: unknown
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Reproduce by: 1- remove all channels 2- From main menu: Manage Recordings -> Schedule Recordings -> Program Guide

I suspect this also affects the guide from LiveTV (but I did not verify.)

The fix I did is below:

Index: libs/libmythtv/guidegrid.cpp =================================================================== --- libs/libmythtv/guidegrid.cpp (revision 12819) +++ libs/libmythtv/guidegrid.cpp (working copy) @@ -716,11 +716,11 @@

int chanNum = row + m_currentStartChannel; if (chanNum >= (int) m_channelInfos.size())

chanNum -= (int) m_channelInfos.size();

  • if (chanNum >= (int) m_channelInfos.size())
  • return;

if (chanNum < 0)

chanNum = 0;

+ if (chanNum >= (int) m_channelInfos.size()) + return;

m_programs[row] = proglist = new ProgramList();

Attachments (1)

guidegrid.diff (605 bytes ) - added by redmundt@… 19 years ago.
patch unmangled by html rendering

Download all attachments as: .zip

Change History (3)

by redmundt@…, 19 years ago

Attachment: guidegrid.diff added

patch unmangled by html rendering

comment:1 by cpinkham, 19 years ago

Resolution: fixed
Status: newclosed

(In [12960]) Don't try to fill in the program infos on the EPG if we don't have any channels in the database.

Fixes segfault that would occur if you entered the EPG with an empty channel table.

Closes #3102.

comment:2 by cpinkham, 19 years ago

(In [12961]) Carry over [12960] from trunk.

Don't try to fill in the program infos on the EPG if we don't have any channels in the database.

Fixes segfault that would occur if you entered the EPG with an empty channel table.

References #3102.

Note: See TracTickets for help on using tickets.