I found the solution to the issue:
Everything works fine until you encounter an Overflow. An overflow would occur sometimes with functions that are time sensitive. In order to avoid this you should use:
stone_recive_free();
Hence:
/* Text type data memory allocation function, dynamically created, not automatically freed */
/* The stone_recive_free() interface can be called to free memory when the user is finished using it
* If the user does not release the memory, the memory space occupied last time will be released before the next use
Hope this helps someone in the future