[Paraview] Leaks when opening files?

Takuya OSHIMA oshima at eng.niigata-u.ac.jp
Thu Jun 12 21:34:27 EDT 2008


Hi,

I sometimes run the cvs head on OS X with MallocStackLogging=1 and use
the Apple's "leaks" tool as a simple way of detecting leaks from my
reader.

The problem is I always get about 3 - 15 leaks when I try to open a
file which do not seem to be coming from my reader since they also
occurs for other file types (*.vtk, *.vts, etc). The exact number of
leaks is quite dependent on how I open the file (through the Open File
dialog, Recent Files menu, etc.), but my impression is that I get
larger number of leaks when opened from Recent Files menu.

For example if I try to open a *.vts file from Recent Files, the first
of the reported leaks by "leaks" goes as shown below. Are they
considered harmless or unfixable (since most, but not all, of them
seem to be coming from within Qt-classes)?

Process 52281: 281623 nodes malloced for 32688 KB
Process 52281: 11 leaks for 176 total leaked bytes.
Leak: 0x1abada50  size=16       string '?1TQ'
        Call stack: [thread 0xa01e3fa0]: | start | main | pqMain::Run(QApplicati
on&, pqProcessModuleGUIHelper*) | vtkProcessModuleGUIHelper::Run(vtkPVOptions*) 
| vtkProcessModule::Start(int, char**) | vtkProcessModule::StartClient(int, char
**) | pqProcessModuleGUIHelper::RunGUIStart(int, char**, int, int) | QCoreApplic
ation::exec() | QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) | QEvent
Loop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) | QEventDispatcherMac
::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) | QEventDispatcherMacPriv
ate::activateTimers() | QCoreApplication::notifyInternal(QObject*, QEvent*) | QA
pplication::notify(QObject*, QEvent*) | QApplicationPrivate::notify_helper(QObje
ct*, QEvent*) | QObject::event(QEvent*) | QSingleShotTimer::timerEvent(QTimerEve
nt*) | QSingleShotTimer::timeout() | QMetaObject::activate(QObject*, int, int, v
oid**) | pqRecentFilesMenu::qt_metacall(QMetaObject::Call, int, void**) | pqRece
ntFilesMenu::onOpenResource() | pqSimpleServerStartup::startServer(pqServerResou
rce const&) | pqSimpleServerStartup::startServer(pqServerStartup&) | pqSimpleSer
verStartup::serverStarted(pqServer*) | QMetaObject::activate(QObject*, int, int,
 void**) | pqRecentFilesMenu::qt_metacall(QMetaObject::Call, int, void**) | pqRe
centFilesMenu::onServerStarted(pqServer*) | pqServerResources::open(pqServer*, p
qServerResource const&) | pqObjectBuilder::createReader(QString const&, QString 
const&, QStringList const&, pqServer*) | pqObjectBuilder::readerCreated(pqPipeli
neSource*, QStringList const&) | QMetaObject::activate(QObject*, int, int, void*
*) | pqMainWindowCore::qt_metacall(QMetaObject::Call, int, void**) | pqMainWindo
wCore::onReaderCreated(pqPipelineSource*, QStringList const&) | pqServerResource
s::add(pqServerResource const&) | pqServerResources::changed() | QMetaObject::ac
tivate(QObject*, int, int, void**) | pqRecentFilesMenu::qt_metacall(QMetaObject:
:Call, int, void**) | pqRecentFilesMenu::onResourcesChanged() | QWidget::addActi
on(QAction*) | QWidget::insertAction(QAction*, QAction*) | QCoreApplication::not
ifyInternal(QObject*, QEvent*) | QApplication::notify(QObject*, QEvent*) | QAppl
icationPrivate::notify_helper(QObject*, QEvent*) | QMenu::event(QEvent*) | QWidg
et::event(QEvent*) | QMenu::actionEvent(QActionEvent*) | QMenuPrivate::QMacMenuP
rivate::addAction(QAction*, QMacMenuAction*, QMenuPrivate*) | operator new(unsig
ned long) | malloc | malloc_zone_malloc 
... (snipped 10 more leaks) ...

Takuya OSHIMA, Ph.D.
Faculty of Engineering, Niigata University
8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN


More information about the ParaView mailing list