Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modules do not work on ESP32 - exceptions or crashes #12

Open
jonnor opened this issue Jul 3, 2024 · 1 comment
Open

Modules do not work on ESP32 - exceptions or crashes #12

jonnor opened this issue Jul 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jonnor
Copy link
Contributor

jonnor commented Jul 3, 2024

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.

@jonnor jonnor added the bug Something isn't working label Jul 3, 2024
@jonnor jonnor changed the title Modules do not work on ESP32 Modules do not work on ESP32 - exceptions or crashes Jul 3, 2024
@jonnor
Copy link
Contributor Author

jonnor commented Jul 3, 2024

I believe that this is due to this issue in upstream MicroPython: micropython/micropython#6769

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant