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

ResizeBuffers failed with error code 0x80070057 in function D3D12_CreateWindowSizeDependentResources #6355

Closed
ivenstone opened this issue Oct 8, 2022 · 7 comments
Labels
waiting Waiting on user response

Comments

@ivenstone
Copy link

D3D12 is failed, whie D3D11 is running fine.

@slouken
Copy link
Collaborator

slouken commented Oct 8, 2022

Can you provide an example that we can use to reproduce this?

@slouken slouken added the waiting Waiting on user response label Oct 8, 2022
@ivenstone
Copy link
Author

Just unzip the attach file.
In the command line run "ffplay_d3d12_fail.exe your_video_file.mp4".
Thanks!

@ivenstone
Copy link
Author

the attach file is rel.zip.

@ivenstone
Copy link
Author

Sorry cannot upload the attach file.
Or, you can download the code of ffmpeg.
http://www.ffmpeg.org/releases/ffmpeg-5.1.2.tar.xz
modify ffplay.c
renderer = SDL_CreateRenderer(window, 0, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
//direct3d12
renderer = SDL_CreateRenderer(window, 2, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);

in msys2 ./configure make ,
then you got the ffplay.exe. that can reporduce the issue.

@ivenstone
Copy link
Author

you can down the example from here https://pan.baidu.com/s/1ffZPVOByPRxFdJfdbMWerQ?pwd=7rn9
thanks!

@ivenstone
Copy link
Author

finally the attach file is uploaded.
rel.zip

@slouken
Copy link
Collaborator

slouken commented Oct 9, 2022

Thanks for the repro case, I have a fix for this.

@slouken slouken closed this as completed in f99fc32 Oct 9, 2022
sezero pushed a commit that referenced this issue Oct 24, 2022
Fixes #6355
(cherry-picked from commit f99fc32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting Waiting on user response
Projects
None yet
Development

No branches or pull requests

2 participants