-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hang/crash at device detection when OS != Linux (Was: Cant Install windows pre-built version) #38
Comments
Was this related to issue #301 on openhantek? |
hey, i'm the same person, and yeah, because i forget about my id, i make a new one, and i just remembered the old id, so yeah i closed this one, sorry for the confusion |
Hi, one remark regarding your comment in the other issue 301 thread:
Please provide a more detailed description of "it always failed" so that other Windows user may provide a working solution. I don't have a native Win install, I check from time to time on my old virtual win7, but I'm not able to debug in depth. Another solution would be to build your own version from source, please have a look how it is done by my CI system appveyor (config is there), this is where my win builds come from. |
OK, I see the reason, it's an unsupported command, I will ignore the error and carry on with upload. I'll fix it tomorrow evening. Thx for narrowing down the issue. |
It's a different implementation of libusb that doesn't support the auto detach of kernel driver on certain systems. Thx for your comment. |
It was already solved for FreeBSD with an
It should be treated more generally. What I collected so far:
For me, the best solution would be to replace the |
As far as I remember the problem with FreeBSD was not missing rights but reference counting not working as expected (but that's just an guess after experimenting with libusb for a few minutes). The problem was definitely that successive accesses to the list of devices went into undefined memory areas after the first release even after reference count on the list has been incremented. EDIT: I think i can rule out problems with permissions - tried on a clean system with root user, security.bsd.suser_enabled=1 and no mac policies in place. The release lead to an access into an already free'ed memory location. |
Good info, I've just detected why the system sometimes hangs during firmware upload if there are other high speed devices plugged in, (therefore the message "if it takes more than 30 seconds...").
that wasn't unique (in original it reported the USB port(s) where the device was plugged in). But on uploading the firmware the ports didn't change and there was a race condition if the release/re-enumeration with new VID/PID was too fast, the program could not detect that the device disappeared and came back. Now the unique ID uses bus, port, VID, PID and FW version and is almost unique unless you have two identical devices on the same bus and they use the same port number because one is directly connected to e.g. port 1 and the other is connected to port 1 of a hub that hangs on port 2 of the bus. At the moment I can live with that limitation. |
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
@iss000 @tspspi @seraphie21
If the system crashes, try changing true to false. |
hey, since i'm using pre-built version, where can i find that code |
|
so i need to rebuilt the source, i'll try when i have the time, thanks :) |
Oh my how could I've been that blind. Yep just tried setting unref_devices on the call to libusb_free_device_list to false of course also solves the issue on FreeBSD. |
@seraphie21 you can always get the latest binary build. If you want to go back in time there's also the history available. Please check if your windows issue is solved now. |
Ho-Ro moved this to #41 hey, i just found out something that quite bothering me, if i minimize the window, then hovering my cursor at the taskbar icon of the app, it will show previous menu that i open in the app, although i already close it. |
Thx for reporting the Windows stratus.
Linux 👍
|
I confirm it works under macOSX Catalina 10.15.1 (latest update) with PS: One another thing I just discovered: immediately after start (probes attached to the generator) start clicking on the UpDown control of 'Samplerate' -> values start to change after 5-6 clicks. I'll not open new issue because I don't know how to describe better the problem, maybe the value list is still not synchronized with the index of the selected item. |
Linux 👍 Thx for the last missing 👍, I can close this long issue :) Regarding your "mini-issue" above: Yes, this is a small annoyance that I also noticed some time ago and keep in mind, but hadn't time to deep dive. Maybe it is caused by the fixed number of samplerate values in the spinbox, but we use only a subsection of them depending on the timebase and "click" over the not sufficient values silently. |
hey, i have an error when i tried to install for the first time, it says "connection failed" how can i solve this problem
i had a linux version installed on my VirtualBox on my Lubuntu and it works fine, but it's kinda annoying to use because it takes so long to boot, so i want to try the windows version
thank you for your help : )
The text was updated successfully, but these errors were encountered: