Main asserts in case syntax errors in JavaScript mappings

Bug #1912089 reported by Jörg Wartenberg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
Fix Committed
High
Unassigned

Bug Description

For many JavaScript mapping syntax failure, but not for all, Mixxx terminates in an assert:

DEBUG ASSERT: "m_pJSEngine" in function bool __cdecl ControllerScriptEngineLegacy::callFunctionOnObjects(const class QList<class QString> &,const class QString &,const class QList<class QJSValue> &,bool) at ..\..\src\controllers\scripting\l
egacy\controllerscriptenginelegacy.cpp:29

Seen with Main on Windows7

Revision history for this message
Daniel Schürmann (daschuer) wrote :

Here is a link to the affected line:

https://github.com/mixxxdj/mixxx/blob/c833006c4c6894b77ea0e4b8c75c89a6d9f7e4d4/src/controllers/scripting/legacy/controllerscriptenginelegacy.cpp#L29

This happens when initialize() is not called before callFunctionOnObjects()

Revision history for this message
Daniel Schürmann (daschuer) wrote :

In Mixxx 2.2, we don't have this safety net it would immediately crash. So I am afraid this is a regression that need sti be fixed.

Revision history for this message
Daniel Schürmann (daschuer) wrote :

Can you verify if this is the only assertion? There are similar checks Inbthe file.
Which controller script is affected?

Changed in mixxx:
importance: Undecided → High
milestone: none → 2.4.0
Revision history for this message
ronso0 (ronso0) wrote :

@Jörg Wartenberg
Is this still present in 2.3 builds?

Revision history for this message
Jörg Wartenberg (joerg-ubuntu) wrote :

This is a Main issue, I never saw it on 2.3

Revision history for this message
ronso0 (ronso0) wrote :

Can you verify if this is the only assertion? There are similar checks In the file.
Which controller script is affected?

Revision history for this message
Jörg Wartenberg (joerg-ubuntu) wrote :

This occured while developing the Z2 mapping in: https://github.com/mixxxdj/mixxx/pull/3038

When the assert occured, there were various typos in the JavaScript code. Without JavaScript syntax failures, as in the PR, Mixxx runs stable without assert.

Revision history for this message
Be (be.ing) wrote :

I cannot confirm this on the current main branch. I think it was fixed somewhere along the way. Please reopen this bug if it is still a problem.

Changed in mixxx:
status: New → Fix Committed
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/10291

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.