none
Exception with usbcam.dll and CameraDShowApp RRS feed

  • Question

  • Hello,

    we are working with PXA270, USB 1.1, usbcam.dll and CameraDShowApp.

    The camera driver is wokring for a short time and after that I get the following exception:

    PinType: 2 CVideoCaptureWorker::DoRunLoop: exiting Exception 'Prefetch Abort' (3): Thread-Id=05df0002(pth=83e6c360), Proc-Id=00400002(pprc=83209aa0) 'NK.EXE', VM-active=05840002(pprc=84a9548c) 'CameraDshowApp.exe'
    PC=00000000(???+0x00000000) RA=c10abb40(usbcam.dll+0x0000bb40) SP=d441fa58, BVA=00000000
    Exception 'Data Abort' (4): Thread-Id=05df0002(pth=83e6c360), Proc-Id=00400002(pprc=83209aa0) 'NK.EXE', VM-active=05840002(pprc=84a9548c) 'CameraDshowApp.exe'
    PC=c00d0844(k.coredll.dll+0x000b0844) RA=c00ecbb0(k.coredll.dll+0x000ccbb0) SP=d441f3ec, BVA=fffffffc
    USBCam: Error: Exception in CaptureThread, most likely due to bad buffer from FillBuffer
    Exception 'Data Abort' (4): Thread-Id=05df0002(pth=83e6c360), Proc-Id=00400002(pprc=83209aa0) 'NK.EXE', VM-active=05840002(pprc=84a9548c) 'CameraDshowApp.exe'
    PC=c10abedc(usbcam.dll+0x0000bedc) RA=c10abed8(usbcam.dll+0x0000bed8) SP=d441fa58, BVA=ffffffe0
    Exception 'Data Abort' (4): Thread-Id=05df0002(pth=83e6c360), Proc-Id=00400002(pprc=83209aa0) 'NK.EXE', VM-active=05840002(pprc=84a9548c) 'CameraDshowApp.exe'
    PC=c00d0844(k.coredll.dll+0x000b0844) RA=c00ecbb0(k.coredll.dll+0x000ccbb0) SP=d441f3ec, BVA=fffffffc
    Exception 'Data Abort' (4): Thread-Id=05df0002(pth=83e6c360), Proc-Id=00400002(pprc=83209aa0) 'NK.EXE', VM-active=05840002(pprc=84a9548c) 'CameraDshowApp.exe'
    PC=c00d0844(k.coredll.dll+0x000b0844) RA=c00ecbb0(k.coredll.dll+0x000ccbb0) SP=d441f3ec, BVA=fffffffc
    RtlDispatchException: returning failure. Flags=0

    I use this registry settings:

    [HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\Video_Class]
    	"UncompressedSupport"=dword:0
    	"MJPEGSupport"=dword:1
    	"PreferredWidth"=dword:160
    	"PreferredHeight"=dword:120    

    and this options in the CameraDShowApp:

    - Video Capture
    - Still Image Sink
    - Video Renderer

    I know, that USB 1.1 is not a good condition für USB cameras, but the diver should supoort it. What could be the problem? It looks like, that a buffer underflow could be the problem. How can I set the frame rate? I seems that the CameraDShowApp works always with max. frame rate...

    Best regards,

    Andreas

    Tuesday, October 9, 2012 10:11 AM