Hello all,
I’m new to wearables and to Tizen Studio. Started developing some apps for Galaxy Watch recently.
Tried to use UI Builder-Navigation View to create Native App.
Then after using the app for some time it started crashing. I have found out that it was because of high usage of memory.
Started to dig into this and turned out there were some leaks in files generated by UI Builder.
Even initial application created by UI Builder has the leaks - tested with Leak Sanitizer.
(Of course not only this, sample Previous button was actually creating new view and pushing it to Elm_Naviframe instead popping old view)
So then I tried freeing the memory that was allocated in generated uib_view_create() function (managed/src/view/) and not freed anywhere before.
Turned out that there is still managed/manager/uib_view_manager.c that holds the pointers to views contexts that I’ve freed and got a crash obviously.
The generated files are unable to modify, since:
/*******************************************************************************
- This file was generated by UI Builder.
- This file will be auto-generated each and everytime you save your project.
- Do not hand edit this file.
********************************************************************************/
So here is my story
Do you have any advice here? Is there a way to use UI builder and maintain the leaks?
Thanks!