alvr-org / ALVR

Stream VR games from your PC to your headset via Wi-Fi
MIT License
5.26k stars 472 forks source link

程序运行时一直停止在Waitingforservertoload...界面 #1090

Closed fouable closed 2 years ago

fouable commented 2 years ago

Description

在Win7环境下,网络连接使用安卓手机的USB共享网络,我下载ALVR安装包并在此系统上安装,但在运行时,ALVR保持停止在Waitingforservertoload...界面,经过长时间的等待、重启等等行为任然无法使ALVR渡过这个界面

General Troubleshooting

Environement

Hardware

Note: for Linux, an upload to the hw-probe database is preferred: hw-probe -all -upload

CPU: i7-11700@2.50GHz GPU: RTX3060 Audio:

Installation

ALVR Version: V1.8.2.3 SteamVR Version: V1.23.1 Install Type:

OS Name and Version (winver on Windows or grep PRETTY_NAME /etc/os-release on most Linux distributions): Windows7旗舰版 Service Pack1

jinzouningen commented 2 years ago

To get it work on windows 7, you have to download the software "cff explorer" from the web, and then,you have to go to the folder where you have installed alvr and go to the folder "bin/win64"... There, you have to edit "driver_alvr_server.dll" with cff explorer and go to "import directory", you will see many dll imports. There, you have to rename "api-ms-win-shcore-scaling-l1-1-1.dll" to "user32.dll" and rename "SetProcessDpiAwareness" to "SetProcessDPIAware" . After that, you save and the software should start without issues. Keep in mind you have to install a chromium based browser like chrome to get it work. With windows 7, alvr works great thanks to vulkan (I think? It didn't work at all few months ago). There are some issues I encountered, for example you have to disable "stream game audio", otherwise it throws me an error "can't find the device"

zarik5 commented 2 years ago

Windows 7 is officially unsupported. @jinzouningen can you please show the source where you found this workaround?

fouable commented 2 years ago

要使其在Windows 7上工作,您必须从网上下载软件“cff explorer”,然后,您必须转到安装了alvr的文件夹,然后转到文件夹“bin/ win64”...在那里,您必须使用cff资源管理器编辑“driver_alvr_server.dll”并转到“导入目录”,您将看到许多dll导入。在那里,您必须将“api-ms-win-shcore-scaling-l1-1-1.dll”重命名为“user32.dll”,并将“SetProcessDpiAwareness”重命名为“SetProcessDPIAware”。之后,您保存,软件应该可以正常启动。请记住,您必须安装基于铬的浏览器,如chrome才能使其正常工作。使用Windows 7,alvr由于vulkan而工作得很好(我想?几个月前它根本不起作用)。我遇到了一些问题,例如您必须禁用“流游戏音频”,否则它会给我一个错误“找不到设备”

谢谢你,我现在试一试

fouable commented 2 years ago

To get it work on windows 7, you have to download the software "cff explorer" from the web, and then,you have to go to the folder where you have installed alvr and go to the folder "bin/win64"... There, you have to edit "driver_alvr_server.dll" with cff explorer and go to "import directory", you will see many dll imports. There, you have to rename "api-ms-win-shcore-scaling-l1-1-1.dll" to "user32.dll" and rename "SetProcessDpiAwareness" to "SetProcessDPIAware" . After that, you save and the software should start without issues. Keep in mind you have to install a chromium based browser like chrome to get it work. With windows 7, alvr works great thanks to vulkan (I think? It didn't work at all few months ago). There are some issues I encountered, for example you have to disable "stream game audio", otherwise it throws me an error "can't find the device"

api-ms-win-shcore-scaling-l1-1-1.dll 我已经修改了它的名字,但是我在“import directory” 中并没有发现现“SetProcessDpiAwareness”,我需要在哪里去找到SetProcessDpiAwareness呢

jinzouningen commented 2 years ago

Windows 7 is officially unsupported. @jinzouningen can you please show the source where you found this workaround?

There isn't any source, I discovered it by myself. It works luckily😊

zarik5 commented 2 years ago

@jinzouningen can you write detailed instructions (with download links) for your workaround? So we can add it to the wiki.

jinzouningen commented 2 years ago

@jinzouningen can you write detailed instructions (with download links) for your workaround? So we can add it to the wiki.

Yes, as soon as I come back home, I will write the workaround

jinzouningen commented 2 years ago

Ok, I will explain how to get it work on windows 7... Keep in mind it is a workaround, so I don't know if it is going to work for you or not... First, you have to install a chromium based browser (like chrome). Then, you have to go to this site and download this software https://ntcore.com/?page_id=388 after you downloded and installed that, you have to go to the folder where you have installed alvr, in my case it is my drive/programs/alvr/bin/win64 there, you have to open "driver_alvr_server.dll" with cff explorer and go to the section "import directory" as you see in the picture... Immagine

There, you have to click to "api-ms-win-shcore-scaling-l1-1-1.dll". Than, rename "api-ms-win-shcore-scaling-l1-1-1.dll" to "user32.dll". After that, you have to rename "SetProcessDpiAwareness" to "SetProcessDPIAware"... a

After that, you have to save the changes and the software should start without issues.

I advise you to disable "stream audio game" in the audio section to avoid an error... b I will try to see if I resolve that, in case, I update this thread with a workaround.

P.S: Another workaround I'm quite sure it works is to download a compiled "api-ms-win-shcore-scaling-l1-1-1.dll" for windows 7 in this site and place it in alvr/bin/win64 directory, but well, if someone is going to try, say it :) https://live.paloaltonetworks.com/t5/globalprotect-discussions/missing-api-ms-win-shcore-scaling-l1-1-1-dll-on-upgrade-from-5-2/td-p/394758

zarik5 commented 2 years ago

Thanks

zarik5 commented 2 years ago

This actually looks like a problem with only the dashboard, it's related to resolution scaling. The main ALVR page lists Windows 8 as the minimum required OS because of a limitation of the encoder. Are you actually able to use hardware encoding on Windows 7 or does it fall back to software encoding?

jinzouningen commented 2 years ago

This actually looks like a problem with only the dashboard, it's related to resolution scaling. The main ALVR page lists Windows 8 as the minimum required OS because of a limitation of the encoder. Are you actually able to use hardware encoding on Windows 7 or does it fall back to software encoding?

I don't know, this evening, when I try, I will see it. I think it is hardware encoding, but now I'm not sure lol... When I tried to run alvr months ago, it threw me some errors about video encoding, in fact it didn't work at all, but now it works. Now it is running with vulkan, right? I think it is that it make it works. I'm using "h264 video codec" because "hevc video codec" shows me some green glitches, I have to test it this evening when I have time. er

Here are my video settings.

P.S: Sei anche te italiano? Ho visto solo ora il tuo profilo ahah

zarik5 commented 2 years ago

@jinzouningen sounds like you are running on the software encoder. Software HEVC is known to now work.

fouable commented 2 years ago

感谢你,我已经可以正常运行ALVR了!!!非常感谢!!! @jinzouningen

jinzouningen commented 2 years ago

感谢你,我已经可以正常运行ALVR了!!!非常感谢!!! @jinzouningen

I'm glad it works :) How does it work for you? Is it fast?

fouable commented 2 years ago

感谢你,我已经可以正常运行ALVR了!!!非常感谢!!! @jinzouningen

I'm glad it works :) How does it work for you? Is it fast?

yes!Is very fast!

jinzouningen commented 2 years ago

感谢你,我已经可以正常运行ALVR了!!!非常感谢!!! @jinzouningen

I'm glad it works :) How does it work for you? Is it fast?

yes!Is very fast!

It's a good thing. Can you try to use h265 codec and see if it works for you? Yesterday I didn't have time to test more, try it and see if it works

fouable commented 2 years ago

OK, I'll give it a go.

fouable commented 2 years ago

感谢你,我已经可以正常运行ALVR了!!!非常感谢!!! @jinzouningen

我很高兴它能:)它如何为您工作?它快吗?

是的!非常快!

这是一件好事。你能尝试使用h265编解码器,看看它是否适合你吗?昨天我没有时间测试更多,尝试一下,看看它是否有效

请问 h265 codec 是如何使用的,我原来的目的是使用ALVR推流Win7PC端的VR应用程序到我的OculusQuest2设备上,我没有使用过h265解编码器

jinzouningen commented 2 years ago

请问 h265 codec 是如何使用的,我原来的目的是使用ALVR推流Win7PC端的VR应用程序到我的OculusQuest2设备上,我没有使用过h265解编码器

I don't know if have undestood your question, but to activate h265 codec, you have to go to settings/video of alvr... There, you can select the codec.

fouable commented 2 years ago

请问 h265 编解码器 是如何使用的,我原来的目的是使用ALVR推流Win7PC端的VR应用程序到我的OculusQuest2设备上,我没有使用过h265解编码器

我不知道是否已经不理解您的问题,但是要激活h265编解码器,您必须转到alvr的设置/视频...在那里,您可以选择编解码器。

请问 h265 codec 是如何使用的,我原来的目的是使用ALVR推流Win7PC端的VR应用程序到我的OculusQuest2设备上,我没有使用过h265解编码器

I don't know if have undestood your question, but to activate h265 codec, you have to go to settings/video of alvr... There, you can select the codec.

ok

fouable commented 2 years ago

请问 h265 codec 是如何使用的,我原来的目的是使用ALVR推流Win7PC端的VR应用程序到我的OculusQuest2设备上,我没有使用过h265解编码器

I don't know if have undestood your question, but to activate h265 codec, you have to go to settings/video of alvr... There, you can select the codec.

我正在测试h265编码器,但是在出现SteamVR报错:输入设置错误的问题,原本我使用Unity打包出来的使用SteamVRAPI开发的项目不会出现这个问题导致程序无法运行,我怀疑是win7系统的问题, 我正准备回到Win10系统测试一下这个VR应用程序

fouable commented 2 years ago

请问 h265 codec 是如何使用的,我原来的目的是使用ALVR推流Win7PC端的VR应用程序到我的OculusQuest2设备上,我没有使用过h265解编码器

I don't know if have undestood your question, but to activate h265 codec, you have to go to settings/video of alvr... There, you can select the codec.

经过我的测试,我发现现在在win7上可以正常运行了,但是我的OculusQuest2设备右眼是黑色的,也就是右眼没有渲染任何画面,而左眼则可以正常运行

jinzouningen commented 2 years ago

请问 h265 codec 是如何使用的,我原来的目的是使用ALVR推流Win7PC端的VR应用程序到我的OculusQuest2设备上,我没有使用过h265解编码器

I don't know if have undestood your question, but to activate h265 codec, you have to go to settings/video of alvr... There, you can select the codec.

经过我的测试,我发现现在在win7上可以正常运行了,但是我的OculusQuest2设备右眼是黑色的,也就是右眼没有渲染任何画面,而左眼则可以正常运行

ok, thanks, I will try it too as soon as I have time.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.