[cpia] Device is Busy

George Talusan gstalusan@uwaterloo.ca
14 Nov 2001 01:33:30 -0500


I have had the same problem as well for a long time now.  Unplugging the
camera and then plugging it back in seems to do the trick, except from
/dev/video{n} to /dev/video{n+1} each time.

Debian.  Kernel 2.4.14 or cvs driver.  gqcam.  ABit BP6 2x466MHz.



On Tue, 2001-11-13 at 22:51, Axe wrote:
> Anyone have a problem with attempting to drop pictures from a CPIA camera,
> and it randomly locking /dev/video*?
> For a few drops, it will work properly, but then poof... heh...it breaks..
> Even though the program exits (I use gqcam), /dev/video* stays 'busy', and
> you can't drop anymore frames.
> When I try to unload the modules, I can unload cpia_usb, cpia_pp, and
> parport.  But cpia and videodev won't unload due to getting a 'device is
> busy' error.  The only way I can get this "fixed" is by rebooting the
> machine.
> I'm using RH7.2 kernel version 2.4.9-13 (This has happened with RH7.0 and
> 7.1 also).
> If anyone has any ideas, or needs more info, I'd be glad to hear it.
> 
> 
> This is the output from the messages file when I unload the three
> above-mentioned modules:
> 
> Nov 13 21:42:05 gothic kernel: usb.c: deregistering driver cpia
> Nov 13 21:42:05 gothic kernel:
> cpia.c:cpia_unregister_camera_Rc7cb4e91(3243):/dev/video0 removed while
> open, deferring video_unregister_device
> Nov 13 21:42:05 gothic kernel: Unable to handle kernel paging request at
> virtual address c888e65a
> Nov 13 21:42:05 gothic kernel:  printing eip:
> Nov 13 21:42:05 gothic kernel: c888e65a
> Nov 13 21:42:05 gothic kernel: *pde = 014a9067
> Nov 13 21:42:05 gothic kernel: *pte = 00000000
> Nov 13 21:42:05 gothic kernel: Oops: 0000
> Nov 13 21:42:05 gothic kernel: CPU:    0
> Nov 13 21:42:05 gothic kernel: EIP:
> 0010:[sound:num_midis_Ra1eae7cf+243282/98532974]    Not tainted
> Nov 13 21:42:05 gothic kernel: EIP:    0010:[<c888e65a>]    Not tainted
> Nov 13 21:42:05 gothic kernel: EFLAGS: 00010286
> Nov 13 21:42:05 gothic kernel: eax: c70d94bc   ebx: c78f2200   ecx: 00000000
> edx: c70d94bc
> Nov 13 21:42:05 gothic kernel: esi: c70d94b0   edi: c89c0000   ebp: c1cac000
> esp: c1cadf10
> Nov 13 21:42:05 gothic kernel: ds: 0018   es: 0018   ss: 0018
> Nov 13 21:42:05 gothic kernel: Process gqcam (pid: 1626, stackpage=c1cad000)
> Nov 13 21:42:05 gothic kernel: Stack: c78f2200 000b170a c887f707 c70d94b0
> c89c0000 00000000 00000000 c78f2208
> Nov 13 21:42:05 gothic kernel:        c78f2200 0004a400 40467008 c887ff0b
> c78f2200 c1cac000 40467008 00000001
> Nov 13 21:42:05 gothic kernel:        0004b000 c15d6250 ffffffea 00000000
> 0004a400 c887a091 c78f22c0 40467008
> Nov 13 21:42:05 gothic kernel: Call Trace:
> [sound:num_midis_Ra1eae7cf+182015/98594241] __insmod_cpia_S.text_L16504
> [cpia] 0x26a7
> Nov 13 21:42:05 gothic kernel: Call Trace: [<c887f707>]
> __insmod_cpia_S.text_L16504 [cpia] 0x26a7
> Nov 13 21:42:05 gothic kernel: [sound:num_midis_Ra1eae7cf+184067/98592189]
> __insmod_cpia_S.text_L16504 [cpia] 0x2eab
> Nov 13 21:42:05 gothic kernel: [<c887ff0b>] __insmod_cpia_S.text_L16504
> [cpia] 0x2eab
> Nov 13 21:42:05 gothic kernel: [sound:num_midis_Ra1eae7cf+159881/98616375]
> __insmod_videodev_S.text_L2148 [videodev] 0x31
> Nov 13 21:42:05 gothic kernel: [<c887a091>] __insmod_videodev_S.text_L2148
> [videodev] 0x31
> Nov 13 21:42:05 gothic kernel: [sys_read+149/204] sys_read [kernel] 0x95
> Nov 13 21:42:05 gothic kernel: [<c0131b0d>] sys_read [kernel] 0x95
> Nov 13 21:42:05 gothic kernel: [sys_mremap+50/76] sys_mremap [kernel] 0x32
> Nov 13 21:42:05 gothic kernel: [<c0128646>] sys_mremap [kernel] 0x32
> Nov 13 21:42:05 gothic kernel: [sys_mremap+66/76] sys_mremap [kernel] 0x42
> Nov 13 21:42:05 gothic kernel: [<c0128656>] sys_mremap [kernel] 0x42
> Nov 13 21:42:05 gothic kernel: [system_call+51/56] system_call [kernel] 0x33
> Nov 13 21:42:06 gothic kernel: [<c0106e03>] system_call [kernel] 0x33
> Nov 13 21:42:06 gothic kernel:
> Nov 13 21:42:06 gothic kernel:
> Nov 13 21:42:06 gothic kernel: Code:  Bad EIP value.
> 
> 
> _______________________________________________
> cpia mailing list  -  cpia@risc.uni-linz.ac.at
> zhttp://mailman.risc.uni-linz.ac.at/mailman/cgi-bin/listinfo/cpia