都是 Unity 的错!!(Unity 报错合集与解决方案)
- 前言 / 这是一个不断积累的文档!🪇
- An abnormal situation has occured:
- Win32Exception:
- Failed to build the avatar
- UploadException:
- Image upload failed:
- AssetBundle was not built
- VRChat SDK 专栏
- Could not fetch fresh config file. Using cached if available.
- The response was null. State: Error
前言 / 这是一个不断积累的文档!🪇
欢迎来到 Unity 报错集合与解决方案文档!在这里寻找 Unity 报错并了解相应的解决方案。
有搞不懂的问题?
如果您遇见了搞不懂的报错,您可以试着加入 QQ群聊 750258838
分享您的问题,群内的大佬会提供解答。
有想要分享的经验?
如果您有想要分享的报错或解决方法,您也可以选择成为一名 内容作者,内容作者可以直接编辑此文档。
您还可以在下方评论区留言,分享您的见解与看法。
An abnormal situation has occured:
the PlayerLoop internal function has been called recursively. Please contact Customer Support with a sample project so that we can reproduce the problem and troubleshoot it.
翻译:
PlayerLoop 内部函数被递归调用。请联系客户支持并提供示例项目,以便我们可以重现问题并排除故障。
解决方法:
不用慌,试着修改你的计算机名称至纯英文(符号为半角)后重载一次 SDK,群内发生过相似案例。
Win32Exception:
Failed to build the avatar
你的虚拟形象构建失败辣!!请寻找 更多的报错 以了解具体原因(((
UploadException:
Failed to upload file
上传文件失败,一般是网络问题,请阅读 VRChat 网络困境指南 以寻找解决方法。
Image upload failed:
Failed to upload file.
上传图片封面失败,一般是网络问题,请阅读 VRChat 网络困境指南 以寻找解决方法。
AssetBundle was not built
资源包未构建!
解决方法
1、试着在虚拟形象结构中寻找空的或无法加载的脚本,并将其删除。
VRChat SDK 专栏
lllegal byte sequence encounted in the input. Parameter name: string
解决方法
- 请试着将自己的设备名修改为 半角英文+阿拉伯数字,并重新尝试上传。
- 项目所在的文件夹路径修改为 半角英文+阿拉伯数字,并重新尝试上传。
为什么会发生这种事?
Unity 使用的 Mono 运行时无法在 Windows 平台上进行 P/Invoke 时无法正确处理非 UTF8 字符串编码,因此出现错误“在输入中遇到非法字符串”。
关于上述错误的相关技术讨论
System.Reflection.Assembly.GetName
方法存在的问题:
- 关于 Mono 错误将 Windows 字符串当作 UTF8 处理的问题:
素材来自群友 小稳流星 。
Client Simulator 报错
In order to use clentsim, you must first update your project settings! Open the ClientSim Settings Window and apply the settings to your project.
翻译:
要使用 ClentSim,您必须首先更新您的项目设置!打开 ClientSim Settings 窗口并将设置应用于您的项目。
解决方法:
不要听他的屁话,打开 VRChat SDK 控制面板,来到 builder 子页面,点击 setup 让 SDK 自动恢复 client sim 错误即可解决该问题。
该错误可能会出现在错误导入影响 layer 的 pack 中。
素材来自群友 ·
Could not fetch fresh config file. Using cached if available.
网络问题!这意味着您的 SDK 无法获得最新的配置更新,请查看 VRChat 网络困境指南 | VRCD 文档库 以了解相应的解决方法。
The response was null. State: Error
需要看具体情况:
Exception: System.Net.Sockets.SocketException (0x80004005): Could not resolve host 'api.vrchat.cloud'
网络问题!这意味着您的 SDK 无法获得最新的配置更新,请查看 VRChat 网络困境指南 | VRCD 文档库 以了解相应的解决方法。