(Note: I posted this via the list archive website, but it didn't seem to
stick - trying again via actual email)
I've been using OpenSCAD 2021.01 for a while with a SpaceMouse on Windows
10, generally without issues.
I recently started having problems with OpenSCAD crashing on startup.
After some troubleshooting, I found that if I reset the HIDAPI driver
setting (using regedit to remove it), I could get it running again.
I've been able to confirm that it is definitely the HIDAPI setting. The
problem is 100% reproducible when this setting is enabled, and 100% does
not happen when it is disabled.
When the setting is enabled:
I need to use regedit to disable the setting in order to be able to restart
the application again.
I'm running low on ideas for what to try next in my troubleshooting.
I haven't yet found any flags or options for logging or debug messages.
Any advice on what I could try next would be appreciated.
Thanks,
On 04.11.21 03:03, Daniel White wrote:
I haven't yet found any flags or options for logging or debug messages.
Preferences -> Advanced -> Debugging -> Enable tracing of HIDAPI events
ciao,
Torsten.
Thanks Torsten, this helped me make progress on understanding the problem!
It turns out I recently added a new KVM switch, and it shows up as a device
to be enumerated by OpenSCAD. The manufacturer and product names have a
combination of chinese characters and obvious character decoding errors.
I'm guessing this junk is somehow blowing a buffer or something. The
enumeration gets through most devices, but doesn't finish before the
application crashes.
Unplugging my KVM switch from USB solves the crashing problem.
For reference, the problem device is a TESmart DisplayPort + HDMI 2x2 Dual
Monitor KVM Switch, model # TES-HDK0402A1U-CABK
(Amazon.ca link https://www.amazon.ca/gp/product/B086DMQNV2/)
All this said, I'm still unable to get my SpaceMouse to work as it did
before. Now, it is simply unresponsive within OpenSCAD. Neither the 3d
pane nor the HID options window are showing activity from the device.
The drivers look reasonable, and the logs show what I assume is a normal
enumeration. The log entries end with:
225: Done enumerating (status = ok).
225: HidApiInputDriver::open(): HidApiInputDriver (256f:c652 - 3Dconnexion
Universal Receiver)
I have noticed that if I plug the SpaceMouse in w/ a USB, then it actually
works. The logs in this case end with:
212: Done enumerating (status = ok).
212: HidApiInputDriver::open(): HidApiInputDriver (256f:c62e - 3Dconnexion
Space Mouse Wireless (cabled))
1508: R: 13/0d: 01 00 00 00 00 02 00 00 00 00 00 00 00
1524: R: 13/0d: 01 00 00 00 00 05 00 00 00 00 00 00 00
1540: R: 13/0d: 01 00 00 00 00 0e 00 00 00 00 00 00 00
1556: R: 13/0d: 01 00 00 f8 ff 18 00 00 00 00 00 00 00
(followed by a whole lot more data points)
I guess I have my work-around. Shame I can't use the SpaceMouse wirelessly
though.
On Thu, Nov 4, 2021 at 5:37 AM Torsten Paul Torsten.Paul@gmx.de wrote:
On 04.11.21 03:03, Daniel White wrote:
I haven't yet found any flags or options for logging or debug messages.
Preferences -> Advanced -> Debugging -> Enable tracing of HIDAPI events
ciao,
Torsten.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
On 05.11.21 02:35, Daniel White wrote:
Unplugging my KVM switch from USB solves the crashing problem.
If you don't mind a slow back-and-forth debugging on the
issue, feel free to post an issue on github with the full
log. It would be nice to at least fix the crash.
I'm not sure why the wireless dongle does not work. I'll
have to check if it's the same one I have. Although I can't
easily test on Windows, maybe the issue happens on Linux
too with HIDAPI.
ciao,
Torsten.
Do you talk about "3DConnection SpaceMouse"?
On my macOS (11 12) the SpaceMouse never worked. Actually this was my
first question in this mailing list.
About 2 years ago it was connected sometimes (1 of 10 OpenSCAD restarts!),
then, whatever I tried, the axes never worked as expected. But now I didn't
get it working at all. Also the Preferences/Axes seem to be reset every
restart.
I use it for Fusion360 and Prusa Slicer. But OpenSCAD - for me 3DConnection
SpaceMouse never worked.
Am I alone with this problem?
Am Sa., 6. Nov. 2021 um 23:46 Uhr schrieb Torsten Paul <Torsten.Paul@gmx.de
:
On 05.11.21 02:35, Daniel White wrote:
Unplugging my KVM switch from USB solves the crashing problem.
If you don't mind a slow back-and-forth debugging on the
issue, feel free to post an issue on github with the full
log. It would be nice to at least fix the crash.
I'm not sure why the wireless dongle does not work. I'll
have to check if it's the same one I have. Although I can't
easily test on Windows, maybe the issue happens on Linux
too with HIDAPI.
ciao,
Torsten.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org