# iOS crash visualiseConstraint

**URL:** <https://forums.unrealengine.com/t/ios-crash-visualiseconstraint/428511>\
**Category:** Mobile\
**Tags:** unreal-engine, crash, CPP, question\
**Created:** [July 2, 2018, 7:48am UTC](https://forums.unrealengine.com/t/ios-crash-visualiseconstraint/428511 "2018-07-02T07:48:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_38965e14](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_38965e14](https://forums.unrealengine.com/u/anonymous_user_38965e14)\
**Post date:** [July 2, 2018, 7:48am UTC](https://forums.unrealengine.com/t/ios-crash-visualiseconstraint/428511/1 "2018-07-02T07:48:36Z")

</div>

We have access to the bugly SDK. Crash report is below

SIGBUS  
BUS\_ADRALN

physx::PxVehicleConstraintShader::visualiseConstraint(physx::PxConstraintVisualizer&, void const\*, physx::PxTransform const&, physx::PxTransform const&, unsigned int) + 16337976  
physx::PxVehicleConstraintShader::visualiseConstraint(physx::PxConstraintVisualizer&, void const\*, physx::PxTransform const&, physx::PxTransform const&, unsigned int) + 14215868  
physx::PxVehicleConstraintShader::visualiseConstraint(physx::PxConstraintVisualizer&, void const\*, physx::PxTransform const&, physx::PxTransform const&, unsigned int) + 14216032  
…

The stack info is repeat many times. It looks like recursive call ‘visualiseConstraint(…)’, but I can’t find any useful imfomation about this function

---

<div class="post-metadata">

**Author:** ![CyberBibby](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cyberbibby/32/466831_2.png) [@CyberBibby](https://forums.unrealengine.com/u/CyberBibby)\
**Post date:** [January 25, 2019, 10:01am UTC](https://forums.unrealengine.com/t/ios-crash-visualiseconstraint/428511/2 "2019-01-25T10:01:35Z")

</div>

I encountered this crash as well. Have you fixed it?

---

<div class="post-metadata">

**Author:** ![YCG02041](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YCG02041](https://forums.unrealengine.com/u/YCG02041)\
**Post date:** [April 7, 2022, 10:54am UTC](https://forums.unrealengine.com/t/ios-crash-visualiseconstraint/428511/3 "2022-04-07T10:54:34Z")

</div>

I encountered this crash as well. Have you fixed it?

---

<div class="post-metadata">

**Author:** ![bibopipo1993](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bibopipo1993](https://forums.unrealengine.com/u/bibopipo1993)\
**Post date:** [May 9, 2022, 8:26am UTC](https://forums.unrealengine.com/t/ios-crash-visualiseconstraint/428511/4 "2022-05-09T08:26:47Z")

</div>

encountered this crash + 1，Is anyone solve it？

---

<div class="post-metadata">

**Author:** ![RedyRose](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RedyRose](https://forums.unrealengine.com/u/RedyRose)\
**Post date:** [November 16, 2022, 2:06pm UTC](https://forums.unrealengine.com/t/ios-crash-visualiseconstraint/428511/5 "2022-11-16T14:06:07Z")

</div>

encountered this crash too

---

<div class="post-metadata">

**Author:** ![RedyRose](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RedyRose](https://forums.unrealengine.com/u/RedyRose)\
**Post date:** [February 21, 2023, 2:51pm UTC](https://forums.unrealengine.com/t/ios-crash-visualiseconstraint/428511/6 "2023-02-21T14:51:53Z")

</div>

Does anyone have any updates on this?

---

<div class="post-metadata">

**Author:** ![AnaWilliam850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnaWilliam850](https://forums.unrealengine.com/u/AnaWilliam850)\
**Post date:** [February 21, 2023, 5:42pm UTC](https://forums.unrealengine.com/t/ios-crash-visualiseconstraint/428511/7 "2023-02-21T17:42:57Z")

</div>

> [@anonymous\_user\_38965e14](#):
>
> We have access to the bugly SDK. Crash report is below
> 
> SIGBUS  
> BUS\_ADRALN
> 
> physx::PxVehicleConstraintShader::visualiseConstraint(physx::PxConstraintVisualizer&, void const\*, physx::PxTransform const&, physx::PxTransform const&, unsigned int) + 16337976  
> physx::PxVehicleConstraintShader::visualiseConstraint(physx::PxConstraintVisualizer&, void const\*, physx::PxTransform const&, physx::PxTransform const&, unsigned int) + 14215868  
> physx::PxVehicleConstraintShader::visualiseConstraint(physx::PxConstraintVisualizer&, void const\*, physx::PxTransform const&, physx::PxTransform const&, unsigned int) + 14216032  
> …
> 
> The stack info is repeat many times. It looks like recursive call ‘visualiseConstraint(…)’, but I can’t find any useful imfomation about this function

The error you provided indicates a SIGBUS signal with a BUS\_ADRALN code, which indicates that the program attempted to access a memory address that is not properly aligned.

The stack trace suggests that the issue is related to the `visualiseConstraint()` function of the PhysX vehicle constraint shader. It seems that this function is being called recursively, which could be causing the memory alignment issue.

Without more context or information about your code, it’s difficult to provide a specific solution. However, you could try the following steps to further diagnose and potentially resolve the issue:

1. Check your code for any infinite loops or recursive function calls that could be causing the `visualiseConstraint()` function to be called repeatedly.
2. Verify that you are passing valid arguments to the `visualiseConstraint()` function. Ensure that the memory addresses being passed to the function are properly aligned and that the function is being called with the expected parameters.
3. Check the memory allocation and deallocation in your code to ensure that it is being done correctly. Memory mismanagement could cause memory alignment issues, which could result in a SIGBUS signal with a BUS\_ADRALN code.
4. Consider upgrading to a newer version of the PhysX SDK or checking for any known issues related to this function in the current version you are using.
5. Analyze the crash dump and stack trace using a debugger or profiling tool to gain more insights into the cause of the issue.

If you’re still having trouble after trying these steps, you could also consider reaching out to the support team for the bugly SDK, as they may have more experience with this specific issue and be able to provide additional guidance.
