Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#75 BSOD - EXCEPTION_DIVIDED_BY_ZERO

v1.2.x
closed
None
5
2012-07-06
2010-09-14
Tim Schuerewegen
No

I received a BSOD while trying to install the libusb driver for a USB webcam. It looks like the BSOD was caused by a "division by zero" exception in the libusb driver. See the attachment for more information.

Windows 7 32 -bit
libusb-win32-bin-1.2.1.0.zip

Discussion

  •  
    Attachments
  • (more information)

    line 561 in libusb_driver.c ...

    maxTransferSize = maxTransferSize - (maxTransferSize % maxPacketSize);

    is the one generating the division by zero exception

     
  • (more information)

    one of the endpoints of the usb webcam has a wMaxPacketSize value of "0", which explains the division by zero exception :(

     
  •  
    Attachments
  • fix verified, no more bsod :)

     
  • This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).