From: omegayen on
Hi,

Can anyone help troubleshoot this error.

Warning: Problems in UIW_SetUpGLPrinting
> In C:\Program Files\MATLAB\R2009b\toolbox\matlab\graphics\hardcopy.p>hardcopy at 21
In graphics\private\render at 143
In print at 277
In my_code at 352

line 352 of my_code

print(gcf, '-djpeg', filename)

the graphics card is an geforce gt 9400 with a graphics driver that was updated to the newest version as of yesterday. thanks.
From: Bruno on
Hello omegayen,

maybe you've already searched the group for "UIW_SetUpGLPrinting".
As you can see, no one has replied to this issue yet.

I'm having a hard time with this problem at the deployment machine,
but print( ), saveas( ) never bugged at the machine where the Matlab is installed,
as seems to be your case.

If you can afford to use another renderer (zbuffer, painters), it could solve it.

I suspect this has to do with the OpenGL driver/library installed, but didn't figure
a final solution yet. Modern graphic cards (as yours) have built in OpenGL, besides
XP SP3 also got it. The problem is I have all this stuff too, and nevertheless the
Matlab code still bugs. It's a headscratcher for sure...

Cheers,
Marchesi.

"omegayen " <omegayen(a)ameritech.net> wrote in message <hmlvqo$p75$1(a)fred.mathworks.com>...
> Hi,
>
> Can anyone help troubleshoot this error.
>
> Warning: Problems in UIW_SetUpGLPrinting
> > In C:\Program Files\MATLAB\R2009b\toolbox\matlab\graphics\hardcopy.p>hardcopy at 21
> In graphics\private\render at 143
> In print at 277
> In my_code at 352
>
> line 352 of my_code
>
> print(gcf, '-djpeg', filename)
>
> the graphics card is an geforce gt 9400 with a graphics driver that was updated to the newest version as of yesterday. thanks.
From: Bruno on
Hello,

I was having this problem for some months. My specifics is that I have a development
and a deployment machine. It was all good on the first, but on the second, it always
came the 'UIW_SetUpGLPrinting' problem.

The other rendereres (zbuffer and painters, as opposite to OpenGL) may not misbehave,
but they also do not perform alpha blending, for instance, thus being somewhat
useless in some cases.

Now it has been solved. I believe this happens when the OpenGL API doesn't work as expected,
and that could be for more than one cause. If you're having this issue, try to follow the
next steps one at a time, and see if it helps.

1 - Be sure to install the correct driver for your specific graphic board. Not so obvious,
because some manufacturers may have very specific versions. XFX is an example.

- Reboot

- Run your code again

2 - Check if your OpenGL API is good to go. Install OpenGL Extensions Viewer and check it.
Run the renderer test if you need to.

3 - Install the latest DirectX. Test it with dxdiag.

- Reboot

- Run your code again

4 - If everything else fails, you could try to install Glide Wrapper 0.84c. It helps on some
OpenGL problems. Configure it if you need.

Hope that helps,
Marchesi.