GNOME Bugzilla – Bug 613986
Pressing create audio cd does nothing
Last modified: 2010-06-01 22:38:24 UTC
I am forwarding this bug from downstream (https://bugs.edge.launchpad.net/ubuntu/+source/rhythmbox/+bug/543892). If i right click on a playlist and press create audio cd or click the create audio cd button while a playlist is selected absolutely nothing happens. If i open in a terminal i get this output: ben@ben-desktop:~$ rhythmbox (-r:10825): GLib-GObject-CRITICAL **: g_object_ref: assertion `object->ref_count > 0' failed (-r:10825): GLib-GObject-CRITICAL **: g_object_unref: assertion `object->ref_count > 0' failed (-r:10825): GLib-GObject-CRITICAL **: g_object_ref: assertion `object->ref_count > 0' failed (-r:10825): GLib-GObject-CRITICAL **: g_object_unref: assertion `object->ref_count > 0' failed
Same here, the debug log shows: (10:03:42) [0x8d51028] [source_burn] rb-disc-recorder-plugin.c:470: Burning playlist test (10:03:42) [0x8d51028] [source_burn] rb-disc-recorder-plugin.c:474: Creating audio project (10:03:42) [0x8d51028] [source_burn] rb-disc-recorder-plugin.c:486: Starting brasero (10:03:42) [0x8d51028] [window_focus_cb] rb-mmkeys-plugin.c:142: window got focus, re-grabbing media keys (-r:10800): GLib-GObject-CRITICAL **: g_object_ref: assertion `object->ref_count > 0' failed (-r:10800): GLib-GObject-CRITICAL **: g_object_unref: assertion `object->ref_count > 0' failed (10:03:45) [0x8d51028] [rb_shell_quit] rb-shell.c:2572: Quitting (10:03:45) [0x8d51028] [rb_shell_player_stop] rb-shell-player.c:3168: stopping full debug log here: http://launchpadlibrarian.net/42052220/rhythmbox-debug.tar.bz2
Works for me. Something weird about the "-r" process name.. if that actually is rhythmbox, a stack trace would probably help. Maybe it's part of brasero?
Created attachment 157302 [details] backtrace, auto generated
Created attachment 157303 [details] backtrace
To get a useful stack trace, you'll need to run rhythmbox under gdb with '-D something' as arguments. It will then break at the point where it's printing the error messages about g_object_ref and g_object_unref, which is where I want a stack trace.
Jonathan Mathew, This is my first time getting a stacktrace so I am basicly a noob and do not know what to do after reading that comment. I created something using strace, I will attach this as well in case it can be of any help.
OK, no problem. First, install the rhythmbox-dbg package - this contains debug symbols that make the stack trace much more useful. Then, start gdb: $ gdb rhythmbox and run rhythmbox inside it: (gdb) run -D brasero then do whatever you need to do to reproduce the bug. When you click on the 'create audio cd' button, rhythmbox should freeze. Switch back to the gdb window and generate a stack trace: (gdb) bt and paste the output from that in here. If there's any debug output from rhythmbox before that, that would probably help too.
Created attachment 157306 [details] strace
Hmm, never mind, the strace output shows that rhythmbox is starting a brasero process successfully. If the file /tmp/brasero-tmp-project-NNR09U still exists, (or any other /tmp/brasero-tmp-project-* files), running 'brasero -p /tmp/brasero-tmp-project-*' might provide some useful information.
Created attachment 157307 [details] tmp file yep i found it.
Can you start brasero manually and load that project file into it? (it works here, but obviously I don't have the files the project references)
Yep it works.
OK, this is pretty clearly a brasero bug.
This bug is reproducible without using rhythmbox. 1. start a new audio disk project 2. add some songs to it. 3. save the project. 4. in nautilus find the project file and tell it to open with brasero. 5. brasero does not successfully launch As you can see from my coraspondance with Jonathan Matthew i am very willing to provide information on this bug if you can tell me what you need.
Created attachment 157707 [details] strace-brasero-p I'm adding the strace for the process that Ben describe, If you run brasero -p project it doesn't work at all the process just exit but it doesn't crash.
https://bugs.launchpad.net/ubuntu/+source/brasero/+bug/571021 has a video which shows the issue on http://launchpadlibrarian.net/45836596/brasero-notburning-jcastro.ogv https://bugs.launchpad.net/ubuntu/+source/brasero/+bug/555485 seems to indicate recording video cds has the issue would extra debug informations be useful there? having the default GNOME CD recording software being able to record audio or video cds again would be nice, not sure if anybody is reading the brasero bugs atm though
Sebastien, I think you meant to put that comment on a different bug. This Bug is for brasero failing to open when you click create audio cd in rhythmbox or open a saved project through nautilus. See original bug description+comments.
no I meant to add the comment there since the issues seem similar
bug #614021 seems rather similar to the new comment indeed
it seems that brasero success to display the dialog to record the image to a disk if it's asked to do record the cd directly but fails to open a brasero ui with the project otherwise
Thanks for the report. This is fixed in master and stable.
Philippe, Thanks for the fix. I downloaded the Ubuntu source package from Ubuntu and copied the changes from the commit. Brasero now opens using the -p option. But it still fails to open when asked by rhythmbox or nautilus (e.g. in rhythmbox press create audio cd, or in nautilus double click on a project file) I thought this was all the same bug. Do you think I should file a separate report or do you think your changes did not address the entire issue?
Thanks for testing. It turns out there are two bugs one in brasero and one in rhythmbox. I fixed the one in brasero which now (finally) works with the name of the project given without any option on the command line. But, there is another one in rhythmbox. Brasero is spawned with G_SPAWN_FILE_AND_ARGV_ZERO which means that the -r switch is not seen by brasero which causes brasero not to delete the temporary project. I'll file a bug tomorrow with the patch against rhythmbox.
Note: except for the last comment, it should work now
Thanks for all your work! It looks as if nautilus does the same exact thing as rhythmbox (when you double click a project file), I suspect the patch for the two would look almost the same if you would be willing to take a look.
Both rhythmbox and nautilus work now with the above change. I checked =) this time.
Tested with both commits and it is working great!
*** Bug 620315 has been marked as a duplicate of this bug. ***