title: Windows fatal exception: access violation \ Process finished with exit code -1073741819 (0xC0000005)
body: <p>I am trying to debug a Python program named 'RTSPbrute' using faulthandler and PyCharm.</p>
  <p><a href="https://gitlab.com/woolf/RTSPbrute/" rel="nofollow noreferrer">https://gitlab.com/woolf/RTSPbrute/</a></p>
  <p>I receive the error message...</p>
  <blockquote>
  <p>Windows fatal exception: access violation</p>
  </blockquote>
  <p>...using the command prompt, and...</p>
  <blockquote>
  <p>Process finished with exit code -1073741819 (0xC0000005)</p>
  </blockquote>
  <p>...from PyCharm.</p>
  <p>I already have logged the Queue from different code locations, where the error is apparently.
  Logged the threads...almost everything that is printable.
  Debugging step by step for days using Pycharm. Unfortunately I can't find the bug(s).
  Strangely enough, the error message keeps appearing at different times, even though i use the same input. Which makes me think the error is Windows or Python related as i often read.
  there is a lot of information about the exit code -1073741819 (0xC0000005), but i have not found a working one.</p>
  <p>Does anyone know a solution, missing package, maybe better debugging techniques?</p>
  <p>The faulthandler output.</p>
  <pre><code>
  Thread 0x00002274 (most recent call first):
    File &quot;C:\Users\Update\AppData\Roaming\Python\Python310\site-packages\colorama\win32.py&quot;, line 105 in GetConsoleScreenBufferInfo
    File &quot;C:\Users\Update\AppData\Roaming\Python\Python310\site-packages\colorama\winterm.py&quot;, line 150 in erase_line
    File &quot;C:\Users\Update\AppData\Roaming\Python\Python310\site-packages\colorama\ansitowin32.py&quot;, line 235 in call_win32
    File &quot;C:\Users\Update\AppData\Roaming\Python\Python310\site-packages\colorama\ansitowin32.py&quot;, line 202 in convert_ansi
    File &quot;C:\Users\Update\AppData\Roaming\Python\Python310\site-packages\colorama\ansitowin32.py&quot;, line 188 in write_and_convert
    File &quot;C:\Users\Update\AppData\Roaming\Python\Python310\site-packages\colorama\ansitowin32.py&quot;, line 162 in write
    File &quot;C:\Users\Update\AppData\Roaming\Python\Python310\site-packages\colorama\ansitowin32.py&quot;, line 41 in write
    File &quot;C:\Users\Update\AppData\Roaming\Python\Python310\site-packages\rich\console.py&quot;, line 1932 in _check_buffer
    File &quot;C:\Users\Update\AppData\Roaming\Python\Python310\site-packages\rich\console.py&quot;, line 800 in _exit_buffer
    File &quot;C:\Users\Update\AppData\Roaming\Python\Python310\site-packages\rich\console.py&quot;, line 842 in __exit__
    File &quot;C:\Users\Update\AppData\Roaming\Python\Python310\site-packages\rich\live.py&quot;, line 231 in refresh
    File &quot;C:\Users\Update\AppData\Roaming\Python\Python310\site-packages\rich\live.py&quot;, line 32 in run
    File &quot;C:\Program Files\Python310\lib\threading.py&quot;, line 1009 in _bootstrap_inner
    File &quot;C:\Program Files\Python310\lib\threading.py&quot;, line 966 in _bootstrap
  
  Thread 0x0000240c (most recent call first):
    File &quot;C:\Program Files\Python310\lib\threading.py&quot;, line 320 in wait
    File &quot;C:\Program Files\Python310\lib\queue.py&quot;, line 171 in get
    File &quot;C:\Users\Update\AppData\Roaming\Python\Python310\site-packages\rtspbrute\modules\worker.py&quot;, line 50 in screenshot_targets
    File &quot;C:\Program Files\Python310\lib\threading.py&quot;, line 946 in run
    File &quot;C:\Program Files\Python310\lib\threading.py&quot;, line 1009 in _bootstrap_inner
    File &quot;C:\Program Files\Python310\lib\threading.py&quot;, line 966 in _bootstrap
  
  Thread 0x000025e4 (most recent call first):
    File &quot;C:\Users\Update\AppData\Roaming\Python\Python310\site-packages\rtspbrute\modules\attack.py&quot;, line 137 in get_screenshot
    File &quot;C:\Users\Update\AppData\Roaming\Python\Python310\site-packages\rtspbrute\modules\attack.py&quot;, line 186 in get_screenshot
    File &quot;C:\Users\Update\AppData\Roaming\Python\Python310\site-packages\rtspbrute\modules\worker.py&quot;, line 54 in screenshot_targets
    File &quot;C:\Program Files\Python310\lib\threading.py&quot;, line 946 in run
    File &quot;C:\Program Files\Python310\lib\threading.py&quot;, line 1009 in _bootstrap_inner
    File &quot;C:\Program Files\Python310\lib\threading.py&quot;, line 966 in _bootstrap
  
  Thread 0x0000395c (most recent call first):
    File &quot;C:\Program Files\Python310\lib\threading.py&quot;, line 320 in wait
    File &quot;C:\Program Files\Python310\lib\queue.py&quot;, line 171 in get
    File &quot;C:\Users\Update\AppData\Roaming\Python\Python310\site-packages\rtspbrute\modules\worker.py&quot;, line 50 in screenshot_targets
    File &quot;C:\Program Files\Python310\lib\threading.py&quot;, line 946 in run
    File &quot;C:\Program Files\Python310\lib\threading.py&quot;, line 1009 in _bootstrap_inner
    File &quot;C:\Program Files\Python310\lib\threading.py&quot;, line 966 in _bootstrap
    ...
  </code></pre>
  <blockquote>
  <p>Python 3.10.1 (tags/v3.10.1:2cd268a, Dec  6 2021, 19:10:37) [MSC v.1929 64 bit (AMD64)] on win32</p>
  </blockquote>