Jump to content


Photo

Medias are not playing and SIGSEGV error

docker SIGSEGV mono

  • Please log in to reply
12 replies to this topic

#1 grimy55 OFFLINE  

grimy55

    Advanced Member

  • Members
  • 46 posts
  • Local time: 04:35 PM

Posted 03 March 2015 - 09:41 PM

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.



#2 grimy55 OFFLINE  

grimy55

    Advanced Member

  • Members
  • 46 posts
  • Local time: 04:35 PM

Posted 05 March 2015 - 12:57 PM

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



#3 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 152553 posts
  • Local time: 11:35 AM

Posted 05 March 2015 - 01:00 PM

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.



#4 grimy55 OFFLINE  

grimy55

    Advanced Member

  • Members
  • 46 posts
  • Local time: 04:35 PM

Posted 05 March 2015 - 02:06 PM

That's good to know. I'll give it a try and let you know. Thanks!



#5 grimy55 OFFLINE  

grimy55

    Advanced Member

  • Members
  • 46 posts
  • Local time: 04:35 PM

Posted 06 March 2015 - 05:58 PM

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

Attached Files


Edited by grimy55, 06 March 2015 - 06:03 PM.


#6 grimy55 OFFLINE  

grimy55

    Advanced Member

  • Members
  • 46 posts
  • Local time: 04:35 PM

Posted 06 March 2015 - 08:04 PM

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).

Attached Files


Edited by grimy55, 06 March 2015 - 08:04 PM.


#7 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 152553 posts
  • Local time: 11:35 AM

Posted 06 March 2015 - 09:16 PM

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



#8 grimy55 OFFLINE  

grimy55

    Advanced Member

  • Members
  • 46 posts
  • Local time: 04:35 PM

Posted 07 March 2015 - 12:25 PM

Ok. I'm sorry for that.

 

I did not stop the server for the night. In the morning, it is still up, the interface is smooth and fast, but I can't play medias anymore. It is still stuck when I click play (screenshot attached).

Attached Files



#9 grimy55 OFFLINE  

grimy55

    Advanced Member

  • Members
  • 46 posts
  • Local time: 04:35 PM

Posted 09 March 2015 - 07:06 PM

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.

Attached Files



#10 hurricanehrndz OFFLINE  

hurricanehrndz

    Advanced Member

  • Developers
  • 1249 posts
  • Local time: 08:35 AM

Posted 23 March 2015 - 03:38 PM

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.



#11 grimy55 OFFLINE  

grimy55

    Advanced Member

  • Members
  • 46 posts
  • Local time: 04:35 PM

Posted 23 March 2015 - 03:46 PM

Thank you !



#12 hurricanehrndz OFFLINE  

hurricanehrndz

    Advanced Member

  • Developers
  • 1249 posts
  • Local time: 08:35 AM

Posted 23 March 2015 - 04:00 PM

Thank you !

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



#13 grimy55 OFFLINE  

grimy55

    Advanced Member

  • Members
  • 46 posts
  • Local time: 04:35 PM

Posted 23 March 2015 - 04:54 PM

No prob'. I've answered in the main "Docker" thread.







Also tagged with one or more of these keywords: docker, SIGSEGV, mono

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users