minshikshin / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

Memory leak of Chromecast iOS SDK #406

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Run an app with Chromecast feature from Xcode.
2.Use Instruments to see app memory leaks.
3.You will see a lot of memory leaks from Chromecast. If I disable Chromecast 
in my app, no memory leaks. I attach a screenshot to show that.

What is the expected output? What do you see instead?
I expect to see no memory leak in my app. But I can't fix it because the code 
is binary in GoogleCast.framework.

What version of the product are you using? On what operating system?
I use GoogleCastFramework-2.4.0-Release-ios.zip

Please provide any additional information below.
It seems Chromecast framework doesn't well handle SSL auth and cause the memory 
leak.

Original issue reported on code.google.com by bombl...@gmail.com on 10 Oct 2014 at 9:10

Attachments:

GoogleCodeExporter commented 8 years ago
bomblet2, we have track down a bug in that area but it only seem to impact the 
emulator when we tested it and not devices. Can you tell us more about the 
version of tools, device and iOS version you are using? We would like to fix 
this once and for all. Many thanks for this.

For dev team, bomblet2 is seeing this on a real device.

Original comment by h...@google.com on 14 Oct 2014 at 10:40

GoogleCodeExporter commented 8 years ago
It will leak 4-5M memory per hour.

Memory leak device:
1. iPad mini (iOS6.1), Run from Xcode5.1 or Xcode6
2. iPod Touch (iOS7.1), Run from Xcode5.1 or Xcode6

No Memory leak device:
1. The New iPad (iOS8), Run from Xcode6

Network environment:
Chromecast devices and iOS devices are connected to a router, the router is 
connected to Internet via VPN.

Original comment by bombl...@gmail.com on 15 Oct 2014 at 7:07

Attachments:

GoogleCodeExporter commented 8 years ago
http://stackoverflow.com/questions/19430710/security-framework-memory-leak-using
-arc

The issue is very like the above one.

Original comment by bombl...@gmail.com on 15 Oct 2014 at 2:46

GoogleCodeExporter commented 8 years ago
This is fixed in the upcoming SDK release.

Original comment by mlind...@google.com on 20 Nov 2014 at 2:11

GoogleCodeExporter commented 8 years ago
This should be fixed now

Original comment by anad...@google.com on 5 Dec 2014 at 5:44