Re: Need help in resolving KGet DataEngine crash

2013-07-04 Thread Aaron J. Seigo
On Thursday, July 4, 2013 18:18:15 Bhushan Shah wrote:
> #8  TransferTreeModel::transferGroups (this=0x0) at
> /home/bshah/kdesrc/kde/kdenetwork/kget/core/transfertreemodel.cpp:450
> #9  0xae94b14c in KGet::allTransfers () at
> /home/bshah/kdesrc/kde/kdenetwork/kget/core/kget.cpp:660

As can be seen clearly here, the TreeTransferModel is not allocated (this=0x0) 
before it is used at kget.cpp:660.

Apparently this gets set up if you call KGet::KGet() first.

-- 
Aaron J. Seigo

signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Need help in resolving KGet DataEngine crash

2013-07-04 Thread Bhushan Shah
Hello,

I posted this message to kde-devel mailing list but realized that it's not
the right place, I am currently working on new KGet engine, and plasma
widget. I am having problem in sources function,

It looks like this,

QStringList KGetEngine::sources() const
{
QStringList sources;
//sources << "KGet";
QList trans = KGet::allTransfers();
foreach (TransferHandler *handler, trans) {
sources << handler->dest().fileName();
}
return sources;
}

But KGet::allTransfers function crashes. Here is crash report :

Application: Plasma Engine Explorer (plasmaengineexplorer), signal:
Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[KCrash Handler]
#6  0xae960ca8 in QList (l=..., this=0xbfe42150) at
/usr/include/qt4/QtCore/qlist.h:122
#7  QForeachContainer (t=..., this=0xbfe42150) at
/usr/include/qt4/QtCore/qglobal.h:2365
#8  TransferTreeModel::transferGroups (this=0x0) at
/home/bshah/kdesrc/kde/kdenetwork/kget/core/transfertreemodel.cpp:450
#9  0xae94b14c in KGet::allTransfers () at
/home/bshah/kdesrc/kde/kdenetwork/kget/core/kget.cpp:660
#10 0xaea100e0 in KGetEngine::sources (this=0x9af19f8) at
/home/bshah/kdesrc/kde/kdenetwork/kget/plasma/engine/kgetengine.cpp:65
#11 0x0805418e in _start ()

Thanks,
Bhushan
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel