View Single Post
Posts: 79 | Thanked: 211 times | Joined on Aug 2012
#129
Fixed a nasty crasher that randomly occurred right after uninstalling an app. Any developers following this? Do try to find the bug in this simplified piece of code:

void DetailsPage:nUninstallClicked(){
WidgetManager::instance()->uninstallWidget( m_widgetBaseName );
}

And the signature of the called method is:
virtual void uninstallWidget( const QString& widgetBaseName, bool upgradeMode = false );

I'll give you a hint: DetailsPage is closed (and later, asynchronously deleted after a simple ~200ms back animation) within uninstallWidget() context and the segmentation fault occurred before leaving the method and more exactly within a QString::compare() call.

Anyone? It's quite obvious when written like this but took a good while to locate with all the rest of the code around
 

The Following User Says Thank You to sviox For This Useful Post: