[iOS SDK]Memory usage keep increasing when starting live view

The place to discuss development topics.
Discussions on the RICOH THETA API and SDK, image processing of spherical images, other hardware related topics, introduction of useful libraries, etc.

[iOS SDK]Memory usage keep increasing when starting live view

Postby jimmygio » 01 Feb 2016, 16:08

Hi:

I download iOS v2 SDK v0.1.1 from https://developers.theta360.com/en/docs/sdk/download.html

And I compile the sample code by Xcode and install to my iPhone.
But I find when I call this method to start the live view:

[_httpConnection startLiveView:^(NSData *frameData) {
dispatch_async_main(^{
UIImage *image = [UIImage imageWithData:frameData];
_motionJpegView.image = image;
});
}];

I observe memory usage of this app by Xcode tool and I find the memory usage would keep increasing until the app crash.
Image

Does any one have good idea?
Thinks.
jimmygio
 
Posts: 1
Joined: 16 Jan 2016, 10:00

Re: [iOS SDK]Memory usage keep increasing when starting live view

Postby kosso » 01 Feb 2016, 21:19

I ended up writing my own version which parsed the data buffer in a slightly different way, making sure to nullify the buffer, then reallocate it after a complete set of JPEG data.

By the way, I note that they updated the iOS app the other day, which claimed to fix an issue with the live preview, so it's highly likely we'll see an update to the SDK imminently which might solve this issue.
kosso
 
Posts: 18
Joined: 10 Sep 2015, 12:16


Return to Development



All times are UTC