** This bug is no longer a duplicate of bug 1322380 No webcam functionality with 1d6b:0001 Zoran Microelectronics, Ltd Digital Camera EX-20 DSC
-- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/630568 Title: Zoran zr364xx connect and disconnect problems Status in “linux” package in Ubuntu: Incomplete Bug description: APPLIES TO Kernel 2.6.32-24-generic Ubuntu Release 10.04 for Netbook. The same problems occure on Kernel 2.6.32-24-generic Ubuntu Release 10.04 and Ubuntu Release 8.04.3 on Live CD. The zr364xx driver has the following problems:- 1. After connecting as a USB Storage device, unplugging without unmounting crashes the camcorder. 2. Webcam functionality does not work at all. DETAIL - I've delimited relevant sections from syslog with ========== 1) When plugging a camcorder into USB the following appears in the syslog ========== Sep 5 03:38:42 localhost kernel: [34514.876576] usb 1-1: new high speed USB device using ehci_hcd and address 3 Sep 5 03:38:42 localhost kernel: [34515.024583] hub 1-0:1.0: unable to enumerate USB device on port 1 Sep 5 03:38:49 localhost kernel: [34521.648618] usb 1-1: new high speed USB device using ehci_hcd and address 4 Sep 5 03:38:49 localhost kernel: [34521.781953] usb 1-1: configuration #1 chosen from 1 choice Sep 5 03:38:49 localhost kernel: [34522.080732] Initializing USB Mass Storage driver... ========== The camcorder requires a selection be made on the device choosing to connect as a USB storage device or a webcam. Choosing USB storage device appears to works fine. The camcorder also connects as a CDROM which contails the windows driver install files. ========== Sep 5 11:12:05 localhost kernel: [ 2432.486678] scsi6 : SCSI emulation for USB Mass Storage devices Sep 5 11:12:05 localhost kernel: [ 2432.487397] usb-storage: device found at 4 Sep 5 11:12:05 localhost kernel: [ 2432.487408] usb-storage: waiting for device to settle before scanning Sep 5 11:12:05 localhost kernel: [ 2432.487469] usbcore: registered new interface driver usb-storage Sep 5 11:12:05 localhost kernel: [ 2432.487483] USB Mass Storage support registered. Sep 5 11:12:10 localhost kernel: [ 2437.505674] usb-storage: device scan complete Sep 5 11:12:10 localhost kernel: [ 2437.514505] scsi 6:0:0:0: Direct-Access ZORAN COACH6 (I62) 1.10 PQ: 0 ANSI: 0 CCS Sep 5 11:12:10 localhost kernel: [ 2437.522124] scsi 6:0:0:1: CD-ROM ZORAN COACH6 (I62) 1.10 PQ: 0 ANSI: 0 CCS Sep 5 11:12:10 localhost kernel: [ 2437.533122] sd 6:0:0:0: Attached scsi generic sg1 type 0 Sep 5 11:12:10 localhost kernel: [ 2437.543941] sr0: scsi3-mmc drive: 0x/0x caddy Sep 5 11:12:10 localhost kernel: [ 2437.543954] Uniform CD-ROM driver Revision: 3.20 Sep 5 11:12:10 localhost kernel: [ 2437.545255] sr 6:0:0:1: Attached scsi CD-ROM sr0 Sep 5 11:12:10 localhost kernel: [ 2437.548345] sr 6:0:0:1: Attached scsi generic sg2 type 5 Sep 5 11:12:10 localhost kernel: [ 2437.550573] sd 6:0:0:0: [sdb] 3913728 512-byte logical blocks: (2.00 GB/1.86 GiB) Sep 5 11:12:10 localhost kernel: [ 2437.552948] sd 6:0:0:0: [sdb] Write Protect is off Sep 5 11:12:10 localhost kernel: [ 2437.552960] sd 6:0:0:0: [sdb] Mode Sense: 00 06 00 00 Sep 5 11:12:10 localhost kernel: [ 2437.552968] sd 6:0:0:0: [sdb] Assuming drive cache: write through Sep 5 11:12:10 localhost kernel: [ 2437.554941] sd 6:0:0:0: [sdb] Assuming drive cache: write through Sep 5 11:12:10 localhost kernel: [ 2437.554957] sdb: sdb1 Sep 5 11:12:10 localhost kernel: [ 2437.560974] sd 6:0:0:0: [sdb] Assuming drive cache: write through Sep 5 11:12:10 localhost kernel: [ 2437.560992] sd 6:0:0:0: [sdb] Attached SCSI disk Sep 5 11:12:10 localhost kernel: [ 2437.592940] sr0: Hmm, seems the drive doesn't support multisession CD's Sep 5 11:12:10 localhost kernel: [ 2437.980919] ISO 9660 Extensions: Microsoft Joliet Level 1 ============ However, upon disconnect the camcorder freezes and can only be reset by taking out the battery. This does not happen on Windows XP. Everything works fine. It also does not seem to happen if you unmount the device and wait a few seconds before unplugging. 2) When reconnected and the webcam connection option is selected, the following error occurs ============ Sep 5 11:25:28 localhost kernel: [ 3235.788195] usb 1-1: new high speed USB device using ehci_hcd and address 9 Sep 5 11:25:28 localhost kernel: [ 3235.921973] usb 1-1: configuration #1 chosen from 1 choice Sep 5 11:25:28 localhost kernel: [ 3235.923760] usb-storage: probe of 1-1:1.0 failed with error -5 Sep 5 11:25:28 localhost kernel: [ 3235.993308] zr364xx 1-1:1.0: Zoran 364xx compatible webcam plugged Sep 5 11:25:28 localhost kernel: [ 3235.993321] zr364xx 1-1:1.0: model 0595:4343 detected Sep 5 11:25:28 localhost kernel: [ 3235.993332] usb 1-1: 320x240 mode selected Sep 5 11:25:28 localhost kernel: [ 3235.993757] usb 1-1: Zoran 364xx controlling video device 1 Sep 5 11:25:28 localhost kernel: [ 3235.993833] usbcore: registered new interface driver zr364xx Sep 5 11:25:28 localhost kernel: [ 3235.994445] zr364xx: Zoran 364xx Sep 5 11:25:29 localhost kernel: [ 3236.624789] usb 1-1: Failed sending control message, error -110. Sep 5 11:25:29 localhost kernel: [ 3236.624804] usb 1-1: error during open sequence: 5 ============ The device does not appear as an available webcam in any application. The module does appear to load. This is from lsmod ============ Module Size Used by zr364xx 17893 0 videobuf_vmalloc 5586 1 zr364xx videobuf_core 16356 2 zr364xx,videobuf_vmalloc .... videodev 34361 2 zr364xx,uvcvideo ============ When disconnected a bug appears in the syslog related to a kernel NULL pointer dereference ============ Sep 5 11:31:28 localhost kernel: [ 3596.003568] usb 1-1: USB disconnect, address 9 Sep 5 11:31:28 localhost kernel: [ 3596.008557] BUG: unable to handle kernel NULL pointer dereference at (null) Sep 5 11:31:28 localhost kernel: [ 3596.008578] IP: [<c058bcfa>] __mutex_lock_slowpath+0x8a/0x130 Sep 5 11:31:28 localhost kernel: [ 3596.008603] *pde = 00000000 Sep 5 11:31:28 localhost kernel: [ 3596.008613] Oops: 0002 [#1] SMP Sep 5 11:31:28 localhost kernel: [ 3596.008623] last sysfs file: /sys/devices/pci0000:00/0000:00:04.1/usb1/1-1/1-1:1.0/uevent Sep 5 11:31:28 localhost kernel: [ 3596.008634] Modules linked in: zr364xx videobuf_vmalloc videobuf_core nls_iso8859_1 nls_cp437 vfat fat nls_utf8 isofs usb_storage michael_mic arc4 binfmt_misc ppdev snd_hda_codec_nvhdmi snd_hda_codec_idt snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm fbcon tileblit font bitblit softcursor snd_seq_dummy vga16fb snd_seq_oss lib80211_crypt_tkip snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device snd qcserial nvidia(P) uvcvideo vgastate soundcore psmouse wl(P) usbserial videodev v4l1_compat serio_raw snd_page_alloc shpchp lib80211 agpgart i2c_nforce2 video output lp parport forcedeth ahci Sep 5 11:31:28 localhost kernel: [ 3596.008785] Sep 5 11:31:28 localhost kernel: [ 3596.008797] Pid: 30, comm: khubd Tainted: P (2.6.32-24-generic #42-Ubuntu) HP Mini 311-1000 Sep 5 11:31:28 localhost kernel: [ 3596.008808] EIP: 0060:[<c058bcfa>] EFLAGS: 00010246 CPU: 1 Sep 5 11:31:28 localhost kernel: [ 3596.008819] EIP is at __mutex_lock_slowpath+0x8a/0x130 Sep 5 11:31:28 localhost kernel: [ 3596.008828] EAX: 00000000 EBX: d934a4a4 ECX: d934a4ac EDX: f68b1db4 Sep 5 11:31:28 localhost kernel: [ 3596.008837] ESI: d934a4a8 EDI: d934a4b4 EBP: f68b1dcc ESP: f68b1da8 Sep 5 11:31:28 localhost kernel: [ 3596.008846] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 Sep 5 11:31:28 localhost kernel: [ 3596.008856] Process khubd (pid: 30, ti=f68b0000 task=f68a8000 task.ti=f68b0000) Sep 5 11:31:28 localhost kernel: [ 3596.008864] Stack: Sep 5 11:31:28 localhost kernel: [ 3596.008869] ec324ed0 d934a4ac f68a8000 d934a4ac 00000000 00002fb2 d934a4a4 c4801e00 Sep 5 11:31:28 localhost kernel: [ 3596.008891] <0> d934a400 f68b1ddc c058bc55 d934a4a4 c4801e00 f68b1dec f82f85a9 c4801e1c Sep 5 11:31:28 localhost kernel: [ 3596.008914] <0> c4801e00 f68b1e0c f830d26d c04485c1 00000000 dfb7b800 c4801e00 c4801e1c Sep 5 11:31:28 localhost kernel: [ 3596.008939] Call Trace: Sep 5 11:31:28 localhost kernel: [ 3596.008952] [<c058bc55>] ? mutex_lock+0x25/0x40 Sep 5 11:31:28 localhost kernel: [ 3596.008971] [<f82f85a9>] ? videobuf_mmap_free+0x19/0x40 [videobuf_core] Sep 5 11:31:28 localhost kernel: [ 3596.008987] [<f830d26d>] ? zr364xx_disconnect+0x2d/0x70 [zr364xx] Sep 5 11:31:28 localhost kernel: [ 3596.009002] [<c04485c1>] ? usb_disable_interface+0x41/0x60 Sep 5 11:31:28 localhost kernel: [ 3596.009015] [<c044b759>] ? usb_unbind_interface+0xe9/0x130 Sep 5 11:31:28 localhost kernel: [ 3596.009031] [<c03e7a71>] ? __device_release_driver+0x51/0xb0 Sep 5 11:31:28 localhost kernel: [ 3596.009043] [<c03e7b95>] ? device_release_driver+0x25/0x40 Sep 5 11:31:28 localhost kernel: [ 3596.009056] [<c03e6e4b>] ? bus_remove_device+0x7b/0xa0 Sep 5 11:31:28 localhost kernel: [ 3596.009069] [<c03e52c7>] ? device_del+0xf7/0x180 Sep 5 11:31:28 localhost kernel: [ 3596.009081] [<c0448505>] ? usb_disable_device+0x85/0x100 Sep 5 11:31:28 localhost kernel: [ 3596.009095] [<c0442f9e>] ? usb_disconnect+0x9e/0x120 Sep 5 11:31:28 localhost kernel: [ 3596.009109] [<c04434fb>] ? hub_port_connect_change+0x8b/0x850 Sep 5 11:31:28 localhost kernel: [ 3596.009122] [<c0449145>] ? usb_control_msg+0xd5/0x130 Sep 5 11:31:28 localhost kernel: [ 3596.009135] [<c0440f50>] ? clear_port_feature+0x50/0x60 Sep 5 11:31:28 localhost kernel: [ 3596.009149] [<c0444465>] ? hub_events+0x1f5/0x510 Sep 5 11:31:28 localhost kernel: [ 3596.009164] [<c016797f>] ? finish_wait+0x4f/0x70 Sep 5 11:31:28 localhost kernel: [ 3596.009176] [<c04447ba>] ? hub_thread+0x3a/0x140 Sep 5 11:31:28 localhost kernel: [ 3596.009188] [<c0167810>] ? autoremove_wake_function+0x0/0x50 Sep 5 11:31:28 localhost kernel: [ 3596.009201] [<c0444780>] ? hub_thread+0x0/0x140 Sep 5 11:31:28 localhost kernel: [ 3596.009212] [<c0167584>] ? kthread+0x74/0x80 Sep 5 11:31:28 localhost kernel: [ 3596.009224] [<c0167510>] ? kthread+0x0/0x80 Sep 5 11:31:28 localhost kernel: [ 3596.009238] [<c0104087>] ? kernel_thread_helper+0x7/0x10 Sep 5 11:31:28 localhost kernel: [ 3596.009245] Code: 18 63 7f bd 90 8d 74 26 00 8d 73 04 89 f0 e8 de 11 00 00 8d 55 e8 8d 43 08 89 45 e0 8b 43 0c 89 53 0c 8b 4d e0 89 45 ec 89 4d e8 <89> 10 8b 45 e4 ba ff ff ff ff 89 45 f0 89 d0 87 03 83 f8 01 74 Sep 5 11:31:28 localhost kernel: [ 3596.009371] EIP: [<c058bcfa>] __mutex_lock_slowpath+0x8a/0x130 SS:ESP 0068:f68b1da8 Sep 5 11:31:28 localhost kernel: [ 3596.009388] CR2: 0000000000000000 Sep 5 11:31:28 localhost kernel: [ 3596.009398] ---[ end trace 7f1d85421ba47295 ]--- ============ The module does not appear to be removed and attempts to remove it with module -r zr364xx just hang. The only way I could get it out of there was with a reboot. I've tested this on Ubuntu 10.04 for Desktop, 10.04 for Netbook and 8.04 Live CD and I get the same results. The syslog output is below. ============ Sep 5 00:26:40 ubuntu kernel: [ 744.713782] usb 3-6: new high speed USB device using ehci_hcd and address 4 Sep 5 00:26:56 ubuntu kernel: [ 760.157999] usb 2-3: new full speed USB device using ohci_hcd and address 4 Sep 5 00:26:56 ubuntu kernel: [ 760.358453] usb 2-3: not running at top speed; connect to a high speed hub Sep 5 00:26:56 ubuntu NetworkManager: <debug> [1283646416.319083] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_595_4343_ZORAN00000001'). Sep 5 00:26:56 ubuntu kernel: [ 760.376634] usb 2-3: configuration #1 chosen from 1 choice Sep 5 00:26:56 ubuntu kernel: [ 760.411720] usb-storage: probe of 2-3:1.0 failed with error -5 Sep 5 00:26:56 ubuntu kernel: [ 760.676167] /build/buildd/linux-2.6.24/drivers/media/video/zr364xx.c: Zoran 364xx compatible webcam plugged Sep 5 00:26:56 ubuntu kernel: [ 760.676179] /build/buildd/linux-2.6.24/drivers/media/video/zr364xx.c: model 0595:4343 detected Sep 5 00:26:56 ubuntu kernel: [ 760.676836] /build/buildd/linux-2.6.24/drivers/media/video/zr364xx.c: 320x240 mode selected Sep 5 00:26:56 ubuntu kernel: [ 760.677132] /build/buildd/linux-2.6.24/drivers/media/video/zr364xx.c: Zoran 364xx controlling video device 1 Sep 5 00:26:56 ubuntu kernel: [ 760.677414] usbcore: registered new interface driver zr364xx Sep 5 00:26:56 ubuntu kernel: [ 760.677619] /build/buildd/linux-2.6.24/drivers/media/video/zr364xx.c: Zoran 364xx module loaded Sep 5 00:26:56 ubuntu NetworkManager: <debug> [1283646416.644357] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_595_4343_ZORAN00000001_if0'). Sep 5 00:30:27 ubuntu kernel: [ 971.827686] /build/buildd/linux-2.6.24/drivers/media/video/zr364xx.c: Failed sending control message, error -110. Sep 5 00:30:27 ubuntu kernel: [ 971.827697] /build/buildd/linux-2.6.24/drivers/media/video/zr364xx.c: error during open sequence: 5 Sep 5 00:37:22 ubuntu kernel: [ 1386.191429] usb 2-3: USB disconnect, address 4 Sep 5 00:37:22 ubuntu kernel: [ 1386.191712] /build/buildd/linux-2.6.24/drivers/media/video/zr364xx.c: Zoran 364xx webcam unplugged Sep 5 00:37:22 ubuntu NetworkManager: <debug> [1283647042.452881] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/usb_device_595_4343_ZORAN00000001_if0'). Sep 5 00:37:22 ubuntu NetworkManager: <debug> [1283647042.465850] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/usb_device_595_4343_ZORAN00000001'). Sep 5 00:37:45 ubuntu kernel: [ 1409.638547] usb 3-6: new high speed USB device using ehci_hcd and address 5 Sep 5 00:38:01 ubuntu kernel: [ 1425.082744] usb 2-3: new full speed USB device using ohci_hcd and address 5 Sep 5 00:38:01 ubuntu kernel: [ 1425.282809] usb 2-3: not running at top speed; connect to a high speed hub Sep 5 00:38:01 ubuntu kernel: [ 1425.300973] usb 2-3: configuration #1 chosen from 1 choice Sep 5 00:38:01 ubuntu NetworkManager: <debug> [1283647081.579835] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_595_2002_ZORAN01234567'). Sep 5 00:38:01 ubuntu kernel: [ 1425.338825] scsi6 : SCSI emulation for USB Mass Storage devices Sep 5 00:38:01 ubuntu kernel: [ 1425.340676] usb-storage: device found at 5 Sep 5 00:38:01 ubuntu kernel: [ 1425.340684] usb-storage: waiting for device to settle before scanning Sep 5 00:38:01 ubuntu NetworkManager: <debug> [1283647081.694792] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_595_2002_ZORAN01234567_if0'). Sep 5 00:38:06 ubuntu kernel: [ 1430.364105] usb-storage: device scan complete Sep 5 00:38:06 ubuntu kernel: [ 1430.375828] scsi 6:0:0:0: Direct-Access ZORAN COACH6 (I62) 1.10 PQ: 0 ANSI: 0 CCS Sep 5 00:38:06 ubuntu kernel: [ 1430.386801] scsi 6:0:0:1: CD-ROM ZORAN COACH6 (I62) 1.10 PQ: 0 ANSI: 0 CCS Sep 5 00:38:06 ubuntu kernel: [ 1430.405817] sd 6:0:0:0: [sdg] 3913728 512-byte hardware sectors (2004 MB) Sep 5 00:38:06 ubuntu kernel: [ 1430.412792] sd 6:0:0:0: [sdg] Write Protect is off Sep 5 00:38:06 ubuntu kernel: [ 1430.412806] sd 6:0:0:0: [sdg] Mode Sense: 00 06 00 00 Sep 5 00:38:06 ubuntu kernel: [ 1430.412810] sd 6:0:0:0: [sdg] Assuming drive cache: write through Sep 5 00:38:06 ubuntu kernel: [ 1430.423790] sd 6:0:0:0: [sdg] 3913728 512-byte hardware sectors (2004 MB) Sep 5 00:38:06 ubuntu kernel: [ 1430.430767] sd 6:0:0:0: [sdg] Write Protect is off Sep 5 00:38:06 ubuntu kernel: [ 1430.430780] sd 6:0:0:0: [sdg] Mode Sense: 00 06 00 00 Sep 5 00:38:06 ubuntu kernel: [ 1430.430784] sd 6:0:0:0: [sdg] Assuming drive cache: write through Sep 5 00:38:06 ubuntu kernel: [ 1430.430796] sdg: sdg1 Sep 5 00:38:06 ubuntu kernel: [ 1430.440971] sd 6:0:0:0: [sdg] Attached SCSI disk Sep 5 00:38:06 ubuntu kernel: [ 1430.441048] sd 6:0:0:0: Attached scsi generic sg7 type 0 Sep 5 00:38:06 ubuntu kernel: [ 1430.451758] sr1: scsi3-mmc drive: 0x/0x caddy Sep 5 00:38:06 ubuntu kernel: [ 1430.451878] sr 6:0:0:1: Attached scsi CD-ROM sr1 Sep 5 00:38:06 ubuntu kernel: [ 1430.451947] sr 6:0:0:1: Attached scsi generic sg8 type 5 Sep 5 00:38:06 ubuntu NetworkManager: <debug> [1283647086.821382] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_595_2002_ZORAN01234567_if0_scsi_host'). Sep 5 00:38:06 ubuntu NetworkManager: <debug> [1283647086.832525] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_595_2002_ZORAN01234567_if0_scsi_host_scsi_device_lun0'). Sep 5 00:38:06 ubuntu NetworkManager: <debug> [1283647086.897211] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_595_2002_ZORAN01234567_if0_scsi_host_scsi_device_lun0_scsi_generic'). Sep 5 00:38:06 ubuntu NetworkManager: <debug> [1283647086.941325] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_595_2002_ZORAN01234567_if0_scsi_host_scsi_device_lun1'). Sep 5 00:38:06 ubuntu kernel: [ 1430.696633] sr1: Hmm, seems the drive doesn't support multisession CD's Sep 5 00:38:06 ubuntu NetworkManager: <debug> [1283647086.981470] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_595_2002_ZORAN01234567_if0_scsi_host_scsi_device_lun1_scsi_generic'). Sep 5 00:38:07 ubuntu NetworkManager: <debug> [1283647087.486961] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/storage_serial_ZORAN_COACH_DSC_ZORAN01234567'). Sep 5 00:38:07 ubuntu NetworkManager: <debug> [1283647087.606372] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/storage_serial_ZORAN_COACH_DSC_ZORAN01234567_0'). Sep 5 00:38:07 ubuntu NetworkManager: <debug> [1283647087.803836] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/volume_part_1_size_4884480'). Sep 5 00:38:08 ubuntu NetworkManager: <debug> [1283647088.074773] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/volume_uuid_3A1E_1F03'). Sep 5 00:38:08 ubuntu hald: mounted /dev/sdg1 on behalf of uid 999 ========= Sep 5 00:42:53 ubuntu hald: unmounted /dev/sdg1 from '/media/NO_NAME' on behalf of uid 999 ========= Just to be clear, all the functions work fine on windows XP with the Zoran Couch drivers provided. The camcorder connects and disconnects as a USB Storage device or a camcorder and works as expected on XP. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/630568/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp