OpenCV crashing in Linaro Android on Pandaboard

Ruud Siebierski ruudsiebierski at gmail.com
Sun Jan 15 17:06:06 UTC 2012


Hi,

I used Linaro build 399 (
https://android-build.linaro.org/builds/~linaro-android/panda/#build=399)
for an OpenCV test.
Installed the OpenCV 2.3.1 sample Tutorial 1 Basic - 0. Android Camera and
it crashes in the camera service
To "debug" i added some loglines, it seems to crash in the memcpy
(E/CameraService( 1757): memcpy 0x40ee1000 0x40dc4000 614400) in
copyFrameAndPostCopiedFrame

If more information is needed, feel free to ask.

kind regards,
Ruud


logcat

01-01 00:08:01.468 I/Sample::Activity( 1798): Instantiated new class
org.opencv.samples.tutorial0.Sample0Base
01-01 00:08:01.476 I/Sample::Activity( 1798): onCreate
01-01 00:08:01.476 I/Sample::SurfaceView( 1798): Instantiated new class
org.opencv.samples.tutorial0.Sample0View
01-01 00:08:01.640 I/Sample::SurfaceView( 1798): surfaceCreated
01-01 00:08:01.640 D/CameraHardware( 1757): HAL_getCameraInfo: 0
01-01 00:08:01.648 D/CameraHardware( 1757): HAL_openCameraHardware: 0
01-01 00:08:01.648 D/CameraHardware( 1757): PREVIEW SIZE: w=320 h=240
framerate=30
01-01 00:08:01.648 D/CameraHardware( 1757): HAL_getCameraInfo: 0
01-01 00:08:01.648 I/StagefrightPlayer( 1757):
setDataSource('/system/media/audio/ui/camera_click.ogg')
01-01 00:08:01.648 E/MediaPlayer( 1757): error (1, -2147483648)
01-01 00:08:01.648 I/StagefrightPlayer( 1757):
setDataSource('/system/media/audio/ui/VideoRecord.ogg')
01-01 00:08:01.648 E/MediaPlayer( 1757): error (1, -2147483648)
01-01 00:08:01.656 I/Sample::SurfaceView( 1798): surfaceCreated
01-01 00:08:01.656 I/Sample::SurfaceView( 1798): Starting processing thread
01-01 00:08:01.656 D/CameraHardware( 1757): PREVIEW SIZE: w=640 h=480
framerate=30
01-01 00:08:01.656 D/Camera  ( 1798): app passed NULL surface
01-01 00:08:01.656 I/CameraHardware( 1757): startPreview: in startpreview
01-01 00:08:01.656 I/CameraHardware( 1757): trying the node /dev/video0
width=640 height=480
01-01 00:08:01.796 I/ActivityManager( 1385): Displayed
org.opencv.samples.tutorial0/.Sample0Base: +398ms
01-01 00:08:05.007 D/dhcpcd  ( 1432): sending DHCP_DISCOVER with xid
0x91c1c68c, next in 16.21 seconds
01-01 00:08:08.523 E/CameraService( 1757): copyFrameAndPostCopiedFrame
01-01 00:08:08.523 E/CameraService( 1757): memcpy 0x40ee1000 0x40dc4000
614400
01-01 00:08:08.632 I/DEBUG   ( 1297): *** *** *** *** *** *** *** *** ***
*** *** *** *** *** *** ***
01-01 00:08:08.632 I/DEBUG   ( 1297): Build fingerprint:
'pandaboard/pandaboard/pandaboard:2.3.7/GWK74/eng.ruud.20120112.014629:eng/test-keys'
01-01 00:08:08.632 I/DEBUG   ( 1297): pid: 1757, tid: 1810  >>>
/system/bin/mediaserver <<<
01-01 00:08:08.632 I/DEBUG   ( 1297): signal 11 (SIGSEGV), code 1
(SEGV_MAPERR), fault addr 40e35000
01-01 00:08:08.632 I/DEBUG   ( 1297):  r0 40f52000  r1 40e35000  r2
00024fc0  r3 00000000
01-01 00:08:08.632 I/DEBUG   ( 1297):  r4 40ee1000  r5 00052030  r6
00096000  r7 81b0a24c
01-01 00:08:08.632 I/DEBUG   ( 1297):  r8 40c8be20  r9 00000000  10
40c8be18  fp 00000001
01-01 00:08:08.632 I/DEBUG   ( 1297):  ip 81b0d158  sp 40c8bda0  lr
81b09447  pc 80213058  cpsr 20000110
01-01 00:08:08.632 I/DEBUG   ( 1297):  d0  0000000000000000  d1
0000000000000000
01-01 00:08:08.632 I/DEBUG   ( 1297):  d2  0000000000000000  d3
0000000000000000
01-01 00:08:08.632 I/DEBUG   ( 1297):  d4  0000000000000000  d5
0000000000000000
01-01 00:08:08.632 I/DEBUG   ( 1297):  d6  0000000000000000  d7
0000000000000000
01-01 00:08:08.632 I/DEBUG   ( 1297):  d8  0000000000000000  d9
0000000000000000
01-01 00:08:08.632 I/DEBUG   ( 1297):  d10 0000000000000000  d11
0000000000000000
01-01 00:08:08.632 I/DEBUG   ( 1297):  d12 0000000000000000  d13
0000000000000000
01-01 00:08:08.632 I/DEBUG   ( 1297):  d14 0000000000000000  d15
0000000000000000
01-01 00:08:08.632 I/DEBUG   ( 1297):  d16 0000000000000000  d17
0000000000000000
01-01 00:08:08.632 I/DEBUG   ( 1297):  d18 7e37e43c8800759c  d19
7e37e43c8800759c
01-01 00:08:08.632 I/DEBUG   ( 1297):  d20 8025096c80250964  d21
8025097c80250974
01-01 00:08:08.632 I/DEBUG   ( 1297):  d22 3ff0000000000000  d23
8025088480250884
01-01 00:08:08.632 I/DEBUG   ( 1297):  d24 8025092c80250924  d25
8025093c80250934
01-01 00:08:08.632 I/DEBUG   ( 1297):  d26 000000a8000000a0  d27
000000b8000000b0
01-01 00:08:08.632 I/DEBUG   ( 1297):  d28 8025088480250884  d29
8025088480250884
01-01 00:08:08.632 I/DEBUG   ( 1297):  d30 8025090c80250904  d31
8025091c80250914
01-01 00:08:08.632 I/DEBUG   ( 1297):  scr 60000010
01-01 00:08:08.632 I/DEBUG   ( 1297):
01-01 00:08:08.632 I/DEBUG   ( 1297): unw_init_remote failed
01-01 00:08:08.695 I/DEBUG   ( 1297): unw_init_remote failed
01-01 00:08:08.695 I/DEBUG   ( 1297): unw_init_remote failed
01-01 00:08:08.703 I/DEBUG   ( 1297): unw_init_remote failed
01-01 00:08:08.703 I/DEBUG   ( 1297): unw_init_remote failed
01-01 00:08:08.703 I/DEBUG   ( 1297): unw_init_remote failed
01-01 00:08:08.703 I/DEBUG   ( 1297): unw_init_remote failed
01-01 00:08:08.703 I/DEBUG   ( 1297): unw_init_remote failed
01-01 00:08:08.710 I/ServiceManager( 1294): service 'media.audio_flinger'
died
01-01 00:08:08.710 I/ServiceManager( 1294): service 'media.player' died
01-01 00:08:08.710 I/ServiceManager( 1294): service 'media.camera' died
01-01 00:08:08.710 I/ServiceManager( 1294): service 'media.audio_policy'
died
01-01 00:08:08.710 W/AudioSystem( 1762): AudioFlinger server died!
01-01 00:08:08.710 W/Camera  ( 1798): Camera server died!
01-01 00:08:08.710 W/Camera  ( 1762): Camera server died!
01-01 00:08:08.710 W/Camera  ( 1798): ICamera died
01-01 00:08:08.710 W/AudioSystem( 1762): AudioPolicyService server died!
01-01 00:08:08.710 I/BootReceiver( 1385): Copying
/data/tombstones/tombstone_04 to DropBox (SYSTEM_TOMBSTONE)
01-01 00:08:08.726 E/Camera  ( 1798): Error 100
01-01 00:08:08.789 D/dalvikvm( 1385): GC_FOR_MALLOC freed 491K, 42% free
4224K/7239K, external 716K/1038K, paused 69ms
01-01 00:08:08.804 W/AudioSystem( 1385): AudioFlinger server died!
01-01 00:08:08.804 W/AudioSystem( 1385): AudioPolicyService server died!
01-01 00:08:08.898 D/dalvikvm( 1385): GC_CONCURRENT freed <1K, 42% free
4250K/7239K, external 716K/1038K, paused 0ms+5ms
01-01 00:08:09.062 I/        ( 1811): ServiceManager: 0xad50
01-01 00:08:09.062 E/ALSALib ( 1811):
external/alsa-lib/src/control/control.c:902:(snd_ctl_open_noupdate) Invalid
CTL AndroidOut
01-01 00:08:09.062 W/AudioHardwareALSA( 1811): Unable to attach mixer to
device AndroidOut: No such file or directory
01-01 00:08:09.070 E/ALSALib ( 1811):
external/alsa-lib/src/control/control.c:902:(snd_ctl_open_noupdate) Invalid
CTL AndroidIn
01-01 00:08:09.070 W/AudioHardwareALSA( 1811): Unable to attach mixer to
device AndroidIn: No such file or directory
01-01 00:08:09.093 I/CameraService( 1811): CameraService started (pid=1811)
01-01 00:08:09.093 D/AudioHardwareALSA( 1811): openOutputStream called for
devices: 0x00000002
01-01 00:08:09.093 D/ALSAModule( 1811): open called for devices 00000002 in
mode 0...
01-01 00:08:09.093 D/ALSAModule( 1811): setAlsaControls: devices 00000002
mode 0



dmesg

<7>[  397.513702]  SDP4430 Media: dsp: hw_free FE SDP4430 Media
<7>[  397.513702] omap-abe-dai omap-abe-dai: omap_abe_dai_hw_free:
MultiMedia1
<7>[  397.513824]  PDM-DL1: dsp: hw_free BE SDP4430 Media
<7>[  397.513824]  PDM-DL1: dsp: close BE SDP4430 Media
<7>[  397.513824] omap-mcpdm omap-mcpdm: omap_mcpdm_dai_shutdown: active 0
<7>[  397.513824] aess aess: OPP: id 5 = 25%
<7>[  397.513824] aess aess: OPP: id 10 = 25%
<7>[  397.513977] aess aess: OPP: id 32 = 25%
<7>[  397.513977] aess aess: OPP: id 37 = 25%
<7>[  397.513977] aess aess: OPP: id 38 = 25%
<7>[  397.514038] aess aess: new OPP level is 25
<7>[  397.514068] omap-mcpdm omap-mcpdm: aess_close: mcpdm-dl1
<7>[  397.514068]  SDP4430 Media: dsp: close FE SDP4430 Media
<7>[  397.514068] omap-abe-dai omap-abe-dai: omap_abe_dai_shutdown:
MultiMedia1
<7>[  397.514068]  PDM-DL1: pm: BE PDM-DL1 stream MultiMedia1 Playback
event 2 dir 0
<7>[  397.517852]  SDP4430 Media:   freed DSP playback path SDP4430 Media
-> PDM-DL1
<7>[  397.893341]  SDP4430 Media: found 1 audio playback paths
<7>[  397.893341]  SDP4430 Media:   connected new DSP playback path SDP4430
Media -> PDM-DL1
<7>[  397.893341]  PDM-DL1: dsp: open BE PDM-DL1
<7>[  397.893402] omap-mcpdm omap-mcpdm: omap_mcpdm_dai_startup: active 0
<7>[  397.893402] omap-mcpdm omap-mcpdm: aess_open: mcpdm-dl1
<7>[  397.893402] aess aess: new OPP level is 0
<7>[  397.893463]  SDP4430 Media: dsp: open FE SDP4430 Media
<7>[  397.893463] omap-abe-dai omap-abe-dai: omap_abe_dai_startup:
MultiMedia1
<7>[  397.895660]  PDM-DL1: dsp: hw_params BE SDP4430 Media
<7>[  397.895660] omap-mcpdm omap-mcpdm: aess_hw_params: mcpdm-dl1
<7>[  397.895782]  SDP4430 Media: dsp: hw_params FE SDP4430 Media
<7>[  397.895782] omap-abe-dai omap-abe-dai: omap_abe_dai_hw_params:
MultiMedia1
<7>[  397.895965]  SDP4430 Media: dsp: prepare FE SDP4430 Media
<7>[  397.895996]  PDM-DL1: dsp: prepare BE SDP4430 Media
<7>[  397.895996] omap-mcpdm omap-mcpdm: aess_prepare: mcpdm-dl1
<7>[  397.896026] aess aess: new OPP level is 0
<7>[  397.903106] aess aess: new OPP level is 0
<7>[  397.903686] omap-abe-dai omap-abe-dai: omap_abe_dai_prepare:
MultiMedia1
<7>[  397.903686]  PDM-DL1: pm: BE PDM-DL1 stream MultiMedia1 Playback
event 1 dir 0
<7>[  397.904296] aess aess: OPP: id 5 = 25%
<7>[  397.904296] aess aess: OPP: id 10 = 25%
<7>[  397.904296] aess aess: OPP: id 32 = 25%
<7>[  397.904296] aess aess: OPP: id 37 = 25%
<7>[  397.904327] aess aess: OPP: id 38 = 25%
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linaro.org/pipermail/linaro-android/attachments/20120115/51c10306/attachment.html>


More information about the linaro-android mailing list