SourceForge has been redesigned. Learn more.
Close

#75 BSOD - EXCEPTION_DIVIDED_BY_ZERO

v1.2.x
closed
None
5
2012-07-06
2010-09-14
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

  • Tim Schuerewegen

     
  • Tim Schuerewegen

    (more information)

    line 561 in libusb_driver.c ...

    maxTransferSize = maxTransferSize - (maxTransferSize % maxPacketSize);

    is the one generating the division by zero exception

     
  • Tim Schuerewegen

    (more information)

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

     
  • Tim Schuerewegen

    fix verified, no more bsod :)

     
  • SourceForge Robot

    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).

     

Log in to post a comment.