Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VP9 Hardware Acceleration Broken for Firefox and Edge #742

Open
pulsarclarinetokrabee opened this issue Apr 1, 2021 · 16 comments
Open

VP9 Hardware Acceleration Broken for Firefox and Edge #742

pulsarclarinetokrabee opened this issue Apr 1, 2021 · 16 comments
Labels
HW acceleration Hardware acceleration issues more info needed More information is needed to move forward Stalled work Progress stopped due to uncertainty

Comments

@pulsarclarinetokrabee
Copy link

This is an issue that has been persistent across many version of Windows 10 and Sandboxie for years but to my knowledge not investigated yet.

Short summary: VP9 video hardware acceleration reverts to software decoding for sites like Youtube when Firefox is sandboxed. The hardware is perfectly capable of utilizing hardware decoding once running without Sandboxie. Note, H264 is being properly processed with acceleration.

Current system:
Windows 10 - 20H2
Intel N5000 / UHD Graphics 605
Firefox 87.0
Sandboxie Classic 5.49.5

Steps taken to test for configuration impact on the issue so far:

  • Started with a fresh (portable) Firefox profile
  • Started with a fresh Sandbox with default settings
  • Gave direct access to all sandboxed processed for IPC
  • Gave full window access to all sandboxed processes
@xame-arch
Copy link

xame-arch commented Apr 19, 2021

Try on the computer that is not working to create a new sandbox with (right click - sandbox setup - resource access - add program - direct access - add program - full access - add program - registry access - add program - IPC access - add program - windows access) the program can be the browser or graphics drivers or both for Tor 32 bit, adding Open to this program helped me, maybe it will solve the problem in this case by creating logs.
I have a video to help with logging:
https://www.youtube.com/watch?v=wXFpo78712M

@DavidXanatos
Copy link
Member

is this still broken with 0.8.1 ?

@DavidXanatos DavidXanatos added the more info needed More information is needed to move forward label Jun 14, 2021
@pulsarclarinetokrabee
Copy link
Author

No change since the initial report with Classic 5.53.3 and the latest Firefox. However it doesn't seem isolated to Firefox as sandboxing Microsoft Edge also blocks VP9 acceleration support.

There seems to be a general problem with anything GPU related as websites that make use of WebGL are sluggish and low in performance while sandboxed.

@isaak654 isaak654 added the Firefox-related Issues with Firefox-based browsers label Jan 16, 2022
@isaak654 isaak654 changed the title VP9 Hardware Acceleration Broken for Firefox VP9 Hardware Acceleration Broken for Firefox and Edge Jan 16, 2022
@isaak654 isaak654 added HW acceleration Hardware acceleration issues and removed Firefox-related Issues with Firefox-based browsers labels Jan 16, 2022
@DavidXanatos
Copy link
Member

DavidXanatos commented Feb 1, 2022

this shoudl be fixed in the 1.0x lien of builds
if its stil happens for some program try
UseWin32kHooks=program.exe,y
and write here that its needed and or which program
for chrome and alike its on autoamtically

@pulsarclarinetokrabee
Copy link
Author

Tested inside a new Sandbox with 1.0.9 installed. Unfortunately still the same with either MS Edge or Firefox.

@isaak654 isaak654 reopened this Feb 2, 2022
@DavidXanatos
Copy link
Member

DavidXanatos commented Feb 2, 2022

even when you add
UseWin32kHooks=y
to the sandbox config?

@pulsarclarinetokrabee
Copy link
Author

Indeed, I had explicitly added this to make sure the option was enabled.

This is Sandboxed versus running without Sandboxie:
Sandboxed

Unsandboxed

@DavidXanatos
Copy link
Member

hmm... isee I'll take a look into it, the issue is that debuging siuch things in a VM is not so great as tehre the GPU is fake and many things defualt anyways to CPU rendering

@pulsarclarinetokrabee
Copy link
Author

Are there any kind of logs I could provide that would be useful?

@ghost
Copy link

ghost commented Feb 3, 2022

FF 91.5.1esr x64. First video starts 5-15 seconds after pressing play. Sometimes there is only black screen and it is not played at all. Restarting FF few times fixes it.

@DavidXanatos
Copy link
Member

DavidXanatos commented Feb 5, 2022

hmm... that might be more difficult than anticipated.

so you can get it to work if you

  1. remove UseRpcMgmtSetComTimeout=AppXDeploymentClient.dll,y from the Templates.ini
  2. open access to COM and disable use of RpcMgmtSetComTimeout in the advanced tab
  3. switch the box to compartment mode (reduced isoaltion)

then for me firefox's gpu acceleration for video playback starts working again.

please confirm.

@isaak654 isaak654 added Stalled work Progress stopped due to uncertainty and removed under investigation labels Apr 11, 2022
@pulsarclarinetokrabee
Copy link
Author

pulsarclarinetokrabee commented Jun 2, 2022

Unfortunately I am unable to complete those steps. If this method were to work would it be possible to implement it into future releases so this workaround isn't necessary?

@isaak654
Copy link
Collaborator

isaak654 commented Jun 2, 2022

UseRpcMgmtSetComTimeout=AppXDeploymentClient.dll,y is already turned off since Sandboxie v1.0.10 / 5.55.10:

removed UseRpcMgmtSetComTimeout=AppXDeploymentClient.dll,y used for Free Download Manager as it broke other things
-- only if you use Free Download Manager together with the setting RpcMgmtSetComTimeout=n in a sandbox, you have to add the line manually to your Sandboxie.ini

Regarding points 2 and 3 provided two comments ago, those options are already available in the Plus edition. You won't find them in Sandboxie Classic because the lead developer's goal is to encourage as many people as possible to adopt the Plus interface. However, they can be configured manually in the Sandboxie.ini configuration file.

@ghost
Copy link

ghost commented Jun 19, 2022

Guys what is the latest SBIE version which does not cause fallback to software decoding for Firefox and also which does not have black screen/spinning circle issue when we try to play any video file?

@ghost
Copy link

ghost commented Jul 19, 2022

Spinning circle for 30 seconds on YT and many other video websites.
Dropping to software playback mode.
Lags and not smooth playback
Videos refuse to play when paused and resumed.

image

@ghost
Copy link

ghost commented Oct 21, 2022

I gave up and switched to Edge for watching videos.
Firefox has issues with playing 1080p and 2x 480p videos on my hardware
Edge is able to handle 3x1080p with only a little lag when entering full screen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HW acceleration Hardware acceleration issues more info needed More information is needed to move forward Stalled work Progress stopped due to uncertainty
Projects
None yet
Development

No branches or pull requests

4 participants