Kodi can't open any files with mythtv addon enabled
#1
Hi, I have a strange problem with Kodi 14.0 on slackware 64bit. It seems to be something to do with the mythtv addon. With the addon enabled kodi starts giving errors that it can't open any files at all, not even ones needed to display menus, so I just end up with a black screen and have to kill it.
It seems to be something to do with the number of open files and the channel icons, but I only have about 100 channels and ulimit -n shows 1024 is my max open files.
Reply
#2
Are you seeing any errors in the debug log?
Reply
#3
Hi,
In the log file I see lots of errors about channel icons when the mythtv client is starting up
Quote:13:09:30 T:140402130614016 ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)WSResponse: bad request (404)
13:09:30 T:140402130614016 ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)GetChannelIcon1_32: invalid response
13:09:30 T:140402130614016 ERROR: AddOnLog: MythTV PVR Client: Process: Failed to read file: type: 4, local: /home/adamf/.kodi/userdata/addon_data/pvr.mythtv/cache/channelIcon/56278
13:09:30 T:140402130614016 DEBUG: AddOnLog: MythTV PVR Client: Process: Delayed recache file: type: 4, local: /home/adamf/.kodi/userdata/addon_data/pvr.mythtv/cache/channelIcon/56278
I am using mythtv 0.27.4 and it seems to show this error for every channel (about 350 of them, I didn't realise there were that many tuned in).

(I didn't actually know that Kodi was meant to be showing channel icons, I just assumed they weren't supported not that anything was broken Smile )

After the mythtv client has finished starting, Kodi has 1024 open files
Quote:$ ls -l /proc/`/sbin/pidof kodi.bin`/fd | wc -l
1024

Then Kodi starts acting strange showing black screens because it is unable to open any more files or connections to the SQL server

Quote:13:10:07 T:140402389575424 ERROR: GetRecentlyAddedAlbumSongs failed
13:10:07 T:140402389575424 DEBUG: GetRecentlyAddedAlbums query: select * from albumview where strAlbum != '' order by idAlbum desc limit 10
13:10:07 T:140402389575424 ERROR: SQL: Undefined SQLite error
Query: select * from albumview where strAlbum != '' order by idAlbum desc limit 10
13:10:07 T:140402389575424 ERROR: GetRecentlyAddedAlbums failed
13:10:07 T:140402389575424 DEBUG: CRecentlyAddedJob::UpdateVideos() - Running RecentlyAdded home screen update
13:10:07 T:140402389575424 ERROR: Unable to open database: xbmc_video_new90 [2004](Can't create TCP/IP socket (24))
13:10:07 T:140402389575424 INFO: MYSQL server has gone. Will try 4 more attempt(s) to reconnect.
13:10:07 T:140402389575424 ERROR: Unable to open database: xbmc_video_new90 [2004](Can't create TCP/IP socket (24))
13:10:07 T:140402389575424 INFO: MYSQL server has gone. Will try 3 more attempt(s) to reconnect.
13:10:07 T:140402389575424 ERROR: Unable to open database: xbmc_video_new90 [2004](Can't create TCP/IP socket (24))
13:10:07 T:140402389575424 INFO: MYSQL server has gone. Will try 2 more attempt(s) to reconnect.
13:10:07 T:140402389575424 ERROR: Unable to open database: xbmc_video_new90 [2004](Can't create TCP/IP socket (24))
13:10:07 T:140402389575424 INFO: MYSQL server has gone. Will try 1 more attempt(s) to reconnect.
13:10:07 T:140402389575424 ERROR: Unable to open database: xbmc_video_new90 [2004](Can't create TCP/IP socket (24))
13:10:07 T:140402389575424 INFO: MYSQL server has gone. Will try 0 more attempt(s) to reconnect.
13:10:07 T:140402389575424 ERROR: Unable to open database: xbmc_video_new90 [2004](Can't create TCP/IP socket (24))
13:10:07 T:140402389575424 ERROR: SQL: The MySQL server has gone away
Query: select * from movieview ORDER BY dateAdded desc, idMovie desc LIMIT 10
13:10:07 T:140402389575424 ERROR: GetMoviesByWhere failed
The SQL connection was ok before mythtv finished scanning channels.
Reply
#4
I think it is an old bug in pvr.mythtv - what is your version of the addon ?

Mike
Reply
#5
I have the mythtv addon version 1.9.28 and Kodi 14.0. I have the same versions installed on 3 slackware PCs. Two of them are 64bit and both have this problem with too many open files. One of them is 32bit and it is fine.
Reply
#6
You need mythtv pvr addon version atleast 1.11.2. This has the fix for the open files issue you are seeing, plus another fix for reliable Live TV streaming.

It is also possible that channel icons on the mythtv backend maybe in the wrong place.
Don't know slackware, but Ubuntu should have the icons in /home/mythtv/.mythtv/channels.
You may find the icons are in /home/login_user/.mythtv/channels. You could try just copying the icons across to /home/mythtv/.mythtv/channels


Mike
Reply
#7
Thanks, I will try and change the kodi SlackBuild to use newer versions.

I had no idea about where channel icons were saved or meant to be, or when I was meant to see them. I never really cared about them until I got this error. You were right that they were saved in my users home directory and in slackware they are meant to be in /etc/mythtv/channels, copying them over has fixed the view in mythfrontend so I see icons on the channel list. No icons in Kodi at the moment but maybe after updating they will appear Smile

edit: Downloaded the helix branch from https://github.com/opdenkamp/xbmc-pvr-addons/tree/helix and the Kodi 14.1 source. Modified the SlackBuild to use them and now the PVR addon is working with channel icons too.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi can't open any files with mythtv addon enabled1