the-via / releases

GNU General Public License v3.0
2.06k stars 223 forks source link

A javascript error occured in the main process #292

Open spkane opened 3 months ago

spkane commented 3 months ago

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.02312081006.bin, as I did update the keyboard via the KeyChron Launcher at https://launcher.keychron.com/#/keymap

Desktop (please complete the following information):

Custom json definition?

Sanity checks

Additional context

amazingandyyy commented 1 month ago

+1