Giter VIP home page Giter VIP logo

Comments (3)

vpelletier avatar vpelletier commented on August 15, 2024 1

Unfortunately I do not have access to macOS, so it will be difficult for me to debug this issue.

What version of libusb1 are you using ? What version of python-libusb1 ? Is there any way to get a callstack of the point at which the segfault occurs ? (maybe running python under gdb)

About resetDevice, while it should work, I can imagine it could cause issues (IIRC the device gets a new address, and I do not remember off the top of my head if the handle remains valid). For the purpose of dividing the issue, claimInterface could be an interesting method to try: it does not involve the USB bus, only the kernel state. String descriptor retrieval (ex getManufacturer) would be another, which should involve the USB bus (...unless macOS caches these, but I believe it should not).

About _bulkTransfer, this is not public API. It would be best to use the corresponding public method, bulkWrite or bulkRead.

from python-libusb1.

mcuee avatar mcuee commented on August 15, 2024

@Mini-Exploit

Please post the full python test code. I have access to Mac Mini M1 and I can try to check if there is a issue or not.

from python-libusb1.

vpelletier avatar vpelletier commented on August 15, 2024

Closing this issue as it has been idle for a year now without the beginning of a lead.

from python-libusb1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.