[mythtv-users] Doing a "scan for games" in mythgame hangs mythfrontend, rails cpu.

Greg Grotsky spikeygg at gmail.com
Wed Oct 22 02:48:30 UTC 2008


On Tue, Oct 21, 2008 at 9:46 AM, Drew Gilbert <gilbert.drew at gmail.com>wrote:

> How long are you allowing it to scan before you decide that it has
> frozen (larger files tend to take longer to scan)?  It could well be
> working fine but just not updating the progress bar.  Are the
> permissions for the directory and file at least readable by the mythtv
> user?  Have you tried just having 1 rom in the directory and let it scan
> that?  Double check that all of the player settings are correct, select
> 'clear all game data' - this (I think!) drops the mythgame table so any
> metadata is lost, but should clear up any corruption.
>
> Try running the frontend with all verbosity and redirect to a file
> (/tmp/mythfrontend) for later review:
>
>  # mythfrontend -v all > /tmp/mythfrontend 2>&1
>
> It might be worth trying a different player to see if the behaviour is
> any different.
>

Thanks for the response.  Here are the answers to your questions:

1.  I have let it sit there for 10 minutes and nothing happens, just 100%
cpu and a frozen screen.  I can get a hall of mirrors effect if I drag
the terminal box around on top of whats left of the frontend.  When my
system worked before I remember that it would pop up a progress bar on
the SCREEN that says what rom-system it's detecting for, but that doesn't
even happen (just the LCD information status changes to "scanning for
games...").
2.  I tried your good suggestion of a single rom in a directory, it still
fails, the same way.  Let it sit for 5 minutes, no change.
3.  I tried an empty directory as well, same result.
4.  The permissions are 644 for all files and 755 for the directory which
houses the files.  The mythfrontend process owner, is the owner and the
group property of all files and the directory.
5.  I have tried the "Clear Player Data" option several times, since I don't
have any to begin with.  It does nothing.
6.  I deleted my N64 gameplayer info (it was the only one), and created a
new "fake" one and tried scanning for roms in both an empty and single file
directory, results still the same.
7.  I ran a log of "mythfrontend -v all > log" but no errors came out at the
end of the file.  It's like it just goes off into la-la land chewing up cpu
cycles.  I let it run for a few minutes after choosing to scan for roms,
when I killed it the time was 20:38 so there were no entries once it froze
at 20:35.  The following is an excerpt from the log file of the last ~20
lines.

2008-10-21 20:35:44.947 MythUIImage::Load found in cache
:/home/spikeygg/.mythtv/themecache/MythCenter-wide.1920.540/watermark-zoneminder.png-reflected-384x249.png:
2008-10-21 20:35:44.964 Loading from:
/usr/local/share/mythtv/themes/MythCenter-wide/menu-ui.xml
2008-10-21 20:35:45.146 lcddevice: switchToTime
2008-10-21 20:35:45.146 lcddevice: Sending to Server: SWITCH_TO_TIME
2008-10-21 20:35:45.146 lcddevice: switchToMenu
2008-10-21 20:35:45.146 lcddevice: Sending to Server: SWITCH_TO_MENU
"MYTH-GAME_SETTINGS" TRUE "General Settings" NOTCHECKABLE TRUE FALSE 0 "Game
Players" NOTCHECKABLE FALSE FALSE 0 "Scan for Games" NOTCHECKABLE FALSE
FALSE 0 "Clear Game Data" NOTCHECKABLE FALSE FALSE 0
2008-10-21 20:35:45.146 Clearing Settings Cache.
2008-10-21 20:35:45.147 MythSocket(9474b0:21): socket is readable
2008-10-21 20:35:45.147 MythSocket(9474b0:21): cb->readyRead()
2008-10-21 20:35:45.147 MythSocket(9474b0:21): socket is readable
2008-10-21 20:35:45.147 MythSocket(9474b0:21): cb->readyRead()
2008-10-21 20:35:46.694 lcddevice: Sending to Server: UPDATE_LEDS 0
2008-10-21 20:35:46.694 MythSocket(9474b0:21): socket is readable
2008-10-21 20:35:46.694 MythSocket(9474b0:21): cb->readyRead()
2008-10-21 20:35:46.826 MSqlQuery::exec("SELECT DISTINCT playername FROM
gameplayers WHERE playername <> '';")
2008-10-21 20:35:46.826 MSqlQuery::exec() "SELECT rompath, workingpath,
commandline, screenshots, gameplayerid, gametype, extensions, spandisks
FROM gameplayers WHERE playername = 'Mupen64Plus' "
2008-10-21 20:35:46.827 MSqlQuery::exec() "SELECT rompath, workingpath,
commandline, screenshots, gameplayerid, gametype, extensions, spandisks
FROM gameplayers WHERE playername = 'Mupen64Plus' "
2008-10-21 20:35:46.828 lcddevice: switchToGeneric
2008-10-21 20:35:46.828 lcddevice: Sending to Server: SWITCH_TO_GENERIC 1
ALIGN_CENTERED "Scanning for Mupen64Plus game(s)..." "Generic" FALSE
2008-10-21 20:35:46.844 MythSocket(9474b0:21): socket is readable
2008-10-21 20:35:46.844 MythSocket(9474b0:21): cb->readyRead()

Any more ideas?  I can post a link to the entire log file if you think it
would be useful.

-Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20081021/01de2125/attachment.htm 


More information about the mythtv-users mailing list