Closed aguaviva closed 1 year ago
More specifically it crashes in this line of the C module's
tft
code:
It's surprising that it's calling mp_obj_str_get_str
given that args[2] is zero (i.e. an int, so it should have taken the other branch).
To debug this, I would either:
I think arg[2]
should be a string
and not an integer
, if I am not mistaken the arguments go like this:
I'd be nice to know how more experienced people would approach debugging this issue.
The code is quite simple:
More specifically it crashes in this line of the C module's
tft
code:https://github.com/aguaviva/ili9342c_mpy/blob/2486326d893f59d283057feeac00e5eff79f6266/src/ili9342c.c#L796
Which calls
mp_obj_str_get_str
:https://github.com/micropython/micropython/blob/06a7bf967c58644a0d341764994bdcc9253b4527/py/objstr.c#L2372
Here is the stack trace:
How would you go about debugging this?