rhysmorgan134 / react-carplay

MIT License
381 stars 58 forks source link

Error on macOS Sonoma with M1 chip #38

Closed ABUAIJUTIE closed 8 months ago

ABUAIJUTIE commented 11 months ago

Same JavaScript error as this closed one #2

JavaScript error

Using the latest source codes to build and run. Logs in the terminal after close the error popup:

> carplay@3.0.2 start-electron
> export ELECTRON_START_URL=http://localhost:3000 && electron . --no-sandbox

/Users/xiaobu/Library/Application Support/ReactCarplay
2023-07-21 19:12:17.650 Electron[23376:286630] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
spawning carplay {
  dpi: 240,
  nightMode: 0,
  hand: 0,
  boxName: 'nodePlay',
  width: 800,
  height: 480,
  fps: 30
}
directory found
[23390:0721/191225.298061:ERROR:system_services.cc(34)] SetApplicationIsDaemon: Error Domain=NSOSStatusErrorDomain Code=-50 "paramErr: error in user parameter list" (-50)
WebContents #1 called ipcRenderer.sendSync() with 'fpsReq' channel without listeners.

The app window shows LOADING like this a few seconds after the last log:

LOADING

Thanks for your awesome work and sharing!

rhysmorgan134 commented 11 months ago

Interesting, main JavaScript error page looks like no dongle attached, can you verify the dongles recognised and put the pid and vid on here of the device?

IMG_5140

ABUAIJUTIE commented 11 months ago

Sorry for taking so long to feedback. The dongle is not always recognizable, probably caused by running beta OS version(Sonoma). When it can be recognized, it shows:

截屏2023-07-25 15 33 13

There is a new but odd condition that sometimes it is able to show this guide UI(with JavaScript LIBUSB Error popover):

截屏2023-07-25 15 52 20 截屏2023-07-25 16 14 01

But nothing happens after connecting iPhone to the dongle. Neither wired or wireless. And it calls out Continuity Camera when I attempt to click the SETTINGS button:

截屏2023-07-25 15 54 15

After clicking the CLICK TO RELOAD button, it crashes and leaves logs like this:

> carplay@3.0.2 start-electron
> export ELECTRON_START_URL=http://localhost:3000 && electron . --no-sandbox

/Users/xiaobu/Library/Application Support/ReactCarplay
2023-07-25 15:52:16.079 Electron[7141:43129] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
spawning carplay {
  dpi: 240,
  nightMode: 0,
  hand: 0,
  boxName: 'nodePlay',
  width: 800,
  height: 480,
  fps: 30
}
directory found
sending dpi
device connected and ready
starting projection
Error clearing inendpoint halt
Error clearing outendpoint halt
[7146:0725/155216.536045:ERROR:system_services.cc(34)] SetApplicationIsDaemon: Error Domain=NSOSStatusErrorDomain Code=-50 "paramErr: error in user parameter list" (-50)
carplay connection
carplay connection
enabling wifi
auto connecting
no device, sending pair
14 0.0529296875 0.05420353982300885
rhysmorgan134 commented 10 months ago

I’ve just tested on my Ventura iMac and had the same issue, traced back the update to node-usb, I’ve gotten round it now, just need to clean it up!