Skip to content

Instantly share code, notes, and snippets.

@ggggggggg
Created March 7, 2014 22:18
Show Gist options
  • Save ggggggggg/9421401 to your computer and use it in GitHub Desktop.
Save ggggggggg/9421401 to your computer and use it in GitHub Desktop.
frame bit error causing client crash logs
dfbSetSettlingTime to settling time = 29, number of samples = 1
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (8, 0))
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
/home/pcuser/trunk/python/autotune/autoTune.py in <module>()
837 a.logSquidTESStatus()
838 #a.sweepSettlingTimeForErrorSq2()
--> 839 a.sweepSettlingTimeBackwardsForFb()
840 #avgError, settlingTimeRange = a.sweepSettlingTimeForErrorSq2()
841
/home/pcuser/trunk/python/autotune/autoTune.py in sweepSettlingTimeBackwardsForFb(self)
565 for j,settlingTime in enumerate(settlingTimeRange):
566 self.dfbSetSettlingTime(settlingTime, numberOfSamples)
--> 567 data = self.getNewData(delaySeconds = 0.001, minimumNumPoints = self.numPointsFromServer)
568 avgFb[:,:,j] = numpy.mean(data[:,:,:,1],axis=-1)
569
/usr/local/lib/python2.6/dist-packages/easyClient.pyc in getNewData(self, delaySeconds, minimumNumPoints, exactNumPoints, sendMode)
105 break
106 if j >=99:
--> 107 raise ValueError("Server won't give me any data")
108 self.stop_streaming() # i tried just sleeping here and it crashed a lot, so the starting and stopping seems important, I think maybe it empties a buffer or something
109 time.sleep(0.005)
ValueError: Server won't give me any data
WARNING: Failure executing file: <autoTune.py>
In [15]:
No Frame bit where there should be one at (frame 943, pixel 0). ## FIRST FRAME BIT ERROR
150847 20100e65
150848 318c105f
150849 2ce01080
150850 2a78105b
150851 357c117d
150852 2ca40ff9
150853 332011de
150854 25980cd4
150855 26b41159
150856 22f00f46
150857 29600fce
150858 39140f8a
150859 2b3c102a
150860 31c40f51
150861 160810b6
150862 19900e5c
150863 2cac11b1
150864 320c0ce4
150865 2de40f52
150866 22540c0d
150867 1fc00d65
150868 35380cbb
150869 1aa0109c
150870 22b00f4c
150871 2458113c
150872 2f5809ed
150873 1b440cea
150874 2cd4093a
150875 2c300a20
150876 2fa4097e
150877 1ad80d85
150878 1eb40d4f
150879 17a011c5
** 150880 186001ad
150881 1ed8023d
150882 27dc01b6
150883 1cd801e7
150884 1be001d8
150885 1cf40297
150886 154003e3
150887 17dc0816
150888 2400ffdc
150889 2684ffdf
150890 26a0ffe4
150891 10fcffdf
150892 150cffd9
150893 1368ffd7
150894 0db0006d
150895 0dd80092
150896 0b0cff6c
150897 254cff70
150898 2570ff8e
150899 1408ff8f
150900 16d8ff82
150901 1560ff5a
150902 25d0ffb1
150903 2654ff6f
150904 26c4ffdb
150905 1ce0ffbd
150906 2668ffea
150907 1dccffef
150908 20a8ffd9
150909 18dcffc9
150910 0bf0fffc
150911 0f5cfff3
150912 2c45ffc8
Error with handle data!
stopping card...
running init...
Initializing NDFB PCIe Card...
Created lancero_t object
Created adapter_t object
Created collector_t object
done!
adapter_wait returns 0
Analyzing MUX Stream...
Raw 32-bit words:
0x0d5c0014 0x2320000b 0x21780024 0x0f000007
0x12f0fffe 0x0fa40029 0x12e00002 0x21480012
0x1e48fffb 0x1990ffe8 0x16d00002 0x1bdcfff5
0x1ec8fff5 0x2c4cffeb 0x111c001d 0x2024000b
0x1e38ffdc 0x1f7cfff1 0x20040000 0x10ccfffb
0x1c880001 0x1a980010 0x2008fffe 0x210c0003
0x2344fff1 0x1fb4001f 0x2368fff9 0x13c00006
0x139c001b 0x22780014 0x28480005 0x2698000b
0x0df0fff5 0x1fe0001a 0x22e80000 0x15e8fffc
0x24380022 0x1068ffec 0x26cc0017 0x25e00001
Frame bits:
# 00000000 00000000 00000000 00000000
# 00000000 00000000 00000000 00000000
# 00000000 00000000 00000000 00000000
# 00000000 00000000 00000000 00000000
# 11111111 00000000 00000000 00000000
# 00000000 00000000 00000000 00000000
# 00000000 00000000 00000000 00000000
# 00000000 00000000 00000000 00000000
Number of Columns: 8
Bytes available: 1056128
Number of Pixels: 160
Frame size: 640
Number of Rows: 20
Frames per Lancero threshold: 1638
Time to return from adapter_wait: 0.021115
Data found in adapter_available: 1050240
Estimated bandwidth necessary for a client to keep up: 49.739MB/s
Calculated lsync value: 32 clock ticks / Pixel
Time to calculate buffer stuff:0.000158072 sec
done!
Initializing Server...
Version: 3.0.2
Data Streams: 324
Line Period (caluculated): 32
Sample Rate: 78125 Hz
Delta T: 12.8 uSeconds
Time base: 07 Mar 2014, 22:02:02 GMT
1394229722354515 microseconds since the epoch.
Setting up Interupts...
Registering SIGINT
Ignoring 160 values at DAQ start to align on frames.
write_index = 0x0012f400, read_index = 0x00000700, available = 0x0012ee00, max_filled = 0x0012ee80, threshold = 0x00100000
status = 0x00000005 THRES RUN
done!
-------March 07, 2014, 22:04:57 GMT-----(1 clients, 13 FB err) ### RECOVERED FROM FIRST ERROR, NOTE 1 CLIENT
-------March 07, 2014, 22:08:27 GMT-----(1 clients, 13 FB err) ### CLIENT CODE CONTINUES EXECUTING
Fri Mar 7 15:08:29 2014
Received connection from localhost
No Frame bit where there should be one at (frame 967, pixel 0). ### SECOND FRAME BIT ERROR
154687 00001a5d
154688 000010a5
154689 00001a85
154690 00001884
154691 00001cea
154692 000011fe
154693 00000ae5
154694 000012cf
154695 000019f8
154696 000010dd
154697 00001a73
154698 00001867
154699 00001cda
154700 00001224
154701 00000ad6
154702 00001310
154703 00001a6c
154704 000010c1
154705 00001a92
154706 0000186e
154707 00001cca
154708 00001229
154709 00000ad5
154710 000012f4
154711 00001a62
154712 000010a3
154713 00001a89
154714 0000188a
154715 00001ccc
154716 000011ef
154717 00000ae7
154718 00001318
154719 00001a65
** 154720 000010a3
154721 00001a5f
154722 0000188f
154723 00001cdf
154724 000011eb
154725 00000adb
154726 00001304
154727 00001a5c
154728 0000107d
154729 00001a65
154730 00001877
154731 00001ce8
154732 00001203
154733 00000ad2
154734 000012e5
154735 00001a31
154736 000010de
154737 00001a85
154738 00001872
154739 00001ce3
154740 000011fd
154741 00000ae0
154742 000012f8
154743 00001a6a
154744 00001072
154745 00001a64
154746 0000185d
154747 00001ce0
154748 000011e0
154749 00000ae3
154750 0000131a
154751 00001a56
154752 000010b5
Error with handle data!
stopping card...
running init...
Initializing NDFB PCIe Card...
Created lancero_t object
Created adapter_t object
Created collector_t object
done!
adapter_wait returns 0
Analyzing MUX Stream...
Raw 32-bit words:
0x00001e28 0x00001ab5 0x00001886 0x00000e1e
0x00001c4e 0x0000205c 0x00002212 0x0000212a
0x00001f45 0x00001807 0x00001c3d 0x0000165d
0x00001e0f 0x000020bb 0x0000226a 0x000020e1
0x00011d87 0x00011e08 0x00011c67 0x00010cf1
0x00011f30 0x0001204b 0x000122f5 0x000120f6
0x00001d29 0x000018bf 0x00001639 0x00000dfb
0x00001d2c 0x00001465 0x000020f4 0x00001ab6
0x00001c79 0x00001d96 0x00001a52 0x000011a1
0x00001f96 0x00000adb 0x000021da 0x000021b9
Frame bits:
# 00000000 00000000 11111111 00000000
# 00000000 00000000 00000000 00000000
# 00000000 00000000 00000000 00000000
# 00000000 00000000 00000000 00000000
# 00000000 00000000 00000000 00000000
# 00000000 00000000 11111111 00000000
# 00000000 00000000 00000000 00000000
# 00000000 00000000 00000000 00000000
Number of Columns: 8
Bytes available: 1055232
Number of Pixels: 160
Frame size: 640
Number of Rows: 20
Frames per Lancero threshold: 1638
Time to return from adapter_wait: 0.021108
Data found in adapter_available: 1049984
Estimated bandwidth necessary for a client to keep up: 49.7434MB/s
Calculated lsync value: 32 clock ticks / Pixel
Time to calculate buffer stuff:0.000130177 sec
done!
Initializing Server...
Version: 3.0.2
Data Streams: 324
Line Period (caluculated): 32
Sample Rate: 78125 Hz
Delta T: 12.8 uSeconds
Time base: 07 Mar 2014, 22:08:34 GMT
1394230114744874 microseconds since the epoch.
Setting up Interupts...
Registering SIGINT
Ignoring 160 values at DAQ start to align on frames.
write_index = 0x0011da80, read_index = 0x00000540, available = 0x0011d640, max_filled = 0x0011d740, threshold = 0x00100000
status = 0x00000005 THRES RUN
### SHOULD IT HAVE RECOVERED BY HERE?
done!
No Frame bit where there should be one at (frame 1389, pixel 0). ### THIRD FRAME BIT ERROR
222207 2638046d
222208 28e00301
222209 266803b3
222210 187c02d7
222211 156c0310
222212 2b980305
222213 151003f7
222214 18a403eb
222215 1e980452
222216 284c0241
222217 160c02fc
222218 25480214
222219 24f0023e
222220 28c40234
222221 15e00321
222222 1564030f
222223 11a0046d
222224 17180053
222225 1dd80058
222226 2690004c
222227 1b680053
222228 1a840054
222229 1bf40070
222230 125000c1
222231 148c0175
222232 242c0005
222233 2688fff5
222234 269cfffc
222235 1140fff9
222236 1534fff4
222237 1360fff2
222238 0d68000f
222239 0da80011
** 222240 0b68ffeb
222241 259cffde
222242 25ccffed
222243 1468ffe5
222244 171cffe4
222245 1598ffc2
222246 25f8ffed
222247 2690ffe6
222248 26f8fffb
222249 1cf8fff6
222250 2674fffc
222251 1ddcfff6
222252 208cfff4
222253 18dcfff3
222254 0bccfff5
222255 0f54ffec
222256 22c9fff1
222257 1701fff9
222258 2a99fffd
222259 18edfffe
222260 2a9dfff7
222261 2a55ffff
222262 29f1fffa
222263 25610000
222264 26acff3d
222265 2790ff36
222266 26f4ffa2
222267 1588ff94
222268 1ef0ff7c
222269 0dc0ff0c
222270 21b80008
222271 2068ff56
222272 2160ff7f
Error with handle data!
stopping card...
running init...
Initializing NDFB PCIe Card...
Created lancero_t object
Created adapter_t object
Created collector_t object
done!
-------March 07, 2014, 22:13:29 GMT-----(2 clients, 15 FB err) ### RECOVERED FROM THIRD FRAME BIT ERROR, NOTE 2 CLIENTS
### CLIENT CODE CRASHES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment