You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Luis Cortes (Created) (JIRA)" <ji...@apache.org> on 2012/03/21 17:49:40 UTC
[jira] [Created] (CB-366) Bluetooth Plugin Memory Leak
Bluetooth Plugin Memory Leak
----------------------------
Key: CB-366
URL: https://issues.apache.org/jira/browse/CB-366
Project: Apache Callback
Issue Type: Bug
Components: Android
Affects Versions: 1.4.0
Reporter: Luis Cortes
Assignee: Joe Bowser
Minor leak detected because the looper object was not released. a simple fix can be applied at the end of the "execute" routine before the return will clean this up.
if ( Looper.myLooper() != null)
{
// Log.d("BluetoothPlugin", "Quit looper ...");
Looper.myLooper().quit();
}
return result;
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (CB-366) Bluetooth Plugin Memory Leak
Posted by "Simon MacDonald (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon MacDonald closed CB-366.
------------------------------
Resolution: Not A Problem
This is an issue with the 3rd party bluetooth plugin not the core API.
> Bluetooth Plugin Memory Leak
> ----------------------------
>
> Key: CB-366
> URL: https://issues.apache.org/jira/browse/CB-366
> Project: Apache Callback
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.4.0
> Reporter: Luis Cortes
> Assignee: Joe Bowser
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Minor leak detected because the looper object was not released. a simple fix can be applied at the end of the "execute" routine before the return will clean this up.
> if ( Looper.myLooper() != null)
> {
> // Log.d("BluetoothPlugin", "Quit looper ...");
> Looper.myLooper().quit();
>
> }
>
>
> return result;
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-366) Bluetooth Plugin Memory Leak
Posted by "Luis Cortes (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luis Cortes updated CB-366:
---------------------------
The only reason this is major, is that on my test phone, the memory leak causes my app to terminate ( okay, the real answer of course might be to get more memory -- still there are probably plenty of phones with lower memory constraints out there ).
> Bluetooth Plugin Memory Leak
> ----------------------------
>
> Key: CB-366
> URL: https://issues.apache.org/jira/browse/CB-366
> Project: Apache Callback
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.4.0
> Reporter: Luis Cortes
> Assignee: Joe Bowser
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Minor leak detected because the looper object was not released. a simple fix can be applied at the end of the "execute" routine before the return will clean this up.
> if ( Looper.myLooper() != null)
> {
> // Log.d("BluetoothPlugin", "Quit looper ...");
> Looper.myLooper().quit();
>
> }
>
>
> return result;
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-366) Bluetooth Plugin Memory Leak
Posted by "Simon MacDonald (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242385#comment-13242385 ]
Simon MacDonald commented on CB-366:
------------------------------------
Hey Luis,
The Bluetooth plugin is not part of the core API it is a 3rd party add on. The best thing for you to do is to submit a pull request to:
https://github.com/phonegap/phonegap-plugins
with you fix and it will get accepted. In the meantime I'm going to close this issue.
> Bluetooth Plugin Memory Leak
> ----------------------------
>
> Key: CB-366
> URL: https://issues.apache.org/jira/browse/CB-366
> Project: Apache Callback
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.4.0
> Reporter: Luis Cortes
> Assignee: Joe Bowser
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Minor leak detected because the looper object was not released. a simple fix can be applied at the end of the "execute" routine before the return will clean this up.
> if ( Looper.myLooper() != null)
> {
> // Log.d("BluetoothPlugin", "Quit looper ...");
> Looper.myLooper().quit();
>
> }
>
>
> return result;
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira