boost symbol clashing with Maya and libfbxassetscore2

33 views
Skip to first unread message

Lutz Paelike

unread,
Jun 5, 2011, 1:42:03 PM6/5/11
to cortexdev
Hi,

cortex is working great mostly with Maya 2011 and OSX but there is a
problem with Mayas
libfbxassetscore2.dylib (.so) .
When i try the following, as in the example of Carsten on the Wiki:

> IECore.FileSequence( "/tmp/myCaches/cache.######.fio", IECore.FrameRange( 1, 50 ) )

Maya crashes with the following stack trace
------------------------------------------------------------------------------------

4 libfbxassetscore2.dylib 0x0000000108dc4e0e unsigned
int
boost::re_detail::find_sort_syntax<boost::re_detail::cpp_regex_traits_implementation<char>,
char>(boost::re_detail::cpp_regex_traits_implementation<char> const*,
char*) + 718
5 libfbxassetscore2.dylib 0x0000000108dbd8f5
boost::re_detail::cpp_regex_traits_implementation<char>::lookup_classname_imp(char
const*, char const*) const + 85
6 libfbxassetscore2.dylib 0x0000000108dc5752
boost::re_detail::basic_regex_creator<char, boost::regex_traits<char,
boost::cpp_regex_traits<char> >
>::basic_regex_creator(boost::re_detail::regex_data<char,
boost::regex_traits<char, boost::cpp_regex_traits<char> > >*) + 114
7 libfbxassetscore2.dylib 0x0000000108dc5db1
boost::re_detail::basic_regex_parser<char, boost::regex_traits<char,
boost::cpp_regex_traits<char> >
>::basic_regex_parser(boost::re_detail::regex_data<char,
boost::regex_traits<char, boost::cpp_regex_traits<char> > >*) + 17
8 libboost_regex.dylib 0x000000012483ee90
boost::basic_regex<char, boost::regex_traits<char,
boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*,
unsigned int) + 432
9 libIECore.dylib 0x00000001288df96f
IECore::FileSequence::fileNameValidator() + 63
10 libIECore.dylib 0x00000001288dfe11
IECore::FileSequence::setFileName(std::string const&) + 49
11 libIECore.dylib 0x00000001288e11ed
IECore::FileSequence::FileSequence(std::string const&,
IECore::IntrusivePtr<IECore::FrameList>) + 93

----------------------------------------------------------------------

It looks like there are problems with exported boost symbols of
libfbxassetscore2.
This seems to be a known problem and Maya 2011 Service Pack 1 claims
to fix that,
see http://images.autodesk.com/adsk/files/maya_2011_servicepack_releasenotes_en.pdf
Bug # 360248.

However the problem remains with Maya 2011 SP3.
Is there a known fix/workaround for this issue ?

I am using gcc 4.0 + boost 1.42 with cortex Revision: 4237

Cheers,

Lutz

John

unread,
Jun 6, 2011, 1:21:52 PM6/6/11
to cort...@googlegroups.com
On 06/05/2011 10:42 AM, Lutz Paelike wrote:
> It looks like there are problems with exported boost symbols of
> libfbxassetscore2.
> This seems to be a known problem and Maya 2011 Service Pack 1 claims
> to fix that,
> see http://images.autodesk.com/adsk/files/maya_2011_servicepack_releasenotes_en.pdf
> Bug # 360248.
>
> However the problem remains with Maya 2011 SP3.
> Is there a known fix/workaround for this issue ?
Hi Lutz,

I'm afraid you're the first one to come across this issue - I have just
reproduced the problem in 2011 here on Linux though, and running nm on
libfbxassetscore2 does seem to show it exporting boost symbols
inappropriately. Looking at the libfbxassetscore2 in maya 2012 I no
longer see those problem symbols, and the code you posted appears to run
fine there.

Short of finding a service pack which genuinely fixes the problem, or
moving to 2012, I'm not sure there's much I can suggest. You could
perhaps try using DYLD_INSERT_LIBRARIES to get libIECore/libIECorePython
loaded before libfbxassetcore2 pollutes things, but I have no idea if
that would work or if it would have unwanted side effects. Our current
plan here at IE is to run 2010 till roughly the end of the year and then
jump straight to 2012...

Cheers...
John

Lutz Paelike

unread,
Jun 9, 2011, 5:39:48 PM6/9/11
to cortexdev
Hi John,

preloading libboost_regex.dylib by setting DYLD_INSERT_LIBRARIES
indeed does the trick.
Maya seems to run stable so far.

Thanks a lot,

Lutz

On 6 Jun., 19:21, John <j...@image-engine.com> wrote:
> On 06/05/2011 10:42 AM, Lutz Paelike wrote:> It looks like there are problems with exported boost symbols of
> > libfbxassetscore2.
> > This seems to be a known problem and Maya 2011 Service Pack 1 claims
> > to fix that,
> > seehttp://images.autodesk.com/adsk/files/maya_2011_servicepack_releaseno...
Reply all
Reply to author
Forward
0 new messages