# Bug Report: HideCategories used in C++ with "ConstraintComponent" crashes the editor

**URL:** <https://forums.unrealengine.com/t/bug-report-hidecategories-used-in-c-with-constraintcomponent-crashes-the-editor/418101>\
**Category:** Character & Animation\
**Tags:** bug, property-customizati, details-panel-ui, unreal-engine, crash, bug-report, question\
**Created:** [February 23, 2018, 12:34am UTC](https://forums.unrealengine.com/t/bug-report-hidecategories-used-in-c-with-constraintcomponent-crashes-the-editor/418101 "2018-02-23T00:34:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![janimationd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@janimationd](https://forums.unrealengine.com/u/janimationd)\
**Post date:** [February 23, 2018, 12:34am UTC](https://forums.unrealengine.com/t/bug-report-hidecategories-used-in-c-with-constraintcomponent-crashes-the-editor/418101/1 "2018-02-23T00:34:29Z")

</div>

I have a custom class that inherits from UPhysicsConstraint component. If I try to hide settings of the UPC with the category “ConstraintComponent” in my custom class’ UCLASS() macro like so:

```
UCLASS(ClassGroup = ("Custom Classes"), meta = (BlueprintSpawnableComponent), HideCategories=(ConstraintComponent))

```

The editor crashes when I select the custom component to view its settings in a details panel.

---

<div class="post-metadata">

**Author:** ![Superwig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Superwig](https://forums.unrealengine.com/u/Superwig)\
**Post date:** [March 16, 2018, 9:44am UTC](https://forums.unrealengine.com/t/bug-report-hidecategories-used-in-c-with-constraintcomponent-crashes-the-editor/418101/2 "2018-03-16T09:44:22Z")

</div>

**Edit: Just tested this on 4.19 and it no longer crashes.**

Get the same but only if the component is selected when compiling. Otherwise it seems to work fine.  
Here’s the trace

```
Access violation - code c0000005 (first/second chance not available)

UE4Editor_PropertyEditor!FObjectPropertyNode::GetValueBaseAddress() [d:\build\++ue4+release-4.18+compile\sync\engine\source\editor\propertyeditor\private\objectpropertynode.cpp:373]
UE4Editor_PropertyEditor!FItemPropertyNode::GetValueBaseAddress() [d:\build\++ue4+release-4.18+compile\sync\engine\source\editor\propertyeditor\private\itempropertynode.cpp:39]
UE4Editor_PropertyEditor!FItemPropertyNode::GetValueAddress() [d:\build\++ue4+release-4.18+compile\sync\engine\source\editor\propertyeditor\private\itempropertynode.cpp:104]
UE4Editor_PropertyEditor!FPropertyEditor::IsEditConditionMet() [d:\build\++ue4+release-4.18+compile\sync\engine\source\editor\propertyeditor\private\presentation\propertyeditor\propertyeditor.cpp:629]
UE4Editor_PropertyEditor!SEditConditionWidget::OnGetEditConditionCheckState() [d:\build\++ue4+release-4.18+compile\sync\engine\source\editor\propertyeditor\private\propertyeditorhelpers.cpp:373]
UE4Editor_PropertyEditor!TBaseSPMethodDelegateInstance<1,SEditConditionWidget,0,enum ECheckBoxState __cdecl(void)>::Execute() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:327]
UE4Editor_Slate!TAttribute::Get() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\core\public\misc\attribute.h:137]
UE4Editor_Slate!SCheckBox::OnGetCheckImage() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\slate\private\widgets\input\scheckbox.cpp:244]
UE4Editor_Slate!TBaseSPMethodDelegateInstance<1,SCheckBox,0,FSlateBrush const * __ptr64__ cdecl(void)>::Execute() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:327]
```
