If the issue was caused by memory allocation we would get debug logs as I remember adding DPRINTFs for this situation or at worst maybe a crash as I might have missed a check for null pointer somewhere.
I see no logs in the sample that was sent to me by pm, nor crash. However I see app_home mapping added and deleted more than once...
Regarding newer usage, I am aware, I mean I made the remapping changes with dynamic allocation because people asked for better support than just a handful of remaps for games.
The memory allocation and the mutex are the bigger differences between this implementation and Cobra.
I remember having issues with remaps in Cobra when it was using dynamic memory allocation in versions 8.3 and lower.
If you discard the memory allocation as a possible cause, I don't have other ideas about the origin of the bug.
