I’m running Xphoton on my QNX RTP.
I downloaded SRGP graphics library, compiled it…
But when I start my compiled application I get this message
SRGP FATAL ERROR
X SERVER ERROR
Can anyone tell what to do?
Cheers,
Mnemonic
I’m running Xphoton on my QNX RTP.
I downloaded SRGP graphics library, compiled it…
But when I start my compiled application I get this message
SRGP FATAL ERROR
X SERVER ERROR
Can anyone tell what to do?
Cheers,
Mnemonic
Hello Mnemonic
Did the rest of the error output look something like this:
************************* ERROR OUPUT ****************************
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.
Abort (core dumped)
*************************** END ERROR OUTPUT ***************************
If it did, here is the reason that it is happening. The SRGP graphics
library assumes that the X server is going to be in Pseudo-colour mode. Our
server is actuallly in true-colour mode. It is trying to write a colour in
to the colour table but the colour table is read only. If you take a look
at the “sgrp_color_x.c” file you will see that it checks to see which colour
mode the server is using but then it doesn’t do anything about it. Try modifying
this file. It should at least clear up the above error but there is no telling
what other errors you will get.
Rod
Previously, Mnemonic wrote in qdn.public.qnxrtp.photon:
I’m running Xphoton on my QNX RTP.
I downloaded SRGP graphics library, compiled it…
But when I start my compiled application I get this message
SRGP FATAL ERROR
X SERVER ERRORCan anyone tell what to do?
Cheers,
Mnemonic