Re: [osg-users] OSG trunk crashing, perhaps an nvidia driver problem?
Hi Eric, some info in this recent thread too. http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/68096/ jp On 26/05/11 18:14, Eric Sokolowsky wrote: Robert Osfield wrote: Hi Eric, On Thu, May 26, 2011 at 4:21 PM, Eric Sokolowsky esok@gmail.com wrote: Yes, this is what I mean. X11 itself crashes and restarts. One of the weird issues is that this happens only for OSG trunk, not for OSG 2.8 svn, on the same machine. Perhaps there is some OpenGL3+ weirdness going on here. I doubt it has anything to do with GL3 as the svn/trunk doesn't do anything special for GL3 unless you compile the OSG specifically for the GL3 subset. Ok, thanks for the info. There have been a few changes to GraphisWindowX11.cpp since 2.8.x so you revert these to see if one of the changesets is the culprit. It could be just a co-incidence though, sometimes threading problems can appear and disappear just with slight changes in timing. I'm afraid I'll have to leave it to you to try out different versions of GraphicsWindowX11.cpp as I can't reproduce the problem at my end so have no way of know which changes might be introducing problems. Well I'm making some progress. After updating my nvidia driver X11 no longer crashes, but osgviewer still does. I'm going to try this on another mac machine also running Fedora 14. Anyone else using Fedora 14 out there? I'll try messing with GraphicsWindowX11.cpp next. Eric ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG trunk crashing, perhaps an nvidia driver problem?
J.P. Delport wrote: Hi Eric, some info in this recent thread too. http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/68096/ jp Thanks for the pointer. I must have skipped over that thread. The problem described there looks like what is happening to me (I'm glad I'm not the only one!) Following Robert's suggestion to look into changes made to GraphicsWindowX11.cpp, I reverted back to r12292 and everything seems to work reliably, and now I'm working forward. There were a pretty major couple of changes r12293 and r12294 and that's what I suspect caused the problem. The only other change to this file after then was r12339. I saw the discussion of making the viewer single-threaded, which of course is not a long-term solution. Did anyone find anything in their digging? Eric On 26/05/11 18:14, Eric Sokolowsky wrote: Robert Osfield wrote: Hi Eric, On Thu, May 26, 2011 at 4:21 PM, Eric Sokolowsky esok@gmail.com wrote: Yes, this is what I mean. X11 itself crashes and restarts. One of the weird issues is that this happens only for OSG trunk, not for OSG 2.8 svn, on the same machine. Perhaps there is some OpenGL3+ weirdness going on here. I doubt it has anything to do with GL3 as the svn/trunk doesn't do anything special for GL3 unless you compile the OSG specifically for the GL3 subset. Ok, thanks for the info. There have been a few changes to GraphisWindowX11.cpp since 2.8.x so you revert these to see if one of the changesets is the culprit. It could be just a co-incidence though, sometimes threading problems can appear and disappear just with slight changes in timing. I'm afraid I'll have to leave it to you to try out different versions of GraphicsWindowX11.cpp as I can't reproduce the problem at my end so have no way of know which changes might be introducing problems. Well I'm making some progress. After updating my nvidia driver X11 no longer crashes, but osgviewer still does. I'm going to try this on another mac machine also running Fedora 14. Anyone else using Fedora 14 out there? I'll try messing with GraphicsWindowX11.cpp next. Eric ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG trunk crashing, perhaps an nvidia driver problem?
Here's some more information about the problem. I have narrowed it down to the patch r12294. Before this change I cannot get osgviewer to fail, but after this patch it is very easy to get osgviewer to fail. Something there caused the timing instability we are seeing. I'm going to investigate further but if there are others who want to look at it too you are welcome. Eric J.P. Delport wrote: Hi Eric, some info in this recent thread too. http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/68096/ jp On 26/05/11 18:14, Eric Sokolowsky wrote: Robert Osfield wrote: Hi Eric, On Thu, May 26, 2011 at 4:21 PM, Eric Sokolowsky esok@gmail.com wrote: Yes, this is what I mean. X11 itself crashes and restarts. One of the weird issues is that this happens only for OSG trunk, not for OSG 2.8 svn, on the same machine. Perhaps there is some OpenGL3+ weirdness going on here. I doubt it has anything to do with GL3 as the svn/trunk doesn't do anything special for GL3 unless you compile the OSG specifically for the GL3 subset. Ok, thanks for the info. There have been a few changes to GraphisWindowX11.cpp since 2.8.x so you revert these to see if one of the changesets is the culprit. It could be just a co-incidence though, sometimes threading problems can appear and disappear just with slight changes in timing. I'm afraid I'll have to leave it to you to try out different versions of GraphicsWindowX11.cpp as I can't reproduce the problem at my end so have no way of know which changes might be introducing problems. Well I'm making some progress. After updating my nvidia driver X11 no longer crashes, but osgviewer still does. I'm going to try this on another mac machine also running Fedora 14. Anyone else using Fedora 14 out there? I'll try messing with GraphicsWindowX11.cpp next. Eric ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG trunk crashing, perhaps an nvidia driver problem?
Hi Eric, On Fri, May 27, 2011 at 2:29 PM, Eric Sokolowsky esok@gmail.com wrote: Here's some more information about the problem. I have narrowed it down to the patch r12294. Before this change I cannot get osgviewer to fail, but after this patch it is very easy to get osgviewer to fail. Something there caused the timing instability we are seeing. I'm going to investigate further but if there are others who want to look at it too you are welcome. Thanks to narrowing it down. For those interested in look up the changeset that looks to introduced the problems you can see it up on the openscenegraph.org: http://www.openscenegraph.org/projects/osg/changeset/12294/OpenSceneGraph/trunk/src/osgViewer/GraphicsWindowX11.cpp A quick review of the code doesn't raise any obvious causes. I suspect the problems you are seeing are the same as those discusssed on the thread [build] 2.9.14 and trunk problems on lubuntu 11.04+lxde+nvidia. I will run the tests suggest by J.P in this thread to see if I can reliably reproduce the problem and then see about backing out to before r12294 and if this fixes things then I'll revert r12294. I would like to tag a 2.9.15 dev release today so would like to things working for it. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG trunk crashing, perhaps an nvidia driver problem?
Hi On 27/05/11 15:07, Eric Sokolowsky wrote: J.P. Delport wrote: Hi Eric, some info in this recent thread too. http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/68096/ jp Thanks for the pointer. I must have skipped over that thread. The problem described there looks like what is happening to me (I'm glad I'm not the only one!) Following Robert's suggestion to look into changes made to GraphicsWindowX11.cpp, I reverted back to r12292 and everything seems to work reliably, and now I'm working forward. There were a pretty major couple of changes r12293 and r12294 and that's what I suspect caused the problem. The only other change to this file after then was r12339. I saw the discussion of making the viewer single-threaded, which of course is not a long-term solution. Did anyone find anything in their digging? sorry, I've not had any chance to look at it again. I think you've come closest to getting to the actual commits that causes this. jp -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG trunk crashing, perhaps an nvidia driver problem?
Hi All, I'm just doing a code review from before and after the r12294 rev and it looks like the move of the code from a method being called in the graphics thread GraphicsWindowX11::swapBufferImplentation() to on being called from the main thread GraphcisWindowX11::checkEvents() without the display being changed from the one used for the graphics thread to the one used for events. If I am correct then it should be a simple fix of just replacing the _display variable usage to the local display variable. I will test in the svn/trunk configuration and then with my suggested change. Will update you all soon on how I get on. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG trunk crashing, perhaps an nvidia driver problem?
Robert Osfield wrote: Hi All, I'm just doing a code review from before and after the r12294 rev and it looks like the move of the code from a method being called in the graphics thread GraphicsWindowX11::swapBufferImplentation() to on being called from the main thread GraphcisWindowX11::checkEvents() without the display being changed from the one used for the graphics thread to the one used for events. If I am correct then it should be a simple fix of just replacing the _display variable usage to the local display variable. I will test in the svn/trunk configuration and then with my suggested change. Will update you all soon on how I get on. I think this is getting close to the problem. I have further narrowed the problem to the last section of differences in GraphicsWindowX11.cpp between r12293 and r12294 (I applied all the other parts of the difference and there is no problem). If I comment out the second while( XPending(_display) ) loop (see around line 1467) there is no crash. Is the _display variable changed in the first loop? I also tried putting a sleep(1) call just above line 1467 the first time the function is run and now I can not get it to crash, further suggesting a race condition that the loop is triggering. Eric ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG trunk crashing, perhaps an nvidia driver problem?
On Fri, 2011-05-27 at 10:41 -0400, Eric Sokolowsky wrote: Robert Osfield wrote: Hi All, I'm just doing a code review from before and after the r12294 rev and it looks like the move of the code from a method being called in the graphics thread GraphicsWindowX11::swapBufferImplentation() to on being called from the main thread GraphcisWindowX11::checkEvents() without the display being changed from the one used for the graphics thread to the one used for events. If I am correct then it should be a simple fix of just replacing the _display variable usage to the local display variable. I will test in the svn/trunk configuration and then with my suggested change. Will update you all soon on how I get on. Just to chime in, I'm also experiencing this problem. Fedora 14-64, NVidia 270 driver. I think this is getting close to the problem. I have further narrowed the problem to the last section of differences in GraphicsWindowX11.cpp between r12293 and r12294 (I applied all the other parts of the difference and there is no problem). If I comment out the second while( XPending(_display) ) loop (see around line 1467) there is no crash. Is the _display variable changed in the first loop? I also tried putting a sleep(1) call just above line 1467 the first time the function is run and now I can not get it to crash, further suggesting a race condition that the loop is triggering. Eric ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG trunk crashing, perhaps an nvidia driver problem?
Hi Eric, On Fri, May 27, 2011 at 4:22 PM, Eric Sokolowsky esok@gmail.com wrote: Changing _display to display fixes the crashing problem for me. Here is an updated GraphicsWindow.cpp with the fix, which you may have already applied. Good to hear that this fixed the problem - it illustrates it was a multi-threaded X11 usage issue. Having reviewed the wider code the actual check for the window close is already done further up in checkEvents so the second bit of code shouldn't have any effect. Removing the check for close from the swapBuffers doesn't seem safe either so I think the whole submission is suspect, not just the usage of the _display rather display variable. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG trunk crashing, perhaps an nvidia driver problem?
Hi Eric et. al, I have now reverted the problematic part the r12294 that original moved the check for close events from the swapBuffersImplementation to checkEvents, this caused problems because the check was being done on the _display member variable that is X11 Display connection setup for access from the graphics thread only. Could you please do an svn update and let me know how you get on. Cheers, Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG trunk crashing, perhaps an nvidia driver problem?
Robert, I tested your changes and I could not get it to crash, so it looks squashed to me. Thanks! Eric Robert Osfield wrote: Hi Eric et. al, I have now reverted the problematic part the r12294 that original moved the check for close events from the swapBuffersImplementation to checkEvents, this caused problems because the check was being done on the _display member variable that is X11 Display connection setup for access from the graphics thread only. Could you please do an svn update and let me know how you get on. Cheers, Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] OSG trunk crashing, perhaps an nvidia driver problem?
I'm running OSG under Linux, specifically Fedora 14 on MacBook Pro hardware. I am having trouble running anything with the latest OSG trunk svn. Symptoms: X11 crashes and restarts. Since others are not reporting the same issue, I'm presuming that my nvidia driver is buggy. What version(s) of the nvidia driver are others running? It can be found by typing: cat /proc/driver/nvidia/version Here is mine: escher:esokolow:~$ cat /proc/driver/nvidia/version NVRM version: NVIDIA UNIX x86_64 Kernel Module 256.53 Fri Aug 27 20:27:48 PDT 2010 GCC version: gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC) escher:esokolow:~$ uname -r 2.6.35.6-37.fc14.x86_64 What crashes: osgviewer --image whatever.png Thanks, Eric ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG trunk crashing, perhaps an nvidia driver problem?
Hi Eric, Others including myself has see X11/GLX related errors on start up of apps, but I haven't had X11 crash and restart, I presume you mean though whole X11 desktop crashes and restarts rather than just an OSG app, For point of reference he's the details of my system - later driver and kernal than you have. $ cat /proc/driver/nvidia/version NVRM version: NVIDIA UNIX x86_64 Kernel Module 270.41.06 Mon Apr 18 14:53:56 PDT 2011 GCC version: gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) $ uname -r 2.6.38-8-generic Robert. On Thu, May 26, 2011 at 3:52 PM, Eric Sokolowsky esok@gmail.com wrote: I'm running OSG under Linux, specifically Fedora 14 on MacBook Pro hardware. I am having trouble running anything with the latest OSG trunk svn. Symptoms: X11 crashes and restarts. Since others are not reporting the same issue, I'm presuming that my nvidia driver is buggy. What version(s) of the nvidia driver are others running? It can be found by typing: cat /proc/driver/nvidia/version Here is mine: escher:esokolow:~$ cat /proc/driver/nvidia/version NVRM version: NVIDIA UNIX x86_64 Kernel Module 256.53 Fri Aug 27 20:27:48 PDT 2010 GCC version: gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC) escher:esokolow:~$ uname -r 2.6.35.6-37.fc14.x86_64 What crashes: osgviewer --image whatever.png Thanks, Eric ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG trunk crashing, perhaps an nvidia driver problem?
Robert Osfield wrote: Hi Eric, Others including myself has see X11/GLX related errors on start up of apps, but I haven't had X11 crash and restart, I presume you mean though whole X11 desktop crashes and restarts rather than just an OSG app, Yes, this is what I mean. X11 itself crashes and restarts. One of the weird issues is that this happens only for OSG trunk, not for OSG 2.8 svn, on the same machine. Perhaps there is some OpenGL3+ weirdness going on here. For point of reference he's the details of my system - later driver and kernal than you have. $ cat /proc/driver/nvidia/version NVRM version: NVIDIA UNIX x86_64 Kernel Module 270.41.06 Mon Apr 18 14:53:56 PDT 2011 GCC version: gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) $ uname -r 2.6.38-8-generic Robert. Thanks for this data point. I'll try a later driver. Eric On Thu, May 26, 2011 at 3:52 PM, Eric Sokolowsky esok@gmail.com wrote: I'm running OSG under Linux, specifically Fedora 14 on MacBook Pro hardware. I am having trouble running anything with the latest OSG trunk svn. Symptoms: X11 crashes and restarts. Since others are not reporting the same issue, I'm presuming that my nvidia driver is buggy. What version(s) of the nvidia driver are others running? It can be found by typing: cat /proc/driver/nvidia/version Here is mine: escher:esokolow:~$ cat /proc/driver/nvidia/version NVRM version: NVIDIA UNIX x86_64 Kernel Module 256.53 Fri Aug 27 20:27:48 PDT 2010 GCC version: gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC) escher:esokolow:~$ uname -r 2.6.35.6-37.fc14.x86_64 What crashes: osgviewer --image whatever.png Thanks, Eric ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG trunk crashing, perhaps an nvidia driver problem?
Hi Eric, On Thu, May 26, 2011 at 4:21 PM, Eric Sokolowsky esok@gmail.com wrote: Yes, this is what I mean. X11 itself crashes and restarts. One of the weird issues is that this happens only for OSG trunk, not for OSG 2.8 svn, on the same machine. Perhaps there is some OpenGL3+ weirdness going on here. I doubt it has anything to do with GL3 as the svn/trunk doesn't do anything special for GL3 unless you compile the OSG specifically for the GL3 subset. There have been a few changes to GraphisWindowX11.cpp since 2.8.x so you revert these to see if one of the changesets is the culprit. It could be just a co-incidence though, sometimes threading problems can appear and disappear just with slight changes in timing. I'm afraid I'll have to leave it to you to try out different versions of GraphicsWindowX11.cpp as I can't reproduce the problem at my end so have no way of know which changes might be introducing problems. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG trunk crashing, perhaps an nvidia driver problem?
Robert Osfield wrote: Hi Eric, On Thu, May 26, 2011 at 4:21 PM, Eric Sokolowsky esok@gmail.com wrote: Yes, this is what I mean. X11 itself crashes and restarts. One of the weird issues is that this happens only for OSG trunk, not for OSG 2.8 svn, on the same machine. Perhaps there is some OpenGL3+ weirdness going on here. I doubt it has anything to do with GL3 as the svn/trunk doesn't do anything special for GL3 unless you compile the OSG specifically for the GL3 subset. Ok, thanks for the info. There have been a few changes to GraphisWindowX11.cpp since 2.8.x so you revert these to see if one of the changesets is the culprit. It could be just a co-incidence though, sometimes threading problems can appear and disappear just with slight changes in timing. I'm afraid I'll have to leave it to you to try out different versions of GraphicsWindowX11.cpp as I can't reproduce the problem at my end so have no way of know which changes might be introducing problems. Well I'm making some progress. After updating my nvidia driver X11 no longer crashes, but osgviewer still does. I'm going to try this on another mac machine also running Fedora 14. Anyone else using Fedora 14 out there? I'll try messing with GraphicsWindowX11.cpp next. Eric ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org