Opened 14 years ago

Closed 14 years ago

#3321 closed defect (fixed)

Mythfrontend Crash when viewing upcoming recordings

Reported by: anonymous Owned by: paulh
Priority: minor Milestone: 0.21
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no


I was using the "Upcoming Recordings" screen to flag some shows as "do not record". When I did the following, mythfrontend crashed with a segfault:

  1. Highlight a recording and press "I" to get the program detail popup.
  2. Close the popup and hit "enter". This should bring up the "OK" / "Don't Record"/... screen.
  3. Select "Don't Record". mythfrontend will crash.

I've attached a backtrace and a patch which fixes it for me. This is against the release-0-20-fixes branch, but I believe the problem exists in SVN as well.

Attachments (1)

mythfrontend.gdb.txt (10.3 KB) - added by cizek@… 14 years ago.
gdb dump of core

Download all attachments as: .zip

Change History (4)

comment:1 Changed 14 years ago by cizek@…

Patch to fix crash

Index: mythtv/libs/libmythtv/programinfo.cpp
--- mythtv/libs/libmythtv/programinfo.cpp       2006-10-26 06:30:23.000000000 -0500
+++ mythtv/libs/libmythtv/programinfo.cpp       2007-04-18 00:43:55.000000000 -0500
@@ -3172,7 +3172,7 @@
     if (record == NULL && recordid)
         record = new ScheduledRecording();
-        record->loadByID(recordid);
+        record->loadByProgram(this);
     if (filesize > 0)

Changed 14 years ago by cizek@…

Attachment: mythfrontend.gdb.txt added

gdb dump of core

comment:2 Changed 14 years ago by paulh

Milestone: unknown0.21
Owner: changed from Isaac Richards to paulh
Version: unknownhead

comment:3 Changed 14 years ago by paulh

Resolution: fixed
Status: newclosed

(In [14464]) Fix a segfault in View Scheduled Recordings.

Fixes #3321.

Note: See TracTickets for help on using tickets.