Bug 39441

Summary: Assertion when trying to send video and the camera is busy
Product: Telepathy Reporter: Emilio Pozuelo Monfort <pochu27>
Component: yellAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED MOVED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium CC: nicolas
Version: git master   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Emilio Pozuelo Monfort 2011-07-21 08:22:56 UTC
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)
Comment 1 Felix Möller 2013-03-21 20:03:06 UTC
I think this might be the same as https://bugs.launchpad.net/ubuntu/+source/empathy/+bug/1158451
Comment 2 GitLab Migration User 2019-12-03 19:41:09 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-yell/issues/2.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.