NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Kodi / XBMC v
« Previous 1 11 12 13 14 15 43 Next »
Fresh Kodi installation crashes when NextPVR plugin tries access the NPVR server

 
  • 0 Vote(s) - 0 Average
Fresh Kodi installation crashes when NextPVR plugin tries access the NPVR server
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,463
Threads: 963
Joined: May 2006
#31
2019-03-27, 11:43 PM
If running 3.3.14 is a problem I have hacked one of sub's most recent 4.2.4 NShared.dlls https://forums.nextpvr.com/showthread.ph...post531661 to return a different value to work around the empty <ServerMac> problem.

This patch should have just two byte difference ServerMAC is no serverMAC. With this hack Kodi PVR won't read an empty value.

Running the proper version of 3.3.14 from here https://jenkins.kodi.tv/blue/organizatio.../artifacts is better but the attached should temporarily work around the problem.

Edit update to PR92 https://jenkins.kodi.tv/blue/organizatio.../artifacts

Martin
grouper
Offline

Junior Member

Posts: 10
Threads: 0
Joined: Mar 2019
#32
2019-03-28, 07:57 AM
I´ll try 3.14 tonight (which one to use on Linux libreelec generic btw?) and then the nshare patch. However, the crash also occurs if the npvr server is switched off, so I think it´s not a backbone issue
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,463
Threads: 963
Joined: May 2006
#33
2019-03-28, 08:08 AM
grouper Wrote:I´ll try 3.14 tonight (which one to use on Linux libreelec generic btw?) and then the nshare patch. However, the crash also occurs if the npvr server is switched off, so I think it´s not a backbone issue

LE isn't a Kodi build so none of those builds will work which is why I came up with the NShared patch. As I said LE is having a separate issue when it can't connect but I can't see how that is related.

Martin
grouper
Offline

Junior Member

Posts: 10
Threads: 0
Joined: Mar 2019
#34
2019-03-28, 11:58 AM
Thanks, vpeter from LE seem to have found the issue, the false in constructor cPVRClientNextPVR CreateThread should be removed:


--- a/src/pvrclient-nextpvr.cpp 2019-03-08 23:02:24.000000000 +0100
+++ b/src/pvrclient-nextpvr.cpp 2019-03-28 12:16:43.445033631 +0100
@@ -159,7 +159,7 @@ cPVRClientNextPVR::cPVRClientNextPVR()
m_realTimeBuffer = new timeshift:Big GrinummyBuffer();
m_livePlayer = nullptr;
- CreateThread(false);
+ CreateThread();

I´ll give the updated version on the LE forum a try tonight.
Thanks for your efforts
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,463
Threads: 963
Joined: May 2006
#35
2019-03-28, 12:34 PM
There are two issues in play when NextPVR returns <ServerMAC></ServerMAC> empty (which I assume is VPN issue whenremote machines are involved but there might be others, no on is giving feedback) then the addon will crash. This is fixed in 3.3.14

When the addon can't connect to and IP then the control is passed back to Kodi, I do see NextPVR creating the thread in the constructor, and stopping it in the destructor, but that is not changed in 3.3.13 it goes back to
here https://github.com/kodi-pvr/pvr.nextpvr/...abc4edbe4c

I am also compiling the LE x86_64 pvr.nextpvr right now so I can give you 3.3.14 later if things cooperate.

Martin
grouper
Offline

Junior Member

Posts: 10
Threads: 0
Joined: Mar 2019
#36
2019-03-28, 12:44 PM
mvallevand Wrote:There are two issues in play when NextPVR returns <ServerMAC></ServerMAC> empty (which I assume is VPN issue whenremote machines are involved but there might be others, no on is giving feedback) then the addon will crash. This is fixed in 3.3.14

...

Martin

Regarding VPN, the crash also occurs when there is no backend active in the network, so VPN has no impact on this behavior.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,463
Threads: 963
Joined: May 2006
#37
2019-03-28, 12:45 PM
grouper Wrote:Regarding VPN, the crash also occurs when there is no backend active in the network, so VPN has no impact on this behavior.

As I posted there are two separate issues involved.

Martin
grouper
Offline

Junior Member

Posts: 10
Threads: 0
Joined: Mar 2019
#38
2019-03-28, 02:21 PM
sure, you just said that no one is giving you feedback on the VPN and so I did.
Here a hint from vpeter in the LE forum:

Quote
I suspect it is timing issue. Thread is creating but not wait for creation because of false parameter. Because connect is unssuccesful object is deleted but something is going wrong in the thread probbably.

This also helps to prevent crash:

g_client = new cPVRClientNextPVR();

sleep(2);
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,463
Threads: 963
Joined: May 2006
#39
2019-03-28, 03:08 PM
I don't think I need to add the sleep() delay I checked and none of the other addons are doing this. The round trip to server will be a bit of a delay we will see how removing the false works out. LE is still building here.

I can understand your confusion about VPN, I relate it to why NextPVR cannot get the MAC address using standard Windows methods and not to the issue about connecting on the local LAN but they indeed both could be VPN.

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,463
Threads: 963
Joined: May 2006
#40
2019-03-29, 01:21 AM
@Me_ did the 32bit Windows version fix the problem?

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (7): « Previous 1 2 3 4 5 6 7 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Channel and Show Icons wrong in Kodi muzicman0 35 1,003 2025-08-21, 12:11 AM
Last Post: mvallevand
  Suggestions for the KODI Add-on Escape7 55 12,653 2025-08-08, 09:42 PM
Last Post: mvallevand
  kodi crashes when watching HD Blinker 0 196 2025-07-30, 02:24 AM
Last Post: Blinker
  Kodi Channel not updating aTF6i 2 815 2025-03-09, 12:26 AM
Last Post: aTF6i
  EPG not loading in Kodi? membball84 3 871 2025-02-13, 01:24 AM
Last Post: membball84
  Automated Updates of IPTV Channels in NPVR and Kodi via APIs taylormia 1 1,307 2025-02-04, 03:13 AM
Last Post: lustfulmacaw
  Kodi 22 (Piers) and library thumbnails mvallevand 8 1,897 2025-01-15, 06:32 PM
Last Post: mvallevand
  Kodo plugin seems to be shutting down backend Allan 4 1,101 2024-12-20, 11:04 PM
Last Post: Allan
  NextPVR and Android 10 charlyms 7 1,395 2024-11-17, 09:39 PM
Last Post: mvallevand
  Kodi Channel Icons wrong and can't be corrected wapkaplet 11 1,961 2024-10-23, 02:11 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