Skip to content

Modules exceptions or crashes after GC collect #12

Open
@jonnor

Description

@jonnor

On ESP32 and ESP32-S3 I am seeing various exceptions and crashes related to the native modules.

It can be exceptions like TypeError: 'slice' object isn't callable. Or array object is not callable. Or tuple is not callable. Or sometimes the entire interpreter crashes.

I am seeing this both with emltrees, emliir and emlfft. At first, I thought this was due to something the C code did wrong. But I reduced several C examples down to a minimum, and would still hit the issue. Even one example with a plain function (no allocated objects) - and that function itself seems to dissapear. And the behavior is influenced by unrelated things in MicroPython - doing other things that allocate/collect is needed to trigger the issue.

The same code also runs fine on x64 or STM32, or RP2040 - so it seems ESP32 port specific.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions