Issue 275 in alembic: prman DSO segfaults in AddGeomToParamListBuilderAsFloat

7 views
Skip to first unread message

ale...@googlecode.com

unread,
Feb 27, 2012, 2:33:04 AM2/27/12
to alemb...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect FoundBy-Community

New issue 275 by sop...@gmail.com: prman DSO segfaults in
AddGeomToParamListBuilderAsFloat
http://code.google.com/p/alembic/issues/detail?id=275

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.

Attachments:
dsopatch.diff 592 bytes

ale...@googlecode.com

unread,
Jul 10, 2012, 3:01:58 PM7/10/12
to alemb...@googlegroups.com
Updates:
Status: InProgress
Owner: steve.l...@gmail.com
Labels: Milestone-1.1

Comment #1 on issue 275 by miller.lucas: prman DSO segfaults in
AddGeomToParamListBuilderAsFloat
http://code.google.com/p/alembic/issues/detail?id=275

(No comment was entered for this change.)

ale...@googlecode.com

unread,
Jul 27, 2012, 2:07:24 PM7/27/12
to alemb...@googlegroups.com
Updates:
Status: PleaseVerify

Comment #2 on issue 275 by miller.lucas: prman DSO segfaults in
AddGeomToParamListBuilderAsFloat
http://code.google.com/p/alembic/issues/detail?id=275

Fix is here:

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

Reply all
Reply to author
Forward
0 new messages