Bug 345535 - crash when I add any music to playlist
Summary: crash when I add any music to playlist
Status: RESOLVED MOVED
Alias: None
Product: amarok
Classification: Applications
Component: Playlist (show other bugs)
Version: 2.8.0
Platform: Kubuntu Linux
: NOR crash
Target Milestone: 2.9
Assignee: Amarok Developers
URL: https://github.com/taglib/taglib/issu...
Keywords:
: 348074 356798 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-03-26 07:12 UTC by Roman
Modified: 2015-12-17 22:43 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
debug info (47.96 KB, text/plain)
2015-03-26 07:13 UTC, Roman
Details
kde version and invalid filename codepage (263.46 KB, image/png)
2015-03-26 11:39 UTC, Roman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman 2015-03-26 07:12:21 UTC
1. I've add music folder to new playlist
2. After a few seconds there was a crash.

Reproducible: Always

Steps to Reproduce:
1. just add music to playlist
Comment 1 Roman 2015-03-26 07:13:53 UTC
Created attachment 91743 [details]
debug info
Comment 2 Myriam Schweingruber 2015-03-26 09:57:40 UTC
Backtrace from attachment (please always paste backtraces in line, else those are not searchable):

Thread 19 (Thread 0x7f4cc8945700 (LWP 6192)):
#0  0x00007f4d00f9b55d in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f4cf28cc73c in ?? () from /usr/lib/nvidia-304/libGL.so.1
#2  0x00007f4cf104bbf7 in ?? () from /usr/lib/nvidia-304/tls/libnvidia-tls.so.304.125
#3  0x00007f4cfb1a1ed0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f4cfb15e96c in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f4cfb15ee83 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f4cfb15effc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f4d0172c04e in QEventDispatcherGlib::processEvents (this=0x7f4cb40008f0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#8  0x00007f4d016fd4f1 in QEventLoop::processEvents (this=this@entry=0x7f4cc8944c20, flags=...) at kernel/qeventloop.cpp:149
#9  0x00007f4d016fd805 in QEventLoop::exec (this=this@entry=0x7f4cc8944c20, flags=...) at kernel/qeventloop.cpp:204
#10 0x00007f4d015fbc39 in QThread::exec (this=this@entry=0x22c5120) at thread/qthread.cpp:538
#11 0x00007f4d016df033 in QInotifyFileSystemWatcherEngine::run (this=0x22c5120) at io/qfilesystemwatcher_inotify.cpp:265
#12 0x00007f4d015fe39f in QThreadPrivate::start (arg=0x22c5120) at thread/qthread_unix.cpp:349
#13 0x00007f4cf28cd754 in ?? () from /usr/lib/nvidia-304/libGL.so.1
#14 0x00007f4cfd22e0a5 in start_thread (arg=0x7f4cc8945700) at pthread_create.c:309
#15 0x00007f4d00fa9cfd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 18 (Thread 0x7f4ca5ae2700 (LWP 6193)):
[KCrash Handler]
#6  __memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:36
#7  0x00007f4cf9d1787a in TagLib::ByteVector::replace(TagLib::ByteVector const&, TagLib::ByteVector const&) () from /usr/lib/x86_64-linux-gnu/libtag.so.1
#8  0x00007f4cf9ce9d59 in TagLib::ID3v2::SynchData::decode(TagLib::ByteVector const&) () from /usr/lib/x86_64-linux-gnu/libtag.so.1
#9  0x00007f4cf9ce940d in TagLib::ID3v2::FrameFactory::createFrame(TagLib::ByteVector const&, TagLib::ID3v2::Header*) const () from /usr/lib/x86_64-linux-gnu/libtag.so.1
#10 0x00007f4cf9ced83f in TagLib::ID3v2::Tag::parse(TagLib::ByteVector const&) () from /usr/lib/x86_64-linux-gnu/libtag.so.1
#11 0x00007f4cf9cedad9 in TagLib::ID3v2::Tag::read() () from /usr/lib/x86_64-linux-gnu/libtag.so.1
#12 0x00007f4cf9cedbe7 in TagLib::ID3v2::Tag::Tag(TagLib::File*, long, TagLib::ID3v2::FrameFactory const*) () from /usr/lib/x86_64-linux-gnu/libtag.so.1
#13 0x00007f4cf9d1def4 in TagLib::FLAC::File::read(bool, TagLib::AudioProperties::ReadStyle) () from /usr/lib/x86_64-linux-gnu/libtag.so.1
#14 0x00007f4cf9d1e230 in TagLib::FLAC::File::File(char const*, bool, TagLib::AudioProperties::ReadStyle) () from /usr/lib/x86_64-linux-gnu/libtag.so.1
#15 0x00007f4cff1dbfac in Meta::Tag::FileTypeResolver::createFile (this=<optimized out>, fileName=0x7f4ca04fdb68 "/media/romanick/projects/Music/Rush/23-Rush - Snakes & Arrows/Snakes & Arrows/01 Rush , Far Cry.flac", readProperties=<optimized out>, propertiesStyle=TagLib::AudioProperties::Fast) at ../../shared/FileTypeResolver.cpp:117
#16 0x00007f4cf9d45922 in TagLib::FileRef::create(char const*, bool, TagLib::AudioProperties::ReadStyle) () from /usr/lib/x86_64-linux-gnu/libtag.so.1
#17 0x00007f4cf9d46896 in TagLib::FileRef::FileRef(char const*, bool, TagLib::AudioProperties::ReadStyle) () from /usr/lib/x86_64-linux-gnu/libtag.so.1
#18 0x00007f4cff1e0307 in Meta::Tag::getFileRef (path=...) at ../../shared/MetaTagLib.cpp:104
#19 0x00007f4cff1e0cd8 in Meta::Tag::readTags (path=...) at ../../shared/MetaTagLib.cpp:205
#20 0x00007f4d0324354e in MetaFile::Track::Private::readMetaData (this=0x7f4ca0534080) at ../../src/core-impl/meta/file/File_p.h:166
#21 0x00007f4d032451af in MetaFile::Track::Track (this=0x7f4ca04fd2a0, url=..., __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../src/core-impl/meta/file/File.cpp:141
#22 0x00007f4d03249ae8 in FileTrackProvider::trackForUrl (this=<optimized out>, url=...) at ../../src/core-impl/meta/file/FileTrackProvider.cpp:43
#23 0x00007f4d03285520 in CollectionManager::trackForUrl (this=0x15c5340, url=...) at ../../src/core-impl/collections/support/CollectionManager.cpp:479
#24 0x00007f4d03256027 in MetaProxy::Worker::run (this=0x68b87d0) at ../../src/core-impl/meta/proxy/MetaProxyWorker.cpp:45
#25 0x00007f4cfe7f7f42 in ThreadWeaver::JobRunHelper::runTheJob (this=this@entry=0x7f4ca5ae1c10, th=th@entry=0x22ffb70, job=job@entry=0x68b87d0) at ../../../threadweaver/Weaver/Job.cpp:106
#26 0x00007f4cfe7f8158 in ThreadWeaver::Job::execute (this=0x68b87d0, th=0x22ffb70) at ../../../threadweaver/Weaver/Job.cpp:135
#27 0x00007f4cfe7f78fb in ThreadWeaver::Thread::run (this=0x22ffb70) at ../../../threadweaver/Weaver/Thread.cpp:108
#28 0x00007f4d015fe39f in QThreadPrivate::start (arg=0x22ffb70) at thread/qthread_unix.cpp:349
#29 0x00007f4cf28cd754 in ?? () from /usr/lib/nvidia-304/libGL.so.1
#30 0x00007f4cfd22e0a5 in start_thread (arg=0x7f4ca5ae2700) at pthread_create.c:309
#31 0x00007f4d00fa9cfd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Comment 3 Myriam Schweingruber 2015-03-26 09:59:16 UTC
The backtrace shows the crash is in taglib. Did it work before? If yes, what did you change?

Which exact KDE version do you use?
Comment 4 Roman 2015-03-26 11:39:13 UTC
Created attachment 91752 [details]
kde version and invalid filename codepage

Maybe the problem is related to incorrect parsing information from the tags? See the red selection on the screenshot.
Comment 5 Roman 2015-03-26 11:40:53 UTC
(In reply to Myriam Schweingruber from comment #3)
> The backtrace shows the crash is in taglib. Did it work before? If yes, what
> did you change?
> 
> Which exact KDE version do you use?

Yes, it worked before. No change, I did not. See new attachment.
Comment 6 Myriam Schweingruber 2015-03-26 11:52:09 UTC
(In reply to Roman from comment #5)
> (In reply to Myriam Schweingruber from comment #3)
> > The backtrace shows the crash is in taglib. Did it work before? If yes, what
> > did you change?
> > 
> > Which exact KDE version do you use?
> 
> Yes, it worked before. No change, I did not. See new attachment.

Well, something must have been changed in your system. Please check the tags of those tracks and make sure you use UTF encoding only. Sometimes, tracks form external sources are badly encoded. 
In any case, the crash is not caused by Amarok, but by taglib which has its bug tracker on github IIRC: https://github.com/taglib/taglib/issues
Comment 7 Roman 2015-03-27 07:24:40 UTC
I opened issue on taglib bug tracker: https://github.com/taglib/taglib/issues/518
Comment 8 Myriam Schweingruber 2015-03-27 09:57:11 UTC
Thank you for the issue on github

Anyway: did you check that your files all have the same encoding for the ID3 tags? UTF works best, sometimes ISO can cause very strange hickups.

Changing the status to MOVED, as the issue is on github now.
Comment 9 Myriam Schweingruber 2015-05-21 22:50:41 UTC
*** Bug 348074 has been marked as a duplicate of this bug. ***
Comment 10 Myriam Schweingruber 2015-12-17 22:43:18 UTC
*** Bug 356798 has been marked as a duplicate of this bug. ***