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'm working on an ESP32 project where everything GEM-related is dynamically allocated.
However LoadProhibited fatal error occurs when menu.drawMenu() is called. Turns out that pointer menuItemNext defined in GEMItem.h is wild and the issue disappears if menuItemNext is initialized with nullptr.
I wonder if this is because that all objects are dynamically allocated or just that I'm retarded (I did not dig too deep into the code).
Code can be provided if required. :)
The text was updated successfully, but these errors were encountered:
Yes, by all means menuItemNext should be initialized with nullptr by default. However, this error doesn't trigger during "normal" workflow (e.g. examples that come with GEM) and probably related to dynamic allocation in your case. And indeed the last menu item of the menu page may end up having menuItemNext left as an uninitialized wild pointer. Which is, of course, bad and should be avoided. So I will fix it on the next patch release. Thank you!
I'm working on an ESP32 project where everything GEM-related is dynamically allocated.
However LoadProhibited fatal error occurs when menu.drawMenu() is called. Turns out that pointer menuItemNext defined in GEMItem.h is wild and the issue disappears if menuItemNext is initialized with nullptr.
I wonder if this is because that all objects are dynamically allocated or just that I'm retarded (I did not dig too deep into the code).
Code can be provided if required. :)
The text was updated successfully, but these errors were encountered: