Qt camera example not working on i.MX6Q

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Qt camera example not working on i.MX6Q

6,971 Views
marcoraiteri
Contributor I

Hello,

I have a problem running the Qt camera example on the Freescale MCIMX6Q-SDP evaluation board.

I am using imx-3.10.53-1.1.0_ga from git://git.freescale.com/imx/fsl-arm-yocto-bsp.git

I built the image with yocto:

bitbake fsl-image-qt5

This is my local.conf:

-----------------------------------------------------------------------------------

BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"

PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"

MACHINE ??= 'imx6qsabresd'

DISTRO ?= 'poky'

PACKAGE_CLASSES ?= "package_rpm"

EXTRA_IMAGE_FEATURES = "debug-tweaks"

USER_CLASSES ?= "buildstats image-mklibs image-prelink"

PATCHRESOLVE = "noop"

BB_DISKMON_DIRS = "\

    STOPTASKS,${TMPDIR},1G,100K \

    STOPTASKS,${DL_DIR},1G,100K \

    STOPTASKS,${SSTATE_DIR},1G,100K \

    ABORT,${TMPDIR},100M,1K \

    ABORT,${DL_DIR},100M,1K \

    ABORT,${SSTATE_DIR},100M,1K"

PACKAGECONFIG_pn-qemu-native = "sdl"

PACKAGECONFIG_pn-nativesdk-qemu = "sdl"

ASSUME_PROVIDED += "libsdl-native"

CONF_VERSION = "1"

BB_NUMBER_THREADS = '4'

PARALLEL_MAKE = '-j 4'

DL_DIR ?= "${BSPDIR}/downloads/"

ACCEPT_FSL_EULA = ""

LICENSE_FLAGS_WHITELIST = "commercial"

IMAGE_INSTALL_append = " \

    openssh-sftp-server \

    cpufrequtils \

    nano \

    gstreamer \

    gst-meta-video \

    gst-fsl-plugin \

    gst-plugins-base-app \

    gst-plugins-base \

    gst-plugins-base-meta \

    gst-plugins-good \

    gst-plugins-good-rtsp \

    gst-plugins-good-udp \

    gst-plugins-good-rtpmanager \

    gst-plugins-good-rtp \

    gst-plugins-good-video4linux2 \

    gst-plugins-good-meta \

    gst-plugins-bad \

    gst-plugins-bad-camerabin2 \

    gst-plugins-bad-meta \

    gst-plugins-ugly \

    gst-plugins-ugly-meta \

    gst-plugins-gl \

    gst-plugins-gl-meta \

    gst-plugins-gl-opengl \

    packagegroup-fsl-gstreamer \

    packagegroup-fsl-tools-testapps \

    packagegroup-fsl-tools-benchmark \

    imx-vpu \

    imx-test \

    qtbase-fonts \

    qtbase-plugins \

    qtbase-tools \

    qtbase-examples \

    qtmultimedia \

    qtmultimedia-plugins \

    qtmultimedia-examples \

    qtmultimedia-qmlplugins \

    qtsvg \

    qtsvg-plugins \

    qtsensors \

    qtimageformats-plugins \

    qtsystems \

    qtsystems-tools \

    qtsystems-examples \

    qtsystems-qmlplugins \

    qtscript \

    qt3d \

    qt3d-examples \

    qt3d-qmlplugins \

    qt3d-tools \

    \

    qtdeclarative \

    qtdeclarative-plugins \

    qtdeclarative-tools \

    qtdeclarative-examples \

    qtdeclarative-qmlplugins \

    \

    qtgraphicaleffects-qmlplugins \

    qtconnectivity-qmlplugins \

    qtlocation-plugins \

    qtlocation-qmlplugins \

    cairo pango fontconfig freetype pulseaudio dbus \

    alsa-lib alsa-tools alsa-state alsa-utils-alsaconf fsl-alsa-plugins \

    i2c-tools \

    "

PACKAGECONFIG_append_pn-qtmultimedia = " gstreamer010"

-----------------------------------------------------------------------------------

This is my bblayers.conf:

-----------------------------------------------------------------------------------

LCONF_VERSION = "6"

BBPATH = "${TOPDIR}"

BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"

BBFILES ?= ""

BBLAYERS = " \

  ${BSPDIR}/sources/poky/meta \

  ${BSPDIR}/sources/poky/meta-yocto \

  \

  ${BSPDIR}/sources/meta-openembedded/meta-oe \

  \

  ${BSPDIR}/sources/meta-fsl-arm \

  ${BSPDIR}/sources/meta-fsl-arm-extra \

  ${BSPDIR}/sources/meta-fsl-demos \

"

##Freescale Yocto Release layer

BBLAYERS += " ${BSPDIR}/sources/meta-fsl-bsp-release/imx/meta-fsl-arm "

BBLAYERS += " ${BSPDIR}/sources/meta-fsl-bsp-release/imx/meta-fsl-demos "

BBLAYERS += " ${BSPDIR}/sources/meta-browser "

BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-gnome "

BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-networking "

BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-ruby "

BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-multimedia "

BBLAYERS += " ${BSPDIR}/sources/meta-qt5 "

BBLAYERS += " ${BSPDIR}/sources/meta-fsl-bsp-release/imx/meta-fsl-qt5 "

BBLAYERS += " ${BSPDIR}/sources/meta-fsl-bsp-release/imx/meta-fsl-bluez "

-----------------------------------------------------------------------------------

When I run the Qt camera example (/usr/share/qt5/examples/multimediawidgets/camera/camera) I get the following warnings and errors:

Qt Warning: Could not find a location of the system's Compose files. Consider setting the QTCOMPOSE environment variable.

Qt Warning: Could not find a location of the system's Compose files. Consider setting the QTCOMPOSE environment variable.

** (camera:1054): CRITICAL **: gst_photography_set_focus_mode: assertion 'photo != NULL' failed

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

** (camera:1054): CRITICAL **: gst_missing_encoder_message_new: assertion '!gst_caps_is_any (encode_caps)' failed

(camera:1054): GStreamer-CRITICAL **: gst_element_post_message: assertion 'message != NULL' failed

CameraBin error: "Your GStreamer installation is missing a plug-in."

I have tried to put in the image all the gstreamer plugins (base, good, bad, ugly).

I don't understand which plugin is missing.

Any help would be very appreciated.

Thank you very much

Labels (4)
0 Kudos
Reply
7 Replies

2,914 Views
joanxie
NXP TechSupport
NXP TechSupport

I checked the difference between v4l2src and imxv4l2src, v4l2src meas video source, and imxv4l2src means camera source.

it seems this QT application doesn't capture source from camera, did you try to use the latest bsp? because 3.10.53 is old version, if you must use this vesrion, pls let me know it, let me try to install it and reproduce it.

0 Kudos
Reply

2,914 Views
haggaytavyumi
Contributor III

Hi Guanqiong

I use the 3.14.52 BSP.

I have solved the problem in a total different way.

I made a linux service like program that take the frame from the source, the camera, and push the frame to the display.

The same frame pushed  to the "appsrc", that way I can use it to record the frames and capture pictures.

I used the unit_test/v4l2... source as my reference for that.

thank you

0 Kudos
Reply

2,914 Views
haggaytavyumi
Contributor III

Hello all,

We are facing the same issue.

I found out that in our system the reason to the memory leak is the ioctl function VIDIOC_ENUMSTD.

The Gstreamer get in to a endless loop because of not valid data from the v4l2 capture driver.

Did someone managed to solve the issue?

Thanks

0 Kudos
Reply

2,914 Views
vardhmanmodi
Contributor II

Hello,

We are also facing same issue.

Did you able to get QT camera working?

Thanks

0 Kudos
Reply

2,915 Views
marcoraiteri
Contributor I

I have added to local.conf, in IMAGE_INSTALL_append, the package packagegroup-fsl-gstreamer-full.

Adding that package the error has changed; now there is an out of memory error.

/usr/share/qt5/examples/multimediawidgets/camera/camera

Qt Warning: Could not find a location of the system's Compose files. Consider setting the QTCOMPOSE environment variable.

Qt Warning: Could not find a location of the system's Compose files. Consider setting the QTCOMPOSE environment variable.

** (camera:1080): CRITICAL **: gst_photography_set_focus_mode: assertion 'photo != NULL' failed

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

camera invoked oom-killer: gfp_mask=0x200da, order=0, oom_score_adj=0

CPU: 1 PID: 1080 Comm: camera Not tainted 3.10.53-1.1.0_ga+g496fbe0 #1

[<80013b00>] (unwind_backtrace+0x0/0xf4) from [<80011524>] (show_stack+0x10/0x14

)

[<80011524>] (show_stack+0x10/0x14) from [<8067eb98>] (dump_header.isra.10+0x68/

0x188)

[<8067eb98>] (dump_header.isra.10+0x68/0x188) from [<80093288>] (oom_kill_proces

s+0x268/0x3b8)

[<80093288>] (oom_kill_process+0x268/0x3b8) from [<80093850>] (out_of_memory+0x2

ac/0x2d8)

[<80093850>] (out_of_memory+0x2ac/0x2d8) from [<800976fc>] (__alloc_pages_nodema

sk+0x858/0x89c)

[<800976fc>] (__alloc_pages_nodemask+0x858/0x89c) from [<800af574>] (handle_pte_

fault+0x550/0x74c)

[<800af574>] (handle_pte_fault+0x550/0x74c) from [<800af828>] (handle_mm_fault+0

xb8/0x100)

[<800af828>] (handle_mm_fault+0xb8/0x100) from [<8001860c>] (do_page_fault+0x208

/0x390)

[<8001860c>] (do_page_fault+0x208/0x390) from [<80008394>] (do_DataAbort+0x38/0x

98)

[<80008394>] (do_DataAbort+0x38/0x98) from [<8000ddf4>] (__dabt_usr+0x34/0x40)

Exception stack(0xa837bfb0 to 0xa837bff8)

bfa0:                                     00000419 00000000 00000df1 328ebe00

bfc0: 7611f4dc 328ec210 328ebe00 00000428 7611f50c 00000001 00001208 00000083

bfe0: 00000419 7ea41210 7605f77c 7605eb88 60000010 ffffffff

Mem-info:

DMA per-cpu:

CPU    0: hi:  186, btch:  31 usd:  94

CPU    1: hi:  186, btch:  31 usd:  17

CPU    2: hi:  186, btch:  31 usd: 172

CPU    3: hi:  186, btch:  31 usd:  77

active_anon:210210 inactive_anon:284 isolated_anon:0

active_file:36 inactive_file:0 isolated_file:0

unevictable:0 dirty:0 writeback:0 unstable:0

free:856 slab_reclaimable:827 slab_unreclaimable:2068

mapped:274 shmem:323 pagetables:807 bounce:0

free_cma:0

DMA free:3500kB min:3336kB low:4168kB high:5004kB active_anon:840840kB inactive_

anon:1136kB active_file:108kB inactive_file:196kB unevictable:0kB isolated(anon)

:0kB isolated(file):0kB present:1048576kB managed:697156kB mlocked:0kB dirty:0kB

writeback:0kB mapped:1096kB shmem:1292kB slab_reclaimable:3308kB slab_unreclaim

able:8272kB kernel_stack:1504kB pagetables:3228kB unstable:0kB bounce:0kB free_c

ma:0kB writeback_tmp:0kB pages_scanned:491 all_unreclaimable? yes

lowmem_reserve[]: 0 0 0 0

DMA: 13*4kB (MR) 10*8kB (MR) 3*16kB (R) 4*32kB (R) 0*64kB 1*128kB (R) 0*256kB 0*

512kB 1*1024kB (R) 1*2048kB (R) 0*4096kB 0*8192kB 0*16384kB 0*32768kB = 3508kB

443 total pagecache pages

0 pages in swap cache

Swap cache stats: add 0, delete 0, find 0/0

Free swap  = 0kB

Total swap = 0kB

262144 pages of RAM

1472 free pages

7038 reserved pages

1658 slab pages

264686 pages shared

0 pages swap cached

[ pid ]   uid  tgid total_vm      rss nr_ptes swapents oom_score_adj name

[  208]     0   208      753      108       6        0         -1000 udevd

[  329]     0   329      816      148       6        0         -1000 udevd

[  330]     0   330      750      105       6        0         -1000 udevd

[  783]     0   783      670       54       5        0             0 S01xserver-

nodm

[  806]     0   806      758       22       5        0             0 xinit

[  807]   996   807      734       73       5        0             0 dbus-daemon

[  809]     0   809    41147     1182      83        0             0 Xorg

[  811]     0   811     1400       88       6        0             0 connmand

[  816]     0   816      565       23       4        0             0 dropbear

[  821]     0   821     1252       38       6        0             0 wpa_supplic

antbefore the out of memory error

[  824]   999   824      599       47       5        0             0 rpcbind

[  835]   997   835      486       30       5        0             0 rpc.statd

[  847]     0   847      549       13       4        0             0 syslogd

[  850]     0   850      549       16       4        0             0 klogd

[  856]   998   856      825       50       5        0             0 avahi-daemo

n

[  857]   998   857      825       45       5        0             0 avahi-daemo

n

[  868]     0   868     1113       81       6        0             0 ofonod

[  876]     0   876      974       31       5        0             0 oprofile-se

rver

[  878]     0   878      779       23       5        0             0 autohdmi

[  885]     0   885      654       36       5        0             0 rc_mxc.S

[  886]     0   886      550       14       5        0             0 getty

[  888]     0   888      750       66       5        0             0 sh

[  890]     0   890     1649      186       6        0             0 matchbox-wi

ndow

[  894]     0   894      841       54       5        0             0 dbus-launch

[  895]     0   895      701       42       5        0             0 dbus-daemon

[  910]     0   910      656       41       5        0             0 Xsession

[  919]     0   919     5581      268      15        0             0 connman-app

let

[  950]     0   950     5918      607      15        0             0 matchbox-de

skto

[  951]     0   951     5829      405      15        0             0 matchbox-pa

nel

[  955]     0   955    23716      338      14        0             0 pulseaudio

[  957]     0   957     1506       70       7        0             0 gconfd-2

[  958]     0   958     3788      188      11        0             0 settings-da

emon

[  963]     0   963     4191      185      12        0             0 console-kit

-dae

[ 1027]     0  1027     1427      105       7        0             0 matchbox-ke

yboa

[ 1080]     0  1080   263662   205749     500        0             0 camera

Out of memory: Kill process 1080 (camera) score 780 or sacrifice child

Killed process 1080 (camera) total-vm:1054648kB, anon-rss:822700kB, file-rss:296

kB

Killed

If I run the camera example with strace, I see before the out of memory error a lot of lines like the followig one:

ioctl(16, VIDIOC_ENUMSTD, 0x7ed0b5d0)   = 0

It looks like an infinite loop.

Any idea ?

Thanks

0 Kudos
Reply

2,915 Views
joanxie
NXP TechSupport
NXP TechSupport

try to use the gstreamer command gst-launch v4l2src ! autovideosink , and check the mxcv4l2 test to test the camera.

0 Kudos
Reply

2,915 Views
marcoraiteri
Contributor I

The camera, when used with v4l2, works. For instance the mxc_v4l2_overlay.out unit test works.

The problem is using the camera from Qt.

gst-launch v4l2src ! autovideosink        doesn't work (out of memory). This is the output:

                 
Setting pipeline to PAUSED ...                                            
MFW_GST_V4LSINK_PLUGIN 4.0.2 build on Mar  2 2015 11:04:36.               
syslogd invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0    
CPU: 1 PID: 851 Comm: syslogd Not tainted 3.10.53-1.1.0_ga+g496fbe0 #1    

[<80013b00>] (unwind_backtrace+0x0/0xf4) from [<80011524>] (show_stack+0x10/0x14

)                                                                         

[<80011524>] (show_stack+0x10/0x14) from [<8067eb98>] (dump_header.isra.10+0x68/

0x188)                                                                    

[<8067eb98>] (dump_header.isra.10+0x68/0x188) from [<80093288>] (oom_kill_proces

s+0x268/0x3b8)                                                            

[<80093288>] (oom_kill_process+0x268/0x3b8) from [<80093850>] (out_of_memory+0x2

ac/0x2d8)                                                                 

[<80093850>] (out_of_memory+0x2ac/0x2d8) from [<800976fc>] (__alloc_pages_nodema

sk+0x858/0x89c)                                                           

[<800976fc>] (__alloc_pages_nodemask+0x858/0x89c) from [<800924f8>] (filemap_fau

lt+0x1cc/0x420)                                                           

[<800924f8>] (filemap_fault+0x1cc/0x420) from [<800abedc>] (__do_fault+0x68/0x45

4)                                                                        

[<800abedc>] (__do_fault+0x68/0x454) from [<800af094>] (handle_pte_fault+0x70/0x

74c)                                                                      

[<800af094>] (handle_pte_fault+0x70/0x74c) from [<800af828>] (handle_mm_fault+0x

b8/0x100)                                                                 

[<800af828>] (handle_mm_fault+0xb8/0x100) from [<8001860c>] (do_page_fault+0x208

/0x390)                                                                   

[<8001860c>] (do_page_fault+0x208/0x390) from [<80008394>] (do_DataAbort+0x38/0x

98)                                                                       
                                                                          

[<80008394>] (do_DataAbort+0x38/0x98) from [<8000ddf4>] (__dabt_usr+0x34/0x40) 

Exception stack(0xa8c63fb0 to 0xa8c63ff8)                                 
3fa0:                                 00000000 76efdffb 76efdf88 000026b0  

3fc0: 7ef0da58 fbad8001 00000000 76f4d4c0 00000000 000829dc 00000013 7ef0da4c  

3fe0: 00000073 7ef0d518 76e25e1c 76e260f8 800f0010 ffffffff               
Mem-info:                                                                 
DMA per-cpu:                                                              
CPU0: hi:  186, btch:  31 usd: 103                                    
CPU1: hi:  186, btch:  31 usd: 176                                    
CPU2: hi:  186, btch:  31 usd: 185                                    
CPU3: hi:  186, btch:  31 usd: 128                                    
active_anon:210587 inactive_anon:321 isolated_anon:0                      
active_file:0 inactive_file:0 isolated_file:0                            
unevictable:0 dirty:0 writeback:0 unstable:0                             
free:829 slab_reclaimable:770 slab_unreclaimable:2060                    
mapped:209 shmem:356 pagetables:722 bounce:0                             
free_cma:0                                                               

DMA free:3316kB min:3336kB low:4168kB high:5004kB active_anon:842348kB inactive_

anon:1284kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB

isolated(file):0kB present:1048576kB managed:697156kB mlocked:0kB dirty:0kB wri

teback:0kB mapped:836kB shmem:1424kB slab_reclaimable:3080kB slab_unreclaimable:

8240kB kernel_stack:1464kB pagetables:2888kB unstable:0kB bounce:0kB free_cma:0k

B writeback_tmp:0kB pages_scanned:561 all_unreclaimable? yes              
lowmem_reserve[]: 0 0 0 0                                                 

DMA: 1*4kB (R) 1*8kB (R) 1*16kB (R) 1*32kB (R) 0*64kB 2*128kB (R) 0*256kB 0*512k

B 1*1024kB (R) 1*2048kB (R) 0*4096kB 0*8192kB 0*16384kB 0*32768kB = 3388kB
463 total pagecgst-launch  imxv4l2src   ! imxv4l2sink               
MFW_GST_V4LSRC_PLUGIN 4.0.2 build on Mar  2 2015 11:04:54.                
ov5640_download_autofocus: Downloaded firmware successfully: 0            
MFW_GST_V4LSINK_PLUGIN 4.0.2 build on Mar  2 2015 11:04:36.               
Setting pipeline to PAUSED ...                                            
Pipeline is live and does not need PREROLL ...                            
Setting pipeline to PLAYING ...                                           
New clock: GstSystemClock                                                 
full screen size:1024x768                                                 
[V4L Update Display]: left=0, top=0, width=1024, height=768               
set v4l display crop sucessfully                                          
set v4l rotate sucessfully                                                
full screen size:1024x768                                                 
>>V4L_SINK: Actually buffer status:                                       
    hardware buffer : 12                                              
    software buffer : 0    ache pages                                                 
0 pages in swap cache                                                     
Swap cache stats: add 0, delete 0, find 0/0                               
Free swap  = 0kB                                                          
Total swap = 0kB                                                          
262144 pages of RAM                                                       
1733 free pages                                                           
6926 reserved pages                                                       
1620 slab pages                                                           
264595 pages shared                                                       
0 pages swap cached                                                       
[ pid ]   uid  tgid total_vm  rss nr_ptes swapents oom_score_adj name 
[  208] 0   208  781  114   5    0     -1000 udevd
[  336] 0   336  749  105   5    0     -1000 udevd
[  338] 0   338  749  102   5    0     -1000 udevd
[  787] 0   787  670   54   4    0         0 S01xserver-
nodm                                                                      
[  810]   996   810  734   73   5    0         0 dbus-daemon
[  812] 0   812  758   22   5    0         0 xinit
                                                                          
[  814] 0   81441099 1141  84    0         0 Xorg 
[  815] 0   815 1400   88   6    0         0 connmand  
[  820] 0   820  565   23   5    0         0 dropbear  
[  825] 0   825 1252   38   6    0         0 wpa_supplic
ant                                                                       
[  828]   999   828  599   45   5    0         0 rpcbind   
[  839]   997   839  486   30   5    0         0 rpc.statd 
[  851] 0   851  549   13   5    0         0 syslogd   
[  854] 0   854  549   16   4    0         0 klogd
[  860]   998   860  825   50   5    0         0 avahi-daemo
n                                                                         
[  861]   998   861  825   45   5    0         0 avahi-daemo
n                                                                         
[  872] 0   872 1113   80   5    0         0 ofonod
[  880] 0   880  974   31   6    0         0 oprofile-se
rver                                                                      
[  882] 0   882  779   23   5    0         0 autohdmi  
[  888] 0   888  654   36   5    0         0 rc_mxc.S  
[  889] 0   889  550   14   5    0         0 getty
[  891] 0   891  751   52   4    0         0 sh   
[  894] 0   894 1650  187   8    0         0 matchbox-wi
ndow                                                                      
[  898] 0   898  841   54   4    0         0 dbus-launch
[  899] 0   899  701   42   5    0         0 dbus-daemon
[  914] 0   914  656   41   5    0         0 Xsession  
[  923] 0   923 5581  268  14    0         0 connman-app
let                                                                       
[  954] 0   954 5911  608  15    0         0 matchbox-de
skto                                                                      
[  955] 0   955 5829  445  17    0         0 matchbox-pa
nel                                                                       
[  957] 0   957 1506   70   7    0         0 gconfd-2  
[  959] 0   959 3788  188  11    0         0 settings-da
emon                                                                      
[  962] 0   96223716  338  14    0         0 pulseaudio
[  963] 0   963 1427  105   6    0         0 matchbox-ke
yboa                                                                      
[  967] 0   967 4191  187  12    0         0 console-kit
-dae                                                                      
[ 1032] 0  1032   208419   206144 411    0         0 gst-launch-
0.10                                                                      

Out of memory: Kill process 1032 (gst-launch-0.10) score 781 or sacrifice child

Killed process 1032 (gst-launch-0.10) total-vm:833676kB, anon-rss:824576kB, file

-rss:0kB                                                                  
Killed    

-------------------------------------------------------------------------------------------------------------------

Instead

gst-launch  imxv4l2src   ! autovideosink              works. This is the output:

MFW_GST_V4LSRC_PLUGIN 4.0.2 build on Mar  2 2015 11:04:54.                
Setting pipeline to PAUSED ...                                            
ov5640_download_autofocus: Downloaded firmware successfully: 0            
MFW_GST_V4LSINK_PLUGIN 4.0.2 build on Mar  2 2015 11:04:36.               
Pipeline is live and does not need PREROLL ...                            
Setting pipeline to PLAYING ...                                           
New clock: GstSystemClock                                                 
full screen size:1024x768                                                 
[V4L Update Display]: left=0, top=0, width=1024, height=768               
set v4l display crop sucessfully                                          
set v4l rotate sucessfully                                                
full screen size:1024x768                                                 
>>V4L_SINK: Actually buffer status:                                       
    hardware buffer : 12                                              
    software buffer : 0  

-------------------------------------------------------------------------------------------------------------------

Both the Qt camera example and "gst-launch v4l2src ! autovideosink" crash in a similar way (out of memory).

On the contrary "gst-launch  imxv4l2src   ! autovideosink"  works.

Maybe the problem is that Qt uses the wrong source plugin, v4l2src instead of imxv4l2src ?

Thank you very much

0 Kudos
Reply