Crash in QRasterPaintEngine - crash

We experience some random crashes in our application which uses Qt 4.8.6 embedded and couldn't find a way to trace the problem so far.
Here is the backtrace :
#0 qt_alphamapblit_quint32 (rasterBuffer=0xbec87f6c, x=-4662395, y=<value optimized out>, color=3050196992, map=0xb419bff8 <Address 0xb419bff8 out of bounds>, mapWidth=11,
mapHeight=<value optimized out>, mapStride=12, clip=0x0) at /homes/tr1a5038/tr1a5038-qt/qt-everywhere-opensource-src-4.8.6/src/gui/painting/qdrawhelper.cpp:7198
#1 0xb6160204 in QRasterPaintEngine::alphaPenBlt (this=<value optimized out>, src=0xb617a570, bpl=12, depth=249, rx=45, ry=236, w=11, h=13)
at /homes/tr1a5038/tr1a5038-qt/qt-everywhere-opensource-src-4.8.6/src/gui/painting/qpaintengine_raster.cpp:2605
#2 0xb62779ec in QFontEngineQPF::draw (this=0xcbaa48, p=0xc78580, _x=44, _y=<value optimized out>, si=...)
at /homes/tr1a5038/tr1a5038-qt/qt-everywhere-opensource-src-4.8.6/src/gui/text/qfontengine_qpf.cpp:669
#3 0xb616ad70 in QRasterPaintEngine::drawTextItem (this=0xc78580, p=..., textItem=...) at /homes/tr1a5038/tr1a5038-qt/qt-everywhere-opensource-src-4.8.6/src/gui/painting/qpaintengine_raster.cpp:3133
#4 0xb6108718 in QPainter::drawTextItem (this=<value optimized out>, p=..., _ti=...) at /homes/tr1a5038/tr1a5038-qt/qt-everywhere-opensource-src-4.8.6/src/gui/painting/qpainter.cpp:6709
#5 0xb61fb58c in drawMenuText (this=<value optimized out>, p=0xbec8a938, pos=<value optimized out>, selection=<value optimized out>)
at /homes/tr1a5038/tr1a5038-qt/qt-everywhere-opensource-src-4.8.6/src/gui/text/qtextlayout.cpp:2050
#6 QTextLine::draw (this=<value optimized out>, p=0xbec8a938, pos=<value optimized out>, selection=<value optimized out>)
at /homes/tr1a5038/tr1a5038-qt/qt-everywhere-opensource-src-4.8.6/src/gui/text/qtextlayout.cpp:2425
#7 0xb610ba4c in qt_format_text (fnt=..., _r=<value optimized out>, tf=134217873, option=0x0, str=..., brect=0x0, tabstops=-1094134436, ta=0x0, tabarraylen=0, painter=0xbec8d5f4)
at /homes/tr1a5038/tr1a5038-qt/qt-everywhere-opensource-src-4.8.6/src/gui/painting/qpainter.cpp:8283
#8 0xb610c3c4 in QPainter::drawText (this=0xbec8d5f4, r=<value optimized out>, flags=<value optimized out>, str=..., br=0x0)
at /homes/tr1a5038/tr1a5038-qt/qt-everywhere-opensource-src-4.8.6/src/gui/painting/qpainter.cpp:6199
....
The only thing we found is the following :
https://forum.qt.io/topic/58654/qt-crash-in-qrasterpaintengine-alphapenblt-while-painting-label-text
And this one :
https://bugreports.qt.io/browse/QTBUG-41355
But we have no idea if it happens due to the same underlying reason or not.
Any idea ? Should we apply the mentioned fix in the link ?

These crashes happen when you do recursive painting. This is occurs if a widget, in its repainting code, calls code that will unconditionally paint. A possible reason might be calling a function that end-up running an event loop.

Related

Yii2 - Migrating test database

I'm using codeception and I'm trying to run the migration for the test database.
From inside the tests folder I run the command
php codeception/bin/yii migrate/up --interactive=0
but I'm getting the error
Exception 'yii\base\InvalidConfigException' with message 'The configuration for the "user" component must contain a "class" element.'
in /www/shopboxyii-v2/vendor/yiisoft/yii2/di/ServiceLocator.php:205
Stack trace:
#0 /www/shopboxyii-v2/vendor/yiisoft/yii2/di/ServiceLocator.php(261): yii\di\ServiceLocator->set('user', Array)
#1 /www/shopboxyii-v2/vendor/yiisoft/yii2/base/Component.php(180): yii\di\ServiceLocator->setComponents(Array)
#2 /www/shopboxyii-v2/vendor/yiisoft/yii2/BaseYii.php(546): yii\base\Component->__set('components', Array)
#3 /www/shopboxyii-v2/vendor/yiisoft/yii2/base/BaseObject.php(107): yii\BaseYii::configure(Object(yii\console\Application), Array)
#4 /www/shopboxyii-v2/vendor/yiisoft/yii2/base/Application.php(206): yii\base\BaseObject->__construct(Array)
#5 /www/shopboxyii-v2/vendor/yiisoft/yii2/console/Application.php(89): yii\base\Application->__construct(Array)
#6 /www/shopboxyii-v2/tests/codeception/bin/yii(25): yii\console\Application->__construct(Array)
#7 {main}
Does anyone know anything about this error or what's causing it??
You don't need the user component configuration in the console/config/main.php (if using advanced-app) or app/config/web.php (if using basic-app), you should just remove the component configurations and it will start working seamlessly.

Segmentation fault on exit in pyQt5 but not pyQt4

The workaround to a crash upon exit given in this answer works in pyqt4.
But not using pyqt5, where there is often (more than half the times) a segmentation fault.
Only the import lines changed
#!/usr/bin/python
import sys
#toolkit = "Qt4"
toolkit = "Qt5"
if toolkit == "Qt4":
# Qt4 (no crash)
from PyQt4.QtCore import *
from PyQt4.QtGui import *
elif toolkit == "Qt5":
# Qt5 (crash)
from PyQt5.QtWidgets import (
QApplication, QGraphicsScene, QGraphicsView
)
app = QApplication(sys.argv)
grview = QGraphicsView()
# no crash
scene = QGraphicsScene(parent=grview)
grview.setScene(scene)
grview.show()
sys.exit(app.exec_())
Here is the backtrace, from the core dump (as a side note, inside gdb, there is no crash)
[New LWP 4684]
[New LWP 4683]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `python grview_qt5.py'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f5233393e69 in ?? ()
(gdb) bt
#0 0x00007f5233393e69 in ()
#1 0x00007f522fee6f20 in ()
#2 0x0000000000e0d340 in ()
#3 0x00007f522fee6f20 in ()
#4 0x0000000000e0d5f0 in ()
#5 0x00007f523e0bc000 in _rtld_local () at /lib64/ld-linux-x86-64.so.2
#6 0x00007f523ae7285f in QThreadPrivate::start(void*) (arg=0xe0d340) at thread/qthread_unix.cpp:337
#7 0x00007f523d8780a4 in start_thread (arg=0x7f522fee7700) at pthread_create.c:309
#8 0x00007f523d5adcbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb) info threads
Id Target Id Frame
2 Thread 0x7f523e06f700 (LWP 4683) 0x00007f523deb21c7 in munmap () at ../sysdeps/unix/syscall-template.S:81
* 1 Thread 0x7f522fee7700 (LWP 4684) 0x00007f5233393e69 in ?? ()
Why the difference between pyqt4 and pyqt5 ?
It is surely related to Object Destruction on Exit, but how ?
What is the correct way to avoid this crash ?
I cannot make your example crash using Fedora 24's PyQt.
However I am also seeing this problem and do not have a definitive answer on how to clean up Qt objects before python exits. My app has 1000's of Qt objects and I'm not at all clear on hopw I will track down all the objects that fail to clean up.
I think the key is that you have to delete all the objects you have created in the reverse order of construction. Taking care to remove objects from any Qt object that has a reference to an other object. e.g widgets in a layout.
As I said in the comment the difference comes from changes from python2 to python3 to do with object deletion and garbage collection.
Using sys.exit() to avoid the clean up is not good enough.
You need to use os._exit( code ) which will prevent python from running onExit handlers. That is more likely to suppress the seg fault. But you will need to make sure that any important onExit handlers are run. For example to delete temp files.
Try exiting like this and see if for you the problem goes away.
grview.show()
rc = app.exec_()
del grview
del scene
del app
sys.exit( rc )
I had the same problem and just replacing sys.exit(wizard.exec_()) with os.exit(wizard.exec()) solved it for me.

Magento Price Range Error: "1054 Unknown column 'e.min_price' in 'where clause'"

Folks, ground has skipped away.
I'm getting an error in one particular situation when using magento e-commerce (1.7.0.2). The situation is, when the user tries to filtrate the catalog product's by a price range. The error presented is this
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'e.min_price' in 'where clause'
Trace:
#0 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT COUNT(DI...', Array)
#4 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('SELECT COUNT(DI...', Array)
#5 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/lib/Zend/Db/Adapter/Abstract.php(825): Varien_Db_Adapter_Pdo_Mysql->query(Object(Varien_Db_Select), Array)
#6 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/lib/Varien/Data/Collection/Db.php(225): Zend_Db_Adapter_Abstract->fetchOne(Object(Varien_Db_Select), Array)
#7 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/lib/Varien/Data/Collection.php(225): Varien_Data_Collection_Db->getSize()
#8 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/community/Strategery/Infinitescroll2/Model/Catalog/Observer.php(40): Varien_Data_Collection->getLastPageNumber()
#9 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Model/App.php(1338): Strategery_Infinitescroll2_Model_Catalog_Observer->modifyCollection(Object(Varien_Event_Observer))
#10 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Strategery_Infinitescroll2_Model_Catalog_Observer), 'modifyCollectio...', Object(Varien_Event_Observer))
#11 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/Mage.php(447): Mage_Core_Model_App->dispatchEvent('catalog_product...', Array)
#12 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Catalog/Model/Resource/Product/Collection.php(506): Mage::dispatchEvent('catalog_product...', Array)
#13 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(864): Mage_Catalog_Model_Resource_Product_Collection->_beforeLoad()
#14 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Review/Model/Observer.php(78): Mage_Eav_Model_Entity_Collection_Abstract->load()
#15 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Model/App.php(1338): Mage_Review_Model_Observer->catalogBlockProductCollectionBeforeToHtml(Object(Varien_Event_Observer))
#16 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Model/App.php(1311): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Review_Model_Observer), 'catalogBlockPro...', Object(Varien_Event_Observer))
#17 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/Mage.php(447): Mage_Core_Model_App->dispatchEvent('catalog_block_p...', Array)
#18 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Catalog/Block/Product/List.php(163): Mage::dispatchEvent('catalog_block_p...', Array)
#19 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Block/Abstract.php(862): Mage_Catalog_Block_Product_List->_beforeToHtml()
#20 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
#21 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml('product_list', true)
#22 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Catalog/Block/Category/View.php(85): Mage_Core_Block_Abstract->getChildHtml('product_list')
#23 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/design/frontend/default/madame-modern/template/catalog/category/view.phtml(70): Mage_Catalog_Block_Category_View->getProductListHtml()
#24 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Block/Template.php(241): include('/Applications/X...')
#25 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#26 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#27 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
#28 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#29 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Text_List->_toHtml()
#30 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
#31 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#32 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/design/frontend/default/madame-modern/template/page/2columns-left.phtml(19): Mage_Core_Block_Abstract->getChildHtml('content')
#33 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Block/Template.php(241): include('/Applications/X...')
#34 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#35 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#36 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
#37 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#38 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#39 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Catalog/controllers/CategoryController.php(159): Mage_Core_Controller_Varien_Action->renderLayout()
#40 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Catalog_CategoryController->viewAction()
#41 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('view')
#42 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#43 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#44 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#45 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/index.php(87): Mage::run('', 'store')
#46 {main}
I've been tracing the problem around, with not much success. I'm not pretty sure if the problem is related to the missing table called "min_price" in database, or anything else. As you can notice, the characters exposed in the error report is "e.min_price", and not only "min_price". The only file which contains these characters is app/code/core/Mage/CatalogIndex/Model/Indexer.php
if (strlen($values[$code]['from'])>0) {
$filter[$code]->where(
"($table.min_price".implode('', $additionalCalculations[$code]).")*{$rateConversion} >= ?",
$values[$code]['from']
);
}
if (strlen($values[$code]['to'])>0) {
$filter[$code]->where(
"($table.min_price".implode('', $additionalCalculations[$code]).")*{$rateConversion} <= ?",
$values[$code]['to']
);
}
As you can see, actually it is "$table.min_price" and not "e.min_price". But this is the only file which contains these sequence of characters. ("min_price" appears in several others)
It, probably, has come to your attention that I`m pretty lost here. So, ANY help will be appreciated.
Thanks.
Strategery_Infinitescroll2 seems to be modifying the collection using an observer, it seems like they are trying to access a field that does not exist like you thought.
Check in {community|local}/Strategery/Infinitescroll2/Model/Catalog/Observer.php in the modifyCollectio...() method.
Disabled the module to confirm it is at fault, either fix it yourself shouldn't be too hard to remove / fix the check from the collection call.
or contact your supplier.
The stack trace line:
#10 /Applications/XAMPP/xamppfiles/htdocs/parcodesign-setembro/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Strategery_Infinitescroll2_Model_Catalog_Observer), 'modifyCollectio...', Object(Varien_Event_Observer))
In my case the issue was related to app/code/local/Mage/Catalog/Model/Layer/Filter/Price.php
apply() method.
This file was not updated to the last version and the apply() method was still calling the deprecated method $this->_getResource()->applyFilterToCollection($this, $range, $index); instead of this $this->_applyPriceRange();
So I suggest to do a diff with an original core file at least for those 2 files:
app/code/local/Mage/Catalog/Model/Layer/Filter/Price.php
app/code/core/Mage/Catalog/Model/Resource/Layer/Filter/Price.php
In case you have upgraded Magento:
Take care could be ( probably ) more files that has not be updated correctly so I suggest to review the upgrade procedure.
try to set flat product catalog to no in backend

Cryptic PHP error invloving Zend Framework and Doctrine

I'm currently receiving the following error message with Zend Framework and Doctrine. I'm trying to figure out how to solve this issue..
Fatal error: Uncaught exception 'LogicException' with message 'Passed array does not specify an existing static method (class 'Doctrine' does not have a method 'modelsAutoload')' in /home/bellalun/library/Smallunch/lib/Bootstrap.php:173 Stack trace: #0 /home/bellalun/library/Smallunch/lib/Bootstrap.php(173): spl_autoload_register(Array) #1 /etc/ZendFramework/1.9.0/Zend/Application/Bootstrap/BootstrapAbstract.php(660): Bootstrap->_initDoctrine() #2 /etc/ZendFramework/1.9.0/Zend/Application/Bootstrap/BootstrapAbstract.php(613): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('doctrine') #3 /etc/ZendFramework/1.9.0/Zend/Application/Bootstrap/BootstrapAbstract.php(577): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(NULL) #4 /etc/ZendFramework/1.9.0/Zend/Application.php(324): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap() #5 /home/bellalun/application/bootstrap.php(14): Zend_Application->bootstrap() #6 /home/bellalun/public_html/dev.php(8): require('/home/bellalun/...') #7 {main} thrown in /home/bellalun/library/Smallunch/lib/Bootstrap.php on line 173
Here's what's on line 173
$this->getApplication()->getAutoloader()
->pushAutoloader(array('Doctrine', 'autoload'));
spl_autoload_register(array('Doctrine', 'modelsAutoload'));
$manager = Doctrine_Manager::getInstance();
$manager->setAttribute(Doctrine_Core::ATTR_AUTO_ACCESSOR_OVERRIDE, true);
My hosting company made some changes over the weekend that messed up a few of my sites, taking them down. They switched me from Apache to LiteSpeed and my PHP handler from DSO to SuPHP. Not sure if this is related or not..
I don't use Doctrine, but the code sample you've posted doesn't make a lot of sense. On the first line you're registering Doctrine's autoload function with the ZF autoloader. This looks good, and seems to match this tutorial. On the next line, you're registering another autoloader with SPL directly (this is bad), and doing so using another, apparently non-existent function (modelsAutoload). Since this is the line that's erroring I'd guess commenting that line out will fix your problem.

GC Operation on unregistered thread

I am getting the following error on OS X Lion 10.7 in my application. I have pinpointed what is causing the error, but want to find out if this is a bug in 10.7 or if something has changed that I am missing.
malloc: *** auto malloc[3677]: error: GC operation on unregistered thread. Thread registered implicitly. Break on auto_zone_thread_registration_error() to debug.
The stack trace from GDB when running bt on the breakpoint:
#0 0x00007fff90742b44 in auto_zone_thread_registration_error ()
#1 0x00007fff9073a9a4 in auto_zone_allocate_object ()
#2 0x00007fff8f36335e in _Block_copy_internal ()
#3 0x00007fff8a9d7e9d in HALC_ProxyIOContext::StopIOProc ()
#4 0x00007fff8a9d7dc6 in __HAL_HardwarePlugIn_DeviceStop_block_invoke_30 ()
#5 0x00007fff8a9b8521 in HALB_Executor::DoIt ()
#6 0x00007fff8a9b84ce in HALB_Executor::Run ()
#7 0x00007fff8a9d7ce9 in HAL_HardwarePlugIn_DeviceStop ()
#8 0x00007fff8a9d7c6d in HALPlugIn::DeviceStopIOProc ()
#9 0x00007fff8a9d7bb1 in AudioDeviceStop ()
#10 0x00000001044b381c in AUHAL::StopHardware ()
#11 0x00000001044b397e in AUHAL::AUIOProc ()
#12 0x00007fff8a9d5362 in HALC_ProxyIOContext::IOWorkLoop ()
#13 0x00007fff8a9d4ac9 in HALC_ProxyIOContext::IOThreadEntry ()
#14 0x00007fff8a9d4984 in HALB_IOThread::Entry ()
#15 0x00007fff8fb2f8bf in _pthread_start ()
#16 0x00007fff8fb32b75 in thread_start ()`
The code that is causing this Garbage Collection thread error is:
NSSound *completedSound = [NSSound soundNamed:#"Glass"];
[completedSound play] //this line is causing the error;
All that line does is play one of the system sounds that are registered on the system as selected by the user. To me it seems like a bug, and I have filed a bug report just in case.
Anybody else experienced this?
Yes, indeed I have. The stack trace seems pretty similar as well. It seems to happen when a sound file stops playing, and I am pretty sure that it wasn't happening under 10.6. It doesn't seem to affect the actual running of my app, though.
There are also other cases of this error (with WebKit, mostly) that showed up on google while I was looking for the cause, and they all suggested that it wasn't really any sort of problem.
What was the bug report number?
Check to see if you have any third-party audio plugins installed, and remove them one by one. The crash report will show all loaded bundles.
I see the same message with the speech synthesizer stopping.