无法回滚CefSharp.WinForms.NETCore
我正在尝试回滚我的C# Winforms .slnx解决方案,以找出是哪个仓库提交引入了一条无关的错误。当我回滚到大约六周前曾经工作的版本时,应用在启动时崩溃,绕过了我的未处理异常处理程序(UnhandledExceptionHandler)。回滚时,我会看到一条消息:“此解决方案包含具有漏洞的包……”,这条信息(在它正常运行时也出现过,这也是我最初升级的原因)。Visual Studio显示的唯一崩溃信息是:"The program '[38596] PixEmail.exe' has exited with code 2147483651 (0x80000003)."
通过手动编辑崩溃版本的.csproj文件,我确定崩溃的原因是
降级为:"<PackageReference Include="CefSharp.WinForms.NETCore" Version="146.0.70" />"
至:"<PackageReference Include="CefSharp.WinForms.NETCore" Version="145.0.250" /> "
Cef的日志显示了一些错误,但工作版本和崩溃版本的日志很相似:
工作版本:
ERROR:ui\gl\egl_util.cc:92] EGL Driver message (Error) eglCreateContext: Requested version is not supported
ERROR:ui\gl\gl_context_egl.cc:337] eglCreateContext ES 3.0 failed with error EGL_BAD_ATTRIBUTE
ERROR:ui\gl\egl_util.cc:92] EGL Driver message (Error) eglCreateContext: Requested version is not supported
ERROR:ui\gl\gl_context_egl.cc:337] eglCreateContext ES 3.0 failed with error EGL_BAD_ATTRIBUTE
ERROR:ui\gl\egl_util.cc:92] EGL Driver message (Error) eglCreateContext: Requested version is not supported
ERROR:ui\gl\gl_context_egl.cc:337] eglCreateContext ES 3.0 failed with error EGL_BAD_ATTRIBUTE
WARNING:ui\gl\direct_composition_support.cc:1182] IDCompositionTexture is not supported without fences.
WARNING:chrome\browser\signin\account_consistency_mode_manager.cc:74] Desktop Identity Consistency cannot be enabled as no OAuth client ID and client secret have been configured.
WARNING:chrome\browser\media\router\discovery\discovery_network_list_win.cc:228] Failed to open WLAN handle: The service has not been started. (0x426)
崩溃版本:
ERROR:ui\gl\egl_util.cc:92] EGL Driver message (Error) eglCreateContext: Requested version is not supported
ERROR:ui\gl\gl_context_egl.cc:337] eglCreateContext ES 3.0 failed with error EGL_BAD_ATTRIBUTE
ERROR:ui\gl\egl_util.cc:92] EGL Driver message (Error) eglCreateContext: Requested version is not supported
ERROR:ui\gl\gl_context_egl.cc:337] eglCreateContext ES 3.0 failed with error EGL_BAD_ATTRIBUTE
ERROR:ui\gl\egl_util.cc:92] EGL Driver message (Error) eglCreateContext: Requested version is not supported
ERROR:ui\gl\gl_context_egl.cc:337] eglCreateContext ES 3.0 failed with error EGL_BAD_ATTRIBUTE
WARNING:ui\gl\direct_composition_support.cc:1182] IDCompositionTexture is not supported without fences.
WARNING:chrome\browser\signin\account_consistency_mode_manager.cc:74] Desktop Identity Consistency cannot be enabled as no OAuth client ID and client secret have been configured.
WARNING:chrome\browser\media\router\discovery\discovery_network_list_win.cc:228] Failed to open WLAN handle: The service has not been started. (0x426)
是什么原因让六周前在Visual Studio中能够正常运行的应用现在会失败?我该如何让降级后的版本再次运行?
顺便说一句,我并不关心所报告的漏洞。我是在一个受沙箱保护的环境中进行降级,以诊断一个不相关的问题。
解决方案
你遇到了来自本地代码中调试断言或有意崩溃的 __debugbreak() 或int 3指令。尝试清理版本145.0.250的 NuGet包缓存。之后重新构建项目。
nuget locals all -clear
dotnet restore
站内所有文章版权归属LeftHeroAI导航站,无授权禁止任何主体转载、抄袭、复制内容,亦不得私自架设镜像站点。一经侵权,本站将通过法律途径追责。