zhangchenghaigithub / dolphin-player

Automatically exported from code.google.com/p/dolphin-player
0 stars 0 forks source link

Does this project have memory leak problem? #33

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, I integrated the player into my project, but the always crash after play 
about 10 videos, so I want to know whether the project has memory problem, and 
how to avoid memory leak.

Thanks.

Original issue reported on code.google.com by eidolonS...@gmail.com on 15 May 2013 at 2:13

GoogleCodeExporter commented 8 years ago
it doesn't in version 2.6. You can try and confirm the apk provided, by playing 
several files several times.

Please let know, if code, is edited or changed further.

Thanks,
Aatral

Original comment by aatrala on 15 May 2013 at 3:42

GoogleCodeExporter commented 8 years ago
In the try_to_set_best_video_mode,  I see this : screen = SDL_SetVideoMode(w, 
h, bpp, flags);   but the variable screen does not be released at exit, I do 
not know whether need to release it.   

We app is still crash after play 10 more videos......   

log as below:
05-17 23:51:25.420: I/DEBUG(3528): *** *** *** *** *** *** *** *** *** *** *** 
*** *** *** *** ***
05-17 23:51:25.420: I/DEBUG(3528): Build fingerprint: 
'htc_wwe/htc_bravo/bravo:2.3.3/GRI40/96875.1:user/release-keys'
05-17 23:51:25.420: I/DEBUG(3528): pid: 5538, tid: 5539  >>> com.test.android 
<<<
05-17 23:51:25.420: I/DEBUG(3528): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), 
fault addr f342b434
05-17 23:51:25.420: I/DEBUG(3528):  r0 f342b434  r1 4064b4c0  r2 00000001  r3 
ad350229
05-17 23:51:25.420: I/DEBUG(3528):  r4 00000000  r5 00167538  r6 00000001  r7 
00000000
05-17 23:51:25.420: I/DEBUG(3528):  r8 00167554  r9 00167528  10 4000df8c  fp 
aca9f368
05-17 23:51:25.420: I/DEBUG(3528):  ip a812cd20  sp 100ffa50  lr a8213de1  pc 
ad35022e  cpsr 00030030
05-17 23:51:25.420: I/DEBUG(3528):  d0  0000000000000014  d1  4064c6804064c602
05-17 23:51:25.420: I/DEBUG(3528):  d2  0069007400630000  d3  0079007400690000
05-17 23:51:25.420: I/DEBUG(3528):  d4  0030003100299de8  d5  0032002c00360030
05-17 23:51:25.420: I/DEBUG(3528):  d6  002c003100300030  d7  0037003000300031
05-17 23:51:25.420: I/DEBUG(3528):  d8  0000000000000000  d9  0000000000000000
05-17 23:51:25.420: I/DEBUG(3528):  d10 0000000000000000  d11 0000000000000000
05-17 23:51:25.420: I/DEBUG(3528):  d12 0000000000000000  d13 0000000000000000
05-17 23:51:25.420: I/DEBUG(3528):  d14 0000000000000000  d15 0000000000000000
05-17 23:51:25.420: I/DEBUG(3528):  d16 0000000000000001  d17 3fe999999999999a
05-17 23:51:25.420: I/DEBUG(3528):  d18 42eccefa43de3400  d19 3fbc71c71c71c71c
05-17 23:51:25.420: I/DEBUG(3528):  d20 4008000000000000  d21 3fd99a27ad32ddf5
05-17 23:51:25.420: I/DEBUG(3528):  d22 3fd24998d6307188  d23 3fcc7288e957b53b
05-17 23:51:25.420: I/DEBUG(3528):  d24 3fc74721cad6b0ed  d25 3fc39a09d078c69f
05-17 23:51:25.420: I/DEBUG(3528):  d26 0000000000000000  d27 0000000000000000
05-17 23:51:25.420: I/DEBUG(3528):  d28 0000000000000000  d29 0000000000000000
05-17 23:51:25.420: I/DEBUG(3528):  d30 0000000000000000  d31 0000000000000000
05-17 23:51:25.420: I/DEBUG(3528):  scr 80000010
05-17 23:51:25.720: I/DEBUG(3528):          #00  pc 0005022e  
/system/lib/libandroid_runtime.so
05-17 23:51:25.720: I/DEBUG(3528):          #01  pc 00043818  
/system/lib/libdvm.so (dvmCallJNIMethod_virtualNoRef)
05-17 23:51:25.720: I/DEBUG(3528):          #02  pc 000170b4  
/system/lib/libdvm.so
05-17 23:51:25.720: I/DEBUG(3528):          #03  pc 0001c164  
/system/lib/libdvm.so (dvmMterpStd)
05-17 23:51:25.720: I/DEBUG(3528):          #04  pc 0001b05c  
/system/lib/libdvm.so (dvmInterpret)
05-17 23:51:25.720: I/DEBUG(3528):          #05  pc 00059dbc  
/system/lib/libdvm.so (dvmCallMethodV)
05-17 23:51:25.720: I/DEBUG(3528):          #06  pc 00059fd0  
/system/lib/libdvm.so (dvmCallMethod)
05-17 23:51:25.720: I/DEBUG(3528):          #07  pc 0005016c  
/system/lib/libdvm.so
05-17 23:51:25.720: I/DEBUG(3528):          #08  pc 000501e8  
/system/lib/libdvm.so
05-17 23:51:25.720: I/DEBUG(3528):          #09  pc 0005037a  
/system/lib/libdvm.so
05-17 23:51:25.720: I/DEBUG(3528):          #10  pc 0004e24a  
/system/lib/libdvm.so
05-17 23:51:25.720: I/DEBUG(3528):          #11  pc 00011e98  
/system/lib/libc.so (__thread_entry)
05-17 23:51:25.720: I/DEBUG(3528):          #12  pc 00011a74  
/system/lib/libc.so (pthread_create)
05-17 23:51:25.720: I/DEBUG(3528): code around pc:
05-17 23:51:25.720: I/DEBUG(3528): ad35020c 462a4630 f7d24479 e005efc0 eb1af7d4 
05-17 23:51:25.720: I/DEBUG(3528): ad35021c 463b4642 eb2ef7d4 e01cf8df f8549a21 
05-17 23:51:25.720: I/DEBUG(3528): ad35022c 6803000e d001429a ed20f7d2 e8bdb022 
05-17 23:51:25.720: I/DEBUG(3528): ad35023c bf0081f0 000345e4 fffffe9c 000259b5 
05-17 23:51:25.720: I/DEBUG(3528): ad35024c 0001dcc2 f7d4b510 f7d4eafe bd10eb1a 
05-17 23:51:25.720: I/DEBUG(3528): code around lr:
05-17 23:51:25.720: I/DEBUG(3528): a8213dc0 5f4e5446 4605b570 24006886 6868e009 
05-17 23:51:25.720: I/DEBUG(3528): a8213dd0 18420121 b11b68d3 68515840 47986892 
05-17 23:51:25.720: I/DEBUG(3528): a8213de0 42b43401 4628d3f3 eeb6f7fe bf00bd70 
05-17 23:51:25.720: I/DEBUG(3528): a8213df0 ab04b51f 1d10f843 f7fe4669 b005eeb4 
05-17 23:51:25.720: I/DEBUG(3528): a8213e00 bf00bd00 f100b570 46050408 4620460e 
05-17 23:51:25.720: I/DEBUG(3528): stack:
05-17 23:51:25.730: I/DEBUG(3528):     100ffa10  00167520  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa14  a811f793  
/system/lib/libutils.so
05-17 23:51:25.730: I/DEBUG(3528):     100ffa18  0000000c  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa1c  00102548  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa20  00102548  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa24  00102554  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa28  00167520  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa2c  0000000c  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa30  00167554  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa34  00167528  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa38  4000df8c  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa3c  a821c27f  
/system/lib/libbinder.so
05-17 23:51:25.730: I/DEBUG(3528):     100ffa40  0000a020  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa44  00000000  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa48  df002777  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa4c  e3a070ad  
05-17 23:51:25.730: I/DEBUG(3528): #00 100ffa50  00167538  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa54  a8223204  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa58  001ec818  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa5c  a8213f2d  
/system/lib/libbinder.so
05-17 23:51:25.730: I/DEBUG(3528):     100ffa60  00167520  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa64  a8213fad  
/system/lib/libbinder.so
05-17 23:51:25.730: I/DEBUG(3528):     100ffa68  00167520  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa6c  4064b4a8  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa70  4064b4a8  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa74  00102fc8  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa78  100ffad0  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa7c  4000dfa4  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa80  4000df8c  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa84  a8213fe5  
/system/lib/libbinder.so
05-17 23:51:25.730: I/DEBUG(3528):     100ffa88  0019aae0  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa8c  a82141d3  
/system/lib/libbinder.so
05-17 23:51:25.730: I/DEBUG(3528):     100ffa90  0019aae0  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa94  a8116c5f  
/system/lib/libutils.so
05-17 23:51:25.730: I/DEBUG(3528):     100ffa98  00167554  
05-17 23:51:25.730: I/DEBUG(3528):     100ffa9c  0019aae0  
05-17 23:51:25.730: I/DEBUG(3528):     100ffaa0  4064b4a8  
05-17 23:51:25.730: I/DEBUG(3528):     100ffaa4  a8116d51  
/system/lib/libutils.so
05-17 23:51:25.730: I/DEBUG(3528):     100ffaa8  4064b4a8  
05-17 23:51:25.740: I/DEBUG(3528):     100ffaac  00167520  
05-17 23:51:25.740: I/DEBUG(3528):     100ffab0  ad38bd24  
05-17 23:51:25.740: I/DEBUG(3528):     100ffab4  ad3501a7  
/system/lib/libandroid_runtime.so
05-17 23:51:25.740: I/DEBUG(3528):     100ffab8  100ffaf0  
05-17 23:51:25.740: I/DEBUG(3528):     100ffabc  00000000  
05-17 23:51:25.740: I/DEBUG(3528):     100ffac0  100ffb70  
05-17 23:51:25.740: I/DEBUG(3528):     100ffac4  4000dfac  
05-17 23:51:25.740: I/DEBUG(3528):     100ffac8  100ffad0  
05-17 23:51:25.740: I/DEBUG(3528):     100ffacc  aca11eb8  /system/lib/libdvm.so
05-17 23:51:25.740: I/DEBUG(3528):     100ffad0  000bed70  
05-17 23:51:25.740: I/DEBUG(3528):     100ffad4  00000001  
05-17 23:51:25.740: I/DEBUG(3528):     100ffad8  100ffb70  
05-17 23:51:25.740: I/DEBUG(3528):     100ffadc  4000dfa0  
05-17 23:51:25.740: I/DEBUG(3528):     100ffae0  436c5c2c  
05-17 23:51:25.740: I/DEBUG(3528):     100ffae4  000bed70  
05-17 23:51:25.740: I/DEBUG(3528):     100ffae8  100ffaf0  
05-17 23:51:25.740: I/DEBUG(3528):     100ffaec  aca4381b  /system/lib/libdvm.so
05-17 23:51:25.740: I/DEBUG(3528): #01 100ffaf0  4000dfa0  
05-17 23:51:25.740: I/DEBUG(3528):     100ffaf4  44760117  
05-17 23:51:25.740: I/DEBUG(3528):     100ffaf8  ad350179  
/system/lib/libandroid_runtime.so
05-17 23:51:25.740: I/DEBUG(3528):     100ffafc  100ffb70  
05-17 23:51:25.740: I/DEBUG(3528):     100ffb00  444c6110  
05-17 23:51:25.740: I/DEBUG(3528):     100ffb04  4000dfb8  
05-17 23:51:25.740: I/DEBUG(3528):     100ffb08  100ffb68  
05-17 23:51:25.740: I/DEBUG(3528):     100ffb0c  40164208  
05-17 23:51:25.740: I/DEBUG(3528):     100ffb10  aca12080  /system/lib/libdvm.so
05-17 23:51:25.740: I/DEBUG(3528):     100ffb14  aca170b8  /system/lib/libdvm.so

05-17 23:51:29.954: E/Surface(5538): surface (identity=851) is invalid, err=-19 
(No such device)
05-17 23:51:29.964: E/Surface(5538): surface (identity=851) is invalid, err=-19 
(No such device)
05-17 23:51:30.034: E/Surface(5538): surface (identity=851) is invalid, err=-19 
(No such device)
05-17 23:51:30.134: W/SurfaceComposerClient(179): Destroying surface while a 
transaction is open. Client 0x1a5f80: destroying surface 286, mTransactionOpen=1
05-17 23:51:30.335: I/BootReceiver(179): Copying /data/tombstones/tombstone_00 
to DropBox (SYSTEM_TOMBSTONE)
05-17 23:51:30.365: E/InputDispatcher(179): channel '409196b0 
com.test.android/com.test.DebugActivity (server)' ~ Consumer closed input 
channel or an error occurred.  events=0x8
05-17 23:51:30.365: E/InputDispatcher(179): channel '409196b0 
com.test.android/com.test.DebugActivity (server)' ~ Channel is unrecoverably 
broken and will be disposed!
05-17 23:51:30.435: I/ActivityManager(179): Process com.test.android (pid 5538) 
has died.
05-17 23:51:30.435: I/WindowManager(179): WIN DEATH: Window{40674588 
SurfaceView paused=false}
05-17 23:51:30.435: I/WindowManager(179): WIN DEATH: Window{40902928 
SurfaceView paused=false}
05-17 23:51:30.445: I/WindowManager(179): WIN DEATH: Window{408c1ce8 
SurfaceView paused=false}
05-17 23:51:30.445: I/WindowManager(179): WIN DEATH: Window{409de970 
SurfaceView paused=false}

Original comment by eidolonS...@gmail.com on 17 May 2013 at 3:58

GoogleCodeExporter commented 8 years ago
hello, i have error "Fatal signal 11 (SIGSEGV)" ,when trying to play several 
videos several times. may be its a memory issue, how can we release player or 
reduce memory after playing every video?

Original comment by ekta...@gmail.com on 14 Aug 2013 at 9:56

GoogleCodeExporter commented 8 years ago
I haven't observed any Fata signal or memory related issues in v2.6 version. 
Does this happen in the original source or You have modified the code? 

Original comment by aatrala on 14 Aug 2013 at 10:06

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
i have used to modify the player . and yes, you are right. i have checked the 
code with v2.6 version and resolved above issue, my player works good with 
several videos.. thanks.. but when i build .so file with v2.6 version at that 
time got another issue - JNI ERROR (app bug): attempt to use stale local 
reference 0x21b00001 .. i read this issue - 
http://code.google.com/p/dolphin-player/issues/detail?id=19.. how can i 
resolved it properly?

Original comment by ekta...@gmail.com on 15 Aug 2013 at 10:34