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.
|
|
0
|
|
|
|
Reply
|
omegayen
|
3/3/2010 3:39:05 PM |
|
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@ameritech.net> wrote in message <hmlvqo$p75$1@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.
|
|
0
|
|
|
|
Reply
|
Bruno
|
3/22/2010 1:49:02 PM
|
|
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.
|
|
0
|
|
|
|
Reply
|
Bruno
|
3/23/2010 12:36:22 PM
|
|
"Bruno " <bruno.marchesi@gmail.com> wrote in message <hoack6$alm$1@fred.mathworks.com>...
> 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.
I doubt this is solely a problem with graphics drivers.
I have a script that produces 4 figures, each with several subfigures, containing mixtures of plot and meshc. Two of the figures (figure 1 and figure 2) render perfectly with OpenGL, but the others (figure 3 and figure 4) require painters or zbuffer (with OpenGL I get a black box and a 'UIW_SetUpGLPrinting' warning).
If it were a problem with drivers, I'd expect none of the figures to render properly. 2/4 is pretty mysterious...
|
|
0
|
|
|
|
Reply
|
Ben
|
5/6/2010 4:03:04 PM
|
|
"Ben " <drlightx@gmail.com> wrote in message <hrup7o$sh3$1@fred.mathworks.com>...
> "Bruno " <bruno.marchesi@gmail.com> wrote in message <hoack6$alm$1@fred.mathworks.com>...
> > 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.
>
>
> I doubt this is solely a problem with graphics drivers.
>
> I have a script that produces 4 figures, each with several subfigures, containing mixtures of plot and meshc. Two of the figures (figure 1 and figure 2) render perfectly with OpenGL, but the others (figure 3 and figure 4) require painters or zbuffer (with OpenGL I get a black box and a 'UIW_SetUpGLPrinting' warning).
>
> If it were a problem with drivers, I'd expect none of the figures to render properly. 2/4 is pretty mysterious...
Just following up on this issue...... I was formerly running Matlab 2009b on the machine with I originally posted...
Since then I have updated to Matlab 2010.
Now the saving of the figure actually will work on the machine properly as it should but only for a limited period of time.
I am running long codes that take hours and looping over many iterations which causes several different figures to be printed and thus saved with the command I stated originally. Now the issue is I get
Error using ==> subplotlayout
UIJ_AreThereWindowShowsPending - timeout waiting for window to show up
and then the hardcopy error as above comes up......
so now it appears to work for some time and then timeout and stop working....
so I suspect something changed in Matlab 2010 that helped fixed this issue although it still has problems
|
|
0
|
|
|
|
Reply
|
omegayen
|
5/6/2010 8:46:04 PM
|
|
|
4 Replies
291 Views
(page loaded in 0.068 seconds)
Similiar Articles: Hardcopy error when printing - comp.soft-sys.matlabHello, 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 ... error when printing to PDF - comp.graphics.apps.paint-shop-pro ...Hardcopy error when printing - comp.soft-sys.matlab On Thu, 20 Aug 2009 14:08:01 -0700, Printing Error with XPS wrote: > When I try to ... > While it's true that you can't ... Printing Error - comp.text.pdfHardcopy error when printing - comp.soft-sys.matlab Hello, I was having this problem for some months. My specifics is that I have a development and a deployment machine. 2 problems with subplot: empty space between graphs and grabbing ...Hardcopy error when printing - comp.soft-sys.matlab Two of the figures (figure 1 and figure 2) render perfectly ... 2 problems with subplot: empty space between graphs and ... Simulink model printing problem - comp.soft-sys.matlabHardcopy error when printing - comp.soft-sys.matlab Warning: Problems in UIW_SetUpGLPrinting > In C ... When I try to print from a drawing or a model, I get ... options ... Printing and Dimension Editing in SW - comp.cad.solidworks ...Hardcopy error when printing - comp.soft-sys.matlab Printing and Dimension Editing in SW - comp.cad.solidworks ..... SW closes. 2- When I try to print from a drawing or a ... SolidWorks still prints 'Student Version' when I print something ...Hardcopy error when printing - comp.soft-sys.matlab so I suspect something changed in Matlab 2010 that helped fixed this issue although it still has ... sys.sun.admin ... printing with openGL - comp.graphics.api.openglHardcopy error when printing - comp.soft-sys.matlab The other rendereres (zbuffer and painters, as opposite to OpenGL) may not misbehave ... from dvd - comp.sys.sun.admin ... ProSavage DDR & Opengl 1.4 - comp.graphics.api.openglHardcopy error when printing - comp.soft-sys.matlab Two of the figures (figure 1 and figure 2) render perfectly with OpenGL, but the others (figure 3 and figure 4) require ... Split image print over multiple sheets - comp.graphics.apps.paint ...Where is the option to print an image over multiple sheets of paper ... Hardcopy error when printing - comp.soft-sys.matlab... comp.soft-sys.matlab No errors or ... Hardcopy error when printing - comp.soft-sys.matlab | Computer GroupHello, 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 ... Hardcopy error when printing - Newsreader - MATLAB CentralFile exchange, MATLAB Answers, newsgroup access, Links, and Blogs for the MATLAB & Simulink user community 7/18/2012 12:14:45 PM
|