Cheese works intermittently on LTS 12.04

Bug #1001965 reported by John Berkhout
42
This bug affects 8 people
Affects Status Importance Assigned to Milestone
cheese (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Problem reproducable?
Yes, just start cheese. It displays the program window. The part where the webcam should work is black.
Sometimes it works, but there seems te be no pattern.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: cheese 3.4.1-0ubuntu2
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic-pae 3.2.14
Uname: Linux 3.2.0-24-generic-pae i686
NonfreeKernelModules: nvidia wl
ApportVersion: 2.0.1-0ubuntu7
Architecture: i386
Date: Sun May 20 16:36:26 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
MachineType: Hewlett-Packard HP Pavilion dv6 Notebook PC
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=nl_NL.UTF-8
 SHELL=/bin/bash
RelatedPackageVersions:
 cheese 3.4.1-0ubuntu2
 cheese-common 3.4.1-0ubuntu2
SourcePackage: cheese
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/14/2008
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: F.02
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: 3629
dmi.board.vendor: Quanta
dmi.board.version: 18.0B
dmi.chassis.type: 10
dmi.chassis.vendor: Quanta
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnHewlett-Packard:bvrF.02:bd11/14/2008:svnHewlett-Packard:pnHPPaviliondv6NotebookPC:pvrF.02:rvnQuanta:rn3629:rvr18.0B:cvnQuanta:ct10:cvrN/A:
dmi.product.name: HP Pavilion dv6 Notebook PC
dmi.product.version: F.02
dmi.sys.vendor: Hewlett-Packard

Revision history for this message
John Berkhout (jfberkhout) wrote :
Revision history for this message
John Berkhout (jfberkhout) wrote :
Download full text (5.7 KiB)

My problem looks like Bug #991430
So I always start cheese via the Unity icons. This mostly results in a non functional cheese.
When is start cheese via a terminal I see this:

johnb@johnb-HP-Pavilion-dv6-Notebook-PC:~$ cheese

(cheese:3182): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3182): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3182): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3182): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkButton, but as a GtkBin subclass a GtkButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3182): Gtk-WARNING **: Attempting to add a widget with type GtkGrid to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3182): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkButton, but as a GtkBin subclass a GtkButton can only contain one widget at a time; it already contains a widget of type GtkLabel
johnb@johnb-HP-Pavilion-dv6-Notebook-PC:~$ cheese

(cheese:3189): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3189): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3189): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3189): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkButton, but as a GtkBin subclass a GtkButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3189): Gtk-WARNING **: Attempting to add a widget with type GtkGrid to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3189): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkButton, but as a GtkBin subclass a GtkButton can only contain one widget at a time; it already contains a widget of type GtkLabel
johnb@johnb-HP-Pavilion-dv6-Notebook-PC:~$ cheese

(cheese:3198): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it a...

Read more...

Revision history for this message
John Berkhout (jfberkhout) wrote :
Download full text (4.0 KiB)

after upgrading to kernel 3.2.0-24-generic-pae the cheese window remains black, so no image.

There is also another error. type "cheese" in a terminal:

johnb@johnb-HP-Pavilion-dv6-Notebook-PC:~$ cheese

(cheese:3162): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3162): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3162): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3162): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkButton, but as a GtkBin subclass a GtkButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3162): Gtk-WARNING **: Attempting to add a widget with type GtkGrid to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3162): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkButton, but as a GtkBin subclass a GtkButton can only contain one widget at a time; it already contains a widget of type GtkLabel
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat
libv4l2:...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cheese (Ubuntu):
status: New → Confirmed
Revision history for this message
Gabriel Coimbra (synamics) wrote :

Its affect me too, my information:
Kernel: 3.2.0-26-generic #41-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
S.O version: Ubuntu 12.04
Cheese version: 3.4.1-0ubuntu2
The message appear as:

(cheese:3094): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3094): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3094): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3094): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkButton, but as a GtkBin subclass a GtkButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3094): Gtk-WARNING **: Attempting to add a widget with type GtkGrid to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3094): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkButton, but as a GtkBin subclass a GtkButton can only contain one widget at a time; it already contains a widget of type GtkLabel

Revision history for this message
John Berkhout (jfberkhout) wrote :

Can we have an update on this one, please?

Revision history for this message
Xolotl Loki (xoloki) wrote :

I just got my webcam plugged in on 12.04.1, and cheese hangs on startup. Here's the stack:

Program received signal SIGINT, Interrupt.
0x00007ffff555888d in __libc_waitpid (pid=<optimized out>, stat_loc=<optimized out>, options=<optimized out>)
    at ../sysdeps/unix/sysv/linux/waitpid.c:41
41 ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
(gdb) bt
#0 0x00007ffff555888d in __libc_waitpid (pid=<optimized out>, stat_loc=<optimized out>, options=<optimized out>)
    at ../sysdeps/unix/sysv/linux/waitpid.c:41
#1 0x00007ffff57ebd11 in g_spawn_sync (working_directory=<optimized out>, argv=<optimized out>, envp=<optimized out>, flags=<optimized out>,
    child_setup=<optimized out>, user_data=<optimized out>, standard_output=0x0, standard_error=0x0, exit_status=0x7fffffffdcbc, error=0x0)
    at /build/buildd/glib2.0-2.32.3/./glib/gspawn.c:405
#2 0x00007ffff57ec179 in g_spawn_command_line_sync (command_line=<optimized out>, standard_output=0x0, standard_error=0x0,
    exit_status=0x7fffffffdcbc, error=0x0) at /build/buildd/glib2.0-2.32.3/./glib/gspawn.c:722
#3 0x00007ffff74b9bc4 in gnome_desktop_thumbnail_factory_generate_thumbnail () from /usr/lib/libgnome-desktop-3.so.2
#4 0x00000000004187a3 in ?? ()
#5 0x00007ffff57add53 in g_main_dispatch (context=0x637f90) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:2539
#6 g_main_context_dispatch (context=0x637f90) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3075
#7 0x00007ffff57ae0a0 in g_main_context_iterate (dispatch=1, block=<optimized out>, context=0x637f90, self=<optimized out>)
    at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3146
#8 g_main_context_iterate (context=0x637f90, block=<optimized out>, dispatch=1, self=<optimized out>)
    at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3083
#9 0x00007ffff57ae164 in g_main_context_iteration (context=0x637f90, may_block=1) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3207
#10 0x00007ffff5f61c94 in g_application_run (application=0xb60790, argc=<optimized out>, argv=0x7fffffffe018)
    at /build/buildd/glib2.0-2.32.3/./gio/gapplication.c:1507
#11 0x0000000000417848 in _vala_main ()
#12 0x00007ffff51ad76d in __libc_start_main (main=0x40c670 <main>, argc=1, ubp_av=0x7fffffffe018, init=<optimized out>, fini=<optimized out>,
    rtld_fini=<optimized out>, stack_end=0x7fffffffe008) at libc-start.c:226
#13 0x000000000040c6b9 in _start ()

So the problem appears to be that

  gnome_desktop_thumbnail_factory_generate_thumbnail()

does an exec(), and cheese gets blocked in waitpid() waiting for the thumbnail to complete.

Interestingly, I don't see any hung gnome-* processes:

ps auwx | grep gnome
xoloki 3452 0.0 0.1 664020 18600 ? Sl Sep20 0:00 /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
xoloki 4437 0.0 0.0 306452 10672 ? Sl Sep20 0:00 /usr/bin/gnome-screensaver --no-daemon
xoloki 12500 0.0 0.0 290712 4092 ? Sl Sep21 0:00 /usr/bin/gnome-keyring-daemon --start --foreground --components=secrets
xoloki 18882 0.0 0.0 10332 872 pts/6 S+ 06:53 0:00 grep gnome

I'm about to download the source so I can figure out what's going on...

Revision history for this message
John Berkhout (jfberkhout) wrote :

Hi Loki,

Any luck?

Revision history for this message
terryK9 (terry-kemmerer) wrote :

I have the same warning on the commandline as the others above. When I launch cheese, I see only an empty white window and my resources climb until the process self aborts.

I hope someone solves this, as I am kind of committed to 12.04. Apparently 12.10 works fine...

Thanks!

Revision history for this message
Tony Dalmeyer (tdalmeyer-gmail) wrote :

This is one of the many bugs i have come accross.I can confirm it also doesn'twork in Cinnamon Mint.
Wtf
I have persisted with Ubuntu for years and finally had 12.04 running sweetly untill I was forced to update.
Switched to Mint and still have numerous bugs to fix.
A computor is supposed to save time,right?
I think its time to return to Windows or at least ios.

Revision history for this message
John Berkhout (jfberkhout) wrote :

This bug is still present in 13.04.

Revision history for this message
John Berkhout (jfberkhout) wrote :

But the errornotification changed. Open terminal and type cheese:

Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.
libv4l2: error dequeuing buf: Onjuist apparaat

** (cheese:28266): CRITICAL **: cheese_preferences_dialog_on_source_change: assertion `_tmp2_ > ((guint) 0)' failed

(cheese:28266): cheese-CRITICAL **: cheese_camera_device_get_device_node: assertion `CHEESE_IS_CAMERA_DEVICE (device)' failed

(cheese:28266): GLib-CRITICAL **: g_variant_new_string: assertion `string != NULL' failed

(cheese:28266): GLib-GIO-CRITICAL **: g_settings_schema_key_type_check: assertion `value != NULL' failed

(cheese:28266): GLib-CRITICAL **: g_variant_get_type_string: assertion `value != NULL' failed

(cheese:28266): GLib-GIO-CRITICAL **: g_settings_set_value: key 'camera' in 'org.gnome.Cheese' expects type 's', but a GVariant of type '(null)' was given

** (cheese:28266): CRITICAL **: cheese_preferences_dialog_setup_resolutions_for_device: assertion `device != NULL' failed

(cheese:28266): cheese-WARNING **: Interne fout met gegevensdoorvoer.

libv4l2: error turning off stream: Onjuist apparaat
libv4l2: error turning off stream: Onjuist apparaat
libv4l2: error turning off stream: Onjuist apparaat
libv4l2: error turning off stream: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat

(cheese:28266): cheese-WARNING **: Interne fout met gegevensdoorvoer.

** (cheese:28266): CRITICAL **: cheese_preferences_dialog_on_source_change: assertion `_tmp2_ > ((guint) 0)' failed

(cheese:28266): cheese-CRITICAL **: cheese_camera_device_get_device_node: assertion `CHEESE_IS_CAMERA_DEVICE (device)' failed

(cheese:28266): GLib-CRITICAL **: g_variant_new_string: assertion `string != NULL' failed

(cheese:28266): GLib-GIO-CRITICAL **: g_settings_schema_key_type_check: assertion `value != NULL' failed

(cheese:28266): GLib-CRITICAL **: g_variant_get_type_string: assertion `value != NULL' failed

(cheese:28266): GLib-GIO-CRITICAL **: g_settings_set_value: key 'camera' in 'org.gnome.Cheese' expects type 's', but a GVariant of type '(null)' was given

** (cheese:28266): CRITICAL **: cheese_preferences_dialog_setup_resolutions_for_device: assertion `device != NULL' failed
libv4l2: error turning off stream: Onjuist apparaat
libv4l2: error turning off stream: Onjuist apparaat
libv4l2: error turning off stream: Onjuist apparaat
libv4l2: error turning off stream: Onjuist apparaat
libv4l2: error dequeuing buf: Onjuist apparaat

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.