[mythtv-commits] Ticket #13321: Seg Fault when upgrading Steppes Theme

MythTV noreply at mythtv.org
Sat Sep 22 15:24:41 UTC 2018


#13321: Seg Fault when upgrading Steppes Theme
---------------------------------------------+-----------------------------
 Reporter:  Peter Bennett                    |          Owner:  jpoet
     Type:  Bug Report - Crash               |         Status:  assigned
 Priority:  minor                            |      Milestone:
                                             |  needs_triage
Component:  MythTV - User Interface Library  |        Version:  Master Head
 Severity:  medium                           |     Resolution:
 Keywords:                                   |  Ticket locked:  0
---------------------------------------------+-----------------------------

Comment (by Peter Bennett):

 The seg fault occurs in QT code from a call to QFontMetrics::elidedText.
 This is called in line 555 of mythuitext.cpp
 {{{
     if (m_Cutdown != Qt::ElideNone)
     {
         QFontMetrics fm(GetFontProperties()->face());
         QString cut_line = fm.elidedText
                            (paragraph.mid(last_line),
                             Qt::ElideRight,
                             width - fm.averageCharWidth());
 }}}

 I checked all the parameters to elidedText and all seem valid.

 There must be a corrupted font being returned by face(). This must be
 something other than simply the font changing, because it does not happen
 on changing to a new theme. I would think that changing theme would often
 result in using new fonts, and this does not normally cause seg faults.

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


More information about the mythtv-commits mailing list