NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 16 17 18 19 20 … 101 Next »
Application Error crash

 
  • 0 Vote(s) - 0 Average
Application Error crash
apuftw
Offline

Junior Member

Australia
Posts: 4
Threads: 1
Joined: Jun 2020
#1
2020-06-08, 04:34 AM
Hi all,

I've just started using NextPVR and am loving the features. Currently using it for iptv services & recording so purely web based console (using m3u file and xml feed for epg).
I am running the latest version 5.x.x which was downloaded via the nextpvr website (download based link).

Over the past few days the Application is crashing and I hope to find a solution. 
When this occur the NextPVR tray icon goes grey and the web page cannot be loaded (page cannot be found); http://127.0.0.1:8866/index.html

PC is running patched Windows 10 Pro x64 1909.
I have EPG running automatically daily at 6am.
PC is running Trend Micro Internet Security (no exclusions).
PC also has a DVB Tuner card with ARGUS TV Recorder, but there is no recording conflicts (recording same time as NextPVR).
I have disabled this detected card in NextPVR but will look at moving it over soon once the app is stable.


For now, The quick fix is to restart the computer, OR Restart the NextPVR Windows Service.

I have gone thorugh the nrecord.log file and all seems normal (I can see web requests 127.0.0.1 up until a certain point then it stops as per the crash logs below)

So far in application log I can see when the crashes occur and there seems to be some pattern, has anyone experienced this before?
https://imgur.com/a/0haKmX4
(The highlighted lines in the above picture are the NextPVR service crashing).

When the crash occurs, I get 2x errors pop up in the application event log, they are:

First one is .NET Runtime error

Log Name:      Application
Source:        .NET Runtime
Date:          8/06/2020 10:39:02 AM
Event ID:      1026
Task Category: None
Level:        Error
Keywords:      Classic
User:          N/A
Computer:      HTPC
Description:
Application: NextPVRServer.exe
CoreCLR Version: 4.700.19.60701
.NET Core Version: 3.1.1
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException: Object reference not set to an instance of an object.
  at NShared.IPTVRecorder.CheckTSUrl(String url, String& reason, String& location)
  at NShared.IPTVRecorder.StartStream(ChannelMapping channelMapping, String target, String& reason)
  at NShared.RecordingService.WorkerThread()
  at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
  at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
  at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  at System.Threading.ThreadHelper.ThreadStart()



Followed by

2. Application Error

Log Name:      Application
Source:        Application Error
Date:          8/06/2020 10:39:02 AM
Event ID:      1000
Task Category: (100)
Level:        Error
Keywords:      Classic
User:          N/A
Computer:      HTPC
Description:
Faulting application name: NextPVRServer.exe, version: 1.0.0.0, time stamp: 0x5dedc13b
Faulting module name: KERNELBASE.dll, version: 10.0.18362.815, time stamp: 0xb89efff3
Exception code: 0xe0434352
Fault offset: 0x000000000003a799
Faulting process id: 0x2414
Faulting application start time: 0x01d63d224aed2c6d
Faulting application path: C:\Program Files\NextPVR\NextPVRServer.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: ce17f28a-2d29-4e24-b4be-4eea7643ed4e
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,943
Threads: 956
Joined: May 2006
#2
2020-06-08, 08:25 AM
You need to post the logs https://github.com/sub3/NextPVR/wiki/get-help to help pinpoint the issue.

Martin
apuftw
Offline

Junior Member

Australia
Posts: 4
Threads: 1
Joined: Jun 2020
#3
2020-06-08, 11:50 AM
nrecord.log - the exact same time as event viewer shows an Application Error log and NET Runtime error log (service crashes, and requires me to restart):

2020-06-08 07:14:02.754 [DEBUG][11] WebException: System.Net.WebException: The remote server returned an error: (400) Bad Request.
at System.Net.HttpWebRequest.GetResponse()
at NShared.IPTVRecorder.CheckTSUrl(String url, String& reason, String& location)
2020-06-08 07:14:02.754 [DEBUG][11] CheckTSUrl done
2020-06-08 07:14:04.829 [DEBUG][148] Got request [::ffff:127.0.0.1]: /service (recording.lastupdated)
2020-06-08 07:14:04.830 [DEBUG][148] method=reco
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,943
Threads: 956
Joined: May 2006
#4
2020-06-08, 12:18 PM
Full zipped logs as the wiki says we need to see the situation leading up to the crash.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#5
2020-06-08, 04:51 PM
Let me know if this updated NShared.dll helps? It wasn't specifically aiming to fix your problem, but I'd made some changes that were doing a few things different in that area.


Attached Files
.zip   NShared.zip (Size: 304.67 KB / Downloads: 5)
apuftw
Offline

Junior Member

Australia
Posts: 4
Threads: 1
Joined: Jun 2020
#6
2020-06-15, 02:10 AM (This post was last modified: 2020-06-15, 02:10 AM by apuftw.)
Hi sub
Just an update, since replacing the .DLL, it has not crashed once (nearly a week now). What is different between the two files?
Thank you
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#7
2020-06-15, 03:06 AM
It was a fix for a way some IPTV providers do multiple redirects before getting to the real stream.

Instead of that NShared.dll, you should install the current release, which includes the latest.
RJJORDAN
Offline

Junior Member

USA
Posts: 11
Threads: 1
Joined: Jan 2024
#8
2024-01-25, 09:25 PM (This post was last modified: 2024-01-25, 09:54 PM by RJJORDAN.)
(2020-06-15, 03:06 AM)sub Wrote: It was a fix for a way some IPTV providers do multiple redirects before getting to the real stream.

Instead of that NShared.dll, you should install the current release, which includes the latest.

I really love NextPVR but off late I seem to have the exact same error on scheduled recording on random channels, and when I again schedule a recording on the same channel to replicate the error, I get no error. So I schedule a bunch of recording again (usually overnight) and boom the error is back just randomly and the worst part is instead of that errorneous recording exiting the entire application crashes spoiling the other ongoing recordings that never gave any error.

@sub - do you have this fix in the updated release Nshared.dll since the attached dll does not work with the latest release. I am using the latest NPVR that I downloaded from the website last month (I dont know where to know look up the version number).


nRecord.log error - 
[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


When I ran it again it ran but I do see the IPTV Provider url redirects to 3 different URL as below so I believe my error is exactly same as OP and the same fix may work for me too.

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
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#9
2024-01-25, 09:30 PM
The fix from above is included with the current version.

I'd suggest creating a new thread, with a description of the problem, and logs, and we'll take a look.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  error: No tuner was available for the requested channel jzk 3 268 2025-04-19, 03:30 PM
Last Post: mvallevand
  Video image error on software kellanphil 1 213 2025-02-28, 04:11 AM
Last Post: sub
  EPG Script Error? RedDevilJoe 4 355 2025-02-01, 01:16 AM
Last Post: RedDevilJoe
  NextPVR latest version service crash three6zerocool 9 891 2024-11-13, 12:18 PM
Last Post: mvallevand
  unhandled exception causing service to crash jobby99 4 375 2024-11-08, 10:24 PM
Last Post: mvallevand
  Error 400 wakecars067 16 2,114 2024-09-15, 11:59 PM
Last Post: mvallevand
  Error at 58 minutes playback Offroad 4 606 2024-06-01, 01:17 PM
Last Post: Offroad
  Files Still Open Error fccgrant 14 1,529 2024-03-29, 06:53 PM
Last Post: fccgrant
  Failure to wake and powercfg error nextmel 6 1,153 2024-01-05, 08:19 PM
Last Post: gEd
  IsComplete(): An error occurred while parsing EntityName. Line X, position Y. djenson 6 1,027 2023-08-19, 10:16 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode