On Wed, 2006-01-25 at 21:55 +0100, Torbjörn Jansson wrote:
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> wrote:
> > (In [8717]) Fixes #1078. References #956.
> Daniel, i'm still getting segfaults when exiting the watch recording screen
Can you send me the output of the attached patch up to the crash point?
-- Daniel
Index: libs/libmythtv/previewgenerator.cpp
===================================================================
--- libs/libmythtv/previewgenerator.cpp (revision 8725)
+++ libs/libmythtv/previewgenerator.cpp (working copy)
@@ -55,6 +55,7 @@
: programInfo(*pginfo), localOnly(local_only), isConnected(true),
createSockets(false), eventSock(NULL), serverSock(NULL)
{
+ VERBOSE(VB_IMPORTANT, "PreviewGenerator() "<<this<<" -- begin");
if (IsLocal())
return;
@@ -72,15 +73,19 @@
.arg(programInfo.pathname).arg(localFN);
VERBOSE(VB_RECORD, LOC + msg);
programInfo.pathname = localFN;
+ VERBOSE(VB_IMPORTANT, "PreviewGenerator() "<<this<<" -- end");
}
PreviewGenerator::~PreviewGenerator()
{
+ VERBOSE(VB_IMPORTANT, "~PreviewGenerator() "<<this<<" -- begin");
TeardownAll();
+ VERBOSE(VB_IMPORTANT, "~PreviewGenerator() "<<this<<" -- end");
}
void PreviewGenerator::TeardownAll(void)
{
+ VERBOSE(VB_IMPORTANT, "TeardownAll() "<<this<<" -- begin");
const QString filename = programInfo.pathname + ".png";
MythTimer t;
@@ -97,12 +102,15 @@
}
VERBOSE(VB_PLAYBACK, LOC + "previewThreadDone took "<<t.elapsed()<<"ms");
disconnectSafe();
+ VERBOSE(VB_IMPORTANT, "TeardownAll() "<<this<<" -- end");
}
void PreviewGenerator::deleteLater()
{
+ VERBOSE(VB_IMPORTANT, "deleteLater() "<<this<<" -- begin");
TeardownAll();
QObject::deleteLater();
+ VERBOSE(VB_IMPORTANT, "deleteLater() "<<this<<" -- end");
}
/** \fn PreviewGenerator::disconnectSafe(void)
@@ -111,9 +119,11 @@
*/
void PreviewGenerator::disconnectSafe(void)
{
+ VERBOSE(VB_IMPORTANT, "disconnectSafe() "<<this<<" -- begin");
QMutexLocker locker(&previewLock);
QObject::disconnect(this, NULL, NULL, NULL);
isConnected = false;
+ VERBOSE(VB_IMPORTANT, "disconnectSafe() "<<this<<" -- end");
}
/** \fn PreviewGenerator::Start(void)
@@ -134,6 +144,7 @@
*/
void PreviewGenerator::Run(void)
{
+ VERBOSE(VB_IMPORTANT, "Run() "<<this<<" -- begin");
if (IsLocal())
{
LocalPreviewRun();
@@ -147,6 +158,7 @@
VERBOSE(VB_IMPORTANT, LOC_ERR + QString("Run() file not local: '%1'")
.arg(programInfo.pathname));
}
+ VERBOSE(VB_IMPORTANT, "Run() "<<this<<" -- end");
}
void *PreviewGenerator::PreviewRun(void *param)
@@ -154,7 +166,9 @@
PreviewGenerator *gen = (PreviewGenerator*) param;
gen->createSockets = true;
gen->Run();
+ VERBOSE(VB_IMPORTANT, "PreviewRun() deleteLater() "<<gen<<" -- begin");
gen->deleteLater();
+ VERBOSE(VB_IMPORTANT, "PreviewRun() deleteLater() "<<gen<<" -- end");
return NULL;
}
_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev