# "MemoryError: Out of fast Frame Buffer Stack Memory!" after M7 update

**URL:** https://forums.openmv.io/t/memoryerror-out-of-fast-frame-buffer-stack-memory-after-m7-update/1830
**Category:** OpenMV Boards
**Created:** [July 20, 2020, 12:23pm UTC](https://forums.openmv.io/t/memoryerror-out-of-fast-frame-buffer-stack-memory-after-m7-update/1830 "2020-07-20T12:23:05Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![ronOM](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@ronOM](https://forums.openmv.io/u/ronOM)
#### Post date: [July 20, 2020, 12:23pm UTC](https://forums.openmv.io/t/memoryerror-out-of-fast-frame-buffer-stack-memory-after-m7-update/1830/1 "2020-07-20T12:23:05Z")

</div>

Hello,  
I’m new to the nice OpenMV ecosystem. I started to play with it. I hadn’t issues since the update of the IDE (up to 2.5.1) and then the firmware of my M7 camera.  
Script like that one was running nice before the update:

```python
import sensor, image, time

sensor.reset() # Reset and initialize the sensor.
sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 (or GRAYSCALE)
sensor.set_framesize(sensor.QVGA) # Set frame size to QVGA (320x240)
sensor.skip_frames(time = 2000) # Wait for settings take effect.
clock = time.clock() # Create a clock object to track the FPS.

while(True):
    clock.tick() # Update the FPS clock.
    img = sensor.snapshot().lens_corr(strength=1.7) # Take a picture and return the image.
    print(clock.fps()) # Note: OpenMV Cam runs about half as fast when connected
                                    # to the IDE. The FPS should increase once disconnected.

```

now by using

> sensor.snapshot().lens\_corr(strength=1.7)

, I got:

> MemoryError: Out of fast Frame Buffer Stack Memory!

---

<div class="post-metadata">

### Author: ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)
#### Post date: [July 20, 2020, 3:48pm UTC](https://forums.openmv.io/t/memoryerror-out-of-fast-frame-buffer-stack-memory-after-m7-update/1830/2 "2020-07-20T15:48:28Z")

</div>

This might be related to an issue another use was happening. I will debug tonight and post a firmware fix.

---

<div class="post-metadata">

### Author: ![mjforan](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mjforan](https://forums.openmv.io/u/mjforan)
#### Post date: [July 20, 2020, 8:42pm UTC](https://forums.openmv.io/t/memoryerror-out-of-fast-frame-buffer-stack-memory-after-m7-update/1830/3 "2020-07-20T20:42:59Z")

</div>

I just started using the Cam H7 and I noticed the same issue. It happens in many of the example programs, such as find\_apriltags and find\_rects.  
Do you think this will be a quick fix? If not, I’d like to roll back my firmware. Is there a list of compiled binaries somewhere, or do I have to build it myself? Which commit would I have to go back to so I can avoid this error?

---

<div class="post-metadata">

### Author: ![iabdalkader](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/iabdalkader/32/1169_2.png) [@iabdalkader](https://forums.openmv.io/u/iabdalkader)
#### Post date: [July 20, 2020, 9:15pm UTC](https://forums.openmv.io/t/memoryerror-out-of-fast-frame-buffer-stack-memory-after-m7-update/1830/4 "2020-07-20T21:15:03Z")

</div>

I already fixed it, we just need to test this and then I’ll make another patch release today.

---

<div class="post-metadata">

### Author: ![ronOM](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@ronOM](https://forums.openmv.io/u/ronOM)
#### Post date: [July 21, 2020, 12:36am UTC](https://forums.openmv.io/t/memoryerror-out-of-fast-frame-buffer-stack-memory-after-m7-update/1830/5 "2020-07-21T00:36:22Z")

</div>

Is there a procedure to rollback the firmware?  
I would like to be prepared the next time there is a bug. Maybe I would like to make the camera working properly quickly and not waiting for a fix although I know you are fast to answer issues.  
The more products you will have, the more fragmented will be the code.

---

<div class="post-metadata">

### Author: ![iabdalkader](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/iabdalkader/32/1169_2.png) [@iabdalkader](https://forums.openmv.io/u/iabdalkader)
#### Post date: [July 21, 2020, 1:03am UTC](https://forums.openmv.io/t/memoryerror-out-of-fast-frame-buffer-stack-memory-after-m7-update/1830/6 "2020-07-21T01:03:29Z")

</div>

Yes, you can download any older release from here:

> **[Releases · openmv/openmv](https://github.com/openmv/openmv/releases)**
>
> OpenMV Camera Module. Contribute to openmv/openmv development by creating an account on GitHub.

BTW we fixed the issue and there should be an udpate.

---

<div class="post-metadata">

### Author: ![mechatronicsguy](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/mechatronicsguy/32/38_2.png) [@mechatronicsguy](https://forums.openmv.io/u/mechatronicsguy)
#### Post date: [July 21, 2020, 1:31am UTC](https://forums.openmv.io/t/memoryerror-out-of-fast-frame-buffer-stack-memory-after-m7-update/1830/7 "2020-07-21T01:31:13Z")

</div>

Thanks for that update! Just by coincidence, last night I pulled my M7 off the shelf again for the first time in months, and was really confused when I couldn’t get it to detect apriltags anymore.

Cheers,  
Gavin

---

<div class="post-metadata">

### Author: ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)
#### Post date: [July 21, 2020, 1:39am UTC](https://forums.openmv.io/t/memoryerror-out-of-fast-frame-buffer-stack-memory-after-m7-update/1830/8 "2020-07-21T01:39:39Z")

</div>

The new firmware will be downloaded by the IDE.
