当前位置: 技术问答>linux和unix
请教有关 X Server 的一个错误
来源: 互联网 发布时间:2015-11-05
本文导语: 最近在学计算机图形学,用到一个叫SRGP的初级图形软件包,编译时没有问题,运行时候出现如下错误信息: ———————————————————— SRGP: Color table too full to share. A solution is to have the SRGP applicatio...
最近在学计算机图形学,用到一个叫SRGP的初级图形软件包,编译时没有问题,运行时候出现如下错误信息:
————————————————————
SRGP: Color table too full to share.
A solution is to have the SRGP application request
0 planes in the 4th parameter to SRGP_begin.
For now, the application will have its own
color table, rather than try to share.
SRGP FATAL ERROR:
X SERVER ERROR
(examining the core will be useful only if using X in synchronous mode):
BadMatch (invalid parameter attributes)
I AM ABOUT TO INTENTIONALLY CRASH SO YOU CAN LOOK
AT THE ACTIVATION STACK USING A DEBUGGER.
If your application is an SRGP application, please remember:
If the error message above says
that you sent a bad argument to a certain function,
you should run your program with tracing ON in order
to see exactly what you sent.
If you already had tracing enabled, remember to look in
'SRGPlogfile' for the tracing messages.
————————————————————
后来拿到cygwin下面也是同样的错误。小弟并没有在Linux下面做过图形相关编程,不知道如何解决。
哪位能给个办法?感激不尽。
|
一般X服务器使用共享的颜色表,即所有应用使用一个颜色表。你看看SRGP_begin的说明是不是可以使用该颜色表。