screenpipe
screenpipe copied to clipboard
Vision Module in "Stale" Mode Due to Mismatched Monitor IDs
Description:
At app launch, the Vision module enters "stale" mode with the status frame: stale, audio: ok. Upon checking the logs, the following errors appear:
2024-09-27T10:47:16.683910Z ERROR screenpipe_vision::core: Failed to get monitor with id: 330083. Exiting continuous_capture.
2024-09-27T10:47:16.683956Z ERROR screenpipe_vision::core: Failed to get monitor with id: 20580179. Exiting continuous_capture.
In the app settings under the monitors section, I see:
79825613. \\.\DISPLAY1 (default) - 1920x1080
63768545. \\.\DISPLAY2 - 1920x1080
The monitor IDs in the logs don't match the ones detected in the settings, which seems to be causing the Vision module to go stale, as it can't use the detected monitors.
Steps to Reproduce:
- Launch the Screenpipe app on Windows 11.
- Close Screenpipe completely
- Disconnect and reconnect an HDMI cable for one of the monitors (I don't know if this step matters).
- Relaunch Screenpipe.
- Go to settings -> monitors, and notice one of the monitor IDs have changed.
- Click update to restart the Vision and Audio modules.
- Open the logs and observe errors related to monitor IDs.
- Check that the Vision module is in "stale" mode, failing on both screens due to mismatched monitor IDs.
Expected Behavior:
- The Vision module should be able to capture frames using the detected monitors.
- The monitor IDs in the logs should match the IDs of the detected screens, allowing the Vision module to function correctly.
Actual Behavior:
- The Vision module enters "stale" mode, failing to capture frames.
- The logs show errors for monitor IDs that do not exist in the list of detected displays.
Environment:
- App Version: 0.2.72
- OS: Windows 11
- Monitor Configuration: Dual monitors, both 1920x1080 resolution. One in HDMI.
I realized that even though only two screens show up in the list, Screenpipe is counting a total of four screens. I didn’t select the two screens I mentioned in my original issue, which I just noticed.
After selecting those two screens, the total reaches four, and the Vision module status changes to ok. However, we still see errors in the logs related to the screens that aren’t in the list but are included in the total count.
@meltiso one of the known issue is that when you have for example 2 monitors and disconnect one it will still show 2 instead of 1
this shouldn't affect the program, just one thread will fail to capture this missing monitor and rest of the program keep going
i will try to solve this soon
@louis030195 Didn't know it was an ongoing issue. Thanks! 😊