NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 3 4 5 6 7 … 34 Next »
NPVR stops playing live TV at about 6 mins

 
  • 0 Vote(s) - 0 Average
NPVR stops playing live TV at about 6 mins
Tnix
Offline

Junior Member

Spain
Posts: 6
Threads: 2
Joined: Mar 2024
#1
2024-04-01, 06:23 PM
Hi all,

I'm using the latest NPVR backend release on Linux with a RTL DVB-T tuner with Kodi NPVR add-on. When I tune to watch a live TV channel it's well played until it freezes at about 6 minutes and stops returning to Kodi's channel list.
I've sured that in the same time there's no EPG searching.
I've attached both "device-adapter0.log" and "nrecord.log" (in NPVR_logs.zip) to this post. I've tested in the time period between 19:53:17 and 20:00:26.

Any help will be appreciated. Thanks in advance.

Regards.


Attached Files
.zip   NPVR_logs.zip (Size: 25.15 KB / Downloads: 1)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,091
Threads: 957
Joined: May 2006
#2
2024-04-01, 06:42 PM
Next time don't manually copy the logs, you miss cached info, use the download logs option on the settings page.

How much memory is on you PC or VM/container.

2024-04-01 19:49:36:853 [ERROR] Unable to get shared memory!

Martin
Tnix
Offline

Junior Member

Spain
Posts: 6
Threads: 2
Joined: Mar 2024
#3
2024-04-01, 08:17 PM
(2024-04-01, 06:42 PM)mvallevand Wrote: Next time don't manually copy the logs, you miss cached info,  use the download logs option on the settings page.

How much memory is on you PC or VM/container.

2024-04-01 19:49:36:853 [ERROR] Unable to get shared memory!

Martin

Sorry. I've attached the downloaded logs.

My machine has 8 GB RAM.

Thanks.


Attached Files
.zip   logs-20240401-2214.zip (Size: 317.26 KB / Downloads: 3)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,091
Threads: 957
Joined: May 2006
#4
2024-04-01, 08:30 PM
Sub's going need to look to see why that memory is not available when the rolling file rolls. That tuner you are using is definitely not a quality product but that is likely not the source of the problem (unless it is eating memory, you might want to monitor that.

We also don't have any experience here using buildroot or batocera here and it is not a supported plaform for netcore so there could be other things at play. DeviceHostLinux that is failing isn't netcore though.

You probably can avoid the problem by increasing the rolling file size to a very large number 180 minute (*60) will give you an hour before the roll that cause the memory error.

Martin
Tnix
Offline

Junior Member

Spain
Posts: 6
Threads: 2
Joined: Mar 2024
#5
2024-04-01, 08:37 PM
(2024-04-01, 08:30 PM)mvallevand Wrote: Sub's going need to look to see why that memory is not available when the rolling file rolls.  That tuner you are using is definitely not a quality product but that is likely not the source of the problem (unless it is eating memory, you might want to monitor that.

We also don't have any experience here using buildroot or batocera here and it is not a supported plaform for netcore so there could be other things at play.  DeviceHostLinux that is failing isn't netcore though.

You probably can avoid the problem by increasing the rolling file size to a very large number 180 minute (*60)  will give you an hour before the roll that cause the memory error.

Martin

Thanks. I'll investigate more about the increasing rolling file size.

Regards.
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,788
Threads: 769
Joined: Nov 2003
#6
2024-04-01, 08:48 PM
If you try watch in the web app, does it let you watch past 6 minutes?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,091
Threads: 957
Joined: May 2006
#7
2024-04-01, 08:55 PM
Wouldn't DeviceHostLinux work the same way when it rolls? His always fails on the memory error.

Code:
024-04-01 20:00:24:694 [DEBUG] Boing (sid=193)
2024-04-01 20:00:24:694 [DEBUG] on request adapter0, frontend0
2024-04-01 20:00:24:695 [INFO] Tuning: 530000000 Hz
2024-04-01 20:00:24:695 [DEBUG] already tuned to the correct frequency
2024-04-01 20:00:24:695 [DEBUG] **********before Writer::Create()
2024-04-01 20:00:24:695 [INFO] Creating writer for: LIVE&/recordings/live-Boing-2237-5.ts (live mode)
2024-04-01 20:00:24:695 [DEBUG] mutex would be: Global\NPVR-mutex-84103dfa326722310ee31d2b7286c0a4
2024-04-01 20:00:24:695 [ERROR] Unable to get shared memory!

Martin
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,788
Threads: 769
Joined: Nov 2003
#8
2024-04-01, 09:02 PM
Yes, but this isn't just a file roll - it's retuning and everything.

I think the problem has actually happened right at the beginning of the stream. Possibly something like either/both of deivcehost or nrecord doesn't have the permissions to get shared mutex or memory mapped file.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,091
Threads: 957
Joined: May 2006
#9
2024-04-01, 09:38 PM
Gotcha, it this range request from Kodi causing the reopen I guess rather then reading the rolling file.

Code:
2024-04-01 19:49:36.814    [DEBUG][46]    Got request [127.0.0.1]: /live
2024-04-01 19:49:36.814    [DEBUG][46]    /live?channeloid=7183&client=XBMC-abf2275b24ba41429a5598f4f44b0736
2024-04-01 19:49:36.814    [DEBUG][46]     - channeloid: 7183
2024-04-01 19:49:36.814    [DEBUG][46]     - client: XBMC-abf2275b24ba41429a5598f4f44b0736
2024-04-01 19:49:36.814    [DEBUG][46]    range: bytes=229113856-
2024-04-01 19:49:36.814    [DEBUG][46]    Checking XBMC sid: abf2275b24ba41429a5598f4f44b0736
2024-04-01 19:49:36.814    [DEBUG][46]    StreamNative@1..
2024-04-01 19:49:36.814    [DEBUG][46]    StreamNative@2
2024-04-01 19:49:36.814    [DEBUG][46]    StreamNative@3
2024-04-01 19:49:36.814    [DEBUG][46]    StreamNative@4
2024-04-01 19:49:36.814    [DEBUG][46]    StreamNative@5
2024-04-01 19:49:36.815    [DEBUG][46]    StreamNative@6
2024-04-01 19:49:36.815    [DEBUG][46]    StreamNative@7...
2024-04-01 19:49:36.815    [DEBUG][46]    StreamNative@previous-handle = 1376257
2024-04-01 19:49:36.815    [DEBUG][46]    StreamNative@8 (/recordings/live-Boing-2237-3.ts)
2024-04-01 19:49:36.815    [DEBUG][46]    about to start stream...
2024-04-01 19:49:36.815    [DEBUG][46]    StartStream(7183:Boing)
2024-04-01 19:49:36.815    [DEBUG][46]    checking if previous capture source can be reused
2024-04-01 19:49:36.815    [DEBUG][46]    checking if previous capture source can be reused
2024-04-01 19:49:36.815    [DEBUG][46]    http://localhost:43627/stream/start?slipseconds=1200&target=LIVE%26%2Frecordings%2Flive-Boing-2237-3.ts
Tnix
Offline

Junior Member

Spain
Posts: 6
Threads: 2
Joined: Mar 2024
#10
2024-04-01, 09:43 PM
Hi again,

I've noted that in NPVR web settings were specified both "Live TV Buffer Directory" and "Recording Directory" as "/recordings" (default value). Maybe due to specific characteristics of Buildroot (overlays, ...) these folders are "mapped" to p.e. "/share/system/wine-bottles/model2/dosdevices/ZSXKM0~L/proc/15136/root/recordings/" (there are many more corresponding to several PID). And maybe too this "virtual space" could be limited and for these reason the recording buffers could be exhausted.

Now I've set "Live TV Buffer Directory" and "Recording Directory" to another local folder like "/userdata/system/recordings/". In fact this folder was already there but it was strange I didn't see any data into when I run NPVR. Now it works fine: I can see data buffered into .ts files and the time played is OK.

Everything thanks to your help and clues Smile Thank you very much. Nevertheless I'm testing in depth next days.

Regards.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  IPTV stops often SysAdminZ 17 1,049 2025-04-08, 01:04 AM
Last Post: mvallevand
  Recordings fail, sometimes while playing WagMan 9 744 2024-11-07, 12:46 PM
Last Post: mvallevand
  recordings fail, somtimes while playing WagMan 0 299 2024-11-02, 03:00 AM
Last Post: WagMan
  Live stream not working while recording pciber 6 1,071 2024-06-10, 07:48 AM
Last Post: pciber
  NPVR can only see 100GB of a 3TB hard drive WagMan 13 2,031 2024-01-12, 11:54 PM
Last Post: mvallevand
  apt upgrade broke NPVR WagMan 11 1,735 2024-01-01, 04:59 PM
Last Post: mvallevand
  nextpvr iptv live play hangs ckruijntjens 1 776 2022-03-13, 05:16 PM
Last Post: sub
  Raspberry Pi 4 & Hauppauge 950Q - Stuck on Live TV jogeedaklown 2 1,005 2022-01-06, 04:26 PM
Last Post: jogeedaklown
  Update EPG stops after 6 frequencies!? DrWG 10 3,112 2021-11-14, 10:07 PM
Last Post: mvallevand
  Connection refused on live tv jseagull1 8 1,886 2021-10-30, 08:21 AM
Last Post: jseagull1

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

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

Linear Mode
Threaded Mode