渲染线程上发生未指定的错误 [英] an unspecified error occurred on the render thread

查看:90
本文介绍了渲染线程上发生未指定的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到了发生此错误的孤立示例,每个提到该错误的线程都具有与我的情况相同的再现条件:

I've seen isolated examples of this error occurring, and every thread that mentions it has the same reproduction conditions as my situation:

我有一个WPF窗口,其中有"AllowsTransparency = True"放.在启动时,应用程序将随机抛出在渲染线程上发生的未指定错误".例外.如果应用程序运行了30秒或更长时间,它似乎可以正常运行,并且根本不会抛出该异常.

I have a WPF window that has "AllowsTransparency=True" set. Randomly on startup the application will throw the "unspecified error occurred on the render thread" exception. If the app runs for 30 seconds or more it seems to run just fine and not throw that exception at all. 

我只在我的家用台式机和工作台式机上看到此信息,它们都运行带有最新驱动程序的NVidia卡.我的笔记本电脑从四年前开始运行ATI Radeon 8000,似乎没有这个问题.

I only see this on my home desktop and my work desktop, both of which are running NVidia cards with the latest drivers. My laptop which is running an ATI Radeon 8000 from four years ago does not seem to have this problem.

解决此问题的两个方法是:

The two options to resolve this are:

a)不要使用allowstransparency,这并不是真正可行的,因为我编写此应用程序的全部原因是针对分层Windows

   a) don't use allowstransparency, which is not really viable since the whole reason I wrote this app was for layered windows

b)进入控制面板-显示属性->设置->进阶->故障排除标签.将加速度降低到至少比最低值高3级.这将禁用硬件DirectX加速,并且看起来像是一种魅力.这也不是切实可行的,因为那样会降低性能,使其他使用DirectX的应用程序不满意.

   b) Go into Control Panel - Display Properties -> Settings -> Advanced -> Troubleshoot tab. Drop the acceleration down to at least 3 levels above the minimum. This will disable hardware DirectX acceleration and seems to work like a charm. This isn't really viable either since then performance sucks and other apps which use DirectX aren't happy.

我还尝试了另一个建议设置的线程

I also tried a trick mentioned in another thread that suggested setting

target.RenderMode = RenderMode.SoftwareOnly

target.RenderMode = RenderMode.SoftwareOnly

但是尽管我对此寄予厚望,但这并没有做任何事情.

but this didn't do a  thing although I had high hopes for it.

任何帮助将不胜感激,如果有人需要重现此文件,我不介意发送项目文件.谢谢!

Any help would be greatly appreciated, and I don't mind sending along project files if someone needs to reproduce this. Thanks!

推荐答案

我看到很多论坛成员都报告了此问题,但是在我的测试机上未能成功重现此问题,我很高兴再次尝试.您可以在我的个人资料页面上获取我的电子邮件地址.


这篇关于渲染线程上发生未指定的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆