mac-can / PCBUSB-Library

macOS® User-Space Driver for PCAN-USB Interfaces (Binaries only)
https://mac-can.com
Other
29 stars 0 forks source link

MacOS Monterey library issue #6

Closed ghost closed 2 years ago

ghost commented 2 years ago

Dear, I have successfully used the driver before on macOS Big Sur, but now after upgrading the system (fresh install) the driver stopped working. My code is written in python but I have also tested the MacCAN Monitor, both without success.

Further details: CPU: Intel macOS: 12.2.1 hardware: PCAN-USB adapter

python output: "The driver is not loaded" MacCAN Monitor output: "Something went terribly wrong! Error 0200: The driver is not loaded"

I tried the universal_64 and Intel_x86_64 0.10.1 and 0.11 version. The result is always the same.

mac-can commented 2 years ago

I´ve created a troubleshooting guide for analyzing issues on Monterey and/or M1 chip as a Gist: https://gist.github.com/mac-can/a43f08e530714dd74689762f62f88dca

@daniInfi7 Could you pl. check this step by step and send me your results. Thx. Uwe

See also issue #4

ghost commented 2 years ago

As you have suggested I have checked the issue #4 and the solution was to use the binary macOS_Library_for_PCANUSB_v0.10.1.tar.gz from https://www.uv-software.de/dokuwiki/doku.php?id=uvs:programs:pcbusb_library

is there any difference with this binary and the one that is included in the Library folder inside MacCAN_Monitor.0.4_x86.1.dmg?

mac-can commented 2 years ago

As stated in my comment of 11/10/21, the x86_64 version is compiled to run on old OS X versions (tested with 10.13). Maybe this is denied by Monterey. No further differences.

@daniInfi7 What´s about PCBUSB-Library version 0.11 (universal binary) is it running on you Mac now?

ghost commented 2 years ago

@mac-can I have now tested different scenarios and the 0.11 (universal binary) as also 0.10.1 (included in the .dmg) work only with the c++ example and test/monitor example, with mac-can app and python they don't.

macOS_Library_for_PCANUSB_v0.10.1.tar.gz works with everything.

mac-can commented 2 years ago

Issue reopened because it is not solved for v0.11 of the library on Monterey.

I was able to reproduce the error on a system with Monterey (12.1):

Further investigations required.

kedvall commented 2 years ago

Hi @mac-can @daniInfi7. I'm currently experiencing the exact same issue. Any updates?

mac-can commented 2 years ago

Hi @mac-can @daniInfi7. I'm currently experiencing the exact same issue. Any updates?

  • I'm on Monterey 12.3
  • I'm trying to use the v0.11 universal binary release on Python 3.9
  • I can't use anything that loads the library at runtime, also throws the 512 (driver is not loaded) error I would be happy to help debugging but I'm not really sure where to start

Hi @kedvall, Occasionally, I get this crash report when I try to connect to a PCAN interface in the MacCAN Monitor App while using PCBUSB-Library version 0.11 on macOS Monterey (arm64). (I have never seen this behavior on Big Sur (x86_64) nor on High Sierra.) I can't figure it out, but maybe it's a starting point for root causing or debugging.

herrspade commented 2 years ago

Hi, I have the same problem.

Anything I can do to assist finding/fixing the problem?

Dan-Kouba commented 2 years ago

I am seeing the same "The driver is not loaded" issue on my machine:

mac-can commented 2 years ago

Preliminary version that should solve the issue: macOS_Library_for_PCANUSB_v0.11.1.pre.tar.gz

herrspade commented 2 years ago

Great work, tested it and It works from me!

Dan-Kouba commented 2 years ago

This works for me as well, thank you!

mac-can commented 2 years ago

Bug fix release v0.11.1 available. Issue can be closed