红联Linux门户
Linux帮助

Ubuntu安装Comsol Multiphysics 4.2出现错误

发布时间:2014-11-25 14:53:17来源:quputer作者:quputer

在Ubuntu 10.04上安装Comsol Multiphysics 4.2出现如下错误:


The program ‘SWT’ received an X Window System error.
This probably reflects a bug in the program.
The error was ‘BadDrawable (invalid Pixmap or Window parameter)’.
(Details: serial 2135 error_code 9 request_code 136 minor_code 3)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the –sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)


有方法说在.comsol/v42/comsol.prefs文件中添加一行graphics.rendering.2drend=swing,发现这个方法对我来说没有作用。实际上出现这个错误的原因是显卡驱动不对,或者说是没装好。Ubuntu显卡驱动可能不好搞,不过可以采用替代的方法:通过运行comsol -3drend sw命令忽略3d显示功能来运行comsol,这样comsol就可以完美运行了。