Skip to content

Crash when triggering a rescan

Thread 19 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffbdba0640 (LWP 1521329)]
0x00007ffff6fd8efc in std::__shared_ptr<medialibrary::sqlite::Connection, (__gnu_cxx::_Lock_policy)2>::get (this=0x30)
    at /usr/include/c++/11/bits/shared_ptr_base.h:1296
1296          { return _M_ptr; }
(gdb) bt
#0  0x00007ffff6fd8efc in std::__shared_ptr<medialibrary::sqlite::Connection, (__gnu_cxx::_Lock_policy)2>::get (this=0x30)
    at /usr/include/c++/11/bits/shared_ptr_base.h:1296
#1  0x00007ffff6fd1448 in medialibrary::MediaLibrary::getConn (this=0x0) at ../src/MediaLibrary.cpp:2078
#2  0x00007ffff6fe3de7 in medialibrary::sqlite::Tools::fetchOne<medialibrary::Artist, long&> (ml=0x0, 
    req="SELECT * FROM Artist WHERE id_artist = ?") at ../src/database/SqliteTools.h:295
#3  0x00007ffff6fdb70a in medialibrary::DatabaseHelpers<medialibrary::Artist>::fetch (ml=0x0, pkValue=1)
    at ../src/database/DatabaseHelpers.h:62
#4  0x00007ffff70a5d34 in medialibrary::parser::MetadataAnalyzer::cacheUnknownArtist (this=0x5555555f9580)
    at ../src/metadata_services/MetadataParser.cpp:76
#5  0x00007ffff70afcca in medialibrary::parser::MetadataAnalyzer::onRestarted (this=0x5555555f9580)
    at ../src/metadata_services/MetadataParser.cpp:1626
#6  0x00007ffff70e36cb in medialibrary::parser::Worker::restart (this=0x555555610030) at ../src/parser/ParserWorker.cpp:161
#7  0x00007ffff70dd1b2 in medialibrary::parser::Parser::rescan (this=0x55555560e418) at ../src/parser/Parser.cpp:134
#8  0x00007ffff6fd1c17 in medialibrary::MediaLibrary::forceRescan (this=0x55555560e250) at ../src/MediaLibrary.cpp:2252
#9  0x00007ffff6fbf727 in medialibrary::MediaLibrary::updateDatabaseModel (this=0x55555560e250, previousVersion=34)
    at ../src/MediaLibrary.cpp:1335
#10 0x00007ffff6fbca85 in medialibrary::MediaLibrary::initialize (this=0x55555560e250, mlCallback=0x5555555f45a0)
    at ../src/MediaLibrary.cpp:625
#11 0x00007ffff6f7a91f in MediaLibrary::Init (this=0x5555555f45a0) at ../../modules/misc/medialibrary/medialibrary.cpp:426
#12 0x00007ffff6f7ca03 in MediaLibrary::List (this=0x5555555f45a0, listQuery=1, params=0x7fffbdb9fb30, args=0x7fffbdb9fa00)

Reproducible systematically when migrating from 0.9.x to 0.11 with VLC master

ml.db

Edited by Hugo Beauzée-Luyssen
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information