Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hd: Bad topology results in confusing output #92

Open
jcowles opened this issue Oct 27, 2016 · 3 comments
Open

Hd: Bad topology results in confusing output #92

jcowles opened this issue Oct 27, 2016 · 3 comments

Comments

@jcowles
Copy link

jcowles commented Oct 27, 2016

I accidentally specified too many triangles in a usd file and got this error message from usdview:

The first warning is great:

Warning: in Hd_TriangleIndexBuilderComputation::Resolve at line 187 of C:\src\usd\USD.jcowles\pxr\imaging\lib\hd\triangulate.cpp -- numVerts and verts are incosistent [/Head]

but the next ones are just confusing and actually hide the good warning (also would be nice if errors could be more concise / readable):

Warning: in HdResourceRegistry::Commit at line 400 of C:\src\usd\USD.jcowles\pxr\imaging\lib\hd\resourceRegistry.cpp -- Too many iterations in resolving buffer source. It's likely due to incosistent dependency.
Traceback (most recent call last):
File "C:\src\usd\stage\local\lib\python\pxr\Usdviewq\stageView.py", line 1744, in paintGL
self.drawSelHighlights)
File "C:\src\usd\stage\local\lib\python\pxr\Usdviewq\stageView.py", line 1473, in renderSinglePass
self._renderer.Render(pseudoRoot, self._renderParams)

pxr.Tf.ErrorException:
Error in 'Hd_AdjacencyBuilderComputation::Resolve' at line 236 in file C:\src\usd\USD.jcowles\pxr\imaging\lib\hd\vertexAdjacency.cpp : 'vertex index out of range index: -363441607 numPoints: 3592'
Error in 'HdResourceRegistry::Commit' at line 405 in file C:\src\usd\USD.jcowles\pxr\imaging\lib\hd\resourceRegistry.cpp : 'Failed verification: ' numBufferSourcesResolved == _numBufferSourcesToResolve ''
Error in 'HdVBOMemoryManager::_StripedBufferArrayRange::CopyData' at line 517 in file C:\src\usd\USD.jcowles\pxr\imaging\lib\hd\vboMemoryManager.cpp : 'Failed verification: ' bufferSource->GetNumComponents() == VBO->GetNumComponents() ' -- packedNormals: 0 != 1
'

@takahito-tejima
Copy link
Contributor

Thanks for filing Jeremy. We are (slowly) adding more validations and graceful fallback in Hd. I'll take care of this case too.

@jcowles
Copy link
Author

jcowles commented Oct 28, 2016

Cool!

I also realized non-renderman people probably have no idea what "numverts" and "verts" means -- a message that either matches USD terminology or just "inconsistent topology and points" would be more clear.

Thanks Takahito!

@jtran56
Copy link

jtran56 commented Oct 28, 2016

Filed as internal issue #139319.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants