andrewhwood / alembic

Automatically exported from code.google.com/p/alembic
Other
0 stars 0 forks source link

prman DSO segfaults in AddGeomToParamListBuilderAsFloat #275

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Export polys as subdives from maya.
2. Make rib with Procedural as usual.
3. Segfaults while copying values to std::vector in ParamListBuilder::addAsFloat

What is the expected output? What do you see instead?
No segfaults

What version of the product are you using? On what operating system?
1.0.5

It looks like AddGeomToParamListBuilderAsFloat calculates wrong boundary for 
array with IV2farray. Attached patch fixes this issue, uvs are rendered ok. No 
segfaults.

With UVs that function gets baseArrayExtent as 2, then multiplies it by 
param.getArrayExtent() to get length of data array, and when calling 
ParamListBuilder::addAsFloat it again multiplies it by param::getExtent().
Fix is just param extent * param array extent.

Original issue reported on code.google.com by sop...@gmail.com on 27 Feb 2012 at 7:32

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by miller.lucas on 10 Jul 2012 at 7:01

GoogleCodeExporter commented 9 years ago
Fix is here:

http://code.google.com/r/millerlucas-dev/source/detail?r=0193c8a94a18bed1c84bbca
8b4c4249451835d54

Original comment by miller.lucas on 27 Jul 2012 at 6:07

GoogleCodeExporter commented 9 years ago
Fixed in the new released 1.1

Original comment by miller.lucas on 2 Aug 2012 at 11:11