SpyServ reentrance warning and slowdown when using SIS3316RawReader through MultiFormatReader
After connecting a socket to the SpyServer of a MultiFormatReader, a reentrance warning is given repeatedly and read slows down to a halt. Example:
# start reading in one process.
mfr = ROOT.NGMMultiFormatReader()
mfr.SetPassName("ROOT")
mfr.SetSkipWaveforms(True)
port = 9090
mfr.LaunchSpyServ(port)
filename = sys.argv[1]
mfr.OpenInputFile(filename)
mfr.StartAcquisition()
# in a separate process
socket = ROOT.TSocket('localhost',9090)
output looks like:
Collection name='TOrdCollection', class='TOrdCollection', size=0
Press Ctl-C to Interrupt NGMMultiFormatReader
Collection name='TOrdCollection', class='TOrdCollection', size=1
OBJ: TSignalHandler TSignalHandler Signal event handler
Read 13968448 bytes; currently 10% done with current file(1.
Read 13936244 bytes; currently 20% done with current file(1.
Read 13959468 bytes; currently 30% done with current file(1.
Read 14128776 bytes; currently 40% done with current file(1.
Read 13839336 bytes; currently 50% done with current file(1.
Read 14659376 bytes; currently 60% done with current file(1.
Read 15021824 bytes; currently 70% done with current file(1.
Read 15308172 bytes; currently 80% done with current file(1.
Read 15797376 bytes; currently 90% done with current file(1.
Re-entrance prevented in NGMSpyServ::CheckForRequests()
INFO:: Found End of File Record
INFO:: [file:/Users/s7o/code.ornl.gov/ngmdaq/ngm/Software/NGMDaq/NGMModuleCore/NGMSIS3316RawReader.cc line:304 function:ReadNextSpillFromFile]
INFO:: Found SIS Run Header of version 857079809 [file:/Users/s7o/code.ornl.gov/ngmdaq/ngm/Software/NGMDaq/NGMModuleCore/NGMSIS3316RawReader.cc line:279 function:OpenRawBinaryFile]
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Read 15135180 bytes; currently 10% done with current file(2.
Read 13151864 bytes; currently 20% done with current file(2.
Read 12650860 bytes; currently 30% done with current file(2.
Read 14382396 bytes; currently 40% done with current file(2.
Read 13862684 bytes; currently 50% done with current file(2.
Read 13699480 bytes; currently 60% done with current file(2.
Read 14299156 bytes; currently 70% done with current file(2.
Read 15249104 bytes; currently 80% done with current file(2.
Read 15474372 bytes; currently 90% done with current file(2.
INFO:: Found End of File Record
INFO:: [file:/Users/s7o/code.ornl.gov/ngmdaq/ngm/Software/NGMDaq/NGMModuleCore/NGMSIS3316RawReader.cc line:304 function:ReadNextSpillFromFile]
INFO:: Found SIS Run Header of version 857079809 [file:/Users/s7o/code.ornl.gov/ngmdaq/ngm/Software/NGMDaq/NGMModuleCore/NGMSIS3316RawReader.cc line:279 function:OpenRawBinaryFile]
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Read 13742296 bytes; currently 10% done with current file(3.
Read 12030012 bytes; currently 20% done with current file(3.
Read 12747744 bytes; currently 30% done with current file(3.
Read 14292500 bytes; currently 40% done with current file(3.
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Read 13604092 bytes; currently 50% done with current file(3.
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Read 15264084 bytes; currently 60% done with current file(3.
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Read 15402672 bytes; currently 70% done with current file(3.
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Read 18073224 bytes; currently 80% done with current file(3.
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Re-entrance prevented in NGMSpyServ::CheckForRequests()
Read 14025436 bytes; currently 90% done with current file(3.