NextPVR Forums

Full Version: Segmentation fault during HDHR Discovery
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Install is on an odroid XU4 (32bit arm)


root@odroid:~/nextpvr# cat /etc/debian_version
buster/sid
root@odroid:~/nextpvr# uname -a
Linux odroid 4.14.85-152 #1 SMP PREEMPT Mon Dec 3 03:00:02 -02 2018 armv7l armv7l armv7l GNU/Linux
root@odroid:~/nextpvr#


root@odroid:~/nextpvr# ./NextPVRServer
/root/.NPVR-data/
/root/.NPVR-data/logs
/root/.NPVR-data/media
/root/.NPVR-data/media/shows
/root/.NPVR-data/media/channels
/root/.NPVR-data/web
/root/.NPVR-data/web/temp
NEXTPVR_INSTALLDIR /root/nextpvr/
NEXTPVR_DATADIR /root/nextpvr/data/
NEXTPVR_DATADIR_USERDATA /root/.NPVR-data/
Config.xml does not exists. Creating it from master.
[1] Checking if upgrade required
[1] master file is /root/nextpvr/data/Config-master-dont-edit.xml
[1] Doing database updates
[1] Database: /root/.NPVR-data/npvr.db3
[1] missing db...copying from: /root/nextpvr/data/empty.db3
[1] Version 5.0.0.190617
[1] Creating thumbs directory
[1] Recording directory does not exist: C:\Users\Public\Videos\
[1] Defaulting to: /root/recordings
[1] LiveTV directory does not exist: C:\Users\Public\Videos\
[1] Defaulting to: /root/recordings
[1] CaptureSource.LoadAll()
[1] Added new device 'IPTV Device'
[1] Unexpected error with HDHR discovery: System.Net.WebException: An exception occurred during a WebClient request. ---> System.TypeInitializationException: Th e type initializer for 'System.Net.Http.CurlHandler' threw an exception. ---> Sy stem.TypeInitializationException: The type initializer for 'Http' threw an excep tion. ---> System.TypeInitializationException: The type initializer for 'HttpIni tializer' threw an exception. ---> System.DllNotFoundException: Unable to load D LL 'System.Net.Http.Native': The specified module or one of its dependencies cou ld not be found.
(Exception from HRESULT: 0x8007007E)
at Interop.Http.GetSslVersionDescription()
at Interop.HttpInitializer..cctor()
--- End of inner exception stack trace ---
at Interop.HttpInitializer.Initialize()
at Interop.Http..cctor()
--- End of inner exception stack trace ---
at Interop.Http.GetSupportedFeatures()
at System.Net.Http.CurlHandler..cctor()
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at System.Net.WebClient.GetWebResponse(WebRequest request)
at System.Net.WebClient.DownloadBits(WebRequest request, Stream writeStream)
--- End of inner exception stack trace ---
at System.Net.WebClient.DownloadBits(WebRequest request, Stream writeStream)
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request )
at System.Net.WebClient.DownloadString(Uri address)
at NShared.Utility.HDHomeRun.Discover(String specificDeviceID)
[1] HDHR Discover
[1] ...
[1] HDHOMERUN_TAG_DEVICE_TYPE: 1
[1] HDHOMERUN_TAG_DEVICE_ID: 1075AD49
[1] HDHOMERUN_TAG_DEVICE_AUTH_STR
[1] HDHOMERUN_TAG_TUNER_COUNT: 4
[1] HDHOMERUN_TAG_BASE_URL: http://192.168.1.99:80
[1] HDHOMERUN_TAG_LINEUP_URL: http://192.168.1.99:80/lineup.json
[1] Added new device 'HDHomeRun 1075AD49-0'
[1] Added new device 'HDHomeRun 1075AD49-1'
[1] Added new device 'HDHomeRun 1075AD49-2'
[1] Added new device 'HDHomeRun 1075AD49-3'
[1] DeviceHost executable not found...
[1] CaptureSource.LoadAll()
[1] Using in-progress RecordingService
[1] RecordingService.Startup()
[8] ServiceLocatorThread() starting...
[8] ServiceLocatorThread() Hostname: odroid
[8] address: 192.168.1.2
[8] Waiting for broadcast
[7] Requesting wake up for 'EPGWAKEUP' [EPG Update] at 06/20/2019 02:44
[7] PowerManagement ScheduleWakeup (needs implementation)
[7] Next EPG update time: 06/20/2019 02:44
[6] RecordingService starting...
[6] Doing database vacuum
[6] vacuuming done
[4] Deleting web temp files
[6] No /root/.NPVR-data/scripts/PostStartup.sh
[6] PurgeOldDeletes()
[6] Loading recording schedule
[6] PowerManagement CancelRecordingWakeupRequests (needs implementation)
Segmentation fault
root@odroid:~/nextpvr# sudo apt install hdhomerun-config
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
hdhomerun-config
0 upgraded, 1 newly installed, 0 to remove and 109 not upgraded.
Need to get 27.1 kB of archives.
After this operation, 65.5 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports bionic/universe armhf hdhomerun-config armhf 20180327-1 [27.1 kB]
Fetched 27.1 kB in 0s (95.6 kB/s)
Selecting previously unselected package hdhomerun-config.
(Reading database ... 58001 files and directories currently installed.)
Preparing to unpack .../hdhomerun-config_20180327-1_armhf.deb ...
Unpacking hdhomerun-config (20180327-1) ...
Setting up hdhomerun-config (20180327-1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
root@odroid:~/nextpvr# ./NextPVRServer
NEXTPVR_INSTALLDIR /root/nextpvr/
NEXTPVR_DATADIR /root/nextpvr/data/
NEXTPVR_DATADIR_USERDATA /root/.NPVR-data/
[1] Checking if upgrade required
[1] master file is /root/nextpvr/data/Config-master-dont-edit.xml
[1] Doing database updates
[1] Database: /root/.NPVR-data/npvr.db3
[1] Version 5.0.0.190617
[1] CaptureSource.LoadAll()
[1] Unexpected error with HDHR discovery: System.Net.WebException: An exception occurred during a WebClient request. ---> System.TypeInitializationException: The type initializer for 'System.Net.Http.CurlHandler' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Http' threw an exception. ---> System.TypeInitializationException: The type initializer for 'HttpInitializer' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'System.Net.Http.Native': The specified module or one of its dependencies could not be found.
(Exception from HRESULT: 0x8007007E)
at Interop.Http.GetSslVersionDescription()
at Interop.HttpInitializer..cctor()
--- End of inner exception stack trace ---
at Interop.HttpInitializer.Initialize()
at Interop.Http..cctor()
--- End of inner exception stack trace ---
at Interop.Http.GetSupportedFeatures()
at System.Net.Http.CurlHandler..cctor()
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at System.Net.WebClient.GetWebResponse(WebRequest request)
at System.Net.WebClient.DownloadBits(WebRequest request, Stream writeStream)
--- End of inner exception stack trace ---
at System.Net.WebClient.DownloadBits(WebRequest request, Stream writeStream)
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadString(Uri address)
at NShared.Utility.HDHomeRun.Discover(String specificDeviceID)
[1] HDHR Discover
[1] ...
[1] HDHOMERUN_TAG_DEVICE_TYPE: 1
[1] HDHOMERUN_TAG_DEVICE_ID: 1075AD49
[1] HDHOMERUN_TAG_DEVICE_AUTH_STR
[1] HDHOMERUN_TAG_TUNER_COUNT: 4
[1] HDHOMERUN_TAG_BASE_URL: http://192.168.1.99:80
[1] HDHOMERUN_TAG_LINEUP_URL: http://192.168.1.99:80/lineup.json
[1] DeviceHost executable not found...
[1] CaptureSource.LoadAll()
[1] Using in-progress RecordingService
[1] RecordingService.Startup()
[8] ServiceLocatorThread() starting...
[8] ServiceLocatorThread() Hostname: odroid
[8] address: 192.168.1.2
[8] Waiting for broadcast
[7] Requesting wake up for 'EPGWAKEUP' [EPG Update] at 06/20/2019 02:44
[7] PowerManagement ScheduleWakeup (needs implementation)
[7] Next EPG update time: 06/20/2019 02:44
[6] RecordingService starting...
[6] Doing database vacuum
[6] vacuuming done
[4] Deleting web temp files
[6] No /root/.NPVR-data/scripts/PostStartup.sh
[6] PurgeOldDeletes()
[6] Loading recording schedule
[6] PowerManagement CancelRecordingWakeupRequests (needs implementation)
Segmentation fault

Let me know what else I can do.
Sorry - I didn't see this post when you originally made it. The forum auto hides posts from new users (with less than 10 posts) that contains urls, on the assumption that it's spam. (and I seem to be blind to the little flag it tries to show me for notification)

Can you see if running this helps?
sudo apt install libc6-dev
You could also try installing the libunwind8 and libuuid1 packages too.
Actually found a Microsoft table of pre-requisites at:
https://github.com/dotnet/core/blob/mast...prereqs.md