Sixthhokage2 / remuco

Automatically exported from code.google.com/p/remuco
1 stars 1 forks source link

got Out Of Memory Exception when connecting/disconnecting 3 times #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is your environment?
* OS: Ubuntu 9.10
* Remuco version: 0.9.2
* Client device: Nokia 6300
* Player: VLC/Rythmbox

What steps will reproduce the problem?
1. Start VLC and Rythmbox on server
2. Connect to VLC
3. Disconnect
4. Connect to Rythmbox
5. Disconnect
6. Connect to VLC

Or simply connect and disconnect 3 times (tried with VLC)

What is the expected behavior? What happens instead?
Out Of Memory exception
...

Additional information:
Memory leak somewhere?

Original issue reported on code.google.com by gin...@gmail.com on 11 Mar 2010 at 11:26

GoogleCodeExporter commented 9 years ago
I cannot reproduce this error, neither on the real devices I use for testing 
nor in
the WTK emulator. The WTK emulator has a memory profiler which shows that there 
are
no leaks on repetitive connects and disconnects. Thus I guess the garbage 
collector
on the Nokia 6300 is not that perfect. You can manually run the garbage 
collector in
the client via Log -> System -> Run GC, to see what's going on there.

Original comment by obensonne@googlemail.com on 18 Mar 2010 at 7:06

GoogleCodeExporter commented 9 years ago
Closing because of no further feedback.

Original comment by obensonne@googlemail.com on 31 Mar 2010 at 7:20

GoogleCodeExporter commented 9 years ago
Sorry for delay.

OK, first time i connect and disconnect from VLC i got:
Total 2048
Used 1480
Free 568

second time:
Total 2048
Used 1822
Free 226

After running GC:
Used 1767
Free 281

and no more.
Third time i try to connect i get Out Of Memory exception.

Original comment by gin...@gmail.com on 31 Mar 2010 at 7:41

GoogleCodeExporter commented 9 years ago
That's definitely a bug in the garbage collector of your device's Java VM. On 
the
devices I've used for tested there are only 200 - 250 KB used after running the 
GC.
If that's an option for you, I'd strongly recommend a firmware update.

As a last resort you could have a try with disabling cover art support by 
setting the
image size in the client's option screen to 0.

Original comment by obensonne@googlemail.com on 31 Mar 2010 at 9:54

GoogleCodeExporter commented 9 years ago

Original comment by obensonne@googlemail.com on 8 Mar 2011 at 6:38