From: CL <clc...@gm...> - 2008-12-11 02:03:57
|
Hi, I've installed the VPython-Win-Py2.5-5.0_candidate.exe on my PC. It crashes immediately when I tried the sample programs and my old programs. I am able to run with 3.2.11 and 4.beta26 on my PC. (but I remember there were some crashes on 4.beta26 with advance features). I believe I have the latest video driver installed already. How can I track down the probrem ? CL |
From: Bruce S. <Bru...@nc...> - 2008-12-11 02:37:23
|
This is unfamiliar behavior; I've seen few problems on Windows. And if you run an example program such as bounce2.py, or one of your own old programs, there should be no issues with graphics drivers, which one would expect would only affect the ability of your machine to display materials such as wood. Here are some things to try. Please report what you observe. Open a Python shell window and type "from visual import *". If that works, verify that non-window aspects are working by typing "a = 5*vector(1,2,3)" which should print out <5,10,15>. Next try "box()" and see what happens. To get a more detailed look, go to the "System" control panel and choose advanced settings, then environment variables, and create a user variable "VPYTHON_DEBUG" and give it the value 1. Next, instead of using IDLE, run the Windows command prompt, found in Accessories in the program listings, and execute these statements: cd c:\Python25\Lib\site-packages\visual\examples \Python25\python.exe bounce2.py You'll get a trace of activity in the Visual module which may give some indication of the problem. Bruce Sherwood CL wrote: > Hi, > > I've installed the VPython-Win-Py2.5-5.0_candidate.exe on my PC. It > crashes immediately when I tried the sample programs and my old > programs. > > I am able to run with 3.2.11 and 4.beta26 on my PC. (but I remember > there were some crashes on 4.beta26 with advance features). > > I believe I have the latest video driver installed already. How can I > track down the probrem ? > > CL > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: CL <clc...@gm...> - 2008-12-16 03:14:06
|
Hi Bruce I have built vpython and found that the following code can fix the problem on my PC: The first crash is at ShowWindow in display::create() in windisplay.cpp I've modifed it to: if (!wglMakeCurrent( dev_context, gl_context)) WIN32_CRITICAL_ERROR( "wglMakeCurrent failed"); ShowWindow( widget_handle, SW_SHOW); wglMakeCurrent( NULL, NULL ); Look like my video driver insist to have wglMakeCurrent called before ShowWindow The second crash is at gl_extensions.cpp template <class PFN> void getPFN( PFN& func, display_kernel& d, const char* name ) { func = reinterpret_cast<PFN>( d.getProcAddress( name ) ); if (!func) throw std::runtime_error( ("Unable to get extension function: " + (std::string)name + " even though the extension is advertised.").c_str() ); } When it is loading GL_ARB_multitexture if ( ARB_multitexture = d.hasExtension( "GL_ARB_multitexture" ) ) { F( glActiveTexture ); } The entry point glActiveTexture is not defined in my driver. I believe it is also not defined in most old drivers. Since it is not defined, an exception is flew. The exception is not handled. I've changed it to: if ( ARB_multitexture = d.hasExtension( "GL_ARB_multitexture" ) ) { getPFN( glActiveTexture, d, "glActiveTextureARB" ); } After that, it is working fine. Textures are not supported, as vpython seems requires shader extensions in order to support texture. |
From: Bruce S. <Bru...@nc...> - 2008-12-16 22:50:59
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> David Scherer responds as follows:<br> <div class="gmail_quote"> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div bgcolor="#ffffff" text="#000000"> <pre> if ( ARB_multitexture = d.hasExtension( "GL_ARB_multitexture" ) ) { getPFN( glActiveTexture, d, "glActiveTextureARB" ); } </pre> </div> </blockquote> </div> This fix can't be right. Either glActiveTextureARB is part of that extension, in which case it MUST be present if that name string is present, or it isn't, in which case the wrong name string is being tested or the wrong function loaded. Or there is a very serious bug in his drivers.<br> <br> Bruce Sherwood<br> <br> P.S. What exactly is your graphics hardware/software?<br> <br> CL wrote: <blockquote cite="mid:d69...@ma..." type="cite"> <pre wrap="">Hi Bruce I have built vpython and found that the following code can fix the problem on my PC: The first crash is at ShowWindow in display::create() in windisplay.cpp I've modifed it to: if (!wglMakeCurrent( dev_context, gl_context)) WIN32_CRITICAL_ERROR( "wglMakeCurrent failed"); ShowWindow( widget_handle, SW_SHOW); wglMakeCurrent( NULL, NULL ); Look like my video driver insist to have wglMakeCurrent called before ShowWindow The second crash is at gl_extensions.cpp template <class PFN> void getPFN( PFN& func, display_kernel& d, const char* name ) { func = reinterpret_cast<PFN>( d.getProcAddress( name ) ); if (!func) throw std::runtime_error( ("Unable to get extension function: " + (std::string)name + " even though the extension is advertised.").c_str() ); } When it is loading GL_ARB_multitexture if ( ARB_multitexture = d.hasExtension( "GL_ARB_multitexture" ) ) { F( glActiveTexture ); } The entry point glActiveTexture is not defined in my driver. I believe it is also not defined in most old drivers. Since it is not defined, an exception is flew. The exception is not handled. I've changed it to: if ( ARB_multitexture = d.hasExtension( "GL_ARB_multitexture" ) ) { getPFN( glActiveTexture, d, "glActiveTextureARB" ); } After that, it is working fine. Textures are not supported, as vpython seems requires shader extensions in order to support texture. ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at <a class="moz-txt-link-freetext" href="http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/">http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/</a> _______________________________________________ Visualpython-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Vis...@li...">Vis...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/visualpython-users">https://lists.sourceforge.net/lists/listinfo/visualpython-users</a> </pre> </blockquote> </body> </html> |
From: CL <clc...@gm...> - 2008-12-17 02:26:37
|
Hi, I have no knowledge in OpenGL implementation. I google it and someone said: "glActiveTextureARB and glActiveTexture are the same function, except that you have to explicitly obtain a pointer for glActiveTextureARB, and glActiveTexture is supposed to be exposed by the GL implementation if the implementation exposes OpenGL 1.2 (I believe). So, on Microsoft's impl, you probably want to use LoadExtension() and glActiveTextureARB. " I am using VIA/S3G UniChrome Pro IGP/MMX/SSE. I believe most new hardware shall have botth glActiveTexture and glActiveTextureARB implemented ? Anyway, if getPFN log an error instead of flow an exception, it can let vpython to run on more old PCs. On 12/17/08, Bruce Sherwood <Bru...@nc...> wrote: > David Scherer responds as follows: > > > > > if ( ARB_multitexture = d.hasExtension( "GL_ARB_multitexture" ) ) { > getPFN( glActiveTexture, d, "glActiveTextureARB" ); } > > > This fix can't be right. Either glActiveTextureARB is part of that > extension, in which case it MUST be present if that name string is present, > or it isn't, in which case the wrong name string is being tested or the > wrong function loaded. Or there is a very serious bug in his drivers. > > Bruce Sherwood > > P.S. What exactly is your graphics hardware/software? > > CL wrote: > Hi Bruce I have built vpython and found that the following code can fix > the problem on my PC: The first crash is at ShowWindow in display::create() > in windisplay.cpp I've modifed it to: if (!wglMakeCurrent( dev_context, > gl_context)) WIN32_CRITICAL_ERROR( "wglMakeCurrent failed"); ShowWindow( > widget_handle, SW_SHOW); wglMakeCurrent( NULL, NULL ); Look like my video > driver insist to have wglMakeCurrent called before ShowWindow The second > crash is at gl_extensions.cpp template <class PFN> void getPFN( PFN& func, > display_kernel& d, const char* name ) { func = reinterpret_cast<PFN>( > d.getProcAddress( name ) ); if (!func) throw std::runtime_error( ("Unable > to get extension function: " + (std::string)name + " even though the > extension is advertised.").c_str() ); } When it is loading > GL_ARB_multitexture if ( ARB_multitexture = d.hasExtension( > "GL_ARB_multitexture" ) ) { F( glActiveTexture ); } The entry point > glActiveTexture is not defined in my driver. I believe it is also not > defined in most old drivers. Since it is not defined, an exception is flew. > The exception is not handled. I've changed it to: if ( ARB_multitexture = > d.hasExtension( "GL_ARB_multitexture" ) ) { getPFN( glActiveTexture, d, > "glActiveTextureARB" ); } After that, it is working fine. Textures are > not supported, as vpython seems requires shader extensions in order to > support > texture. ------------------------------------------------------------------------------ SF.Net > email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The > future of the web can't happen without you. Join us at MIX09 to help pave > the way to the Next Web now. Learn more and register > at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Visualpython-users > mailing > list Vis...@li... https://lists.sourceforge.net/lists/listinfo/visualpython-users > |