NextPVR Forums

Full Version: Application Crash Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I really love NextPVR. I am getting the below error quite frequently last few days and on random scheduled recording on random channels at random times, so no set pattern that I am able to replicate. When I try to replicate the error by scheduling a recording on the failed channel, it does not fail. Th worst part of this error is instead of that erroneous recording exiting the entire application crashes spoiling the other ongoing recordings that never gave any error.

nRecord.log error (I am also attaching the complete log file for reference). I am also using KODI as the front end. Let me know if its log is also required.

nRecord.log google drive link: https://drive.google.com/file/d/1XNQOXgl...sp=sharing

[11] (Recording is due to be stopped at 1/25/2024 3:29PM)
[11] IPTV StartStream
[11] Unexpected error reading IPTV tuning string: System.NullReferenceException: Object reference not set to an instance of an object.
  at NShared.IPTVRecorder.StartStream(ChannelMapping channelMapping, String target, String& reason)
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
  at NShared.IPTVRecorder.StartStream(ChannelMapping channelMapping, String target, String& reason)
  at NShared.RecordingService.WorkerThread()
  at System.Threading.Thread.StartCallback()
zsh: abort      dotnet ./NextPVRServer.dll


I do see the IPTV Provider url redirects to 3 different URL and I saw another poster posting the same error and a resolution for this fixed it for him. I am not sure If I have the exact same error but on a macOS (he was on Windows I think).

2024-01-25 15:08:00.051 [DEBUG][13] (Recording is due to be stopped at 1/25/2024 3:18PM)
2024-01-25 15:08:00.051 [DEBUG][13] IPTV StartStream
2024-01-25 15:08:00.051 [DEBUG][13] IPTV StartStream@2
2024-01-25 15:08:00.051 [DEBUG][13] IPTV StartStream@3
2024-01-25 15:08:00.051 [DEBUG][13] IPTV StartStream@3.1
2024-01-25 15:08:00.051 [DEBUG][13] IPTV StartStream@3.2
2024-01-25 15:08:00.053 [DEBUG][13] ConnectToURL: URL1]
2024-01-25 15:08:13.143 [DEBUG][13] ConnectToURL: URL2]
2024-01-25 15:08:13.494 [DEBUG][13] ConnectToURL: URL3]
2024-01-25 15:08:13.909 [DEBUG][13] connected to: URL4]
2024-01-25 15:08:13.909 [DEBUG][13] content-type: video/mp2t
2024-01-25 15:08:13.909 [DEBUG][13] IPTV StartStream@3.3
2024-01-25 15:08:13.909 [DEBUG][13] IPTV StartStream@3.4
2024-01-25 15:08:13.909 [DEBUG][13] IPTV StartStream@3.5
2024-01-25 15:08:13.909 [DEBUG][13] IPTV StartStream@6
2024-01-25 15:08:13.909 [DEBUG][13] IPTV StartStream@7
2024-01-25 15:08:13.909 [DEBUG][13] direct stream
2024-01-25 15:08:13.909 [DEBUG][13] IPTV StartStream@8
2024-01-25 15:08:13.910 [DEBUG][45] HTTP input source starting
It's better to just send the zipped logs NextPVR creates for you on the Settings page. Your problem is not the same as the other thread, other than it is on an IPTV stream.

It looks like your channel database is messed up though we'd probably need the database to confirm (and there are IPTV credentials in it)

Martin
Here is the zipped log link - https://drive.google.com/file/d/1tatd-Pj...sp=sharing

Well the only way I am able to get the application working again (after an error) is to delete the troublesome scheduled recording from the database, else it was crashing every time I restarted it. There was no way to get it back working again. So I use TablePlus app on my mac to open npvr.db3 to alter the SCHEDULED_RECORDING table to delete that recording before relaunching the NextPVR. So instead of sending the entire db that contains the credentials, if sending only the required table extracts would suffice I can do that. I see 4 tables starting with the name CHANNEL.
You have a bad channel in the database so every time you schedule from "SuperSport Variety 4 HD" it will stop. That is why sub needs to look at the database. You might be able to delete it in NextPVR and rescan and add it but it seems like you have lots of channels so you need to be careful to only on that one.

Martin
But the error does not come on that channel always. It has come on number of different channels. And then that same channel work fine when I try to replicate the error 5 mins later. I can delete all my channels and add them again (and only filter the channels I need) if that would help solve this.
Perhaps many of them have the same problem, but without the database it is hard to say.

Martin
So what is the next step here to solve it and what is the best way to provide you guys the database to investigate it if that is what is needed next?
You can PM sub and/or me with an external link to a file.

Since you do have access to a sqlite3 viewer I personally would like to see the result from this.

select tuning from channel_mapping where channel_oid = 30107;

Martin
Quote:2024-01-25 14:30:01.299 [ERROR][11] Unexpected error reading IPTV tuning string: System.NullReferenceException: Object reference not set to an instance of an object.
at NShared.IPTVRecorder.StartStream(ChannelMapping channelMapping, String target, String& reason)
As Martin says, there seems to be something wrong with one of your channel mappsing. Your easiest solution is to PM me a download link to your database, and I'll try this channel very briefly, so I can see the error in the debugger.

I'm not interested knowing your IPTV credentials, and you're welcome to change them after I've taken a look.
Thanks Martin and sub. I am trying re-adding my channels to see if it is quick fix. I deleted all my channels and have now added them back selectively. I will now schedule some recording and monitor if the issue persists. If it does, I will share the database. I will report back.
Pages: 1 2