psi46 / pxar

Life is too short for perfection
15 stars 46 forks source link

Requested to read 1b, but read 0b - 1b missing! #408

Closed jstupak closed 8 years ago

jstupak commented 8 years ago

When launching pXar via elComandante, I somewhat frequently get the following error:

[12:38:05.951] INFO: * Welcome to pxar [12:38:05.951] INFO: no rootlogon.C found, live with the defaults provided [12:38:05.951] INFO: pxar: reading config parameters from /home/fnalpix1/allTestResults/P-A-3-13_ElComandanteTest_2015-09-28_09h56m_1443452188//006_IV_p17//configParameters.dat [12:38:05.951] INFO: pxar: dumping results into /home/fnalpix1/allTestResults/P-A-3-13_ElComandanteTest_2015-09-28_09h56m_1443452188//006_IV_p17//IV.root logfile = /home/fnalpix1/allTestResults/P-A-3-13_ElComandanteTest_2015-09-28_09h56m_1443452188//006_IV_p17//IV.log [12:38:05.988] INFO: \ Welcome to pxar [12:38:05.988] INFO: \ Today: 2015/09/28 [12:38:05.994] INFO: * Version: aec3-dirty [12:38:05.994] INFO: readRocDacs: /home/fnalpix1/allTestResults/P-A-3-13_ElComandanteTest_2015-09-28_09h56m_1443452188//006_IV_p17//dacParameters_C0.dat .. /home/fnalpix1/allTestResults/P-A-3-13_ElComandanteTest_2015-09-28_09h56m_1443452188//006_IV_p17//dacParameters_C15.dat [12:38:05.995] INFO: readTbmDacs: /home/fnalpix1/allTestResults/P-A-3-13_ElComandanteTest_2015-09-28_09h56m_1443452188//006_IV_p17//tbmParameters_C0a.dat .. /home/fnalpix1/allTestResults/P-A-3-13_ElComandanteTest_2015-09-28_09h56m_1443452188//006_IV_p17//tbmParameters_C0b.dat [12:38:05.995] INFO: readMaskFile: /home/fnalpix1/allTestResults/P-A-3-13_ElComandanteTest_2015-09-28_09h56m_1443452188//006_IV_p17//defaultMaskFile.dat [12:38:05.995] INFO: readTrimFile: /home/fnalpix1/allTestResults/P-A-3-13_ElComandanteTest_2015-09-28_09h56m_1443452188//006_IV_p17//trimParameters_C0.dat .. /home/fnalpix1/allTestResults/P-A-3-13_ElComandanteTest_2015-09-28_09h56m_1443452188//006_IV_p17//trimParameters_C15.dat [12:38:06.070] INFO: clk: 4 [12:38:06.070] INFO: ctr: 4 [12:38:06.070] INFO: sda: 19 [12:38:06.070] INFO: tin: 9 [12:38:06.070] INFO: level: 15 [12:38:06.070] INFO: triggerdelay: 0 [12:38:06.070] QUIET: Instanciating API for pxar prod-11 [12:38:06.070] INFO: Log level: INFO [12:38:06.083] INFO: Found DTB DTB_WRPPWX [12:40:36.093] CRITICAL: <USBInterface.libftd2xx.cc/FillBuffer:L266> Requested to read 1b, but read 0b - 1b missing! psi46@TB2 >> pxar caught an internal exception: Read from USB timed out.

The exact command used by elComandante to launch pXar was:

../..//pxar/bin/pXar -d /home/fnalpix1/allTestResults/P-A-3-13_ElComandanteTest_2015-09-28_09h56m_1443452188//007_IV_p17/ -r IV.root

This error occurred repeatedly until the DTB was powercycled and USB unplugged/re-plugged. But I have also seen it occur intermittently.

Any idea whats going on here, or how to avoid it? Thanks!

simonspa commented 8 years ago

This is a very low-level problem in the USB communication. For us it helped to exchange the USB cable in one case, other than that I have no solution to this.