Missing symlink in fonts causes mytharchive to crash

Bug #1131280 reported by max
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mythbuntu
Fix Released
Undecided
Unassigned

Bug Description

Version : 0.26.0+fixes.20130221.c3fff6e-0ubuntu0mythbuntu1
Reproduction :
1. Choose MythArchive from myth-frontend
2. Record something to DVD
3. Crashes after encoding.

Bug:
Missing font called by mythburn.pl due to missing symlink in /usr/share/mythtv/fonts

- I added more debug info to mythburn.py:getFont() and found out it's looking for /usr/share/mythtv/fonts/FreeSansBold.ttf and not finding it.

Fix:
Add symlink :
    cd /usr/share/mythtv/fonts
    ln -s ../../fonts/truetype/freefont/* .

- Related Required bug : http://www.mythtv.org/pipermail/mythtv-users/2012-October/341897.html

Symptom: This is the tail of mythburn.log:

Traceback (most recent call last):
  File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 5183, in main
    processJob(job)
  File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 4892, in processJob
    createMenu(format, dpi, files.length)
  File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 3543, in createMenu
    spumuxdom, spunode, numberofitems, 0,"")
  File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 3283, in drawThemeItem
    paintText(draw, bgimage, text, node)
  File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 1151, in paintText
    lines = intelliDraw(draw, text, font, width - (hindent * 2))
  File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 980, in intelliDraw
    if drawer.textsize(' '.join(thistext),font.getFont())[0] > containerWidth:
  File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 230, in getFont
    self.font = ImageFont.truetype(self.fontFile, int(self.size))
  File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 218, in truetype
    return FreeTypeFont(filename, size, index, encoding)
  File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 134, in __init__
    self.font = core.getfont(file, size, index, encoding)
IOError: cannot open resource

Revision history for this message
max (max-warped) wrote :

3rd Bug in this flow : missing dependency M2VRequantiser

Looks related to https://bugs.launchpad.net/ubuntu/+bug/779482

Symptom:
Running: "M2VRequantiser" 1.00634 2880661662 < "/storage/temp/work/1/stream.mv2" > "/storage/temp/work/1/stream.small.mv2"
sh: 1: M2VRequantiser: not found
************************************************************
ERROR: Failed while running M2VRequantiser. Command was "M2VRequantiser" 1.00634 2880661662 < "/storage/temp/work/1/stream.mv2" > "/storage/temp/work/1/stream.small.mv2"
See mythburn.log for more information.
************************************************************

Revision history for this message
Mario Limonciello (superm1) wrote :

Are you sure that's the correct fix for the font problem? Those symlinks actually already exist in mythtv-common.

Changed in mythbuntu:
status: New → Fix Committed
Revision history for this message
Mario Limonciello (superm1) wrote :

Oh actually I see now, its' the bold font that's missing.

Added to master and fixes. Should be in tomorrow's build.

https://github.com/MythTV/packaging/commit/9a351c73bbed475ecfe70d79462dcfa47e498fc2
https://github.com/MythTV/packaging/commit/ca00a2f934b934a8af74cd7b0f68c9c58ba5cabf

Revision history for this message
max (max-warped) wrote : Re: [Bug 1131280] Re: Missing symlink in fonts causes mytharchive to crash

On 02/21/2013 05:29 PM, Mario Limonciello wrote:
> Oh actually I see now, its' the bold font that's missing.
>
> Added to master and fixes. Should be in tomorrow's build.
>
> https://github.com/MythTV/packaging/commit/9a351c73bbed475ecfe70d79462dcfa47e498fc2
> https://github.com/MythTV/packaging/commit/ca00a2f934b934a8af74cd7b0f68c9c58ba5cabf
>

Thanks Mario. Should I file bugs for the other two bugs in the same
flow that were mentioned? I was able to burn the DVD after the three fixes.

-m

Revision history for this message
Mario Limonciello (superm1) wrote :

Yeah file bugs for each other issue.
On Feb 21, 2013 7:54 PM, "Max Baker" <email address hidden> wrote:

> On 02/21/2013 05:29 PM, Mario Limonciello wrote:
> > Oh actually I see now, its' the bold font that's missing.
> >
> > Added to master and fixes. Should be in tomorrow's build.
> >
> >
> https://github.com/MythTV/packaging/commit/9a351c73bbed475ecfe70d79462dcfa47e498fc2
> >
> https://github.com/MythTV/packaging/commit/ca00a2f934b934a8af74cd7b0f68c9c58ba5cabf
> >
>
> Thanks Mario. Should I file bugs for the other two bugs in the same
> flow that were mentioned? I was able to burn the DVD after the three
> fixes.
>
> -m
>

Revision history for this message
Thomas Mashos (tgm4883) wrote :

Marking as Fix Released since we provide newer builds in our PPA and this has been marked fix committed for awhile now.

Changed in mythbuntu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.