# RTL8735B crashed during running RTSPFaceDetection (stack overflow)

**URL:** https://forum.amebaiot.com/t/rtl8735b-crashed-during-running-rtspfacedetection-stack-overflow/1759
**Category:** Multimedia
**Tags:** rtl8735b, evb-amb82
**Created:** [March 18, 2023, 12:50pm UTC](https://forum.amebaiot.com/t/rtl8735b-crashed-during-running-rtspfacedetection-stack-overflow/1759 "2023-03-18T12:50:49Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![diegochencoconut](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/diegochencoconut/32/1333_2.png) [@diegochencoconut](https://forum.amebaiot.com/u/diegochencoconut)
#### Post date: [March 18, 2023, 12:50pm UTC](https://forum.amebaiot.com/t/rtl8735b-crashed-during-running-rtspfacedetection-stack-overflow/1759/1 "2023-03-18T12:50:49Z")

</div>

Hi all,

During running the example RTSPFaceDetection, I’ve encountered the following problem:

====== Before crashed ======  
Since I’ve encountered the “Permission Denied” error, I’ve opened the Arduino IDE with “Run as Administrator”  
It ran smoothly first, so I tried to test its running time.  
I tried to shake it to see how good it could do detection,  
but after few seconds, the program crashed.

====== Output after crashed ======  
(The following output comes from Arduino Serial Monitor)

```auto
20:39:16.692 -> === stack overflow === 
20:39:16.692 -> Task name : , TCB : 71bfcf60
20:39:16.692 -> PSP 703d8590 PSPLIM 703c8620
20:39:16.692 -> MSP 20003fa8 MSPLIM 20003000
20:39:16.692 -> ====================== 
20:39:16.692 -> === stack overflow === 
20:39:16.692 -> Task name : , TCB : 71bfcf60
20:39:16.692 -> PSP 03d8590 PSPLIM 703c8620
20:39:16.692 -> 
20:39:16.692 -> Bus Fault: 
20:39:16.692 -> SCB Configurable Fault Status Reg = 0x00000100
20:39:16.692 -> 
20:39:16.736 -> Bus Fault Status: 
20:39:16.736 -> BusFault Address Reg is invalid(Asyn. BusFault)
20:39:16.736 -> Instruction bus error
20:39:16.736 -> 
20:39:16.736 -> S-domain exception from Handler mode
20:39:16.736 -> Hard Fault: H

```

====== Hardware & environment ======  
Compiling operating system: Windows 11, version 22H2  
Arduino version: version 2.0.4 (run by administrator)  
Development board: Ameba RTL8735B  
Camera module: XCF PA-FP0171-A-00  
Using own cellphone WIFI hotspot

Thank you !

---

<div class="post-metadata">

### Author: ![Pammy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/pammy/32/936_2.png) [@Pammy](https://forum.amebaiot.com/u/Pammy)
#### Post date: [March 20, 2023, 1:24am UTC](https://forum.amebaiot.com/t/rtl8735b-crashed-during-running-rtspfacedetection-stack-overflow/1759/2 "2023-03-20T01:24:58Z")

</div>

Hi @diegochencoconut,

May I know which Arduino SDK version you are using? Also, could you provide the complete log for me to take a look? Thank you!

---

<div class="post-metadata">

### Author: ![diegochencoconut](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/diegochencoconut/32/1333_2.png) [@diegochencoconut](https://forum.amebaiot.com/u/diegochencoconut)
#### Post date: [March 20, 2023, 2:32am UTC](https://forum.amebaiot.com/t/rtl8735b-crashed-during-running-rtspfacedetection-stack-overflow/1759/3 "2023-03-20T02:32:32Z")

</div>

Dear pammyleong:

Unfortunately I’m unable to give a full console log right now

I’m now using v4.0.2 of Realtek Ameba Boards (32-bit Arm v8M@500MHz)  
Hope this could help you  
Thanks!

BR,  
diegochencoconut

---

<div class="post-metadata">

### Author: ![Pammy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/pammy/32/936_2.png) [@Pammy](https://forum.amebaiot.com/u/Pammy)
#### Post date: [March 20, 2023, 2:33am UTC](https://forum.amebaiot.com/t/rtl8735b-crashed-during-running-rtspfacedetection-stack-overflow/1759/4 "2023-03-20T02:33:40Z")

</div>

Sure, let me take a look and get back to you!

---

<div class="post-metadata">

### Author: ![Pammy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/pammy/32/936_2.png) [@Pammy](https://forum.amebaiot.com/u/Pammy)
#### Post date: [March 20, 2023, 3:52am UTC](https://forum.amebaiot.com/t/rtl8735b-crashed-during-running-rtspfacedetection-stack-overflow/1759/5 "2023-03-20T03:52:53Z")

</div>

Hi @diegochencoconut,

I have tried the example on Windows 11 with SDK version 4.0.2. I didn’t get any hard fault, may I know how long you ran the example before the program crashed?

---

<div class="post-metadata">

### Author: ![diegochencoconut](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/diegochencoconut/32/1333_2.png) [@diegochencoconut](https://forum.amebaiot.com/u/diegochencoconut)
#### Post date: [March 20, 2023, 4:05am UTC](https://forum.amebaiot.com/t/rtl8735b-crashed-during-running-rtspfacedetection-stack-overflow/1759/6 "2023-03-20T04:05:09Z")

</div>

Dear pammyleong,

I believe it was less then 10 minutes.  
Thanks

BR,  
diegochencoconut
