NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support macOS v
1 2 3 4 Next »
NextPVR is being shut down/shutting itself down

 
  • 0 Vote(s) - 0 Average
NextPVR is being shut down/shutting itself down
Allan
Offline

Member

Canada
Posts: 109
Threads: 11
Joined: Dec 2024
#1
2025-01-05, 09:28 PM
At least once a day NextPVR shuts down spontaneously. It does not appear to be a crash, because the last item in the terminal window is "Killed: 9", which I assume means the unix kill command with signal 9 was received. An example is reproduced below, and the log coinciding with this terminal output is attached.

You will note that the last entry in the log is at 23:48. This also happens to be the exact time that I exited Kodi, after watching a program. I have seen this same coinciding kill an a few occasions. 

Code:
[198] > 64412 frames decoded in 77.65 seconds (829.52 fps)
[198] Got request [10.0.100.151]: /service (session.logout)
[198] parameters:
[198]    method: session.logout
[198]    sid: 80b1000977584d7c9a5995efa549c0f8
[198]    client_ip: 10.0.100.151
[198]    client_local: true
[198]    user_agent: Kodi/21.1 (Linux; Android 9.0; AFTKA Build/PS7685.4486N) Android TV/9.0.0 Sys_CPU/armv7l App_Bitness/32 Version/21.1-(21.1.0)-Git:20240817-183eb85f10
[198]    host_callback: ...
[198] Logging out sid: 80b1000977584d7c9a5995efa549c0f8
[198] <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
</rsp>

Killed: 9


Attached Files
.zip   nrecord.log.zip (Size: 76.89 KB / Downloads: 3)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,081
Threads: 957
Joined: May 2006
#2
2025-01-05, 10:45 PM (This post was last modified: 2025-01-05, 10:54 PM by mvallevand.)
Do you have the Kodi debug logs? I am curious if Kodi core has finished updating itself when pvr.nextpvr is closed.

I also don't think comskip has finished so do you have any indication in the macOS system journal when it finishes.

Martin
Allan
Offline

Member

Canada
Posts: 109
Threads: 11
Joined: Dec 2024
#3
2025-01-06, 04:39 AM (This post was last modified: 2025-01-06, 04:45 AM by Allan.)
The Comskip log file was last modified at the same time as the NextPVR log closed: 11:48. log attached. Also, there is no comskip file with the recording, although every other recording I looked at now has both a txt and edl file (including a program that finished recording 45 minutes ago).

Kodi is running on a Fire TV stick. I don't know if there is a way to get at the logs. Let me know if is still useful (given the above) and I will figure it out.


Attached Files
.zip   comskip-CTV National News with Heather Butts.log.zip (Size: 485 bytes / Downloads: 1)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,081
Threads: 957
Joined: May 2006
#4
2025-01-06, 12:59 PM (This post was last modified: 2025-01-06, 12:59 PM by mvallevand.)
Yes comskip is probably crashing too I wanted to confirm. I am wondering if the signal 9 is one that could come when the OS runs out of memory. I see that from time to time on Linux when I need to increase the swap.

Yes you can get the logs from Android in multiple ways. The log uploader addon is probably easiest but you can use the Kodi file manager to copy them to a share or you could use adb directly or this helper http://www.jocala.com/

Martin
Allan
Offline

Member

Canada
Posts: 109
Threads: 11
Joined: Dec 2024
#5
2025-01-06, 05:00 PM
So... Kodi starts a new log each time it is launched and only keeps one archive, so the only one I have to attach is last nights. I am also attaching the contemporaneous comskip and nextpvr logs.

Notably: comskip did not crash. It created its comskip files at 12:04 am.
12:04 Comskip log timestamp
12:14 NextPVR kill signal 9
12:15:04  Kodi exits. NB: time is from the fire TV stick. From the tail end of the terminal session, below, you can see that the logout from kodi was the last thing that happened before the kill, so it looks like the kill is either simultaneous to or shortly after kodi exits.

I do not believe there is a memory issue. The computer running NextPVR has 32 GB

Code:
[23] Got request [10.0.100.151]: /service (session.logout)
[23] parameters:
[23]    method: session.logout
[23]    sid: ae3c5b0893b744f7be67e0d75286b9d5
[23]    client_ip: 10.0.100.151
[23]    client_local: true
[23]    user_agent: Kodi/21.1 (Linux; Android 9.0; AFTKA Build/PS7685.4486N) Android TV/9.0.0 Sys_CPU/armv7l App_Bitness/32 Version/21.1-(21.1.0)-Git:20240817-183eb85f10
[23]    host_callback: ...
[23] Logging out sid: ae3c5b0893b744f7be67e0d75286b9d5
[23] <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
</rsp>

Killed: 9


Attached Files
.zip   Jan 6 2025.zip (Size: 240.22 KB / Downloads: 3)
Allan
Offline

Member

Canada
Posts: 109
Threads: 11
Joined: Dec 2024
#6
2025-01-08, 07:45 PM
For your information:
next night, same result (kill at the same time as I quit kodi)
night after that, I did not use kodi, and Nextpvr was still running in the morning.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,081
Threads: 957
Joined: May 2006
#7
2025-01-08, 07:58 PM (This post was last modified: 2025-01-08, 08:00 PM by mvallevand.)
I personally am still waiting for the requested Kodi debug logs, the default logs are useless.

Martin
Allan
Offline

Member

Canada
Posts: 109
Threads: 11
Joined: Dec 2024
#8
2025-01-08, 10:31 PM
I was unaware that the logs I sent were not what you were looking for. I have now identified a kodi setting to turn on debug logging and will furnish that log tomorrow.

For your information, I have now set up a launchagent that will respawn the dotnet app when it is killed, crashes, etc.

Since this works around the problem, if you are uninterested in pursuing it further, please advise.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,081
Threads: 957
Joined: May 2006
#9
2025-01-08, 10:44 PM
Sorry yes I am getting tired of having to ask users for logs so basically I ask once (it is also on the wiki).

My hackintosh to test macOS is currently in pieces I am mainly interested to see what is going on in Kodi to see if I can fake it. Sub the author is probably more interested than I am on what might be causing this. I close down Kodi often and do many session.logouts a day on Windows and Linux so it feels like something specific to macOS or potentially Apple Silicon which I can't test.

Martin
Allan
Offline

Member

Canada
Posts: 109
Threads: 11
Joined: Dec 2024
#10
2025-01-08, 11:44 PM
Not apple silicon on the mac that's running nextpvr here. 2018 intel mac mini.

BTW, the launchagent is significant from a usability perspective on the mac. No terminal window. respawns in case of failure. I would rather have it run as a launchdaemon (no user login necessary) but I have not been able to get that working. Probably an apple security measure I have not figured out how to address. I will post details in the forum when I am comfortable that it is 100%. It would likely make a desirable addition to the mac installation instructions.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to run NextPVR as a process (without the terminal) Allan 26 2,456 2025-02-25, 10:48 PM
Last Post: Allan
  Finding Multiple NextPVR's GlowTube 1 490 2024-11-06, 11:12 PM
Last Post: mvallevand
  "NextPVR UI" App from Apple App Store a_yank_for_yes 3 1,647 2023-01-26, 07:25 PM
Last Post: sub
  NextPVR on M1 Mac? timbo3344 36 11,862 2022-10-17, 03:36 AM
Last Post: sub
  NextPVR SSD filling up cookrd1 2 1,751 2020-11-12, 03:05 PM
Last Post: cookrd1
  NextPVR install on a iMac running Catalina Edford 5 4,963 2020-07-31, 10:49 PM
Last Post: Edford

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

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

Linear Mode
Threaded Mode