Bug 101434

Summary: cancel usb redirection will crash
Product: Spice Reporter: magicdmer <magicdmer>
Component: spice-gtkAssignee: Spice Bug List <spice-bugs>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium CC: bugzilla
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: with --debug and --spice-debug log picture

Description magicdmer@gmail.com 2017-06-15 03:16:59 UTC
I use usb storage redirection , all is ok, but when i uncheck it or close remote-viewer window, the usb is free but the remote-viewer or spicy will crash

I test it ,the result like follow:
(1)
spice-gtk v0.33
platform: win7 x64
1. virt-viewer-5.0-x86.msi + usbdk_1.0.19_x64  uncheck crashed!
2. virt-viewer-5.0-x64.msi + usbdk_1.0.19_x64  success, all is ok!

platform: win7 x86
1.virt-viewer-5.0-x86.msi + usbdk_1.0.19_x86  uncheck crashed!

(2)
I build spice-gtk v0.32 with usb redirection and replace it
1. virt-viewer-5.0-x86.msi + usbdk_1.0.19_x86  uncheck crashed!
2. virt-viewer-5.0-x86.msi + usbclerk  uncheck crashed!

(3)
I build spice-gtk v0.31,and replace it
1.virt-viewer-5.0-x86.msi + usbclerk success,all is ok!
Comment 1 Victor Toso 2017-06-15 08:31:36 UTC
Thanks for taking time to report this bug.

It is very interesting that with virt-viewer-5.0-x64.msi it is fine but with virt-viewer-5.0-x86.msi it crashed on win7 x64.

Could you provide the logs with remote-viewer in the situation that it crashed? --debug and --spice-debug
Comment 2 magicdmer@gmail.com 2017-06-15 08:34:57 UTC
Created attachment 131970 [details]
with --debug and --spice-debug log picture
Comment 3 magicdmer@gmail.com 2017-06-15 09:47:40 UTC
(In reply to Victor Toso from comment #1)
> Thanks for taking time to report this bug.
> 
> It is very interesting that with virt-viewer-5.0-x64.msi it is fine but with
> virt-viewer-5.0-x86.msi it crashed on win7 x64.
> 
> Could you provide the logs with remote-viewer in the situation that it
> crashed? --debug and --spice-debug

yes, it's interestring, and 100% reproduce. I upload the picture, But it didn't seem to help.
Comment 4 Victor Toso 2017-06-15 09:59:16 UTC
(In reply to magicdmer@gmail.com from comment #3)
> yes, it's interestring, and 100% reproduce. I upload the picture, But it
> didn't seem to help.

Yeah, not much useful info. I put this bug in my todo-list but I'll likely only look at it next week. Feel free to complain i don't ;)
Comment 5 magicdmer@gmail.com 2017-07-25 09:32:44 UTC
recently, i made a test:
1. build libusb with usbdk support enable
2. use spice-gtk 0.31 + remote-viewer 5.0 x86 + usbdk 1.0.19 x64

result:all is ok

and

1. build libusb with usbdk support enable
2. use spice-gtk 0.33 and after + remote-viewer 5.0 x86 + usbdk 1.0.19 x64

result: uncheck crash

so, Whether we can confirm the bug is caused by spice-gtk?
Comment 6 GitLab Migration User 2018-06-03 10:19:52 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/spice/spice-gtk/issues/5.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.