[Paraview-developers] Infinite recursion during error message printout

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Thu Feb 15 08:57:26 EST 2018


David,

Can you see if these resolve it?

https://gitlab.kitware.com/vtk/vtk/merge_requests/3927
https://gitlab.kitware.com/paraview/paraview/merge_requests/2246

Utkarsh

On Thu, Feb 15, 2018 at 12:31 AM, David Thompson
<david.thompson at kitware.com> wrote:
> Hi all,
>
> I'm developing a PV-branded app and have run into an issue where my code calls vtkErrorMacro() and it recursively reprints the error message until the stack is exhausted. A partial stack trace is below (all but the bottom-most entry repeat until a crash). You can see that the vtkErrorMacro call invokes vtkOutputWindow::DisplayText, which invokes a vtkCommand::MessageEvent event. ParaView's progress handler listens for the event and then re-broadcasts the message to the vtkOutputWindow, which invokes the same event again.
>
> There do appear to be 2 SubjectHelpers involved (0x0000000129905c90 and 0x00000001294fba80); I'm not sure if this is significant but am hoping whoever knows about the pqProgressManager will understand what's going on.
>
> Any ideas?
>
>         Thanks,
>         David
>
>     ...
>     frame #21868: 0x000000010b97aeb6 libvtkCommon-pv5.4.1.dylib`vtkOutputWindow::DisplayErrorText(this=0x0000000117122d20, txt="ERROR: In /stage/build/cmb/qt5-superbuild/superbuild/cmb/src/thirdparty/smtk/smtk/extension/paraview/server/vtkSMTKAttributeReader.cxx, line 119\nvtkSMTKAttributeReader (0x12e819e80): Could not read \"/stage/source/cmb/6/data/simulation-workflows/ACE3P/Omega3P/internal/test/pillbox4-test2.crf\"\n\n") at vtkOutputWindow.cxx:114
>     frame #21869: 0x0000000100de1d9b libvtkpqCore-pv5.4.1.dylib`pqProgressManager::onMessage(this=0x0000000117037710, caller=0x00000001294abe30) at pqProgressManager.cxx:247
>     frame #21870: 0x0000000100e4f1dc libvtkpqCore-pv5.4.1.dylib`pqProgressManager::qt_static_metacall(_o=0x0000000117037710, _c=InvokeMetaMethod, _id=16, _a=0x00007ffeefbf8cb0) at moc_pqProgressManager.cpp:155
>     frame #21871: 0x00000001038d14fb QtCore`QMetaObject::activate(QObject*, int, int, void**) + 2923
>     frame #21872: 0x0000000100e457bc libvtkpqCore-pv5.4.1.dylib`pqCoreUtilitiesEventHelper::eventInvoked(this=0x00000001299036a0, _t1=0x00000001294abe30, _t2=97, _t3=0x000000012c5cb950) at moc_pqCoreUtilities.cpp:128
>     frame #21873: 0x0000000100d7121d libvtkpqCore-pv5.4.1.dylib`pqCoreUtilitiesEventHelper::executeEvent(this=0x00000001299036a0, obj=0x00000001294abe30, eventid=97, calldata=0x000000012c5cb950) at pqCoreUtilities.cxx:190
>     frame #21874: 0x0000000100d724ba libvtkpqCore-pv5.4.1.dylib`vtkObject::vtkClassMemberCallback<pqCoreUtilitiesEventHelper>::operator(this=0x0000000129906020, caller=0x00000001294abe30, event=97, calldata=0x000000012c5cb950)(vtkObject*, unsigned long, void*) at vtkObject.h:385
>     frame #21875: 0x000000010b9759bf libvtkCommon-pv5.4.1.dylib`vtkObjectCommandInternal::Execute(this=0x0000000129906070, caller=0x00000001294abe30, eventId=97, callData=0x000000012c5cb950) at vtkObject.cxx:920
>     frame #21876: 0x000000010b973454 libvtkCommon-pv5.4.1.dylib`vtkSubjectHelper::InvokeEvent(this=0x0000000129905c90, event=97, callData=0x000000012c5cb950, self=0x00000001294abe30) at vtkObject.cxx:616
>     frame #21877: 0x000000010b97485f libvtkCommon-pv5.4.1.dylib`vtkObject::InvokeEvent(this=0x00000001294abe30, event=97, callData=0x000000012c5cb950) at vtkObject.cxx:785
>     frame #21878: 0x00000001049d2358 libvtkPVClientServer-pv5.4.1.dylib`vtkPVProgressHandler::RefreshMessage(this=0x00000001294abe30, message="ERROR: In /stage/build/cmb/qt5-superbuild/superbuild/cmb/src/thirdparty/smtk/smtk/extension/paraview/server/vtkSMTKAttributeReader.cxx, line 119\nvtkSMTKAttributeReader (0x12e819e80): Could not read \"/stage/source/cmb/6/data/simulation-workflows/ACE3P/Omega3P/internal/test/pillbox4-test2.crf\"\n\n") at vtkPVProgressHandler.cxx:501
>     frame #21879: 0x00000001049d05a5 libvtkPVClientServer-pv5.4.1.dylib`vtkPVProgressHandler::OnMessageEvent(this=0x00000001294abe30, (null)=0x0000000117122d20, eventid=97, calldata=0x000000012c5cb950) at vtkPVProgressHandler.cxx:463
>     frame #21880: 0x00000001049d5c8a libvtkPVClientServer-pv5.4.1.dylib`vtkObject::vtkClassMemberCallback<vtkPVProgressHandler>::operator(this=0x00000001293f1390, caller=0x0000000117122d20, event=97, calldata=0x000000012c5cb950)(vtkObject*, unsigned long, void*) at vtkObject.h:385
>     frame #21881: 0x000000010b9759bf libvtkCommon-pv5.4.1.dylib`vtkObjectCommandInternal::Execute(this=0x00000001294f26e0, caller=0x0000000117122d20, eventId=97, callData=0x000000012c5cb950) at vtkObject.cxx:920
>     frame #21882: 0x000000010b973454 libvtkCommon-pv5.4.1.dylib`vtkSubjectHelper::InvokeEvent(this=0x00000001294fba80, event=97, callData=0x000000012c5cb950, self=0x0000000117122d20) at vtkObject.cxx:616
>     frame #21883: 0x000000010b97485f libvtkCommon-pv5.4.1.dylib`vtkObject::InvokeEvent(this=0x0000000117122d20, event=97, callData=0x000000012c5cb950) at vtkObject.cxx:785
>     frame #21884: 0x000000010b97ac73 libvtkCommon-pv5.4.1.dylib`vtkOutputWindow::DisplayText(this=0x0000000117122d20, txt="ERROR: In /stage/build/cmb/qt5-superbuild/superbuild/cmb/src/thirdparty/smtk/smtk/extension/paraview/server/vtkSMTKAttributeReader.cxx, line 119\nvtkSMTKAttributeReader (0x12e819e80): Could not read \"/stage/source/cmb/6/data/simulation-workflows/ACE3P/Omega3P/internal/test/pillbox4-test2.crf\"\n\n") at vtkOutputWindow.cxx:109
>     frame #21885: 0x000000010b97aeb6 libvtkCommon-pv5.4.1.dylib`vtkOutputWindow::DisplayErrorText(this=0x0000000117122d20, txt="ERROR: In /stage/build/cmb/qt5-superbuild/superbuild/cmb/src/thirdparty/smtk/smtk/extension/paraview/server/vtkSMTKAttributeReader.cxx, line 119\nvtkSMTKAttributeReader (0x12e819e80): Could not read \"/stage/source/cmb/6/data/simulation-workflows/ACE3P/Omega3P/internal/test/pillbox4-test2.crf\"\n\n") at vtkOutputWindow.cxx:114
>     frame #21886: 0x000000010b97a78c libvtkCommon-pv5.4.1.dylib`vtkOutputWindowDisplayErrorText(message="ERROR: In /stage/build/cmb/qt5-superbuild/superbuild/cmb/src/thirdparty/smtk/smtk/extension/paraview/server/vtkSMTKAttributeReader.cxx, line 119\nvtkSMTKAttributeReader (0x12e819e80): Could not read \"/stage/source/cmb/6/data/simulation-workflows/ACE3P/Omega3P/internal/test/pillbox4-test2.crf\"\n\n") at vtkOutputWindow.cxx:37
>     frame #21887: 0x0000000125e22ac3 libsmtkPVServerExtPlugin.dylib`vtkSMTKAttributeReader::LoadFile(this=0x000000012e819e80) at vtkSMTKAttributeReader.cxx:119
>     ...
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview-developers


More information about the Paraview-developers mailing list