# Calling StartScanningAsync error dump

**URL:** <https://forum.magicleap.cloud/t/calling-startscanningasync-error-dump/1852>\
**Category:** Unity Development\
**Created:** [May 5, 2023, 3:46pm UTC](https://forum.magicleap.cloud/t/calling-startscanningasync-error-dump/1852 "2023-05-05T15:46:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dudleyharvey-kelly](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/dudleyharvey-kelly/32/735_2.png) [@dudleyharvey-kelly](https://forum.magicleap.cloud/u/dudleyharvey-kelly)\
**Post date:** [May 5, 2023, 3:46pm UTC](https://forum.magicleap.cloud/t/calling-startscanningasync-error-dump/1852/1 "2023-05-05T15:46:59Z")

</div>

Give us as much detail as possible regarding the issue you're experiencing.

**Unity Editor version** :  
2022.2.17f  
**ML2 OS version** :  
1.2.0 (secure)  
**MLSDK version** :  
1.6.0  
**Host OS** : (Windows/MacOS)  
Windows 11

**Error messages from logs** (syntax-highlighting is supported via Markdown):

 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/2ecaeedda86d49af038598cea7346d115849d5df.png)

I've copied the Marker Tracking example setup with settings configuration on Start and calling Start/ StopScanningAsync on Update based on the condition `_scanning`. Maybe I'm missing something but not sure why I'm getting this error dump when I start calling StartScanningAsync??

Cheers!

---

<div class="post-metadata">

**Author:** ![sengelman](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/sengelman/32/11_2.png) [@sengelman](https://forum.magicleap.cloud/u/sengelman)\
**Post date:** [May 10, 2023, 5:27am UTC](https://forum.magicleap.cloud/t/calling-startscanningasync-error-dump/1852/2 "2023-05-10T05:27:18Z")

</div>

@dudleyharvey-kelly Have you been successful in getting other samples to build?

---

<div class="post-metadata">

**Author:** ![dudleyharvey-kelly](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/dudleyharvey-kelly/32/735_2.png) [@dudleyharvey-kelly](https://forum.magicleap.cloud/u/dudleyharvey-kelly)\
**Post date:** [May 10, 2023, 6:37am UTC](https://forum.magicleap.cloud/t/calling-startscanningasync-error-dump/1852/3 "2023-05-10T06:37:39Z")

</div>

Hi, yes the samples were working. Just thinking I got a similar error with the Meshing when I hadn't requested the permission. I didn't think this was needed for Markers however.

---

<div class="post-metadata">

**Author:** ![dudleyharvey-kelly](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/dudleyharvey-kelly/32/735_2.png) [@dudleyharvey-kelly](https://forum.magicleap.cloud/u/dudleyharvey-kelly)\
**Post date:** [May 10, 2023, 12:28pm UTC](https://forum.magicleap.cloud/t/calling-startscanningasync-error-dump/1852/4 "2023-05-10T12:28:24Z")

</div>

It does build it's just when calling Start/ StopScanningAsync, if I use ConfigureSettings with Enable true, there is no problem Marker Tracking will be on and working. But if I start settings with Enabled false and use StartScanningAsync the error message is printed and the Marker Scanning doesn't work.
