-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
Hi, I found one station not capturing due to a crash in BufferedCapture. The last log lines are:
2025/10/02 01:39:43-INFO-BufferedCapture-line:1721 - Grabbing a new block of 256 frames...
2025/10/02 01:39:43-DEBUG-Compression-line:299 - Compressing frame block with start time at: 1759369173.3515916
2025/10/02 01:39:45-DEBUG-Compression-line:320 - Compression time: 1.605 s
2025/10/02 01:39:45-DEBUG-Compression-line:327 - Saving time: 0.155 s
2025/10/02 01:39:45-DEBUG-Compression-line:332 - Saving live jpg
2025/10/02 01:39:45-INFO-DetectionTools-line:74 - Loaded mask: /root/RMS_data/config/BR001Z/mask.bmp
2025/10/02 01:39:45-INFO-DetectionTools-line:78 - Mask is all white, setting it to None.
2025/10/02 01:39:45-DEBUG-Compression-line:344 - Extractor started for: BR001Z_20251002_013933_351_0248832
2025/10/02 01:39:45-INFO-DetectStarsAndMeteors-line:204 - Running detection on file: FF_BR001Z_20251002_013933_351_0248832.fits
2025/10/02 01:39:45-INFO-DetectionTools-line:78 - Mask is all white, setting it to None.
2025/10/02 01:39:45-INFO-DetectionTools-line:74 - Loaded mask: /root/RMS_data/config/BR001Z/mask.bmp
2025/10/02 01:39:45-DEBUG-VideoExtraction-line:289 - [BR001Z_20251002_013933_351_0248832] nothing found, not extracting anything 1
2025/10/02 01:39:45-DEBUG-VideoExtraction-line:285 - [BR001Z_20251002_013933_351_0248832] time for thresholding and subsampling: 0.12582921981811523s
2025/10/02 01:39:45-INFO-Compression-line:357 - Added file for detection: FF_BR001Z_20251002_013933_351_0248832.fits
2025/10/02 01:39:45-INFO-ExtractStars-line:348 - extracted 0 stars from FF_BR001Z_20251002_013933_351_0248832.fits
2025/10/02 01:39:45-INFO-DetectStarsAndMeteors-line:231 - Detected stars: 0
2025/10/02 01:39:54-ERROR-BufferedCapture-line:1582 - Error in capture process: 'NoneType' object is not subscriptable
2025/10/02 01:39:54-DEBUG-BufferedCapture-line:1583 - ['Traceback (most recent call last):\n', ' File "/root/source/RMS/RMS/BufferedCapture.py", line 1579, in run\n self.captureFrames()\n', ' File "/root/source/RMS/RMS/BufferedCapture.py", line 1733, in captureFrames\n ret, frame, frame_timestamp = self.read(check_color=save_this_frame)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', ' File "/root/source/RMS/RMS/BufferedCapture.py", line 547, in read\n self.convert_to_gray = self.isGrayscale(frame)\n ^^^^^^^^^^^^^^^^^^^^^^^\n', ' File "/root/source/RMS/RMS/BufferedCapture.py", line 713, in isGrayscale\n sampled = frame[::stride, ::stride]\n ~~~~~^^^^^^^^^^^^^^^^^^^^\n', "TypeError: 'NoneType' object is not subscriptable\n"]
2025/10/02 01:39:54-INFO-BufferedCapture-line:1396 - OpenCV Video device released!
2025/10/02 01:56:02-INFO-EventMonitor-line:2152 - Next EventMonitor run : 02:26:02 UTC 30.0 minutes from now
2025/10/02 02:26:02-INFO-EventMonitor-line:2152 - Next EventMonitor run : 02:56:02 UTC 30.0 minutes from now
2025/10/02 02:56:03-INFO-EventMonitor-line:1152 - Added event at 20251001_151217 to the database
2025/10/02 02:56:03-INFO-EventMonitor-line:1880 - Checks on trajectories for event at 20251001_151217
2025/10/02 02:56:03-INFO-EventMonitor-line:1890 - No files for event - marking 20251001_151217 as processed
2025/10/02 02:56:04-INFO-EventMonitor-line:1178 - Event at 20251001_151217 marked as processed
2025/10/02 02:56:04-INFO-EventMonitor-line:2038 - 1 event was processed, EventMonitor work completed
2025/10/02 02:56:04-INFO-EventMonitor-line:2152 - Next EventMonitor run : 03:26:04 UTC 30.0 minutes from now
2025/10/02 03:26:05-INFO-EventMonitor-line:2152 - Next EventMonitor run : 03:56:05 UTC 30.0 minutes from now
2025/10/02 03:56:06-INFO-EventMonitor-line:2152 - Next EventMonitor run : 04:26:06 UTC 30.0 minutes from now
2025/10/02 04:26:07-INFO-EventMonitor-line:2152 - Next EventMonitor run : 04:56:07 UTC 30.0 minutes from now
I suspect that problem is around line 541. There it executes ret, frame = self.device.read() that probably returned a frame not initialized that's passed to self.convert_to_gray = self.isGrayscale(frame)
Metadata
Metadata
Assignees
Labels
No labels