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

Script error in Mixxx 2.5 when using Traktor Kontrol S4 MK2 #14103

Open
VamLykTan opened this issue Jan 2, 2025 · 2 comments
Open

Script error in Mixxx 2.5 when using Traktor Kontrol S4 MK2 #14103

VamLykTan opened this issue Jan 2, 2025 · 2 comments

Comments

@VamLykTan
Copy link

Bug Description

Hello dear community,

I received Mixxx 2.5 today via Ubuntu update and when I started it I received the following message.
Bildschirmfoto vom 2025-01-02 09-46-08

The error message contained gives me the following information.

Uncaught exception: file:///usr/share/mixxx/controllers/Traktor-Kontrol-S4-MK2-hid-scripts.js:696:
TypeError: Passing incompatible arguments to C++ functions from JavaScript is not allowed.

Backtrace: @file:///usr/share/mixxx/controllers/Traktor-Kontrol-S4-MK2-hid-scripts.js:696
@file:///usr/share/mixxx/controllers/Traktor-Kontrol-S4-MK2-hid-scripts.js:714

I hope this bug will be fixed as soon as possible.

The current version is attached in the following screenshot.
Bildschirmfoto vom 2025-01-02 09-57-11

Version

2.5

OS

Ubuntu 22.04.5 LTS

@VamLykTan VamLykTan added the bug label Jan 2, 2025
@ronso0
Copy link
Member

ronso0 commented Jan 2, 2025

Thanks for your report.

Until this has been debugged and fixed you can simply deactivate the line that calls the broken function pointlessLightShow(). It's line 714 in Traktor-Kontrol-S4-MK2-hid-scripts.js
A links to mapping files are in the controller's preferences page.
Either you edit the script file in place as superuser (will be overridden with next Mixxx update) or copy both the Kontrol S2mk2 xml and js file to controllers in your user data / settings directory (on Ubuntu it's ~/.mixxx/).

@JoergAtGithub
Copy link
Member

Could you try to change line:

var packets = [Object(), Object(), Object()];

to
var packets = [[], [], []];

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

No branches or pull requests

4 participants