Beatbox crashes while importing music

Bug #999162 reported by Brendan William
36
This bug affects 6 people
Affects Status Importance Assigned to Milestone
BeatBox
Fix Released
Critical
Scott Ringwelski
TagLib
New
Undecided
Unassigned

Bug Description

[INFO 07:46:41.031846] [Application:74] BeatBox version: 0.4
[INFO 07:46:41.032229] [Application:76] Kernel version: 3.2.0-24-generic-pae
[INFO 07:46:41.088823] [Icon:174] Loading backup icon for drop-album
[INFO 07:46:41.089287] [Icon:178] Couldn't load backup icon: Failed to open file '/usr/share/beatbox/icons/hicolor/128x128/mimetypes/drop-album.svg': No such file or directory
[WARN 07:46:41.311309] [FileOperator:85] Could not create folder in cache directory: Error creating directory: No such file or directory
[INFO 07:46:41.465014] [LibraryManager:1567] Album art cached in memory.
[INFO 07:46:41.481678] [LibraryWindow:109] Initializing MPRIS and sound menu
[INFO 07:46:41.483340] [LibraryWindow:153] Building user interface
[INFO 07:46:41.621333] [LibraryWindow:573] Building main views ...
[INFO 07:46:42.547242] [LibraryWindow:593] Done with main views.
[INFO 07:46:44.394994] [LibraryWindow:251] all done
uuid: (null)
uuid: (null)
adding device
[WARN 07:46:48.725727] [Gtk] Theme parsing error: <unknown>:47:30: Not using units is deprecated. Assuming 'px'.
[WARN 07:46:48.726082] [Gtk] Theme parsing error: <unknown>:47:34: Not using units is deprecated. Assuming 'px'.
[WARN 07:46:48.726420] [Gtk] Theme parsing error: <unknown>:47:38: Not using units is deprecated. Assuming 'px'.
[WARN 07:46:48.726883] [Gtk] Theme parsing error: <unknown>:47:42: Not using units is deprecated. Assuming 'px'.
[INFO 07:46:48.767320] [DeviceSummaryWidget:334] refreshing lists
[INFO 07:46:48.819807] [DeviceSummaryWidget:405] setting sensitivity
[WARN 07:46:53.311968] [GLib-GObject] invalid cast from `GObject' to `BeatBoxAlbum'
Segmentation fault (core dumped)

Revision history for this message
Scott Ringwelski (sgringwe) wrote :

Could you please obtain a backtrace? Simply run 'gdb -ex run --args beatbox'. When the app crashes, you will then be prompted via command line. type 'bt' and hit enter. Continue hitting enter until the whole backtrace is visible, and then copy/paste it here. Thanks!

Revision history for this message
Brendan William (bwilliam) wrote :

I actually removed it, but I can install it again if you like.

Revision history for this message
Scott Ringwelski (sgringwe) wrote :

It would be appreciated :)

Changed in beat-box:
status: New → Incomplete
Revision history for this message
Kurt Smolderen (kurt.smolderen) wrote :
Download full text (6.8 KiB)

Getting the same result... Backtrace is listed below.

Thanks for having a look at it!

ksmolder@saga:~$ gdb -ex run --args beatbox
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/bin/beatbox...(no debugging symbols found)...done.
Starting program: /usr/bin/beatbox
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffecec1700 (LWP 26127)]
[New Thread 0x7fffe7fff700 (LWP 26128)]
[INFO 15:45:23.942563] [Application:74] BeatBox version: 0.4
[INFO 15:45:23.942742] [Application:76] Kernel version: 3.2.0-24-generic
[New Thread 0x7fffd9d58700 (LWP 26129)]
[INFO 15:45:24.316506] [LibraryManager:1567] Album art cached in memory.
[Thread 0x7fffd9d58700 (LWP 26129) exited]
[INFO 15:45:24.325136] [LibraryWindow:109] Initializing MPRIS and sound menu
[New Thread 0x7fffd9d58700 (LWP 26131)]
[INFO 15:45:24.327380] [LibraryWindow:153] Building user interface
[WARN 15:45:24.379978] [Gtk] Theme parsing error: <unknown>:6:31: Not using units is deprecated. Assuming 'px'.
[WARN 15:45:24.380152] [Gtk] Theme parsing error: <unknown>:6:35: Not using units is deprecated. Assuming 'px'.
[WARN 15:45:24.380294] [Gtk] Theme parsing error: <unknown>:6:37: Not using units is deprecated. Assuming 'px'.
[WARN 15:45:24.380479] [Gtk] Theme parsing error: <unknown>:18:32: Not using units is deprecated. Assuming 'px'.
[WARN 15:45:24.380616] [Gtk] Theme parsing error: <unknown>:18:38: Not using units is deprecated. Assuming 'px'.
[WARN 15:45:24.380759] [Gtk] Theme parsing error: <unknown>:19:31: Not using units is deprecated. Assuming 'px'.
[WARN 15:45:24.380894] [Gtk] Theme parsing error: <unknown>:19:35: Not using units is deprecated. Assuming 'px'.
[WARN 15:45:24.381034] [Gtk] Theme parsing error: <unknown>:19:37: Not using units is deprecated. Assuming 'px'.
[WARN 15:45:24.381173] [Gtk] Theme parsing error: <unknown>:25:34: Not using units is deprecated. Assuming 'px'.
[WARN 15:45:24.381288] [Gtk] Theme parsing error: <unknown>:25:36: Not using units is deprecated. Assuming 'px'.
[WARN 15:45:24.381413] [Gtk] Theme parsing error: <unknown>:26:31: Not using units is deprecated. Assuming 'px'.
[INFO 15:45:24.396958] [LibraryWindow:573] Building main views ...
[INFO 15:45:24.583331] [LibraryWindow:593] Done with main views.
[INFO 15:45:24.952598] [LibraryWindow:251] all done
[New Thread 0x7fffd8ecc700 (LWP 26132)]
[Thread 0x7fffd8ecc700 (LWP 26132) exited]
[INFO 15:45:25.575825] [LibraryWindow:1050] clearing all views...
[INFO 15:45:25.578314] [LibraryWindow:1060] all cleared
[New Thread 0x7fffd8ecc700 (LWP 26133)]
[WARN 15:45:25.588064] [Streamer:194] Error: No URI set
[Thread 0x7fffd8ecc700 (LWP 26133) exited]
[New Thread 0x7fff...

Read more...

Revision history for this message
Mark Lutring (marcus-elitemail) wrote :

This bug affects me too, do you want that i enclose another stacktrace?

Revision history for this message
Scott Ringwelski (sgringwe) wrote :

Another stacktrace could possibly be helpful, if you don't mind.

Revision history for this message
Curtis Hovey (sinzui) wrote :

This is the back trace from my attempt add a single file. I was able to import more than 10,000 songs without an error, but now I cannot add any more songs.

#0 0x00007ffff40353e1 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff3149001 in TagLib::String::operator=(char const*) ()
   from /usr/lib/x86_64-linux-gnu/libtag.so.1
#2 0x00007ffff31769dd in TagLib::FileRef::create(char const*, bool, TagLib::AudioProperties::ReadStyle) () from /usr/lib/x86_64-linux-gnu/libtag.so.1
#3 0x00007ffff7268fea in taglib_file_new ()
   from /usr/lib/x86_64-linux-gnu/libtag_c.so.0
#4 0x0000000000545d94 in beat_box_gstreamer_tagger_taglib_import_media ()
#5 0x00000000005458f7 in ?? ()
#6 0x0000000000542963 in ?? ()
#7 0x00007ffff4bd5ca2 in g_closure_invoke ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#8 0x00007ffff4be6d71 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#9 0x00007ffff4bef099 in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#10 0x00007ffff4bef242 in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#11 0x00007ffff77696d3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgstpbutils-0.10.so.0
#12 0x00007ffff7769bf6 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgstpbutils-0.10.so.0
#13 0x00007ffff4bd5ca2 in g_closure_invoke ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#14 0x00007ffff4be6d71 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#15 0x00007ffff4bef099 in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#16 0x00007ffff4bef242 in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00007ffff749fc42 in gst_bus_async_signal_func ()
   from /usr/lib/x86_64-linux-gnu/libgstreamer-0.10.so.0
#18 0x00007ffff74a0a34 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgstreamer-0.10.so.0
#19 0x00007ffff4918c9a in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007ffff4919060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007ffff4919124 in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007ffff5a56b94 in g_application_run ()
   from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#23 0x00007ffff66262da in granite_application_run ()
   from /usr/lib/libgranite.so.0
#24 0x00000000004325c6 in beat_box_beatbox_main ()
#25 0x0000000000432643 in main ()

Revision history for this message
Scott Ringwelski (sgringwe) wrote :

Curtis, that backtrace indicates a problem with taglib which is an external library that beatbox uses. You say this happens everytime?

Changed in beat-box:
status: Incomplete → Triaged
importance: Undecided → Medium
importance: Medium → High
assignee: nobody → Scott Ringwelski (sgringwe)
milestone: none → 0.6
milestone: 0.6 → 0.5
Revision history for this message
Wolfie! (thomas-siladi) wrote :

Actually it would be really great if the creator of this project could fix this bug. ^^
Here's my Backtrace:

(gdb) bt
#0 0x00007ffff49a5b69 in g_object_ref ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#1 0x00007ffff7ba0ddd in ?? () from /usr/lib/x86_64-linux-gnu/libgee.so.2
#2 0x00000000004bd2e4 in beat_box_playlist_addMedias ()
#3 0x000000000046b603 in beat_box_file_operator_import_from_playlist_file_info
    ()
#4 0x000000000057b0ca in beat_box_side_tree_view_playlistImportClicked ()
#5 0x000000000056ae17 in __lambda62_ ()
#6 0x000000000056ae35 in ___lambda62__gtk_menu_item_activate ()
#7 0x00007ffff49a0ca2 in g_closure_invoke ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#8 0x00007ffff49b1d71 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#9 0x00007ffff49ba099 in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#10 0x00007ffff49ba242 in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#11 0x00007ffff5ffcade in gtk_widget_activate ()
   from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#12 0x00007ffff5eef62e in gtk_menu_shell_activate_item ()
   from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#13 0x00007ffff5eef9c3 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#14 0x00007ffff5ed2401 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
---Type <return> to continue, or q <return> to quit---
#15 0x00007ffff49a0eca in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#16 0x00007ffff49b9741 in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00007ffff49ba242 in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007ffff5ffd6e9 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#19 0x00007ffff5ed02ab in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#20 0x00007ffff5ed1fc1 in gtk_main_do_event ()
   from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#21 0x00007ffff5b21d02 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#22 0x00007ffff46e3c9a in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007ffff46e4060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007ffff46e4124 in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007ffff5821b94 in g_application_run ()
   from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#26 0x00007ffff63f12da in granite_application_run ()
   from /usr/lib/libgranite.so.0
#27 0x0000000000435e80 in beat_box_beatbox_main ()
#28 0x0000000000435efd in main ()

Revision history for this message
Scott Ringwelski (sgringwe) wrote :

Wolfie!'s bug is fixed in rev600. I am also hoping that original bug is fixed, but not 100% sure.

Changed in beat-box:
status: Triaged → Fix Committed
Revision history for this message
Kurt Smolderen (kurt.smolderen) wrote :

Just tried the latest version of Beatbox (rev 603). Original bug still exists.

[INFO 20:45:07.572345] [GStreamerTagger:420] Loaded embedded art from file:///home/ksmolder/Music/Hans%20Zimmer/The%20Last%20Samurai/(Hans%20Zimmer%20-%20The%20Last%20Samurai)%201.01%20-%20A%20Way%20of%20Life%20(Album%20Version).mp3
TagLib: MPEG::Header::parse() -- Invalid sample rate.
[WARN 20:45:07.795688] [GLib-GObject] invalid cast from `GObject' to `BeatBoxAlbum'
Segmentation fault (core dumped)

Changed in beat-box:
status: Fix Committed → In Progress
Revision history for this message
Scott Ringwelski (sgringwe) wrote :

Are you playing music or interacting with the UI at all when this happens? This may help to find the cause.

Revision history for this message
Kurt Smolderen (kurt.smolderen) wrote :

No, not doing anything at all. I just rescan my music library...

Would it help if I provide you with an album on which Beatbox crashes?

Revision history for this message
Scott Ringwelski (sgringwe) wrote :

If you can provide the exact file, that would be great. If the album name, album artist or artist has crazy characters that may be helpful too.

In the meantime, I just pushed out another possible fix that will be in revision 605.

Revision history for this message
Kurt Smolderen (kurt.smolderen) wrote :

I did some further testing and came to a method to reproduce the crash:

1) Preparations:
    - Remove the beatbox user directory (.local/share/beatbox)
    - Create a new temporary Music directory and put one album in it

2) Initial import succeeds
    - Open Beatbox and select the newly created directory as your music location
    - Beatbox will import the album correctly (including album cover)
    - Close Beatbox

3) Adding albums makes beatbox crash
    - Put an additional album in the music directory
    - Open beatbox and rescan your music folder
    - Beatbox crashes
    - Open Beatbox: one track (sometimes more) of the second album is (are) imported, but no album cover is showed
    - Rescan your music folder
    - Beatbox correctly imports all other tracks from the second album, including cover artwork

Step 3 is repeatable for every additional album put in the music folder. Also, when multiple albums are put in the music folder, Beatbox will import them one by one, crashing after loading a few tracks from each album (except for the first album which is imported completely).

Revision history for this message
Kurt Smolderen (kurt.smolderen) wrote :

I've created a small set of mp3's which can be used to reproduce the crashes this bug report is about.

Just start with copying the folder 'Artist 1' to your music directory and follow the steps as explained in my previous comment (https://bugs.launchpad.net/beat-box/+bug/999162/comments/15).

Revision history for this message
Scott Ringwelski (sgringwe) wrote :

Revision 613 has (hopeful) fix. If someone could confirm, it would be much appreciated.

Changed in beat-box:
status: In Progress → Fix Committed
importance: High → Critical
Revision history for this message
Kurt Smolderen (kurt.smolderen) wrote :

Fixed indeed for me! Great job!

Changed in beat-box:
status: Fix Committed → Fix Released
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.