Skip to content

ussl within urequests causes memory problems #8662

@MATTYGILO

Description

@MATTYGILO

I am running a program on an esp32.

I run a https request early on in the code, then later run some resource intensive neural networks.

I get this error

Guru Meditation Error: Core 1 panic'ed (InstrFetchProhibited). Exception was unhandled.

I first mentioned this problem in these questions:
https://github.com/mocleiri/tensorflow-micropython-examples/issues/84
https://github.com/espressif/esp-idf/issues/8856

I have since found the root of the problem, but do not know how to fix it

When I comment out all the lines of code including ussl within the urequests file

https://github.com/micropython/micropython-lib/blob/master/python-ecosys/urequests/urequests.py

s = ussl.wrap_socket(s, server_hostname=host)
etc.

The program doesn't crash. However, I require https requests. All help is much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions