You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issue tracker for a similar issue and not found a similar issue.
What is the expected behavior?
We do not leak memory and do not run out of DMA-capable memory (needed for LCD SPI).
What is the actual behavior?
Running Nofrendo (NES) emluation seems to decrease DMA-capable memory:
Steps to reproduce.
Run GBC rom
Run NES rom
Run another NES rom
Run GBC rom
Run another GBC rom
See that DMA decreases between steps 1->2 and steps 2->3, but not 3->4 or 4->5.
Build or installation Logs.
No response
More Information.
This may be related to nofrendo itself (and the modiciations I've made to it), or it could be more general and associated with one of the following:
How the screen is communicated with (e.g. emulators use DMA capable memory, but the menu/gui and clearing commands use non-dma capable memory)
Somewhere in the emulator(s) which is using stack that's not clearing for some reason
Somewhere in the emulator(s) which are using mallocs but not freeing the memory
Perhaps the internal allocation of dma-capable memory in the spi transaction in ESP-IDF is leaking memory during the cases when non-dma capable memory is being passed in?
I don't have hard data for it yet, but I believe the memory leak is worse when the steps include loading save states in the emulators.
6. Something else entirely?
The text was updated successfully, but these errors were encountered:
I've added some logging to spi_master.c and seen that there are cases where it is attempting to free memory that was not allocated. This happens during a timeout when trying to get the trans_result. Possibly related ESP-IDF issue here: espressif/esp-idf#10066
Answers checklist.
What is the expected behavior?
We do not leak memory and do not run out of DMA-capable memory (needed for LCD SPI).
What is the actual behavior?
Running Nofrendo (NES) emluation seems to decrease DMA-capable memory:
Steps to reproduce.
See that DMA decreases between steps 1->2 and steps 2->3, but not 3->4 or 4->5.
Build or installation Logs.
No response
More Information.
This may be related to
nofrendo
itself (and the modiciations I've made to it), or it could be more general and associated with one of the following:I don't have hard data for it yet, but I believe the memory leak is worse when the steps include loading save states in the emulators.
6. Something else entirely?
The text was updated successfully, but these errors were encountered: