Reply To: Malloc_error when changing views in UINavigationController

Home Forums OpenEars plugins Malloc_error when changing views in UINavigationController Reply To: Malloc_error when changing views in UINavigationController

#1018397
Halle Winkler
Politepix

In the case of PocketsphinxController it has to be a single instantiation and is designed to be able to deliver info to any part of the app using OpenEarsEventsObserver so it should go in the root view controller and stay there IMO (very little should go in your AppDelegate).

In the case of FliteController it isn’t intended to be restricted to a single root view controller so I consider this buggy behavior. I think you can work around it for now by treating it in the same way as PocketsphinxController but I am going to look into what is going on with that tomorrow and get back to you because it ought to be able to deallocate if it is stopped properly. Can you share with me the device and OS version for testing?

Yes, every button that takes the user away from the page of spoken contents sends that message, including when the view is changed.

Can I see a snippet of the button-activated code?