-
Notifications
You must be signed in to change notification settings - Fork 466
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
Fix for material_name = "" bug #1462
Fix for material_name = "" bug #1462
Conversation
The material shouldn't be empty actually, so I assume there is a deeper bug. |
Hi @rhaschke, melodic-devel...wxmerkt:wxm-smooth-spheres To trigger the bug, I loaded a URDF that had a mesh as the visual and a sphere as the collision element. Without this check for |
If I understand you correctly, the issue is only observed in your branch to solve #1461, but not in the current master. Hence, I think your branch doesn't set the materials correctly. |
I am now following another solution, so this won't be triggered. However, with |
The segfault is an indicator that something is wrong with the material handling. |
Okay, I understand your reasoning. I still believe that if we can trigger this by using OGRE native features ( |
As you said: A segfault indicates a malformed plugin (which doesn't comply to the rules of rviz) |
I understand. I tend to catch/avoid/fix segfaults and present a helpful message/error/warning (which this PR did not do - but may consider a fix along those lines in the future). If a plugin can trigger undefined/uncaught behaviour, that's usually bad. |
Found this while debugging mesh loading - if the material name is empty, a segfault happened. This also defaults to the default material.