LibraryScanner is not canceled if Mixxx is closed
Bug #1018589 reported by
Max Linke
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mixxx |
Fix Released
|
Low
|
Max Linke |
Bug Description
The scanner continues to run if mixxx is closed. We should send a cancel signal to it when exiting mixxx
Related branches
Changed in mixxx: | |
milestone: | none → 1.11.0 |
Changed in mixxx: | |
status: | In Progress → Fix Committed |
importance: | Undecided → Low |
Changed in mixxx: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Also if the library scanner is canceled afterwards mixxx will close with a segfault. Here is the backtrace
Thread 9 (Thread 0x7fffde513700 (LWP 23321)): cond_wait@ @GLIBC_ 2.3.2 () at ../nptl/ sysdeps/ unix/sysv/ linux/x86_ 64/pthread_ cond_wait. S:162 :wait(QMutex* , unsigned long) () from /usr/lib/ x86_64- linux-gnu/ libQtCore. so.4 browse/ browsethread. cpp:82 x86_64- linux-gnu/ libQtCore. so.4 create. c:304 unix/sysv/ linux/x86_ 64/clone. S:112
#0 pthread_
#1 0x00007ffff597920b in QWaitCondition:
#2 0x000000000061897a in BrowseThread::run (this=0xf8e350) at src/library/
#3 0x00007ffff5978d0b in ?? () from /usr/lib/
#4 0x00007ffff0ae9b50 in start_thread (arg=<optimized out>) at pthread_
#5 0x00007ffff0fdf6dd in clone () at ../sysdeps/
#6 0x0000000000000000 in ?? ()
Thread 2 (Thread 0x7fffe09c9700 (LWP 23314)): unix/sysv/ linux/x86_ 64/syscall. S:39 x86_64- linux-gnu/ libQtCore. so.4 :lockInternal( ) () from /usr/lib/ x86_64- linux-gnu/ libQtCore. so.4 :wait(QMutex* , unsigned long) () from /usr/lib/ x86_64- linux-gnu/ libQtCore. so.4 eduler: :run (this=0xeb3f90) at src/engine/ engineworkersch eduler. cpp:68 x86_64- linux-gnu/ libQtCore. so.4 create. c:304 unix/sysv/ linux/x86_ 64/clone. S:112
#0 syscall () at ../sysdeps/
#1 0x00007ffff59777f4 in ?? () from /usr/lib/
#2 0x00007ffff5973a05 in QMutex:
#3 0x00007ffff59791b9 in QWaitCondition:
#4 0x00000000004e1432 in EngineWorkerSch
#5 0x00007ffff5978d0b in ?? () from /usr/lib/
#6 0x00007ffff0ae9b50 in start_thread (arg=<optimized out>) at pthread_
#7 0x00007ffff0fdf6dd in clone () at ../sysdeps/
#8 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7ffff7e9f780 (LWP 23304)): qt4/include/ QtCore/ qvector. h:99 qt4/include/ QtCore/ qvector. h:468 <optimized out>) at /usr/share/ qt4/include/ QtCore/ qvector. h:124 el::~BaseSqlTab leModel (this=0xf74670, __in_chrg= <optimized out>) at src/library/ basesqltablemod el.cpp: 32 <optimized out>) at src/library/ librarytablemod el.cpp: 50 el::~LibraryTab leModel (this=0xf74670, __in_chrg= <optimized out>) at src/library/ librarytablemod el.cpp: 51 ture::~ MixxxLibraryFea ture (this=0xf5cff0, __in_chrg= <optimized out>) at src/library/ mixxxlibraryfea ture.cpp: 102 ture::~ MixxxLibraryFea ture (this=0xf5cff0, __in_chrg= <optimized out>) at src/library/ mixxxlibraryfea ture.cpp: 105 51a70, __in_chrg= <optimized out>) at src/library/ library. cpp:97 51a70, __in_chrg= <optimized out>) at src/library/ library. cpp:107 <optimized out>) at src/mixxx.cpp:568
#0 malloc_consolidate (av=0x7ffff1289e60) at malloc.c:5153
#1 0x00007ffff0f7e478 in _int_free (av=0x7ffff1289e60, p=0x2bd7460) at malloc.c:5034
#2 0x00007ffff0f8187c in *__GI___libc_free (mem=<optimized out>) at malloc.c:3738
#3 0x00000000005cac75 in free (alignment=8, x=0x2bd7470) at /usr/share/
#4 free (x=0x2bd7470, this=<optimized out>) at /usr/share/
#5 ~QVector (this=0xf746f8, __in_chrg=
#6 BaseSqlTableMod
#7 0x00000000005dfeb8 in ~LibraryTableModel (this=0xf74670, __in_chrg=
#8 LibraryTableMod
#9 0x00000000006012cd in MixxxLibraryFea
#10 0x0000000000601409 in MixxxLibraryFea
#11 0x00000000006720df in Library::~Library (this=0x7fffd80
#12 0x00000000006721e9 in Library::~Library (this=0x7fffd80
#13 0x000000000057c3e1 in MixxxApp::~MixxxApp (this=0xeae4f0, __in_chrg=
#14 0x000000000057d0c9 i...