Jump to content

Medias are not playing and SIGSEGV error


grimy55

Recommended Posts

grimy55

Here is a pretty new issue for me while I've been using Media Browser pretty smoothly over the last year.

 

After the server starts up, I can play successfuly a video once. On a second attempt nothing won't play for any media file, i.e. stuck with a black screen and the video duration is undetermined "--:--". I can still navigate in the library though.

 

I'm running Mediabrowser in a docker container (from the official repo). Mediabrowser version is v3.0.5518.7 and Docker is v1.5.0. Docker logs after the issue shows up are the following:

--> start.sh script running...
Error: [Errno 2] No such file or directory: '/etc/circus.d/MediaBrowser.ini.tpl'
---> Starting circus...
2015-03-03 15:56:25 circus[1] [INFO] Starting master on pid 1
2015-03-03 15:56:25 circus[1] [INFO] Arbiter now waiting for commands
2015-03-03 15:56:25 circus[1] [INFO] MediaBrowser started
Stacktrace:


Native stacktrace:

	mono() [0x4b73d8]
	mono() [0x50f13b]
	mono() [0x423d22]
	/lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7f81170ec340]
	mono() [0x5d63d8]
	mono() [0x5d93d2]
	mono() [0x5dd6f3]
	mono() [0x5de3b9]
	mono() [0x5f461d]
	mono() [0x5f4914]
	[0x400f26b9]

Debug info from gdb:


=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

Stacktrace:


Native stacktrace:

	mono() [0x4b73d8]
	mono() [0x50f13b]
	mono() [0x423d22]
	/lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7fc4f14c8340]
	mono() [0x4b3436]
	mono() [0x4b6696]
	mono() [0x50e0e1]
	[0x401b7058]

Debug info from gdb:


=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

It sounds to be a mono issue. I would be very happy if any of you guys have an insight.

Link to comment
Share on other sites

grimy55

If that could help, in addition to the docker logs above, here is the error report generated by Mediabrowser. I'm puzzled because everything is run from within the official docker container and nobody sounds to report that issue. I've tested other non-official Mediabrowser containers, even build my own with a "blank" config folder, and got the same problem. Could it come from the folder where my medua are stored (it's a cifs mount) ?

2015-03-05 10:39:23 [14] | 	*** Error Report ***
2015-03-05 10:39:23 [14] | 	Version: 3.0.5518.7
2015-03-05 10:39:23 [14] | 	Command line: /opt/mediabrowser/MediaBrowser.Server.Mono.exe -programdata /config
2015-03-05 10:39:23 [14] | 	Operating system: Unix 3.16.0.31
2015-03-05 10:39:23 [14] | 	Processor count: 4
2015-03-05 10:39:23 [14] | 	64-Bit OS: True
2015-03-05 10:39:23 [14] | 	64-Bit Process: True
2015-03-05 10:39:23 [14] | 	Program data path: /config
2015-03-05 10:39:23 [14] | 	Mono: 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1)
2015-03-05 10:39:23 [14] | 	Application Path: /opt/mediabrowser/MediaBrowser.Server.Mono.exe
2015-03-05 10:39:23 [14] | 	Input data cannot be coded as a valid certificate.
2015-03-05 10:39:23 [14] | 	System.Security.Cryptography.CryptographicException
2015-03-05 10:39:23 [14] | 	  at Mono.Security.X509.X509Certificate.Parse (System.Byte[] data) [0x00000] in <filename unknown>:0 
2015-03-05 10:39:23 [14] | 	  at Mono.Security.X509.X509Certificate..ctor (System.Byte[] data) [0x00000] in <filename unknown>:0 
2015-03-05 10:39:23 [14] | 	  at System.Security.Cryptography.X509Certificates.X509Certificate2.Import (System.Byte[] rawData, System.String password, X509KeyStorageFlags keyStorageFlags) [0x00000] in <filename unknown>:0 
2015-03-05 10:39:23 [14] | 	  at System.Security.Cryptography.X509Certificates.X509Ce
2015-03-05 10:39:23 [14] | rtificate2.Import (System.String fileName, System.String password, X509KeyStorageFlags keyStorageFlags) [0x00000] in <filename unknown>:0 
2015-03-05 10:39:23 [14] | 	  at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor (System.String fileName) [0x00000] in <filename unknown>:0 
2015-03-05 10:39:23 [14] | 	  at SocketHttpListener.Net.EndPointListener.LoadCertificateAndKey (System.Net.IPAddress addr, Int32 port, System.String certificateLocation) [0x00000] in <filename unknown>:0 
2015-03-05 10:39:23 [14] | 	InnerException: System.Security.Cryptography.CryptographicException
2015-03-05 10:39:23 [14] | 	Input data cannot be coded as a valid certificate.
2015-03-05 10:39:23 [14] | 	  at Mono.Security.X509.X509Certificate.Parse (System.Byte[] data) [0x00000] in <filename unknown>:0 
2015-03-05 10:39:23 [14] | 	
2015-03-05 10:39:24 [14] | Running startup tasks
2015-03-05 10:39:24 [14] | Info, App, Core startup complete
2015-03-05 10:39:24 [14] | Info, Dlna, SSDP service started

Link to comment
Share on other sites

for that https error i think we are going to be raising our minimum mono requirement to at least 3.4, so you should start by updating.

Link to comment
Share on other sites

grimy55

I've cloned the official docker repo for mediabrowser  and added a couple of lines to the Dockerfile to install a more recent Mono version (v3.12.0). I don't have any error message related to SSL anymore, but I still can't play a media. Same symptoms has described in the first post. My mediabrowser logs are attached. The docker container logs is cleaned from any error message.

 

I'll try to install Mono v3.10.0 instead, since some users reported other issues with v3.12.0

server-63561252882.txt

transcode-d8612946-409d-4044-a84d-353937ed148c.txt

Edited by grimy55
Link to comment
Share on other sites

grimy55

It's hard to get the server behavior. I've restarted the container (still with mono v3.12.0) and was able to play media files fine, but a "write failure" error appeared in the log (attached).

server-63561261338.txt

Edited by grimy55
Link to comment
Share on other sites

that's normal depending on how you stop playback. in general, it is best to tell us about problems that you're experiencing rather than go looking for them in the log. glad to see mono 3.12 is working out better

Link to comment
Share on other sites

grimy55

I've installed mono 3.10.0 with the following command lines:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/3.10.0 main" >> /etc/apt/sources.list
sudo apt-get update && sudo apt-get upgrade

The movies are still not playing and the docker logs might indicate an issue with both libpthread.so.0 and /etc/circus.d/MediaBrowser.ini.tpl:

$ docker logs mediabrowser

--> start.sh script running...
Error: [Errno 2] No such file or directory: '/etc/circus.d/MediaBrowser.ini.tpl'
---> Starting circus...
2015-03-09 15:07:48 circus[1] [INFO] Starting master on pid 1
2015-03-09 15:07:48 circus[1] [INFO] Arbiter now waiting for commands
2015-03-09 15:07:48 circus[1] [INFO] MediaBrowser started
Stacktrace:


Native stacktrace:

Stacktrace:


Native stacktrace:

	mono() [0x4b3f7c]
	mono() [0x50c30f]
	mono() [0x423637]
	/lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7fbee81ab340]
	mono() [0x5d835f]
	mono() [0x60016a]
	mono() [0x5ce554]
	mono() [0x5cfed6]
	mono() [0x5d0483]
	mono() [0x5d3957]
	mono() [0x5f0101]
	mono() [0x5f03eb]
	[0x40b3f318]

Debug info from gdb:


=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

I re-attached the updated mediabrowser server and transcode logs for reference. I don't really know what to try next.

server-63561510608.txt

transcode-02ab08fc-954b-4f63-ab55-c267b527e53a.txt

Link to comment
Share on other sites

  • 2 weeks later...
hurricanehrndz

I've installed mono 3.10.0 with the following command lines:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/3.10.0 main" >> /etc/apt/sources.list
sudo apt-get update && sudo apt-get upgrade

The movies are still not playing and the docker logs might indicate an issue with both libpthread.so.0 and /etc/circus.d/MediaBrowser.ini.tpl:

$ docker logs mediabrowser

--> start.sh script running...
Error: [Errno 2] No such file or directory: '/etc/circus.d/MediaBrowser.ini.tpl'
---> Starting circus...
2015-03-09 15:07:48 circus[1] [INFO] Starting master on pid 1
2015-03-09 15:07:48 circus[1] [INFO] Arbiter now waiting for commands
2015-03-09 15:07:48 circus[1] [INFO] MediaBrowser started
Stacktrace:


Native stacktrace:

Stacktrace:


Native stacktrace:

	mono() [0x4b3f7c]
	mono() [0x50c30f]
	mono() [0x423637]
	/lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7fbee81ab340]
	mono() [0x5d835f]
	mono() [0x60016a]
	mono() [0x5ce554]
	mono() [0x5cfed6]
	mono() [0x5d0483]
	mono() [0x5d3957]
	mono() [0x5f0101]
	mono() [0x5f03eb]
	[0x40b3f318]

Debug info from gdb:


=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

I re-attached the updated mediabrowser server and transcode logs for reference. I don't really know what to try next.

I will address the tpl issue, which is really not an error or an issue.

Link to comment
Share on other sites

hurricanehrndz

Thank you !

This will not fix the issue with the playback though, What's the processor and the host os?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...