-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
Error: SDL failed to get a vertex buffer for this Direct3D 9 rendering batch #1441
Comments
Might be related to SDL 2.0.12. Try to replace |
I have encountered the same problem. How do we obtain the SDL2.dll file in the v1.12? |
I have the same issue:
As per @rom1v recommendation replaced |
Yes, same as @mrplumber, I have replaced the file, but still encounters the same error. |
OK. Do you encounter this error on scrcpy v1.13? If not, i'll have to bisect to find the culprit. Maybe something in #1408. |
@rom1v this the console output when I start v1.13:
|
Using the link: https://github.com/Genymobile/scrcpy/releases/download/v1.13/scrcpy-win64-v1.13.zip, I have still encountered the same error with v1.13,
|
OK, I bisected, Therefore, this is just due to a change in internal SDL logs that have been enabled. I will investigate and do not enable them all, but there is no change in behavior. |
@rom1v, When I switched to the former v1.12, I encountered much less keyboard and screen lag on the device. I was running minecraft on the phone and controlling the phone with the keyboard. Is the lag due to the vertex buffer? Also, on v1.12, I still encounter some lag. Is there any way to improve responsiveness? |
If you switch back and forth between v1.12 and v1.14, do you actually always see a difference?
Is the lag on the device or on the computer? If you record with
Reduce definition:
|
@rom1v Copying the SDL2.dll file from v1.12 into the v1.14 did not alleviate the problem. Rather, I had to run the older v1.12 version entirely by itself. The lag is on both the phone and the computer. I haven't tried using If I use the phone screen instead, the movement on the phone does not lag. Instead, the lag is only on the computer screen. If I were to let go of the key on the phone, all movement immediately comes to a stop. |
Try reducing the definition:
Does the lag still happen? |
Unfortunately, the lag still occurs on v1.14 even with the reduced definition. |
On v1.12, with the reduced definition, there also is still lag. But it is noticably less than v1.14 |
for me, only scrcpy-noconsole.exe will show these ERROR. |
I suspect that the keyboard lag has nothing to do with the game Minecraft. I tested the lagging issue on google docs. On my Windows 10 PC, typing through the computer keyboard onto the phone still causes lag. The lag affects both the mirrored image and the phone screen. However, when I typed with the phone keyboard, there was no lag on either the phone screen or the mirrored image on the PC. I suspect this has nothing to do with screen resolution as well. Is there anyway to alleviate this? |
I also got this error. @rom1v could you please list every single debug step I should take in order to help you look into the issue? I intend to follow them all tomorrow and post the results as soon as possible. By the way, I don't have an USB cable available, I established the adb through the following commands (on android terminal):
And then on Windows:
Which occurred successfully, the only issue was the one discussed in this topic. |
In fact, there is no issue: #1441 (comment) (except some internal SDL logs which are printed while they should not, but it's very minor) IMO, the reported warning should not impact performance in scrcpy anyway, since there are only 4 vertexes (it's not a complex 3D scene). |
For keyboard lag, please see #1013. |
I also get the same error, and the display appears to be blurry in Portrait mode. But when I switch to landscape mode ( by Ctrl+R key or Ctrl+Arrow key ) the display is perfectly fine. I already tried changing SDL2.dll file and also tried lowering the resolution in hope of a much crisp display, but the efforts went worthless. Please provide the fix for this issue. In portrait mode : The error shown in v1.14 is :
While in version v1.13 the error shown was this :
|
The "ERROR" printed in the console is not a problem. The "blurry" thing is unrelated, it's a problem with downscaling quality (se #40). Try |
Sorry sir, but the code
resolved the thing displayed on console as error but the blurry part is still there. Console now shows :
I have the issue of exactly what you described in #40 but I didn't get any part of fix for it. Can you please guide me to fix it ? |
Could you post a new screenshot with that configuration, please? |
Result of
From v1.14, Console -
From v1.13, Console -
|
OK, your text is very small! The bigger letters take 5 pixels height, some letters 4 pixels height. And the text is rendered at another definition then downscaled, I'm not surprised that the result is awful (even with mipmapping). |
Sir, I tried increasing font size in phone but the quality doesn't improve. |
Use a computer screen with a better definition :) To mirror a device in 1080×1920, your window content is 355×632, that's too small. Press |
This error is not related.
|
Hello everyone, if you are getting the following error: [server] INFO: Device: Xiaomi MI 8 (Android 10) Try running the Scrcpy using a dedicated GPU. I have one Intel HD graphics and a dedicated Nvidia 940mx. When I run directly using Intel HD I get this error, but when I run it using the dedicated GPU, I don't get this error and quality seems little better. |
I assumed it would use my Dedicated gpu by default but is there something else I need to do to make sure? I'm also getting the same error as everyone else and the fps is extremely bad. I'm using a 2080 TI X_X. |
As I noticed it doesn't use dedicated GPU by default. it uses integrated GPU first. you can change this from your dedicated GPU control panel or settings and choose to run the scrcpy.exe using dedicated GPU instead. or you may see if you get the option to choose GPU by right-clicking on scrcpy.exe on windows os. |
has this been resolved? if so, can you please point the answer? |
I just checked and apparently mine was using the correct gpu by default.
Sadly i'm still getting the error and poor performance. I also tried the opengl code but scrcpy crashes when I use it.
```
[server] INFO: Device: samsung SM-T860 (Android 10)
INFO: OpenGL shaders: ENABLED
INFO: Created renderer: opengl
INFO: Renderer: opengl
INFO: OpenGL version: 4.6.0 NVIDIA 446.14
INFO: Trilinear filtering enabled
INFO: Initial texture: 1920x1200
```
I get a scrpy.exe has stopped working error and after checking event viewer it says.
```
Faulting application name: scrcpy.exe, version: 0.0.0.0, time stamp: 0x5ece97f0
Faulting module name: nvoglv64.dll, version: 26.21.14.4614, time stamp: 0x5ebf2a80
Exception code: 0xc0000005
Fault offset: 0x0000000000c979a0
Faulting process id: 0x5aec
Faulting application start time: 0x01d642cbc8f0d443
Faulting application path: D:\Mobile Android Shit\scrcpy-win64-v1.14\scrcpy.exe
Faulting module path: C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_d5216eae94436d77\nvoglv64.dll
Unhandled exception at 0x00007FFAA8FD79A0 (nvoglv64.dll) in scrcpy.exe: 0xC0000005: Access violation reading location 0x000000000CE4E000. occurred
```
…On Sun, Jun 14, 2020 at 1:37 PM bhavyabpk ***@***.***> wrote:
Hello everyone, if you are getting the following error:
[server] INFO: Device: Xiaomi MI 8 (Android 10)
INFO: Created renderer: direct3d
INFO: Renderer: direct3d
INFO: Initial texture: 1080x2248
ERROR: SDL failed to get a vertex buffer for this Direct3D 9 rendering
batch!
ERROR: Dropping back to a slower method.
ERROR: This might be a brief hiccup, but if performance is bad, this is
probably why.
ERROR: This error will not be logged again for this renderer.
*Try running the Scrcpy using a dedicated GPU*. I have one Intel HD
graphics and a dedicated Nvidia 940mx. When I run directly using Intel HD I
get this error, but when I run it using the dedicated GPU, I don't get this
error and quality seems little better.
I assumed it would use my Dedicated gpu by default but is there something
else I need to do to make sure? I'm also getting the same error as everyone
else and the fps is extremely bad. I'm using a 2080 TI X_X.
As I noticed it doesn't use dedicated GPU by default. it uses integrated
GPU first. you can change this from your dedicated GPU control panel or
settings and choose to run the scrcpy.exe using dedicated GPU instead. or
you may see if you get the option to choose GPU by right-clicking on
scrcpy.exe on windows os.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1441 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL4JMC3COGI4EJODE5ACIKTRWUYKPANCNFSM4NNCWDDA>
.
|
I got the same issue in the morning it was running fine but when I turn off my PC go outside and came back this issue appears. |
Which issue? The error message or an actual performance issue? |
After I upgrade adb to 30.0.1, there are no errors anymore. |
its the problem with the Android home screen just open an application and run scrcpy.exe |
I did solver my issue by unplug the cable and re-plug it and do the whole command again. |
how to update my scrcpy. |
Hello! I wanted to report I have the same issue. OS: Windows 10 Performance is a bit sluggish, probably because of this issue. Thanks for the help :) |
Does it work better in scrcpy v1.9 or v1.10? If so, just take the SDL2.dll from these versions, and replace them in your v1.14 folder. |
1.14 is the first version I tried. I'll try some older versions and I'll report back :) |
I tried your way but the issue still exists!! |
In my case, i face the error only when i connect my device to ADB via WIFI. Could this be fixed? |
Oh, the lag is expected then, on wifi you typically need to decrease the definition/bitrate:
|
Thank you for the reply 😍.. I have a dedicated GPU.. RTX 2060. But I am not sure which GPU is being used for rendering. Does it matter? If so could you help me make sure i use the right one? Thank you in advance |
Reporting back as promised. The error disappeared if if used --render-driver=opengl so maybe direct3d is the issue. |
On Windows, performance should be better with direct3d (but you may want opengl for mipmapping #40). If you press Ctrl+i in the scrcpy window, it will print framerate in the console. What do you get? (copy-paste the output) Note that a frame is produced by the device only when the device content change (so for example if you play a video at 25fps on your Android device, mirroring framerate will not be higher than 25fps). |
I get around 30 fps (sometime less). The numbers were similar with Direct3D though, I don't think there was much difference all in all. :) |
If you don't get any So if it feels laggy, it's probably from the device. Try with a lower definition, the device might be faster ( |
I get some +n frames dropped but indeed it's not that frequent. I'll try with a lower definition and report back :) EDIT: Using -m800 the framerate improved indeed (between 25-40), but it's too low res (text can't be read). Without -m800 I get: Last was before closing so probably it was a micro stutter. It's possible it's just my device (Samsung Galaxy S9) which is not powerful enough (or the game is too demanding: Legends of Runeterra)! |
Environment
Describe the bug
Whenever I started the scrcpy.exe, the following error shows on the console. The scrcpy itself works as usual, although a little slow. I'm not sure if the slowness is related to this error.
The text was updated successfully, but these errors were encountered: