Re: shade_volume and quality change causes IDLDE to crash? [message #37300] |
Thu, 11 December 2003 09:16 |
dcw_yip
Messages: 22 Registered: October 2003
|
Junior Member |
|
|
Thanks Karl! As usual, you are treasure trove of useful information.
I appreciate it. I'll run IDL under Visual Studio and see where the
actual crash is.
David
dcw_yip@yahoo.com (David Yip) wrote in message news:<201431cc.0312101141.38e43641@posting.google.com>...
> Thanks for the tip about the forceware drives. I'll give them a shot.
> Using the software renderer really isn't an option. It runs so
> slowly as to make the program unusable.
>
> David
>
> "Rick Towler" <rtowler@u.washington.edu> wrote in message news:<br5beb$l9m$1@nntp6.u.washington.edu>...
>> "David Yip" wrote in message...
>>
>>> The code I'm working on uses shade_volume. Whenever, I switch the
>>> quality of the window from high to low or medium and back to high
>>> IDLDE crashes out. It doesn't happen if I sub in isosurface for
>>> shade_volume. This only happens on one machine but unfortunately it's
>>> my development machine. It's an XP Pro machine with a Nvidia Quadro
>>> FX 1000 graphics card. Has anyone else experienced this?
>>
>> I agree with David. If you can live with software rendering than that is
>> that, but since you have a Quadro under the hood I doubt that you will.
>> Pick up the latest driver for your graphics adapter from nVidia. If you
>> already have the latest, then try a newer beta driver (hard to find for the
>> Quadros) or an older driver.
>>
>> You *might* be able to use the... what are they calling them this week...
>> "forceware" drivers with your quadro (53.03 is out today). You lose the
>> benefits of the special OpenGL drivers that ship with the Quadro but to be
>> honest, I don't think that IDL gains much from these anyway. RSI doesn't
>> optimize their renderer for specific GPU's and nVidia doesn't optimize their
>> drivers for IDL.
>>
>> -Rick
|
|
|
Re: shade_volume and quality change causes IDLDE to crash? [message #37311 is a reply to message #37300] |
Wed, 10 December 2003 12:05  |
Karl Schultz
Messages: 341 Registered: October 1999
|
Senior Member |
|
|
"Karl Schultz" <kschultz_no_spam@rsinc.com> wrote in message
news:vtem2mledak48c@corp.supernews.com...
>
> "David Yip" <dcw_yip@yahoo.com> wrote in message
> news:201431cc.0312091537.3fee6cbe@posting.google.com...
>> It doesn't crash with software rendering or on other machines with
>> different cards. I've already tried updating both XP and the drivers
>> to no avail. My graphics card isn't bad per se. It works just fine
>> with other apps. The driver must have a bad interation with IDL.
>
> It is probable that IDL is just using a feature of OpenGL that is buggy in
> your driver. Read on.
>
>> Strangely this card is a professional level OpenGL card unlike most of
>> the cards people buy to play games at home. It is one of the
>> recommended cards for high end professional 3D graphics work.
>
> I'm surprised that this card is giving you trouble, as nVidia usually does
a
> good job on their drivers.
Another thing to try is to play with your card's configuration settings.
Many cards, the higher-range ones in particular, offer dozens of OpenGL
settings that you can tweak via the Display Properties applet. In fact,
some of the more expensive cards come with "application profiles" that
adjust the card to work well with certain well-known apps like SoftImage.
These settings are usually performance-related, but may actually be
important enough just to make things just work. Some settings might also
trade off standards compliance for performance. There may be some
super-duper quick-and-dirty fast rendering feature you can try turning off
to see if it helps.
>
>>
>> David
>>
>> David Fanning <david@dfanning.com> wrote in message
> news:<MPG.1a3edbe2a2e3224a989775@news.frii.com>...
>>> David Yip writes:
>>>
>>>> The code I'm working on uses shade_volume. Whenever, I switch
the
>>>> quality of the window from high to low or medium and back to high
>>>> IDLDE crashes out.
>
> The quality change is interesting here. Are you drawing the polygon mesh
> filled or wireframe? Using hidden lines? If hidden and wireframe, then
the
> rendering method, and hence OpenGL calls, used to draw the mesh varies
quite
> a bit depending on the quality setting and the version of OpenGL. It is
> possible that the switching back and forth between rendering methods is
> exposing a flaw in the driver that is causing the crash.
>
> If you can, please try running IDL under a debugger, make it crash, and
then
> examine the call stack. If the crash is in an nvidia component (like a
DLL
> that starts with nv), then it is likely a driver problem. If it looks
like
> it is in IDL, then you'd need to report the problem to RSI tech support.
> Sometimes a graphics driver can hose itself so badly that there is no
> recognizable stack trace, in which case, I'd still think of it as a driver
> problem.
>
>>>> It doesn't happen if I sub in isosurface for
>>>> shade_volume.
>
> This is odd. Shade_volume generates quad meshes that generally have fewer
> polygons and vertices than the tri meshes generated by isosurface.
>
> One weakness of shade_volume is that it is susceptible to the famous
> marching cubes ambiguity problem. This problem can cause the code to
> generate a self-intersecting "bow-tie" quad in the mesh. A graphics
driver
> and/or its hardware can really trip over this geometry when it tries to
> render it. Sometimes you can spot a bow-tie as a hole in your mesh, if
you
> can get it draw on a different card or with the software renderer.
> Otherwise, they are pretty easy to find analytically. The isosurface
> function does not suffer from the ambiguity problem because it uses a
> different algorithm.
And if you do find a bow-tie, you can fix it in your mesh and avoid the
rendering problem.
>
> I really can't guess at much more without seeing the data or knowing more
> about how the mesh is rendered.
>
> Karl
>
>>>> This only happens on one machine but unfortunately it's
>>>> my development machine. It's an XP Pro machine with a Nvidia Quadro
>>>> FX 1000 graphics card. Has anyone else experienced this?
>>>
>>> Try software rendering. This will rule out the most
>>> likely candidate: a bad graphics card. :-)
>>>
>>> Cheers,
>>>
>>> David
>>>
>>> P.S. You can try updating your driver if this is the
>>> case, or--sometimes--software is even faster than
>>> hardware.
>
>
|
|
|
Re: shade_volume and quality change causes IDLDE to crash? [message #37313 is a reply to message #37311] |
Wed, 10 December 2003 11:41  |
dcw_yip
Messages: 22 Registered: October 2003
|
Junior Member |
|
|
Thanks for the tip about the forceware drives. I'll give them a shot.
Using the software renderer really isn't an option. It runs so
slowly as to make the program unusable.
David
"Rick Towler" <rtowler@u.washington.edu> wrote in message news:<br5beb$l9m$1@nntp6.u.washington.edu>...
> "David Yip" wrote in message...
>
>> The code I'm working on uses shade_volume. Whenever, I switch the
>> quality of the window from high to low or medium and back to high
>> IDLDE crashes out. It doesn't happen if I sub in isosurface for
>> shade_volume. This only happens on one machine but unfortunately it's
>> my development machine. It's an XP Pro machine with a Nvidia Quadro
>> FX 1000 graphics card. Has anyone else experienced this?
>
> I agree with David. If you can live with software rendering than that is
> that, but since you have a Quadro under the hood I doubt that you will.
> Pick up the latest driver for your graphics adapter from nVidia. If you
> already have the latest, then try a newer beta driver (hard to find for the
> Quadros) or an older driver.
>
> You *might* be able to use the... what are they calling them this week...
> "forceware" drivers with your quadro (53.03 is out today). You lose the
> benefits of the special OpenGL drivers that ship with the Quadro but to be
> honest, I don't think that IDL gains much from these anyway. RSI doesn't
> optimize their renderer for specific GPU's and nVidia doesn't optimize their
> drivers for IDL.
>
> -Rick
|
|
|
Re: shade_volume and quality change causes IDLDE to crash? [message #37316 is a reply to message #37313] |
Wed, 10 December 2003 09:32  |
Karl Schultz
Messages: 341 Registered: October 1999
|
Senior Member |
|
|
"David Yip" <dcw_yip@yahoo.com> wrote in message
news:201431cc.0312091537.3fee6cbe@posting.google.com...
> It doesn't crash with software rendering or on other machines with
> different cards. I've already tried updating both XP and the drivers
> to no avail. My graphics card isn't bad per se. It works just fine
> with other apps. The driver must have a bad interation with IDL.
It is probable that IDL is just using a feature of OpenGL that is buggy in
your driver. Read on.
> Strangely this card is a professional level OpenGL card unlike most of
> the cards people buy to play games at home. It is one of the
> recommended cards for high end professional 3D graphics work.
I'm surprised that this card is giving you trouble, as nVidia usually does a
good job on their drivers.
>
> David
>
> David Fanning <david@dfanning.com> wrote in message
news:<MPG.1a3edbe2a2e3224a989775@news.frii.com>...
>> David Yip writes:
>>
>>> The code I'm working on uses shade_volume. Whenever, I switch the
>>> quality of the window from high to low or medium and back to high
>>> IDLDE crashes out.
The quality change is interesting here. Are you drawing the polygon mesh
filled or wireframe? Using hidden lines? If hidden and wireframe, then the
rendering method, and hence OpenGL calls, used to draw the mesh varies quite
a bit depending on the quality setting and the version of OpenGL. It is
possible that the switching back and forth between rendering methods is
exposing a flaw in the driver that is causing the crash.
If you can, please try running IDL under a debugger, make it crash, and then
examine the call stack. If the crash is in an nvidia component (like a DLL
that starts with nv), then it is likely a driver problem. If it looks like
it is in IDL, then you'd need to report the problem to RSI tech support.
Sometimes a graphics driver can hose itself so badly that there is no
recognizable stack trace, in which case, I'd still think of it as a driver
problem.
>>> It doesn't happen if I sub in isosurface for
>>> shade_volume.
This is odd. Shade_volume generates quad meshes that generally have fewer
polygons and vertices than the tri meshes generated by isosurface.
One weakness of shade_volume is that it is susceptible to the famous
marching cubes ambiguity problem. This problem can cause the code to
generate a self-intersecting "bow-tie" quad in the mesh. A graphics driver
and/or its hardware can really trip over this geometry when it tries to
render it. Sometimes you can spot a bow-tie as a hole in your mesh, if you
can get it draw on a different card or with the software renderer.
Otherwise, they are pretty easy to find analytically. The isosurface
function does not suffer from the ambiguity problem because it uses a
different algorithm.
I really can't guess at much more without seeing the data or knowing more
about how the mesh is rendered.
Karl
>>> This only happens on one machine but unfortunately it's
>>> my development machine. It's an XP Pro machine with a Nvidia Quadro
>>> FX 1000 graphics card. Has anyone else experienced this?
>>
>> Try software rendering. This will rule out the most
>> likely candidate: a bad graphics card. :-)
>>
>> Cheers,
>>
>> David
>>
>> P.S. You can try updating your driver if this is the
>> case, or--sometimes--software is even faster than
>> hardware.
|
|
|
Re: shade_volume and quality change causes IDLDE to crash? [message #37328 is a reply to message #37316] |
Tue, 09 December 2003 15:37  |
dcw_yip
Messages: 22 Registered: October 2003
|
Junior Member |
|
|
It doesn't crash with software rendering or on other machines with
different cards. I've already tried updating both XP and the drivers
to no avail. My graphics card isn't bad per se. It works just fine
with other apps. The driver must have a bad interation with IDL.
Strangely this card is a professional level OpenGL card unlike most of
the cards people buy to play games at home. It is one of the
recommended cards for high end professional 3D graphics work.
David
David Fanning <david@dfanning.com> wrote in message news:<MPG.1a3edbe2a2e3224a989775@news.frii.com>...
> David Yip writes:
>
>> The code I'm working on uses shade_volume. Whenever, I switch the
>> quality of the window from high to low or medium and back to high
>> IDLDE crashes out. It doesn't happen if I sub in isosurface for
>> shade_volume. This only happens on one machine but unfortunately it's
>> my development machine. It's an XP Pro machine with a Nvidia Quadro
>> FX 1000 graphics card. Has anyone else experienced this?
>
> Try software rendering. This will rule out the most
> likely candidate: a bad graphics card. :-)
>
> Cheers,
>
> David
>
> P.S. You can try updating your driver if this is the
> case, or--sometimes--software is even faster than
> hardware.
|
|
|
Re: shade_volume and quality change causes IDLDE to crash? [message #37331 is a reply to message #37328] |
Tue, 09 December 2003 12:28  |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
"David Yip" wrote in message...
> The code I'm working on uses shade_volume. Whenever, I switch the
> quality of the window from high to low or medium and back to high
> IDLDE crashes out. It doesn't happen if I sub in isosurface for
> shade_volume. This only happens on one machine but unfortunately it's
> my development machine. It's an XP Pro machine with a Nvidia Quadro
> FX 1000 graphics card. Has anyone else experienced this?
I agree with David. If you can live with software rendering than that is
that, but since you have a Quadro under the hood I doubt that you will.
Pick up the latest driver for your graphics adapter from nVidia. If you
already have the latest, then try a newer beta driver (hard to find for the
Quadros) or an older driver.
You *might* be able to use the... what are they calling them this week...
"forceware" drivers with your quadro (53.03 is out today). You lose the
benefits of the special OpenGL drivers that ship with the Quadro but to be
honest, I don't think that IDL gains much from these anyway. RSI doesn't
optimize their renderer for specific GPU's and nVidia doesn't optimize their
drivers for IDL.
-Rick
|
|
|
Re: shade_volume and quality change causes IDLDE to crash? [message #37360 is a reply to message #37331] |
Mon, 08 December 2003 18:05  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Yip writes:
> The code I'm working on uses shade_volume. Whenever, I switch the
> quality of the window from high to low or medium and back to high
> IDLDE crashes out. It doesn't happen if I sub in isosurface for
> shade_volume. This only happens on one machine but unfortunately it's
> my development machine. It's an XP Pro machine with a Nvidia Quadro
> FX 1000 graphics card. Has anyone else experienced this?
Try software rendering. This will rule out the most
likely candidate: a bad graphics card. :-)
Cheers,
David
P.S. You can try updating your driver if this is the
case, or--sometimes--software is even faster than
hardware.
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|