-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash compiling example006: builtin_textureGradOffset: Process /usr/bin/openscad was killed by signal 6 #231
Comments
If I comment out first for (edgeprofiles) or the second for (round holes - dice value) it compiles. If they are together, it hangs. |
From the (very impressive) report details, it looks like maybe, possibly OpenCSG is calling some kind of OpenGL OcclusionQuery stuff in the i965_dri.so (Intel 965) graphics driver on 64bit and it's not going well. . . . the i965 brw_begin_query function is here in Mesa: hroncok: are you on 32 bit or 64 bit? One thing you might try, is to go to OpenSCAD/edit/preferences/advanced/opencsg/goldfeather, turn it off and/or on, and see if that makes a difference. I am on 32 bit ubuntu 12.04 and cannot reproduce the hang nor the crash. I also tried it on RHEL6.3 on a 64-bit virtual machine (at the GCC compile farm) using the opencsgtest program (doc/testing.txt) and a virtual framebuffer (Xvnc) and was also unable to reproduce the hang or the crash. |
Forcing Goldfeather makes the difference for me, it compiles without a hiccup. What that means? Never used the option before. |
This may be important (but I'm not sure). OpenCSG build flags: -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include -I../include -I.. -I/usr/X11R6/include OpenSCAD build flags: -pipe -fno-strict-aliasing -frounding-math -DEIGEN_DONT_ALIGN -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -D_REENTRANT -Wall -W -DOPENSCAD_VERSION=2012.10.31 -DOPENSCAD_YEAR=2012.0 -DOPENSCAD_MONTH=10.0 -DOPENSCAD_DAY=31.0 -DDEBUG -DUSE_PROGRESSWIDGET -DENABLE_CGAL -DENABLE_OPENCSG -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/eigen2 -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtOpenGL -I/usr/include -Isrc -I/usr/X11R6/include -Iobjects -Iobjects |
hroncok: OpenCSG allows the user to choose which algorithm to use during rendering - one is Goldfeather and one is SCS. Each algorithm uses OpenGL differently so if there are bugs or glitches somewhere in the OpenGL pipeline, (hardware, driver, OS, libraries, maybe even OpenCSG) sometimes one algorithm will trigger the issue while the other won't. Marius added the option to force Goldfeather, if I remember correctly, as a workaround for some bugs involving some "Intel HD" graphics cards/drivers, see Issue #65 . It may also be related to Issue #198 which also manifests as different behavior depending on which algorithm is selected. |
Just to let you know, issue's reproducable in the latest version. |
Thanks for the update. Does the goldfeather workaround still work for you in the latest version? |
Yes, it does. |
There is a terminal output before the crash in recent "version" (cannot remember, if it was present before): |
One idea: We could build a pure OpenCSG app (e.g. the standard OpenCSG example), and check if we can isolate the problem without dragging in all of OpenSCAD. That could make this easier to debug. |
Well,
Works with any primitive solids or any numbers instead of zeros. Not quite sure how the [[[ hell ]]] is working, but if I remove just one part of it, it won't crash. I am able to run the OpenCSG example, but have no idea, how to implement this into it, as I have no idea how to do this for with brackets in brackets in C++. |
Does anyone know if this is reproducible in a VM (I've only got a Mac atm.)? |
hroncok - would you be able to go into /help/Library Info/Details, and copy/paste everything under there to this thread? |
In Virtualbox, I am unable to reproduce. If I use 3D acceleration, I see nothing after the compilation and if I disable it, I see only some surfaces, as I think is described in other issue I cannot find right now. However, no crash. I would like to provide some kind of remote access, but my current upload speed is not very good. However, There are some desktops at our lab at the university connected much better. I could try if the bug is reproducable there.
Is 2.1 good or bad? |
Thank you, technically OpenGL 2.1 should be fine but in reality drivers can crash. A google search of "Mesa intel i965 crash" leads to a large number of discussions. It is interesting to see the programmers on the Chromium project talk about 'blacklisting' Mesa Intel drivers. http://code.google.com/p/chromium/issues/detail?id=164555 So maybe it is a driver bug, but perhaps there is some way to do a 'workaround'... Update: interesting article on i965 driver development. |
This is a Mesa bug: Blacklisting certain known-to-be-buggy drivers might make sense - it just sucks to maintain. |
I know what we can do. We can make an "OpenSCAD Compatible" badge. Then NVidia, Intel, and AMD will be so desperate to have the badge, they will fix their drivers. |
:D |
I probably don't understand the linked patch'es code. Is this the fix or a proof of a Mesa bug? Thanks. |
It looks like the link is to the actual bugfix. I don't have the hardware in questions available, so I cannot test that this fixes the issue. |
Closing as it was a Mesa bug |
Hi,
I've build packages for Fedora and we have first bug report from Automatic Bug Reporting Tool: https://bugzilla.redhat.com/show_bug.cgi?id=889785 (look at the attachments)
If I test it on my machine, I can render [F6] the example, but cannot compile [F5] it. Openscad doesn't crash, but it hangs up after CSG Products normalization.
The build is 1 commit behind master (b04734c) and the last commit seems Linux irelevant.
I can reproduce the hang at development version downloadable from openscad.org.
Thanks a lot for help.
The text was updated successfully, but these errors were encountered: