SQLITE ERROR: 21 - library routine called out of sequence
mms: module.cpp:364: std::string Module::get_parent_id_common(const std::string&, SQLDatabase&, ost::Mutex&, const std::list<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, const std::string&): Assertion `!parent_id.empty()' failed.
Program received signal SIGABRT, Aborted.
[Switching to Thread -1306850416 (LWP 26877)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7a40875 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7a42201 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb7a39b6e in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#4 0x081898a1 in Module::get_parent_id_common (this=0x8223668, parent=@0xb21afca0, db=@0x822377c, db_mutex=@0x8223784, top_folders=@0x82236e0, db_insert_string=@0xb21afd5c) at module.cpp:364
#5 0x0818934e in Module::get_parent_id_common (this=0x8223668, parent=@0x82c2a08, db=@0x822377c, db_mutex=@0x8223784, top_folders=@0x82236e0, db_insert_string=@0xb21afd5c) at module.cpp:346
#6 0x08189a2d in Module::get_parent_id_movie (this=0x8223668, parent=@0x82c2a08, db=@0x822377c, db_mutex=@0x8223784, top_folders=@0x82236e0) at module.cpp:303
#7 0xb5f3e2f8 in GraphicalMovie::insert_file_into_db (this=0x8223668, filename=@0xb21afec8, parent=@0x82c2a08) at graphical_movie.cpp:759
#8 0xb5f3f79b in GraphicalMovie::rdir_hd (this=0x8223668, argv=@0x82c2a08, db_load_succes=@0xb21affda, insert_into_db=true) at graphical_movie.cpp:825
#9 0xb5f3fe3a in GraphicalMovie::rdir (this=0x8223668, argv=@0x82c2a08) at graphical_movie.cpp:860
#10 0xb5f47654 in GraphicalMovie::reload_dir (this=0x8223668, path=@0x82c2a08) at graphical_movie.cpp:92
#11 0xb5f3cea9 in GraphicalMovie::check_for_changes (this=0x8223668) at graphical_movie.cpp:462
#12 0xb5f4ab62 in boost::_mfi::mf0<void, GraphicalMovie>::operator() (this=0x832df0c, p=0x8223668) at /usr/include/boost/bind/mem_fn_template.hpp:49
#13 0xb5f4ac08 in boost::_bi::list1<boost::_bi::value<GraphicalMovie*> >::operator()<boost::_mfi::mf0<void, GraphicalMovie>, boost::_bi::list0> (this=0x832df14, f=@0x832df0c, a=@0xb21b0213) at /usr/include/boost/bind.hpp:231
#14 0xb5f4ac59 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, GraphicalMovie>, boost::_bi::list1<boost::_bi::value<GraphicalMovie*> > >::operator() (this=0x832df0c) at /usr/include/boost/bind/bind_template.hpp:20
#15 0xb5f4ac83 in boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, boost::_mfi::mf0<void, GraphicalMovie>, boost::_bi::list1<boost::_bi::value<GraphicalMovie*> > >, void>::invoke (
function_obj_ptr=@0x832df0c) at /usr/include/boost/function/function_template.hpp:155
#16 0x0810187d in boost::function0<void, std::allocator<void> >::operator() (this=0x832df08) at /usr/include/boost/function/function_template.hpp:692
#17 0x0812145b in Updater::run (this=0x81c9d40) at updater.cpp:68
#18 0xb7f27ad9 in ?? () from /usr/lib/libccgnu2-1.5.3.so.0
#19 0xb7b6546b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#20 0xb7ae96de in clone () from /lib/tls/i686/cmov/libc.so.6