[mythtv-commits] Ticket #13039: Cutlist editor often crashes the frontend

MythTV noreply at mythtv.org
Tue May 9 21:44:28 UTC 2017


#13039: Cutlist editor often crashes the frontend
--------------------------------+-------------------------
 Reporter:  mythwiki@…          |          Owner:
     Type:  Bug Report - Crash  |         Status:  new
 Priority:  minor               |      Milestone:  unknown
Component:  MythTV - General    |        Version:  0.28.1
 Severity:  medium              |     Resolution:
 Keywords:                      |  Ticket locked:  0
--------------------------------+-------------------------

Comment (by rsiddons):

 That code is deleting the mark that the iterator is  using, which is
 erroneous, and causing the iterator to become undefined.
 Older Qt versions were more tolerant of faulty code; newer versions tend
 to crash (as they're entitled to).

 I'm not in a position to even compile this at the moment but, if you want
 to try it, a fix is something like, :

 {{{
 @@ -489,7 +489,8 @@ void DeleteMap::NewCut(uint64_t frame)
                  {
                      LOG(VB_PLAYBACK, LOG_INFO, LOC +
                          QString("Deleting bounded marker:
 %1").arg(otherframe));
 -                    Delete(otherframe);
 +                    it = m_deleteMap.erase(it);
 +                    m_changed = true;
                  }
 }}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13039#comment:4>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list