Details
- 
        Type:
 extRequest
            
         - 
        Status: Closed
 - 
            Priority:
 Major
                
             - 
            Resolution: Done
 - 
            Fix Version/s: 2021
 - 
            Component/s: FIWARE-TECH-HELP
 - 
            Labels:None
 
- 
                        Sender Email:
 - 
                        HD-Chapter:Data
 - 
                        HD-Enabler:Kurento
 
Description
Hi there!
We are implementig a on2many videoconference using Kurento. The 
procedure is like this:
- The transmitter opens the videoconference and emits video and audio
using Firefox or Chrome - A receiver joins the conference and gets de video and audio on his
Chrome or Firefox - 18 minutes approx. after initiating the conference, Kurento crashes
 
And syslog shows:
  kernel: [136447.115593] traps: KmsLoop[20422] general protection 
ip:7f6c9ed66d36 sp:7f6c3bffeb90 error:0 in 
libglib-2.0.so.0.4200.1[7f6c9ed0e000+10a000]
  kernel: [158988.522731] KmsLoop[9007]: segfault at 43 ip 
00007ffb8d669ec8 sp 00007ffb6277dbb0 error 4 in 
libnice.so.10.4.1[7ffb8d65f000+3a000]
Why Kurento crashes in a so predictably way? Any clue?
Our environment:
Distributor ID:    Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:    14.04
Codename:    trusty
Version: 6.1.1
Found modules:
     Module: 'backgroundextractor' version '6.1.1'
     Module: 'chroma' version '6.1.1'
     Module: 'core' version '6.1.2'
     Module: 'crowddetector' version '6.1.1'
     Module: 'elements' version '6.1.1'
     Module: 'facesegmentator' version '6.1.1'
     Module: 'filters' version '6.1.1'
     Module: 'markerdetector' version '6.1.1'
     Module: 'platedetector' version '6.1.1'
     Module: 'pointerdetector' version '6.1.1'
ii  gstreamer1.5-libav:amd64 1.5.2.1~20150901123759.34.g07a7b16.trusty 
amd64        libav plugin for GStreamer
ii  gstreamer1.5-nice:amd64 0.1.7.1~20151001151322.10.ge060eb5.trusty 
amd64        ICE library (GStreamer plugin)
ii  gstreamer1.5-plugins-bad:amd64 
1.5.91~20151001151316.36.gdaf52b5.trusty  amd64        GStreamer plugins 
from the "bad" set
ii  gstreamer1.5-plugins-base:amd64 
1.5.91~20151001151055.18.g79a42eb.trusty  amd64        GStreamer plugins 
from the "base" set
ii  gstreamer1.5-plugins-good:amd64 
1.5.91~20151001151133.27.g3b1cc74.trusty  amd64        GStreamer plugins 
from the "good" set
ii  gstreamer1.5-plugins-ugly:amd64 
1.5.91~20151001151113.10.g1b92d89.trusty  amd64        GStreamer plugins 
from the "ugly" set
ii  gstreamer1.5-pulseaudio:amd64 
1.5.91~20151001151133.27.g3b1cc74.trusty  amd64        GStreamer plugin 
for PulseAudio
ii  gstreamer1.5-x:amd64 1.5.91~20151001151055.18.g79a42eb.trusty  
amd64        GStreamer plugins for X11 and Pango
ii  kms-background-extractor-6.0 
6.1.1.trusty                              amd64        Kurento 
Background Extractor Filter
ii  kms-chroma-6.0 6.1.1.trusty                              
amd64        Kurento Chroma Filter
ii  kms-core-6.0 6.1.2.trusty                              amd64        
Kurento core module
ii  kms-crowddetector-6.0 6.1.1.trusty                              
amd64        Kurento Crowd Detector Filter
ii  kms-elements-6.0 6.1.1.trusty                              
amd64        Kurento elements module
ii  kms-face-segmentator-6.0 6.1.1.trusty                              
amd64        Kurento Face Segmentator Filter
ii  kms-filters-6.0 6.1.1.trusty                              
amd64        Kurento filters module
ii  kms-jsonrpc-1.0 1.0.0.trusty                              
amd64        Kurento jsonrpc library
ii  kms-markerdetector-6.0 6.1.1.trusty                              
amd64        AR Marker detector for Kurento
ii  kms-platedetector-6.0 6.1.1.trusty                              
amd64        Kurento Plate Detector Filter
ii  kms-pointerdetector-6.0 6.1.1.trusty                              
amd64        Kurento Pointer Detector Filter
ii  kmsjsoncpp 1.6.3~20151001151058.38.g263929e.trusty   amd64        
Kurento jsoncpp library
ii  kurento-media-server-6.0 6.1.1.trusty                              
amd64        Kurento Media Server
ii  libgstreamer-plugins-bad1.5-0:amd64 
1.5.91~20151001151316.36.gdaf52b5.trusty  amd64        GStreamer 
development files for libraries from the "bad" set
ii  libgstreamer-plugins-base1.5-0:amd64 
1.5.91~20151001151055.18.g79a42eb.trusty  amd64        GStreamer 
libraries from the "base" set
ii  libgstreamer1.5-0:amd64 1.5.91~20151001151012.86.g29e3bbd.trusty  
amd64        Core GStreamer libraries and elements
ii  libnice10:amd64 0.1.7.1~20151001151322.10.ge060eb5.trusty 
amd64        ICE library (shared library)
ii  openwebrtc-gst-plugins 0.10.0~20151001151244.100.g61cc54b.trusty 
amd64        OpenWebRTC specific GStreamer plugins
/etc/default/kurento-media-server-6.0
START_DAEMON=true
- Additional options that are passed to the Daemon.
DAEMON_OPTS="" 
unset GST_PLUGIN_PATH
#enable core dump
ulimit -c unlimited
#unlimit open files
ulimit -n $((($(cat /proc/sys/fs/file-max) * 50) / 100 ))
- Next line enables debug for some kurento classes it can be modified to
change - log level and logged tags
#export GST_DEBUG=1,Kurento*:5
export GST_DEBUG=2,Kurento*:5 
- whom the daemons should run as
DAEMON_USER=nobody 
DAEMON_LOG=/var/log/kurento-media-server
export KURENTO_LOGS_PATH=$DAEMON_LOG
#export KURENTO_LOG_FILE_SIZE=300
#export KURENTO_NUMBER_LOG_FILES=20
/etc/kurento/kurento.conf.json
{
   "mediaServer" : {
     "resources": 
,
     "net" : {
       // Uncomment just one of them
       /*
       "rabbitmq": 
       */
       "websocket": {
         "port": 8888,
         //"secure": 
,
         //"registrar": 
,
         "path": "kurento",
         // "threads": 10
         "threads": 20
       }
     }
   }
}
Any comment is more than welcome.
Thanks in advance,
Alberto.
Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
Please, send your messages using the new domain (Fiware-tech-help@lists.fiware.org) instead of the old one.
_______________________________________________
Fiware-tech-help mailing list
Fiware-tech-help@lists.fiware.org
https://lists.fiware.org/listinfo/fiware-tech-help
[Created via e-mail received from: Alberto Bambala Arbea <alberto.bambala@vento.tv>]
Activity
| Field | Original Value | New Value | 
|---|---|---|
| Component/s | FIWARE-TECH-HELP [ 10278 ] | 
| Assignee | Luis López Fernández [ llopez ] | 
| Status | Open [ 1 ] | In Progress [ 3 ] | 
| Status | In Progress [ 3 ] | Answered [ 10104 ] | 
| Resolution | Done [ 10000 ] | |
| Status | Answered [ 10104 ] | Closed [ 6 ] | 
| Resolution | Done [ 10000 ] | |
| Status | Closed [ 6 ] | In Progress [ 3 ] | 
| Status | In Progress [ 3 ] | Answered [ 10104 ] | 
| Resolution | Done [ 10000 ] | |
| Status | Answered [ 10104 ] | Closed [ 6 ] | 
| Summary | [Fiware-tech-help] Kurento crashes in one2many scenario | FIWARE.Request.Tech.Kurento crashes in one2many scenario | 
| Summary | FIWARE.Request.Tech.Kurento crashes in one2many scenario | FIWARE.Request.Tech.Data.Stream-oriented.Kurento crashes in one2many scenario | 
| Sender Email | alberto.bambala@vento.tv | 
| HD-Enabler | Kurento [ 10873 ] | |
| HD-Chapter | Data [ 10838 ] | 
| Fix Version/s | 2021 [ 12600 ] | 
| Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
|---|---|---|---|---|---|---|---|---|---|
		    	
  | 
			1d 7h 7m | 1 | NaevaTeC Development Team | 27/Oct/15 5:47 PM | |||||
		    	
  | 
			5d 9h 42m | 1 | NaevaTeC Development Team | 10/Nov/15 7:12 PM | |||||
		    	
  | 
			1d 16h 52m | 2 | NaevaTeC Development Team | 12/Nov/15 11:59 AM | |||||
		    	
  | 
			20d 14h 58m | 2 | NaevaTeC Development Team | 24/Nov/15 11:20 AM | 
We have been testing in our environment and we cannot reproduce the problem. We maintained a one-to-many call with 1 presenter and 10 viewers during 3 hours without running into any kind of error. Our test was based on
Our guess is that your application can have problems such as memory leaks or incorrect management of KMS resources. However, in order to find out if there is really a KMS error we would need you to execute the following procedure for recovering the stack-trace of the segfault
Install apport-retrace
Run your application until KMS crashes. Then, get the stack trace
For the next forms, press the bold key
What would you like to do? Your options are:
S: Send report (1.1 MB)
E: Examine locally
V: View report
K: Keep report file for sending later or copying to somewhere else
I: Cancel and ignore future crashes of this program version
C: Cancel
Please choose (S/E/V/K/I/C): E
Choices:
1: Run gdb session
2: Run gdb session without downloading debug symbols
3: Update /var/crash/_usr_bin_kurento-media-server.1000.crash with fully symbolic stack trace
C: Cancel
Please choose (1/2/3/C): 1
Wait for packages installation
Get the stack trace in gdb console
(gdb) bt
Copy and send the output of bt to us