Assertion when trying to send video and the camera is busy
Submitted by Emilio Pozuelo Monfort
Assigned to Telepathy bugs list
Description
If the camera is busy and you try to send video, we assert:
(empathy-call:2801): tp-fs-DEBUG: Delaying codec offer processing (empathy-call:2801): tp-fs-DEBUG: updating local codecs (empathy-call:2801): tp-fs-DEBUG: Requesting that the application start sending (empathy-call:2801): tp-fs-DEBUG: Request to start sending succeeded [New Thread 0x7fffccde5700 (LWP 2829)] [New Thread 0x7fffcc5e4700 (LWP 2830)] [New Thread 0x7fffc7da2700 (LWP 2831)] [New Thread 0x7fffcbda3700 (LWP 2833)] [New Thread 0x7fffcb5a2700 (LWP 2834)] [New Thread 0x7fffca520700 (LWP 2837)] (empathy-call:2801): tp-fs-DEBUG: Delaying codec offer processing [New Thread 0x7fffc9ad8700 (LWP 2838)] [New Thread 0x7fffc9094700 (LWP 2839)] (empathy-call:2801): tp-fs-DEBUG: updating local codecs [New Thread 0x7fffc8893700 (LWP 2840)] (empathy-call:2801): tp-fs-DEBUG: Codecs changed (empathy-call:2801): tp-fs-DEBUG: updating local codecs (empathy-call:2801): tp-fs-DEBUG: Codecs changed (empathy-call:2801): tp-fs-DEBUG: updating local codecs (empathy-call:2801): tp-fs-DEBUG: Codecs changed (empathy-call:2801): tp-fs-DEBUG: updating local codecs [Thread 0x7fffcb5a2700 (LWP 2834) exited] libv4l2: error setting pixformat: Device or resource busy empathy-Message: Element error: Device '/dev/video0' cannot capture at 320x240 -- gstv4l2object.c(2111): gst_v4l2_object_set_format (): /GstPipeline:pipeline0/EmpathyGstVideoSrc:empathygstvideosrc0/GstGConfVideoSrc:gconfvideosrc0/GstBin:bin7/GstV4l2Src:v4l2src0: Call to S_FMT failed for YU12 @ 320x240: Device or resource busy
tp-yell-CRITICAL **: tpy_call_stream_set_sending_async: assertion `self->priv->result == NULL' failed aborting...
Program received signal SIGABRT, Aborted.
0x00007fffed73f405 in raise (sig=<value optimized out>)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
in ../nptl/sysdeps/unix/sysv/linux/raise.c
(gdb) bt
#0 0x00007fffed73f405 in raise (sig=<value optimized out>)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007fffed742680 in abort () at abort.c:92
#2 0x00007fffedadf32a in g_logv (log_domain=0x465366 "tp-yell",
log_level=<value optimized out>,
format=0x7fffedb25f88 "%s: assertion `%s' failed", args1=0x7fffffffe220)
at /tmp/buildd/glib2.0-2.28.6/./glib/gmessages.c:557
#3 0x00007fffedadf3b3 in g_log (log_domain=<value optimized out>,
log_level=<value optimized out>, format=<value optimized out>)
at /tmp/buildd/glib2.0-2.28.6/./glib/gmessages.c:577
#4 0x000000000043664f in tpy_call_channel_send_video (self=0xce1010, send=0)
at call-channel.c:919
#5 0x0000000000427010 in empathy_call_window_set_send_video (
window=0x908e00, state=CAMERA_STATE_OFF) at empathy-call-window.c:3041
#6 0x00000000004270b2 in disable_camera (self=0x908e00)
at empathy-call-window.c:914
#7 0x00000000004277ea in empathy_call_window_remove_video_input (
bus=0x6b2e00, message=<value optimized out>,
user_data=<value optimized out>) at empathy-call-window.c:2579
#8 empathy_call_window_bus_message (bus=0x6b2e00,
message=<value optimized out>, user_data=<value optimized out>)
at empathy-call-window.c:2690
#9 0x00007ffff3f96da4 in gst_bus_source_dispatch (source=0x844650,
callback=0x4276b0 <empathy_call_window_bus_message>, user_data=0x908e00)
at gstbus.c:761
#10 0x00007fffedad64a3 in g_main_dispatch (context=0x899510)
at /tmp/buildd/glib2.0-2.28.6/./glib/gmain.c:2440
#11 g_main_context_dispatch (context=0x899510)
at /tmp/buildd/glib2.0-2.28.6/./glib/gmain.c:3013
#12 0x00007fffedad6c80 in g_main_context_iterate (context=0x899510, block=1,
dispatch=1, self=<value optimized out>)
at /tmp/buildd/glib2.0-2.28.6/./glib/gmain.c:3091
#13 0x00007fffedad72f2 in g_main_loop_run (loop=0xca21e0)
at /tmp/buildd/glib2.0-2.28.6/./glib/gmain.c:3299
#14 0x00007ffff062583d in gtk_main ()
at /build/buildd-gtk+3.0_3.0.11-1-amd64-t5miDy/gtk+3.0-3.0.11/./gtk/gtkmain.c:1358
#15 0x00007fffee673c3c in g_application_run (application=0x6a2180,
argc=<value optimized out>, argv=<value optimized out>)
at /tmp/buildd/glib2.0-2.28.6/./gio/gapplication.c:1322
#16 0x0000000000422b52 in main (argc=1, argv=0x7fffffffe768)
at empathy-call.c:174
(gdb)
Version: git master