Closed leonard7e closed 6 years ago
A bit of googling seems to suggest that the startup error may come from a bug in OpenColorIO :
https://github.com/imageworks/OpenColorIO/issues/297 https://github.com/imageworks/OpenColorIO/issues/379
Is it possible you might be hitting that, or are you running with an english locale (which would suggest there is another problem).
As for the crash, I wonder if you could provide us with a stack trace to help us track it down? If you run Gaffer with env GAFFER_DEBUG=1 gaffer
, that'll load Gaffer in the gdb debugger. You can then enter r
to run it, and when it crashes, enter bt
to get a stack trace. If you could post that here we will hopefully be able to get to the root of the problem…
Cheers… John
Hi John,
I had German locales. Changed to english locales.
Now localectl gives
System Locale: LANG=en_US.utf8 VC Keymap: us-euro X11 Layout: en,en
Same issues with ocio.
I edited some files , removed line with FROM manually. All errors relating to OpenColorIO disappeared.
But gaffer still crashes if I create a node
terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc
Regards, Leonard
gdb log ( llines with FROM removed from ocio data files )
Starting program: /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/bin/python /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/bin/gaffer.py Missing separate debuginfos, use: debuginfo-install glibc-2.20-7.fc21.x86_64 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Detaching after fork from child process 4148. Detaching after fork from child process 4150. Detaching after fork from child process 4152. Detaching after fork from child process 4154. Detaching after fork from child process 4156. Detaching after fork from child process 4158. Detaching after fork from child process 4160. [New Thread 0x7fffcda16700 (LWP 4164)]
Program received signal SIGABRT, Aborted. 0x00007ffff6d468c7 in raise () from /lib64/libc.so.6 Missing separate debuginfos, use: debuginfo-install libdrm-2.4.58-3.fc21.x86_64 mesa-dri-drivers-10.4.0-4.20141214.fc21.x86_64 mesa-libGL-10.4.1-1.20141230.fc21.x86_64 mesa-libglapi-10.4.1-1.20141230.fc21.x86_64 systemd-libs-216-20.fc21.x86_64
at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:47
at ../../../../libstdc++-v3/libsupc++/eh_call.cc:54
actions=6, exception_class=<optimized out>, ue_header=<optimized out>,
context=<optimized out>)
at ../../../../libstdc++-v3/libsupc++/eh_personality.cc:670
exc=exc@entry=0x7fffc0001370, context=context@entry=0x7fffffff96d0)
at ../../../libgcc/unwind.inc:62
at ../../../libgcc/unwind.inc:230
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libIECoreGL.so
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libIECoreGL.so
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libboost_filesystem.so.1.51.0
() from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libGafferUI.so
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libGafferUI.so
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libGafferUI.so
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libGafferUI.so
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libGafferUI.so
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libGafferUIBindings.so
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libGafferUIBindings.so
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libboost_python.so.1.51.0
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libboost_python.so.1.51.0
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libboost_python.so.1.51.0
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libboost_python.so.1.51.0
kw=<optimized out>) at Objects/abstract.c:2529
at Objects/classobject.c:2602
kw=<optimized out>) at Objects/abstract.c:2529
at Objects/typeobject.c:5432
kw=<optimized out>) at Objects/abstract.c:2529
pp_stack=0x7fffffffa298, func=0x35d4670) at Python/ceval.c:4239
at Python/ceval.c:4044
at Python/ceval.c:2666
locals=<optimized out>, args=<optimized out>, argcount=3, kws=0x7ffff7f85068,
kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3253
at Objects/funcobject.c:526
kw=<optimized out>) at Objects/abstract.c:2529
flags=<optimized out>, pp_stack=0x7fffffffa568, func=0x1ce80c8)
at Python/ceval.c:4334
at Python/ceval.c:2705
locals=<optimized out>, args=<optimized out>, argcount=3, kws=0x0, kwcount=0,
defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3253
at Objects/funcobject.c:526
kw=<optimized out>) at Objects/abstract.c:2529
at Objects/classobject.c:2602
kw=<optimized out>) at Objects/abstract.c:2529
at Objects/typeobject.c:5432
kw=<optimized out>) at Objects/abstract.c:2529
arg=0x35ccf38, kw=<optimized out>) at Python/ceval.c:3890
at Python/modsupport.c:557
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libGafferUIBindings.so
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libGafferUIBindings.so
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libGafferUIBindings.so
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libGafferUIBindings.so
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libboost_python.so.1.51.0
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libboost_python.so.1.51.0
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libboost_python.so.1.51.0
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libboost_python.so.1.51.0
kw=<optimized out>) at Objects/abstract.c:2529
at Objects/classobject.c:2602
kw=<optimized out>) at Objects/abstract.c:2529
at Objects/typeobject.c:5432
kw=<optimized out>) at Objects/abstract.c:2529
pp_stack=0x7fffffffb4f8, func=0x259e7e0) at Python/ceval.c:4239
at Python/ceval.c:4044
at Python/ceval.c:2666
n=<optimized out>, pp_stack=0x7fffffffb648, func=0x1abac08)
at Python/ceval.c:4107
at Python/ceval.c:4042
at Python/ceval.c:2666
locals=<optimized out>, args=<optimized out>, argcount=3, kws=0x0, kwcount=0,
defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3253
at Objects/funcobject.c:526
kw=<optimized out>) at Objects/abstract.c:2529
at Objects/classobject.c:2602
kw=<optimized out>) at Objects/abstract.c:2529
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/python/PySide/QtCore.so
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libQtGui.so.4
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libQtGui.so.4
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/python/PySide/QtGui.so
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libQtCore.so.4
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libQtGui.so.4
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libQtGui.so.4
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libQtGui.so.4
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libQtGui.so.4
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
at gmain.c:3781
at gmain.c:3842
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libQtGui.so.4
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libQtCore.so.4
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/lib/libQtCore.so.4
from /home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/python/PySide/QtGui.so
pp_stack=0x7fffffffcfa8) at Python/ceval.c:4005
at Python/ceval.c:2666
n=<optimized out>, pp_stack=0x7fffffffd0f8, func=0x1b2a7d0)
at Python/ceval.c:4107
at Python/ceval.c:4042
at Python/ceval.c:2666
n=<optimized out>, pp_stack=0x7fffffffd248, func=0x1e59668)
at Python/ceval.c:4107
at Python/ceval.c:4042
at Python/ceval.c:2666
n=<optimized out>, pp_stack=0x7fffffffd398, func=0x10b0b90)
at Python/ceval.c:4107
at Python/ceval.c:4042
at Python/ceval.c:2666
n=<optimized out>, pp_stack=0x7fffffffd4e8, func=0x10b0a28)
at Python/ceval.c:4107
at Python/ceval.c:4042
at Python/ceval.c:2666
globals=<optimized out>, locals=<optimized out>, args=<optimized out>,
argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
at Python/ceval.c:3253
globals=<optimized out>, locals=<optimized out>) at Python/ceval.c:667
locals=0x63e690, globals=0x63e690, filename=<optimized out>, mod=0x6df9d0)
at Python/pythonrun.c:1365
start=<optimized out>, globals=0x63e690, locals=0x63e690, closeit=1,
flags=0x7fffffffd7e0) at Python/pythonrun.c:1351
filename=0x7fffffffdcb7 "/home/lsiebeneicher/opt/pkg/gaffer-0.10.0.0/bin/gaffer.py", closeit=1, flags=0x7fffffffd7e0) at Python/pythonrun.c:943
at Modules/main.c:640
quit A debugging session is active.
Inferior 1 [process 4144] will be killed.
Quit anyway? (y or n)
Are you running Gaffer in a laptop that has Nvidia optimus? Or maybe a VM?
Hi Esteban
Gaffer runs on a desktop pc. But my computer uses a nvidia quadro 600. Have troubles to get hardware acceleration drivers working on fedora.
Some time ago I tried to get bumblebee working. But I deinstalled it again.
$ glxinfo | grep -i vendor gives
server glx vendor string: SGI client glx vendor string: Mesa Project and SGI OpenGL vendor string: nouveau
It's unlikely that gaffer runs ok with the noveau drivers. I know for sure that it does not work correctly when using the intel graphics. In my case, it runs but I cannot select nodes when I use the intel gpu.
Try to install the nvidia drivers without using bumblebee.
I get the same thing in VirtualBox. I have been on an epic mission to compile all the dependencies and then build cortex/OSL/appleseed/GafferSeed - but it seems to crash as soon as it tries to draw anything with OpenGL.
As a really crappy workaround if you wish to test out other (non-visual) aspects of gaffer, you can add a 'Display' or an 'Image Read' node, and pin the viewer window to it, this way you can build gaffer graphs, without running into the crash. Not sure how practically helpful that is for actual use.
Hi marchingcubes. Trying to create node Image~Source~Display. Crashes immediately.
~~ Sorry, using nvidia proprietary driver is not an option here.
https://bugzilla.redhat.com/show_bug.cgi?id=986692 "Oh no! Something has gone wrong. A problem occurred and the system can't recover. Please contact a system administrator"
I think it's fairly expected behaviour that 3d software won't work with the Nouveau drivers? I accidentally tried Houdini on a system using Nouveau a month back, and it was unusable. There's probably not much we can do about this, without putting large amounts of work into getting things half-working. If you want to run 3d software, you're probably going to have to get the binary nvidia driver working.
Refuse to start if required OpenGL functions not available in the driver, with a clear error message stating that? Sure.
Exiting gracefully with a clear error message if OpenGL rendering fails, OK.
Displaying a 'could not render node with OpenGL' message but continuing to process - best solution.
Appearing to start up and work fine but then segfaulting upon user action leaving no clue to what the problem is? Could be handled better.
Obviously gaffer isn't at '1.0' yet so no big deal, but little things like this (clear error messages, no 'just crash and leave the user to run gdb to ascertain what the problem was') make life much easier
Related to #901 - both are GL compatibility issues.
Are the nodes being drawn using IECoreGL or does that code live in Gaffer? I remember skimming through and seeing lots of fixed-function immediate API mixed with GL 3.x stuff, which is problematic for anything that doesn't support a compatibility context (I'm surprised it's working on OSX which has been known to be the most strict and without a compatibility context). The open drivers under mesa are quite good these days, so this looks like it can be fixed with more modern approaches to GL (oldschool GL selection picking is gone, if Gaffer relies on this). But yeah, god knows how old CentOS is with mesa+the kernel, recent Ubuntus/Fedoras should have a decent enough driver stack though.
The node drawing code lives mostly in Gaffer, although we do use IECoreGL too. And we do use a nasty mix of old-skool OpenGL and more modern stuff in both Gaffer and IECoreGL. We actually target OpenGL 2.1 but using a lot of extensions which give us most of what we need from OpenGL 3 - that's how we manage to get things to work on OSX, where there is absolutely no compatibility context. At some point we need to bite the bullet and move everything over to pure OpenGL 3+, but as always, it's about finding time...
We've just released Gaffer 0.45, which includes a bugfix for an LLVM conflict that I believe is the most likely cause of this issue. Closing somewhat speculatively - please reopen if testing in 0.45.0.0 reveals the problem persists.
Trying, Gaffer did not crash after creating several nodes. Thank you for your effort.
Hi.
I have problems to create a node in gaffer.
My system.
Using Fedora 21 linux.
I get these errors on startup.
Now I try to create an arbitary node. Gaffer crashes immediately. Message:
0.8.2.0 || 0.9.0.0 || 0.10.0.0 (downloaded, precompiled)
Compiled and tried 0.11.0.0 same issue, gaffer crashes if I create a node.