beetbox / beetbox/audioread

WindowsError: [Error 5] Access is denied

Open
#56 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
538
Forks
112
PR merge metrics
No merged PRs in 30d

Description

I get this error from **ffedc.py**:

```
File "C:\Python27\lib\site-packages\audioread\ffdec.py", line 279, in __exit__
self.close()
File "C:\Python27\lib\site-packages\audioread\ffdec.py", line 263, in close
self.proc.kill()
File "C:\Python27\lib\subprocess.py", line 1002, in terminate
_subprocess.TerminateProcess(self._handle, 1)
WindowsError: [Error 5] Access is denied
```

I've been searching how to resolve it and found this on stackoverflow:
https://stackoverflow.com/questions/17076679/windowserror-access-is-denied-on-calling-process-terminate

But even trying this try-catch trick doesn't work when I modify **ffdec.py**.
Looks like issue might be related to this:
https://stackoverflow.com/questions/5573257/windowserror-error-5-access-is-denied-when-trying-to-kill-a-subprocess-pytho

But still don't know how to resolve. I tried running my code with admin privileges too and I have all the permissions to modify my file.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Windows failure in ffdec.py, focusing on __exit__ and close where self.proc.kill() calls subprocess termination. Compare the reported behavior with the linked Windows subprocess discussions and verify the result on Windows. Done means the decoder closes without raising Access denied.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.