Log in or register to post comments

Crash on S3

February 11, 2013 - 4:23am #1

Hi,

I am trying to load several videos in Samsung galaxy s3 but receive following crash:

02-11 14:47:57.680: A/OMXCodec(25332): frameworks/av/media/libstagefright/OMXCodec.cpp:2043 CHECK_EQ( err,(status_t)OK) failed: -110 vs. 0
02-11 14:47:57.680: A/libc(25332): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 26575 (TimedEventQueue)
02-11 14:47:57.785: I/DEBUG(27503): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-11 14:47:57.785: I/DEBUG(27503): Build fingerprint: 'samsung/m0xx/m0:4.1.2/JZO54K/I9300XXELLB:user/release-keys'
02-11 14:47:57.785: I/DEBUG(27503): pid: 25332, tid: 26575, name: TimedEventQueue  >>> /system/bin/mediaserver <<<
02-11 14:47:57.785: I/DEBUG(27503): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
02-11 14:47:57.980: I/DEBUG(27503):     r0 00000027  r1 deadbaad  r2 00000ca9  r3 00000000
02-11 14:47:57.980: I/DEBUG(27503):     r4 00000000  r5 73005954  r6 00000000  r7 00000000
02-11 14:47:57.980: I/DEBUG(27503):     r8 40092950  r9 00000001  sl ffffffff  fp ffffffff
02-11 14:47:57.980: I/DEBUG(27503):     ip fffd28ac  sp 73005950  lr 401a1c65  pc 4019e2fe  cpsr 60000030
02-11 14:47:57.980: I/DEBUG(27503):     d0  3ff71547652b82fe  d1  7e37e43c8800759c
02-11 14:47:57.980: I/DEBUG(27503):     d2  3fbdb4b5b8efa317  d3  3f1149942ce213d7
02-11 14:47:57.980: I/DEBUG(27503):     d4  bfab4e88d9de3e28  d5  3ff0000000000000
02-11 14:47:57.980: I/DEBUG(27503):     d6  4010000000000000  d7  3e36188700000001
02-11 14:47:57.980: I/DEBUG(27503):     d8  00000002ffe2a38b  d9  7fffffffffffffff
02-11 14:47:57.980: I/DEBUG(27503):     d10 0000000000000000  d11 0000000000000000
02-11 14:47:57.980: I/DEBUG(27503):     d12 0000000000000000  d13 0000000000000000
02-11 14:47:57.980: I/DEBUG(27503):     d14 0000000000000000  d15 0000000000000000
02-11 14:47:57.980: I/DEBUG(27503):     d16 0000000000000000  d17 0000000000000000
02-11 14:47:57.980: I/DEBUG(27503):     d18 4000000000000000  d19 bf66b15fc8687d92
02-11 14:47:57.980: I/DEBUG(27503):     d20 3fc54acce2a1ec71  d21 3e66376972bea4d0
02-11 14:47:57.980: I/DEBUG(27503):     d22 3fc6c310da4e22ec  d23 3fd279de4b63ba27
02-11 14:47:57.980: I/DEBUG(27503):     d24 3fe6c310da4e22ec  d25 0000000000000000
02-11 14:47:57.980: I/DEBUG(27503):     d26 0000000000000000  d27 0000000000000000
02-11 14:47:57.985: I/DEBUG(27503):     d28 0000000000000000  d29 0000000000000000
02-11 14:47:57.985: I/DEBUG(27503):     d30 0000000000000000  d31 0000000000000000
02-11 14:47:57.985: I/DEBUG(27503):     scr 20000010
02-11 14:47:57.985: I/DEBUG(27503): backtrace:
02-11 14:47:57.985: I/DEBUG(27503):     #00  pc 000182fe  /system/lib/libc.so
02-11 14:47:57.985: I/DEBUG(27503):     #01  pc 0000dc04  /system/lib/libc.so (abort+4)
02-11 14:47:57.985: I/DEBUG(27503):     #02  pc 00004109  /system/lib/libcutils.so (__android_log_assert+88)
02-11 14:47:57.985: I/DEBUG(27503):     #03  pc 00088879  /system/lib/libstagefright.so (android::OMXCodec::init()+224)
02-11 14:47:57.985: I/DEBUG(27503):     #04  pc 0008a047  /system/lib/libstagefright.so (android::OMXCodec::start(android::MetaData*)+186)
02-11 14:47:57.985: I/DEBUG(27503):     #05  pc 00060bb1  /system/lib/libstagefright.so (android::AwesomePlayer::initVideoDecoder(unsigned int)+244)
02-11 14:47:57.985: I/DEBUG(27503):     #06  pc 00066169  /system/lib/libstagefright.so (android::AwesomePlayer::onPrepareAsyncEvent()+392)
02-11 14:47:57.985: I/DEBUG(27503):     #07  pc 0005c8bf  /system/lib/libstagefright.so
02-11 14:47:57.985: I/DEBUG(27503):     #08  pc 0008fa03  /system/lib/libstagefright.so (android::TimedEventQueue::threadEntry()+354)
02-11 14:47:57.985: I/DEBUG(27503):     #09  pc 0008fa49  /system/lib/libstagefright.so (android::TimedEventQueue::ThreadWrapper(void*)+16)
02-11 14:47:57.985: I/DEBUG(27503):     #10  pc 00012e00  /system/lib/libc.so (__thread_entry+48)
02-11 14:47:57.985: I/DEBUG(27503):     #11  pc 00012558  /system/lib/libc.so (pthread_create+172)
02-11 14:47:57.985: I/DEBUG(27503): stack:
02-11 14:47:57.985: I/DEBUG(27503):          73005910  41461ddf  /system/lib/libstagefright.so
02-11 14:47:57.985: I/DEBUG(27503):          73005914  00000000  
02-11 14:47:57.985: I/DEBUG(27503):          73005918  401ca6c4  /system/lib/libc.so
02-11 14:47:57.985: I/DEBUG(27503):          7300591c  4280b008  
02-11 14:47:57.985: I/DEBUG(27503):          73005920  401ca6c4  /system/lib/libc.so
02-11 14:47:57.990: I/DEBUG(27503):          73005924  00000001  
02-11 14:47:57.990: I/DEBUG(27503):          73005928  401ca7b8  /system/lib/libc.so
02-11 14:47:57.990: I/DEBUG(27503):          7300592c  401ca718  /system/lib/libc.so
02-11 14:47:57.990: I/DEBUG(27503):          73005930  00000000  
02-11 14:47:57.990: I/DEBUG(27503):          73005934  401a1c65  /system/lib/libc.so (_fwalk+32)
02-11 14:47:57.990: I/DEBUG(27503):          73005938  00000001  
02-11 14:47:57.990: I/DEBUG(27503):          7300593c  73005954  
02-11 14:47:57.990: I/DEBUG(27503):          73005940  00000000  
02-11 14:47:57.990: I/DEBUG(27503):          73005944  00000000  
02-11 14:47:57.990: I/DEBUG(27503):          73005948  df0027ad  
02-11 14:47:57.990: I/DEBUG(27503):          7300594c  00000000  
02-11 14:47:57.990: I/DEBUG(27503):     #00  73005950  6166206e  /dev/s3c-mfc
02-11 14:47:57.990: I/DEBUG(27503):          73005954  fffffbdf  
02-11 14:47:57.990: I/DEBUG(27503):          73005958  73005954  
02-11 14:47:57.990: I/DEBUG(27503):          7300595c  00000001  
02-11 14:47:57.990: I/DEBUG(27503):          73005960  4146302c  /system/lib/libstagefright.so
02-11 14:47:57.990: I/DEBUG(27503):          73005964  00000009  
02-11 14:47:57.990: I/DEBUG(27503):          73005968  73005984  
02-11 14:47:57.990: I/DEBUG(27503):          7300596c  4146302c  /system/lib/libstagefright.so
02-11 14:47:57.990: I/DEBUG(27503):          73005970  00000000  
02-11 14:47:57.990: I/DEBUG(27503):          73005974  40193c08  /system/lib/libc.so (__pthread_clone)
02-11 14:47:57.990: I/DEBUG(27503):     #01  73005978  4013cd45  /system/lib/libcutils.so
02-11 14:47:57.990: I/DEBUG(27503):          7300597c  4013d10d  /system/lib/libcutils.so (__android_log_assert+92)
02-11 14:47:57.990: I/DEBUG(27503):     #02  73005980  73005d94  
02-11 14:47:57.990: I/DEBUG(27503):          73005984  6d617266  /dev/s3c-mfc
02-11 14:47:57.990: I/DEBUG(27503):          73005988  726f7765  /dev/ashmem/OMXCodec (deleted)
02-11 14:47:57.990: I/DEBUG(27503):          7300598c  612f736b  /dev/s3c-mfc
02-11 14:47:57.990: I/DEBUG(27503):          73005990  656d2f76  /dev/s3c-mfc
02-11 14:47:57.990: I/DEBUG(27503):          73005994  2f616964  
02-11 14:47:57.990: I/DEBUG(27503):          73005998  7362696c  
02-11 14:47:57.990: I/DEBUG(27503):          7300599c  65676174  /dev/s3c-mfc
02-11 14:47:57.990: I/DEBUG(27503):          730059a0  67697266  /dev/s3c-mfc
02-11 14:47:57.990: I/DEBUG(27503):          730059a4  4f2f7468  /dev/s3c-mfc
02-11 14:47:57.990: I/DEBUG(27503):          730059a8  6f43584d  /dev/s3c-mfc
02-11 14:47:57.990: I/DEBUG(27503):          730059ac  2e636564  
02-11 14:47:57.990: I/DEBUG(27503):          730059b0  3a707063  
02-11 14:47:57.990: I/DEBUG(27503):          730059b4  33343032  
02-11 14:47:57.990: I/DEBUG(27503):          730059b8  45484320  /dev/video0
02-11 14:47:57.990: I/DEBUG(27503):          730059bc  455f4b43  /dev/video0
02-11 14:47:57.990: I/DEBUG(27503):          ........  ........
02-11 14:47:57.990: I/DEBUG(27503): memory near r5:
02-11 14:47:57.990: I/DEBUG(27503):     73005934 401a1c65 00000001 73005954 00000000  e..@....TY.s....
02-11 14:47:57.990: I/DEBUG(27503):     73005944 00000000 df0027ad 00000000 6166206e  .....'......n fa
02-11 14:47:57.990: I/DEBUG(27503):     73005954 fffffbdf 73005954 00000001 4146302c  ....TY.s....,0FA
02-11 14:47:57.990: I/DEBUG(27503):     73005964 00000009 73005984 4146302c 00000000  .....Y.s,0FA....
02-11 14:47:57.990: I/DEBUG(27503):     73005974 40193c08 4013cd45 4013d10d 73005d94  .<.@E..@...@.].s
02-11 14:47:57.990: I/DEBUG(27503): memory near r8:
02-11 14:47:57.990: I/DEBUG(27503):     40092930 00000010 0000001b 00000002 00000002  ................
02-11 14:47:57.990: I/DEBUG(27503):     40092940 40092918 00000000 00000000 0000002b  .).@........+...
02-11 14:47:57.990: I/DEBUG(27503):     40092950 41485618 41c57b58 414855a8 00000000  .VHAX{.A.UHA....
02-11 14:47:57.995: I/DEBUG(27503):     40092960 00000000 00000000 00000010 6f006365  ............ec.o
02-11 14:47:57.995: I/DEBUG(27503):     40092970 00000028 00000093 65646976 76612f6f  (.......video/av
02-11 14:47:57.995: I/DEBUG(27503): memory near sp:
02-11 14:47:57.995: I/DEBUG(27503):     73005930 00000000 401a1c65 00000001 73005954  ....e..@....TY.s
02-11 14:47:57.995: I/DEBUG(27503):     73005940 00000000 00000000 df0027ad 00000000  .........'......
02-11 14:47:57.995: I/DEBUG(27503):     73005950 6166206e fffffbdf 73005954 00000001  n fa....TY.s....
02-11 14:47:57.995: I/DEBUG(27503):     73005960 4146302c 00000009 73005984 4146302c  ,0FA.....Y.s,0FA
02-11 14:47:57.995: I/DEBUG(27503):     73005970 00000000 40193c08 4013cd45 4013d10d  .....<.@E..@...@
02-11 14:47:57.995: I/DEBUG(27503): code around pc:
02-11 14:47:57.995: I/DEBUG(27503):     4019e2dc e000b164 6823461c d1fb2b00 68e3e026  d....F#h.+..&..h
02-11 14:47:57.995: I/DEBUG(27503):     4019e2ec 4a17b123 447a2401 47986014 20274911  #..J.$zD.`.G.I'
02-11 14:47:57.995: I/DEBUG(27503):     4019e2fc 70082400 ebb2f7f4 f7f52106 a902ecf2  .$.p.....!......
02-11 14:47:57.995: I/DEBUG(27503):     4019e30c f04f2006 460a5380 94029304 f7f59403  . O..S.F........
02-11 14:47:57.995: I/DEBUG(27503):     4019e31c 4629e8d0 20024622 e8d8f7f5 eb9ef7f4  ..)F"F. ........
02-11 14:47:57.995: I/DEBUG(27503): code around lr:
02-11 14:47:57.995: I/DEBUG(27503):     401a1c44 41f0e92d 4c0b2600 447c4680 68a56824  -..A.&.L.F|D$h.h
02-11 14:47:57.995: I/DEBUG(27503):     401a1c54 e0076867 300cf9b5 dd022b00 47c04628  gh.....0.+..(F.G
02-11 14:47:57.995: I/DEBUG(27503):     401a1c64 35544306 d5f53f01 2c006824 4630d1ef  .CT5.?..$h.,..0F
02-11 14:47:57.995: I/DEBUG(27503):     401a1c74 81f0e8bd 000288b2 43f0e92d fb01461f  ........-..C.F..
02-11 14:47:57.995: I/DEBUG(27503):     401a1c84 f8dff602 b0878058 44f8460c 8000f8d8  ....X....F.D....
02-11 14:47:57.995: I/DEBUG(27503): memory map around fault addr deadbaad:
02-11 14:47:57.995: I/DEBUG(27503):     beb49000-beb6a000 [stack]
02-11 14:47:57.995: I/DEBUG(27503):     (no map for address)
02-11 14:47:57.995: I/DEBUG(27503):     ffff0000-ffff1000 [vectors]
02-11 14:47:58.325: I/DEBUG(27503): !@dumpstate -k -t -z -d -o /data/log/dumpstate_app_native -m 25332
02-11 14:47:58.325: I/BootReceiver(2266): Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
02-11 14:47:58.335: I/dumpstate(26591): begin
 

It appears on line

mMediaPlayer.setSurface(new Surface(mSurfaceTexture));

in VideoPlayerHelper's load method.

Camera doesnt start but other UI is perfectly working.

Other camera related crash log is

 

02-11 17:19:57.275: E/ISecCameraHardware(4706): Ignore cancelAutoFocus : current operation = 0
02-11 17:19:57.275: E/ISecCameraHardware(4706): android::status_t android::ISecCameraHardware::checkArea(ssize_t, ssize_t, ssize_t, ssize_t, ssize_t, int): All values are zero
02-11 17:19:57.275: E/ISecCameraHardware(4706): FocusMode=auto, PrevFocusMode=auto
02-11 17:19:57.275: D/ISecCameraHardware(4706): setParameters X: success
02-11 17:20:17.845: W/Camera(19907): ICamera died
02-11 17:20:17.850: E/Camera(19907): Error 100
02-11 17:20:17.850: W/Camera(19907): Camera server died!
 

Crash on S3

May 5, 2013 - 8:12am #5

I'm getting a similar crash as below with the Unity3d VideoPlayback sample on an Android device (ICS). However when I only have one image target and one associated video, it works fine. This seemed like a memory issue, and I tried loading vidoes only after a marker was detected and unloading them (using VideoPlayerHelper.Unload(). This seemed to prevent the crashes, however, on reloading videos  using VideoPlayerHelper.Load() I only get a black texture. I tried going through deinitializing ( VideoPlayerHelper.DeInit() ) and initilizing ( VideoPlayerHelper.Init() ) cycle as well but with the same black texture. Interestingly, if I minimize the application and get it back up again I can see the correct video. I am wondering that if there are certain funcitons (in a certain order maybe) I can call in VideoPlayerHelper that would work. Alternatively, getting back to the original problem, is there any other fix to this memory problem?

Crash on S3

February 11, 2013 - 5:38am #4

Hi, on how many other devices have you tested ?

each device may have different resource limtations, so I presume the issue is not just limited to the Samsung Galaxy S3; probably if you test the same App on 50 different commercial devices from different vendors, chances are that you will get the same or similar crash on a few of them;

the problem is that loading 18 videos and 18 textures can easily eat up all your system resources, with the risk of not being able to run the application on many devices; 

certainly using one single texture for all 18 videos could be one solution, but it also depends how big is each texture (for instance if each texture is just 64 x 64 pixels, having 18 textures should not be a problem; on the other hand if each texture is like 512 x 512, then 18 is a big number);

so, here it is not clear whether the problem comes from the textures or from the videos themselves, but I would recommend doing some tests to verify that.

 

Crash on S3

February 11, 2013 - 5:10am #3

Hi,

Thanks for the reply. It is only happening in Samsung Galaxy S3, on other devices videos are correctly loading. I am creating separate texture for each of the 18 videos. Should i create only 1 texture for all of the videos?

Thanks

Crash on S3

February 11, 2013 - 4:42am #2

Hi, this may bu due to exceeding system resources (memory);

how many videos are you trying to load ?

is the official VideoPlayback sample working ?

Log in or register to post comments