aolabNeuro / brain-python-interface

Other
4 stars 2 forks source link

ecube recordings not being stopped (probably when an error occurs) #61

Closed leoscholl closed 3 years ago

leoscholl commented 3 years ago

Excerpt from the log file on the ecube:

[2021-04-30 11:26:40.290] [client] [info] Using UDP data streaming (port 49576, size 1500). [2021-04-30 11:26:40.294] [client] [info] Connected to 'ecube-8ef7.mshome.net' successfully. [2021-04-30 11:26:40.337] [hub] [info] Enabled recording in 300.0 s chunks to 'D:/' [2021-04-30 11:27:22.475] [client] [info] Using UDP data streaming (port 49576, size 1500). [2021-04-30 11:27:22.478] [client] [info] Connected to 'ecube-8ef7.mshome.net' successfully. [2021-04-30 11:27:22.522] [hub] [info] Enabled recording in 300.0 s chunks to 'D:/' [2021-04-30 11:27:34.036] [connection] [info] Opened TCP Connection with '10.155.205.164' [2021-04-30 11:28:11.224] [server] [info] Session '2021-04-30_BMI3D_te1503' was created. [2021-04-30 11:28:11.294] [client] [info] Started analog panel streaming. [2021-04-30 11:28:11.297] [client] [info] Started digital panel streaming. [2021-04-30 11:28:11.361] [writer] [info] Started 32 channels of AnalogPanel recordings in: D:/2021-04-30_BMI3D_te1503\AnalogPanel_32_Channels_int16_2021-04-30_11-28-11 [2021-04-30 11:28:11.365] [writer] [info] Started 64 channels of DigitalPanel recordings in: D:/2021-04-30_BMI3D_te1503\DigitalPanel_64_Channels_bool_masked_uint64_2021-04-30_11-28-11 [2021-04-30 11:28:11.366] [server] [info] Recording for session '2021-04-30_BMI3D_te1503' started. [2021-04-30 11:28:11.367] [server] [info] Session '2021-04-30_BMI3D_te1503' was closed. [2021-04-30 11:31:26.092] [connection] [warning] TCP receive from '10.155.205.164' failed: End of file [2021-04-30 11:31:26.093] [connection] [info] Closed TCP Connection with '10.155.205.164' [2021-04-30 11:31:31.521] [connection] [info] Opened TCP Connection with '10.155.205.164' [2021-04-30 11:33:12.335] [writer] [info] Started new chunk: D:/2021-04-30_BMI3D_te1503\AnalogPanel_32_Channels_int16_2021-04-30_11-33-12 [2021-04-30 11:33:12.343] [writer] [info] Started new chunk: D:/2021-04-30_BMI3D_te1503\DigitalPanel_64_Channels_bool_masked_uint64_2021-04-30_11-33-12 [2021-04-30 11:34:25.105] [connection] [warning] TCP receive from '10.155.205.164' failed: End of file [2021-04-30 11:34:25.105] [connection] [info] Closed TCP Connection with '10.155.205.164' [2021-04-30 11:36:17.936] [connection] [info] Opened TCP Connection with '10.155.205.164' [2021-04-30 11:37:55.629] [server] [info] Session '2021-04-30_BMI3D_te1506' was created. [2021-04-30 11:37:55.710] [writer] [info] Started 32 channels of AnalogPanel recordings in: D:/2021-04-30_BMI3D_te1506\AnalogPanel_32_Channels_int16_2021-04-30_11-37-55 [2021-04-30 11:37:55.714] [writer] [info] Started 64 channels of DigitalPanel recordings in: D:/2021-04-30_BMI3D_te1506\DigitalPanel_64_Channels_bool_masked_uint64_2021-04-30_11-37-55 [2021-04-30 11:37:55.714] [server] [info] Recording for session '2021-04-30_BMI3D_te1506' started. [2021-04-30 11:37:55.716] [server] [info] Session '2021-04-30_BMI3D_te1506' was closed. [2021-04-30 11:38:12.332] [writer] [info] Started new chunk: D:/2021-04-30_BMI3D_te1503\AnalogPanel_32_Channels_int16_2021-04-30_11-38-12 [2021-04-30 11:38:12.341] [writer] [info] Started new chunk: D:/2021-04-30_BMI3D_te1503\DigitalPanel_64_Channels_bool_masked_uint64_2021-04-30_11-38-12 [2021-04-30 11:42:12.312] [server] [info] Session '2021-04-30_BMI3D_te1506' was opened. [2021-04-30 11:42:12.588] [writer] [info] End of buffer reached. [2021-04-30 11:42:12.588] [writer] [info] Finished last chunk: D:/2021-04-30_BMI3D_te1506\AnalogPanel_32_Channels_int16_2021-04-30_11-37-55 [2021-04-30 11:42:12.606] [writer] [info] End of buffer reached. [2021-04-30 11:42:12.606] [writer] [info] Finished last chunk: D:/2021-04-30_BMI3D_te1506\DigitalPanel_64_Channels_bool_masked_uint64_2021-04-30_11-37-55 [2021-04-30 11:42:12.607] [server] [info] Recording for session '2021-04-30_BMI3D_te1506' stopped. [2021-04-30 11:42:12.607] [server] [info] Session '2021-04-30_BMI3D_te1506' was destroyed. [2021-04-30 11:42:35.931] [server] [info] Session '2021-04-30_BMI3D_te1507' was created.

... etc... 1503 is still open much later ...

[2021-04-30 12:08:12.340] [writer] [info] Started new chunk: D:/2021-04-30_BMI3D_te1503\AnalogPanel_32_Channels_int16_2021-04-30_12-08-12 [2021-04-30 12:13:12.338] [writer] [info] Started new chunk: D:/2021-04-30_BMI3D_te1503\AnalogPanel_32_Channels_int16_2021-04-30_12-13-12 [2021-04-30 12:13:12.361] [writer] [info] Started new chunk: D:/2021-04-30_BMI3D_te1503\DigitalPanel_64_Channels_bool_masked_uint64_2021-04-30_12-13-12 [2021-04-30 12:18:12.340] [writer] [info] Started new chunk: D:/2021-04-30_BMI3D_te1503\AnalogPanel_32_Channels_int16_2021-04-30_12-18-12 [2021-04-30 12:18:12.356] [writer] [info] Started new chunk: D:/2021-04-30_BMI3D_te1503\DigitalPanel_64_Channels_bool_masked_uint64_2021-04-30_12-18-12

leoscholl commented 3 years ago

added try/except in ecube_features.RecordECube.run() to stop the recording if any errors occur -- 3a2cb0d06ae0541e44df91ecfd97b8166a1ed177