Application: simon (0.4.0) KDE Platform Version: 4.9.5 "release 3" Qt Version: 4.8.4 Operating System: Linux 3.4.11-2.16-desktop x86_64 Distribution: "openSUSE 12.2 (x86_64)" -- Information about the crash: I installed simon packages for openSUSE 12.2 64bit from repository: http://download.opensuse.org/repositories/KDE:/Extra/KDE_Release_49_openSUSE_12.2/ Afterwards I followed exatcly the instructions found in the Quickstart video: http://simon-listens.blogspot.co.at/2012/12/simon-040.html After the Wizard is finished (and at every startup afterwards) simon instanly crashes. The crash can be reproduced every time. -- Backtrace: Application: Simon (simon), signal: Segmentation fault Using host libthread_db library "/lib64/libthread_db.so.1". [Current thread is 1 (Thread 0x7f0271adc780 (LWP 24203))] Thread 5 (Thread 0x7f025dbb2700 (LWP 24206)): #0 0x00007f0267bcd2af in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0 #1 0x00007f0267bcd6e8 in ?? () from /usr/lib64/libglib-2.0.so.0 #2 0x00007f0267bcd7a4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #3 0x00007f026e6db136 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4 #4 0x00007f026e6ab94f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4 #5 0x00007f026e6abbd8 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4 #6 0x00007f026e5ae0b0 in QThread::exec() () from /usr/lib64/libQtCore.so.4 #7 0x00007f026e5b108c in ?? () from /usr/lib64/libQtCore.so.4 #8 0x00007f026b200e0e in start_thread () from /lib64/libpthread.so.0 #9 0x00007f026d09a2cd in clone () from /lib64/libc.so.6 Thread 4 (Thread 0x7f0256bb1700 (LWP 24762)): #0 0x00007f026b204c61 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00007f026e5afc96 in ?? () from /usr/lib64/libQtCore.so.4 #2 0x00007f026e5b0436 in QThread::sleep(unsigned long) () from /usr/lib64/libQtCore.so.4 #3 0x00007f026a48c5d2 in ProcessInfoGatherer::run (this=0x2d65690) at /usr/src/debug/simon-0.4.0/simonlib/simoncontextdetection/processinfogatherer.cpp:92 #4 0x00007f026e5b108c in ?? () from /usr/lib64/libQtCore.so.4 #5 0x00007f026b200e0e in start_thread () from /lib64/libpthread.so.0 #6 0x00007f026d09a2cd in clone () from /lib64/libc.so.6 Thread 3 (Thread 0x7f02479b0700 (LWP 26565)): #0 0x00007f026b204c61 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00007f026e5b1547 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4 #2 0x00007f02702e7b9a in QSemaphore2::tryAcquire (this=0x2c75420, n=2048, timeout=<optimized out>) at /usr/src/debug/simon-0.4.0/simonlib/simonsound/qsemaphore2.cpp:229 #3 0x00007f02702e6a6f in SoundInputBuffer::run (this=0x2c753e0) at /usr/src/debug/simon-0.4.0/simonlib/simonsound/soundinputbuffer.cpp:51 #4 0x00007f026e5b108c in ?? () from /usr/lib64/libQtCore.so.4 #5 0x00007f026b200e0e in start_thread () from /lib64/libpthread.so.0 #6 0x00007f026d09a2cd in clone () from /lib64/libc.so.6 Thread 2 (Thread 0x7f024b9b1700 (LWP 26566)): #0 0x00007f026d0384c8 in __strlen_sse2 () from /lib64/libc.so.6 #1 0x00007f026cfe5641 in __dcigettext () from /lib64/libc.so.6 #2 0x00007f026d038322 in strerror_r () from /lib64/libc.so.6 #3 0x00007f026d03821e in strerror () from /lib64/libc.so.6 #4 0x00007f02702e7d2f in xrun_recovery (handle=0x2c65580, err=err@entry=-9) at /usr/src/debug/simon-0.4.0/simonlib/simonsound/alsa/alsabackend.cpp:527 #5 0x00007f02702ec2cf in ALSACaptureLoop::run (this=0x2c97c70) at /usr/src/debug/simon-0.4.0/simonlib/simonsound/alsa/alsabackend.cpp:85 #6 0x00007f026e5b108c in ?? () from /usr/lib64/libQtCore.so.4 #7 0x00007f026b200e0e in start_thread () from /lib64/libpthread.so.0 #8 0x00007f026d09a2cd in clone () from /lib64/libc.so.6 Thread 1 (Thread 0x7f0271adc780 (LWP 24203)): [KCrash Handler] #5 size (this=0x8) at /usr/include/QtCore/qhash.h:295 #6 QHash<QString, QString>::values (this=0x8) at /usr/include/QtCore/qhash.h:696 #7 0x00007f0270053a2a in words (this=<optimized out>) at /usr/src/debug/simon-0.4.0/simonlib/simonscenarios/promptstable.h:68 #8 TrainingManager::getProbability (this=this@entry=0x25baf60, wordname=...) at /usr/src/debug/simon-0.4.0/simonlib/simonscenarios/trainingmanager.cpp:292 #9 0x00007f027005426f in TrainingManager::calcRelevance (this=0x25baf60, text=0x2c421b0) at /usr/src/debug/simon-0.4.0/simonlib/simonscenarios/trainingmanager.cpp:265 #10 0x00007f02700726f7 in TrainingTextCollection::data (this=<optimized out>, index=..., role=<optimized out>) at /usr/src/debug/simon-0.4.0/simonlib/simonscenarios/trainingtextcollection.cpp:94 #11 0x000000000041f582 in _start () Reported using DrKonqi
I haven't actually looked at the package you're using, but I can reproduced the reported crash by removing the default (empty) prompts file that should ship with it. Try: "sudo touch /usr/share/apps/simon/model/prompts" (you might need to adjust the path for OpenSUSE but I doubt it) If that fixes the problem, please close this bug and report the issue to the package maintainers. Thanks.
Thanks, your workaround helps. For the openSUSE package the file needs to be created in /usr/share/apps/kde4/simon/model/prompts. I will close the bug and open one with the packager. However, should a missing file make the application crash? ;-)
You're right. So let's fix that.
Git commit bd1d8189d69afae8f8cc7c9481087ebff93f853c by Peter Grasch. Committed on 14/01/2013 at 13:20. Pushed by grasch into branch 'master'. Do not require empty (prompts) file M +33 -30 simonlib/simonscenarios/promptstable.cpp http://commits.kde.org/simon/bd1d8189d69afae8f8cc7c9481087ebff93f853c
*** Bug 315013 has been marked as a duplicate of this bug. ***
*** Bug 302603 has been marked as a duplicate of this bug. ***
*** Bug 320203 has been marked as a duplicate of this bug. ***
I just got a similar crash on openSUSE 12.3 x86_64 with simon-0.4.0-2.15. The path for the workaround is now /usr/share/kde4/apps/simon/model/prompts.
If you haven't done so already, please open a bug in the openSUSE bugtracker.
Sorry, I can't type that much for the time being.
Don't worry too much, Simon 0.4.1 will include a workaround for this anyway.