question

Elliott Smith avatar image
Elliott Smith asked ·

CShapeTranslator::MakeCommonAttributes

I have a translator that used to work fine when compiling with gcc 4.9.2, but when compiled with gcc 5.30 or gcc 6.3.0, crashes maya when loaded.

It seems very similar in nature to:

https://answers.arnoldrenderer.com/questions/886/mtoa-api-cextensionattrhelper-error.html

The NodeInitializer method of the translator is:

void CABCViewerTranslator::NodeInitializer(CAbTranslator context)

{

CExtensionAttrHelper helper(context.maya, "procedural"); CShapeTranslator::MakeCommonAttributes(helper);

CAttrData data;

data.defaultValue.BOOL() = false;

data.name = "overrideGlobalShader";

data.shortName = "ogs"; helper.MakeInputBoolean(data) ;

}

When compiling with gcc 5/6, commenting out CShapeTranslator::MakeCommonAttributes(helper);, allows the translator to load fine.

Compiling against Arnold 5.0.2.3, MtoA 1.2.0.2 and Maya 2018.

mtoa
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Elliott Smith avatar image
Elliott Smith answered ·

Hi Sebastien,

Yes, I meant 2.1.0.2!

I thought it might have something to do with the compiler that you use, so I grabbed the HB-2.1.0.2 tarball from gitlab and compiled it with gcc 5.3.0. Perhaps that doesn't remove those STL symbols though.

Mtoa loaded and rendered ok in maya, but the problem with the translator persisted.

Is there anything to be done about this?

thanks

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Sebastien Blaineau-Ortega avatar image
Sebastien Blaineau-Ortega answered ·

Hi, MtoA for Maya 2018 is compiled with gcc 4.8.2, and since there are STL symbols in the API it's normal that it breaks with gcc 5/6.

(btw, I'm assuming you meant MtoA 2.1.0.2 and not 1.2.0.2 which is several years old)

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.