(OLD) Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Kodi Community Development

Moderator: TVJunkie198

Locked
NYPlayer
Posts: 3538
Joined: Fri Apr 17, 2009 11:45 am
Device ID: 104112F4,104162C4,10438DAD,10438DF5,10701381,13147C7B,131A192A
Location: Portland OR, 97217

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by NYPlayer » Wed Aug 01, 2018 1:33 pm

My kodi keeps crashing with this error …… on the Shield .. I had to back off to previous every time I went to TV section it crashed.

13:31:02.816 T:164430333168 NOTICE: Start - EPG thread started
13:31:02.876 T:164439758064 ERROR: CPVRTimerType::CreateFromAttributes unable to resolve timer type (0x1, 0xa, 1037099430)
13:31:03.517 T:164449080560 ERROR: Previous line repeats 245

Log.

https://1drv.ms/u/s!AoAyU7HxVEVNho11g_xyUftBWN_Cbg

djp952
Posts: 808
Joined: Wed Oct 01, 2008 8:46 pm
Device ID: 131EB7F7;131ED0E0
Location: Elkridge, MD

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by djp952 » Wed Aug 01, 2018 7:38 pm

Ken.F wrote:
Wed Aug 01, 2018 3:31 am
djp952 wrote:
Tue Jul 31, 2018 8:44 pm
Image

For those that wanted the Kodi timeshifting bar enabled, if I have no reasonable way to set the end time correctly ("8:00PM" in above image)...
ServerWMC has the end time set to the current clock time on the timeshifting bar. Can you do it that way?

Image
Yes, I got it working. It doesn't update frequently, but I assume that's because Kodi isn't asking :) When it asks and I give it the time it does update. Not sure why I was seeing "8:00PM" last night, I must have been playing around.

Thanks for the screen shot as well, it's nice to see that the timeshift time and the playback time under it aren't in sync for ServerWMC either. I was going crazy on that one :)

djp952
Posts: 808
Joined: Wed Oct 01, 2008 8:46 pm
Device ID: 131EB7F7;131ED0E0
Location: Elkridge, MD

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by djp952 » Wed Aug 01, 2018 7:41 pm

NYPlayer wrote:
Wed Aug 01, 2018 1:33 pm
My kodi keeps crashing with this error …… on the Shield .. I had to back off to previous every time I went to TV section it crashed.

13:31:02.816 T:164430333168 NOTICE: Start - EPG thread started
13:31:02.876 T:164439758064 ERROR: CPVRTimerType::CreateFromAttributes unable to resolve timer type (0x1, 0xa, 1037099430)
13:31:03.517 T:164449080560 ERROR: Previous line repeats 245

Log.

https://1drv.ms/u/s!AoAyU7HxVEVNho11g_xyUftBWN_Cbg
The CPVRTimerType::CreateFromAttributes Error is normal and expected. It looks like the program is aborting, presumably due to an exception, and presumably in the PVR since rolling it back fixed it. For example, in the paste of the log above the word "times" is missing :) For some reason this rings a bell … the log missing the word "times".

Being android this might be hard to debug properly. Let me think about how we can figure out what's really happening here. I wish I had an ARM64 Android device to try!!

Hardax
Posts: 48
Joined: Wed Aug 09, 2017 11:01 am

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by Hardax » Thu Aug 02, 2018 7:16 am

djp952 wrote:
Wed Aug 01, 2018 7:38 pm
Thanks for the screen shot as well, it's nice to see that the timeshift time and the playback time under it aren't in sync for ServerWMC either. I was going crazy on that one :)
Isn't it the skin that controls what the OSD display looks like? If we use anything but the default skin, once you get this worked out, will we still see this feature?

djp952
Posts: 808
Joined: Wed Oct 01, 2008 8:46 pm
Device ID: 131EB7F7;131ED0E0
Location: Elkridge, MD

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by djp952 » Thu Aug 02, 2018 4:51 pm

Hardax wrote:
Thu Aug 02, 2018 7:16 am
djp952 wrote:
Wed Aug 01, 2018 7:38 pm
Thanks for the screen shot as well, it's nice to see that the timeshift time and the playback time under it aren't in sync for ServerWMC either. I was going crazy on that one :)
Isn't it the skin that controls what the OSD display looks like? If we use anything but the default skin, once you get this worked out, will we still see this feature?
Yes and no. The times you see are separate from the skin. I was concerned that the "now playing" time was different than the "timeseek" time by a few seconds but based on the screenshot that seems typical/normal. Here I'm seeing that "timeseek" is accurate as opposed to "now playing".

So far adding this looks ... Ok ... but it's still a little wonky. I think it will be a success soon but right now I want to figure out NYPlayer's problem and deal with an unexpected problem I see seeking past the end of a live stream if it's playing on another device (HTTP 503 when HTTP 416 is expected)

Ken.F
Posts: 2069
Joined: Fri Apr 05, 2013 9:20 am
Device ID: 1041A706, 1043EB32, 104BAD9E, 13168DC5, 1322A7AC
Location: West Rockhill, PA

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by Ken.F » Fri Aug 03, 2018 6:09 am

djp952 wrote:
Thu Aug 02, 2018 4:51 pm
I was concerned that the "now playing" time was different than the "timeseek" time by a few seconds but based on the screenshot that seems typical/normal. Here I'm seeing that "timeseek" is accurate as opposed to "now playing".
Maybe it has something to do with the amount of time it takes to write the data to the buffer file before it can be played back.

tloughr
Posts: 49
Joined: Mon Sep 12, 2011 7:05 pm

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by tloughr » Fri Aug 03, 2018 8:36 am

First thanks for the great plugin. I was getting a video lock up every morning with the new version, 1.2.10 so I just reverted back to 1.2.9. The live TV would freeze and a circle with a "0" appears in the center. The only way I could recover was to use Task Manager (Windows 10) to kill Kodi and then restart it. Not sure if anyone else is experiencing the problem.

djp952
Posts: 808
Joined: Wed Oct 01, 2008 8:46 pm
Device ID: 131EB7F7;131ED0E0
Location: Elkridge, MD

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by djp952 » Fri Aug 03, 2018 3:01 pm

tloughr wrote:
Fri Aug 03, 2018 8:36 am
First thanks for the great plugin. I was getting a video lock up every morning with the new version, 1.2.10 so I just reverted back to 1.2.9. The live TV would freeze and a circle with a "0" appears in the center. The only way I could recover was to use Task Manager (Windows 10) to kill Kodi and then restart it. Not sure if anyone else is experiencing the problem.
Are you streaming directly from the tuners or using a RECORD engine? I've recently found a bug with direct tuning where I'm telling Kodi that the stream is zero-length (should be infinite) and that it's not real-time (it is). This seems to be causing a number of problems if that option is enabled.

I am very sorry for your difficulties; I tried to simplify the streaming code in 1.2.10 to use less locking/overhead so the low-power devices like FireSticks can work better. Ultimately I'm not really seeing any noticeable improvement on those devices so it may just need to be rolled back to the way it was done before. I honestly thought my original implementation(s) were over-engineered but maybe not. Kodi is so fickle.

I'd like to give the new stream code at least one more chance (via a v1.2.11) after fixing the bugs that have surfaced since on paper it is definitely more efficient, but I have zero problem just reverting it back to the old way. I want this to work as well as it can for everyone.

v1.2.10 in and of itself was also probably too big of a release change-wise. In retrospect I should have done less at one time, it would be much easier to pinpoint the change that is causing a problem if there were less of them :(

Let me know on the direct vs. RECORD engine question if you can.

tloughr
Posts: 49
Joined: Mon Sep 12, 2011 7:05 pm

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by tloughr » Fri Aug 03, 2018 3:09 pm

Please don't apologize. I absolutely love your plugin and appreciate your efforts. I'm not sure how to answer your question. I am a PVR subscriber with HD Homerun if that is what you mean?

djp952
Posts: 808
Joined: Wed Oct 01, 2008 8:46 pm
Device ID: 131EB7F7;131ED0E0
Location: Elkridge, MD

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by djp952 » Fri Aug 03, 2018 6:12 pm

tloughr wrote:
Fri Aug 03, 2018 3:09 pm
Please don't apologize. I absolutely love your plugin and appreciate your efforts. I'm not sure how to answer your question. I am a PVR subscriber with HD Homerun if that is what you mean?
Eh, I can't help myself on the apologies, I take it rather personally when things don't work for you guys. Character flaw I suppose :) It could be worse, I could throw out the ol' "you get what you pay for" schtick :mrgreen: (PSA: I'd never do that).

Let's find out if you have an HDHomeRun RECORD device running … this is the DVR engine that lets you record stuff. I assume you do have one set up if you are a subscriber and can record programs, but it takes like 5 seconds to be certain and my code has had past problems detecting them properly. Go into the Kodi Settings / PVR & Live TV area. Make sure the little gear at the bottom says "Standard", "Advanced", or "Expert". If not, click on it until it does. Then you should see "Client Specific" as an option. Highlight that and choose "Client specific settings" from the right-hand pane. You should see a menu pop up, the first entry being "List Discovered Devices". Select that guy.

I just want to be sure that you see an "HDHomeRun RECORD" device in the list. If not, the PVR is going to default to hitting your tuner(s) directly. That should usually be fine, but I screwed up a couple things somewhere in the recent past that break it.

You should see something like this:

Image

I am prepping v1.3.0 (not v1.2.11 anymore - because #reasons) this weekend, hopefully if you have the time available to help figure the problem out we can nail it down and get you back in business here. I still haven't found the root cause of NYPlayer's crash issue either, that one really bothers me since it seems like an unhandled exception; but I do want to get the tuner-direct fixes pushed out.

djp952
Posts: 808
Joined: Wed Oct 01, 2008 8:46 pm
Device ID: 131EB7F7;131ED0E0
Location: Elkridge, MD

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by djp952 » Fri Aug 03, 2018 7:25 pm

NYPlayer wrote:
Wed Aug 01, 2018 1:33 pm
My kodi keeps crashing with this error …… on the Shield .. I had to back off to previous every time I went to TV section it crashed.

13:31:02.816 T:164430333168 NOTICE: Start - EPG thread started
13:31:02.876 T:164439758064 ERROR: CPVRTimerType::CreateFromAttributes unable to resolve timer type (0x1, 0xa, 1037099430)
13:31:03.517 T:164449080560 ERROR: Previous line repeats 245

Log.

https://1drv.ms/u/s!AoAyU7HxVEVNho11g_xyUftBWN_Cbg
Just FYI that I'm not ignoring this; I am working on getting an ARM64 Android emulator installed to see if I can duplicate this. Based on the log it looks like the 'startup' task is completing without error, which is good I guess. When you switch to the TV tab Kodi is querying it's own database for information about the channels and timers and recordings to show you -- I think something has gone wrong there. My best guess right now is something like a blank/null/bad string that is crashing Kodi, but I can't see where anything has changed in that regard.

For the discovery-type data like this I changed 1.2.10 to use a cURL feature that shares DNS lookup information and the HTTP connections; it's almost certain that the problem lies with that change but I don't want to undo it without evidence to support that theory since it has really improved the performance of things like loading the EPG data.

I'm hopeful that the ARM64 Android emulator will expose something but it will be so much slower than a real ARM64 device things like a timing issue may not manifest the same way.

Worst case here if I absolutely can't find why it's dying on you I will add an option to disable the shared DNS/connection cache, even if it's just a temporary thing. I'm more than a few versions behind on the cURL library after my 'absence' and difficulties integrating the latest one quickly, maybe it's something that has been detected/fixed already and I'm just out of date :(

Hang tight my friend. As always, I'd rather it work right than work fast, if we can't nail this down or work around it somehow we'll put it back the way it was and punt sometime in the future!

djp952
Posts: 808
Joined: Wed Oct 01, 2008 8:46 pm
Device ID: 131EB7F7;131ED0E0
Location: Elkridge, MD

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by djp952 » Sat Aug 04, 2018 9:31 am

NYPlayer wrote:
Wed Aug 01, 2018 1:33 pm
My kodi keeps crashing with this error …… on the Shield .. I had to back off to previous every time I went to TV section it crashed.

13:31:02.816 T:164430333168 NOTICE: Start - EPG thread started
13:31:02.876 T:164439758064 ERROR: CPVRTimerType::CreateFromAttributes unable to resolve timer type (0x1, 0xa, 1037099430)
13:31:03.517 T:164449080560 ERROR: Previous line repeats 245

Log.

https://1drv.ms/u/s!AoAyU7HxVEVNho11g_xyUftBWN_Cbg
Hi NYPlayer, I cashed in a couple old gift cards and got an nVidia shield device this morning. I didn't run into any problems with v1.2.10 at all (aarch64 APK), it fired right up and did all the things I would expect it to. I updated it to Android 8.0 as well.

I'm wondering if you have some bad data in the database or something like that. I still think there will be a v1.3.0 this weekend some time, and that will reset the PVR database, so it's probably pointless to ask you to go through any hassle to try v1.2.10 again. It may not hurt to do a Clear Data on the Kodi PVR and Kodi Guide and let it reload everything.

I'll try to stress it out today and see if I can make it break.

BTW - Pretty cool little device - it's physically much smaller than I expected and performs extremely well! Puts the FireTV stuff to shame. If there is a way to auto start Kodi (probably is) I think this is a much better device than the old gen 5 NUC I'm using in the basement. That particular PC is pathetic, but it gets the job done!

NYPlayer
Posts: 3538
Joined: Fri Apr 17, 2009 11:45 am
Device ID: 104112F4,104162C4,10438DAD,10438DF5,10701381,13147C7B,131A192A
Location: Portland OR, 97217

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by NYPlayer » Sat Aug 04, 2018 9:34 am

djp952 wrote:
Sat Aug 04, 2018 9:31 am
NYPlayer wrote:
Wed Aug 01, 2018 1:33 pm
My kodi keeps crashing with this error …… on the Shield .. I had to back off to previous every time I went to TV section it crashed.

13:31:02.816 T:164430333168 NOTICE: Start - EPG thread started
13:31:02.876 T:164439758064 ERROR: CPVRTimerType::CreateFromAttributes unable to resolve timer type (0x1, 0xa, 1037099430)
13:31:03.517 T:164449080560 ERROR: Previous line repeats 245

Log.

https://1drv.ms/u/s!AoAyU7HxVEVNho11g_xyUftBWN_Cbg
Hi NYPlayer, I cashed in a couple old gift cards and got an nVidia shield device this morning. I didn't run into any problems with v1.2.10 at all (aarch64 APK), it fired right up and did all the things I would expect it to. I updated it to Android 8.0 as well.

I'm wondering if you have some bad data in the database or something like that. I still think there will be a v1.3.0 this weekend some time, and that will reset the PVR database, so it's probably pointless to ask you to go through any hassle to try v1.2.10 again. It may not hurt to do a Clear Data on the Kodi PVR and Kodi Guide and let it reload everything.

I'll try to stress it out today and see if I can make it break.

BTW - Pretty cool little device - it's physically much smaller than I expected and performs extremely well! Puts the FireTV stuff to shame. If there is a way to auto start Kodi (probably is) I think this is a much better device than the old gen 5 NUC I'm using in the basement. That particular PC is pathetic, but it gets the job done!
Thanks …. in order to launch kodi on boot download App "Launch on Boot"

I have quite a large amount of recordings... over 1500. I will try again and see what happens.

djp952
Posts: 808
Joined: Wed Oct 01, 2008 8:46 pm
Device ID: 131EB7F7;131ED0E0
Location: Elkridge, MD

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by djp952 » Sat Aug 04, 2018 11:03 am

NYPlayer wrote:
Sat Aug 04, 2018 9:34 am
I have quite a large amount of recordings... over 1500. I will try again and see what happens.
Good to know! I have nowhere near that amount, but I can simulate it. I'll try loading up those queries with a ton of fake data and see what happens.

edit: I have 743 recordings, the JSON for which is a little under 700K. Should be easy enough to create a dummy file with a few thousand recordings and load it up to test.

NYPlayer
Posts: 3538
Joined: Fri Apr 17, 2009 11:45 am
Device ID: 104112F4,104162C4,10438DAD,10438DF5,10701381,13147C7B,131A192A
Location: Portland OR, 97217

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by NYPlayer » Sat Aug 04, 2018 12:43 pm

djp952 wrote:
Sat Aug 04, 2018 11:03 am
NYPlayer wrote:
Sat Aug 04, 2018 9:34 am
I have quite a large amount of recordings... over 1500. I will try again and see what happens.
Good to know! I have nowhere near that amount, but I can simulate it. I'll try loading up those queries with a ton of fake data and see what happens.

edit: I have 743 recordings, the JSON for which is a little under 700K. Should be easy enough to create a dummy file with a few thousand recordings and load it up to test.
I reloaded the newest release again appears to be working so far ... BTW the only other addon I have is Plexkodiconnect on my kodi installation.

Locked