Skip to content
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

A javascript error occured in the main process #292

Open
3 of 5 tasks
spkane opened this issue Jun 21, 2024 · 1 comment
Open
3 of 5 tasks

A javascript error occured in the main process #292

spkane opened this issue Jun 21, 2024 · 1 comment

Comments

@spkane
Copy link

spkane commented Jun 21, 2024

Describe the bug

When I run Via 3.0.0 locally on macOS 14.5 with my new KeyChron Q5 Max keyboard and I hit the "Authorize Device" button, I get the error:

"A JavaScript error occurred in the main process Uncaught Exception: TypeError: One-time callback was called more than once at Session. (/Applications/VIA.app/Contents/Resources/app.asar/main.js:32:9) at Session.emit (node:events:525:35)"

I do not see this error online, and I get the "paired" message, but it also doesn't really appear to work, as I can not see the firmware version of my device, the keyboard layout shown is wrong, etc.

To Reproduce
Try to authorize my keyboard.

Expected behavior
It should work without any errors.

Screenshots
CleanShot 2024-06-21 at 15 33 51

VIA Version

Keyboard firmware VIA protocol
No idea, as this claims that it "Requires a connected device" despite the fact that it is connected via a cable and I am using it.

CleanShot 2024-06-21 at 15 39 09@2x

But it should be q5_max_ansi_knob_v1.0.0_2312081006.bin, as I did update the keyboard via the KeyChron Launcher at https://launcher.keychron.com/#/keymap

Desktop (please complete the following information):

  • OS: macOS 14.5
  • Browser (if applicable): Chrome

Custom json definition?

  • I am loading a custom json definition using the designer tab NO

Sanity checks

  • I have tried connecting the keyboard directly to the computer (i.e. not using a USB hub)
  • I have flashed the latest firmware from https://www.caniusevia.com/docs/download_firmware - NO - There are 2 firmware files there, and I am unsure which to use and why I would use them versus the ones on the KeyChron site.

Additional context

  • I am a developer and have things like Node installed on my system, so I am unsure if the VIA app is using its own bundled version or maybe using some incorrect version already loaded locally.
@amazingandyyy
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants