Giter VIP home page Giter VIP logo

screentrail's Issues

IndexError: list index out of range

VID 1: Creating video writer for display in output/2023-05-02_16-34-07_D1.mp4...
Display 0: 121 frames written.
Got monitor 0 / {'left': 0, 'top': 0, 'width': 3008, 'height': 1692}...
Got monitor 1 / {'left': 614, 'top': 1692, 'width': 1728, 'height': 1117}...
VID 0: Creating video writer for display in output/2023-05-02_16-44-02_D0.mp4...
Display 1: 120 frames written.
Got monitor 0 / {'left': 0, 'top': 0, 'width': 3008, 'height': 1692}...
Got monitor 1 / {'left': 614, 'top': 1692, 'width': 1728, 'height': 1117}...
VID 1: Creating video writer for display in output/2023-05-02_16-44-07_D1.mp4...
Screen configuration changed
Screen configuration changed
Refreshing video writers...
Releasing video writers...
Display 0: 67 frames written.
Display 1: 66 frames written.
Got monitor 0 / {'left': 0, 'top': 0, 'width': 1728, 'height': 1117}...
VID 0: Creating video writer for display in output/2023-05-02_16-49-36_D0.mp4...
Screen configuration changed
Refreshing video writers...
Releasing video writers...
Display 0: 1 frames written.
Exception in thread Thread-1 (timer_thread):
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/opt/homebrew/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "..././main.py", line 96, in timer_thread
    NSRunLoop.currentRunLoop().run()
  File "..././main.py", line 114, in timer_callback_
    if (datetime.now() - self.video_writer_start_times[display_num]).seconds >= SCREENSHOT_SAVE_INTERVAL:
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
IndexError: list index out of range
Releasing video writers...

[mpeg4 @ 0x1161c2200] Segmentation Fault

Sometimes the script crashes with:

2023-05-24 16:14:25,178 - DEBUG - Capturing screenshot...
2023-05-24 16:14:30,178 - DEBUG - Capturing screenshot...
2023-05-24 16:14:35,176 - DEBUG - Capturing screenshot...
2023-05-24 16:14:40,179 - DEBUG - Capturing screenshot...
2023-05-24 16:14:45,178 - DEBUG - Capturing screenshot...
2023-05-24 16:14:45,302 - INFO - Pausing for 5 minutes...
2023-05-24 16:14:45,303 - INFO - Starting countdown timer...
2023-05-24 16:14:45,303 - INFO - Releasing video writers...
2023-05-24 16:14:45,303 - INFO - Display 0: 9 frames written.
2023-05-24 16:14:45,306 - INFO - Display 1: 8 frames written.
[mpeg4 @ 0x1161c2200] Invalid pts (12) <= last (12)
[1]  + 21856 segmentation fault  python3 ./main.py

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.