Musescore 3.6.2 crashes when I open Tempochange plugin with error "..Plugin/MuseScore_TempoChanges-3.4.1/TempoChanges.qml:450: TypeError: Property 'get' of object 1 is not a function"
Hi,
I've been using Musescore for a long time and have used the TempoChanges plugin in the past.
In my current Fedora 37 based environment everything works fine except this plugin.
If I open scores created in the past for which I have used the TempoChanges plugin, they are played regularly.
Running the application with the "-d" option and opening Tempochanges plugin, I see the error:
[nicola@schumann ~]$ mscore -d
file:///home/nicola/Documenti/MuseScore3/Plugin/MuseScore_TempoChanges-3.4.1/TempoChanges.qml:450: TypeError: Property 'get' of object 1 is not a function
file:///home/nicola/Documenti/MuseScore3/Plugin/MuseScore_TempoChanges-3.4.1/TempoChanges.qml:450: TypeError: Property 'get' of object 1 is not a function
file:///home/nicola/Documenti/MuseScore3/Plugin/MuseScore_TempoChanges-3.4.1/TempoChanges.qml:450: TypeError: Property 'get' of object 1 is not a function
Errore di segmentazione (core dump creato)
[nicola@schumann ~]$
Same error if I use Musescore from the distribution, appimage or flatpak.
Thanks for your attention.
Comments
That'd be this line: https://github.com/jeetee/MuseScore_TempoChanges/blob/ce7b0b9a271f2b80e…
What version(s) of MuseScore? What happens if you run the plugin from within the plugin creator?
In reply to That'd be this line: https:/… by Jojo-Schmitz
This is the version:
[nicola@schumann ~]$ dnf info mscore
Ultima verifica della scadenza dei metadati: 0:15:38 fa il gio 1 dic 2022, 11:08:23.
Pacchetti installati
Name : mscore
Version : 3.6.2
Rilascio : 12.fc37
Architecture : x86_64
Size : 101 M
Sorgente : mscore-3.6.2-12.fc37.src.rpm
Repository : @System
Dal repo : fedora
Summary : Music Composition & Notation Software
URL : https://musescore.org/
Licenza : GPLv2 and LGPLv2+ and LGPLv3 and MIT
Description : MuseScore is a free cross platform WYSIWYG music notation program. Some
: highlights:
:
: * WYSIWYG, notes are entered on a "virtual note sheet"
: * Unlimited number of staves
: * Up to four voices per staff
: * Easy and fast note entry with mouse, keyboard or MIDI
: * Integrated sequencer and FluidSynth software synthesizer
: * Import and export of MusicXML and Standard MIDI Files (SMF)
: * Translated in 26 languages
[nicola@schumann ~]$
In plugin creator Tempochanges opens correctly but if I run it Musescore crashes with the same error:
file:///home/nicola/Documenti/MuseScore3/Plugin/MuseScore_TempoChanges-3.4.1/TempoChanges.qml:450: TypeError: Property 'get' of object 1 is not a function
Errore di segmentazione (core dump creato)
This is caused by Fedora shipping Qt 5.15 and MuseScore being shipped against 5.12.
See https://github.com/jeetee/MuseScore_TempoChanges/issues/27
In reply to This is caused by Fedora… by jeetee
Thanks jeetee,
so with Fedora 37 (Qt 5.15) we can't use the TempoChanges plugin?
In reply to Thanks jeetee, so with… by nicola.sarti
Could you try the following:
Replace the start of the onCurrentIndexChanged handler (line 450), with the following and see what the plugin creator logs about this?
I'm interested in both the log given when launching the plugin as well as what it shows if you then try and select a different note value from the dropdown (assuming it doesn't crash).
In reply to Could you try the following:… by jeetee
If it really is a plain Qt 5.15 issue, you could use the Windows artifact from my PR #9000, that should be using Qt 5.15.2
In reply to Could you try the following:… by jeetee
As far as I can tell that artifact also has this issue, but it doesn't crash
In reply to As far as I can tell that… by Jojo-Schmitz
hmm.. beatBase.model is not supposed to be just an integer :/
And beatBaseList is supposed to be the same thing (or so it is on 5.12...)
One has to start wondering if the Qt example (2nd one from https://doc.qt.io/qt-5.15/qml-qtquick-controls-combobox.html) itself is even functional then?
In reply to hmm.. beatBase.model is not… by jeetee
Some difference due to Qt 5.15 supporting ECMA 6 maybe?
In reply to hmm.. beatBase.model is not… by jeetee
I got a step further:
So fails the 1st time (initialisation?) but works the 2nd time (the actual run?)?
I've replaced all ' (single quotes) with " (double quotes)
In reply to Could you try the following:… by jeetee
I tried adding the line you suggested, but Musescore still crashes. I managed to take a screenshot before the crash.
https://drive.google.com/file/d/1-FVpv2CtoqrDP0KQ2aTYbdHkf8Px4gY6/view?…
In reply to I tried adding the line you… by nicola.sarti
In reply to I tried adding the line you… by nicola.sarti
You don't even get to that debug output. Or does it show on the shell (if you start mscore from a shell)?
Does this work? (1st version)
In reply to Does this work? by Jojo-Schmitz
Or better this (2nd version)
In reply to Or better this by Jojo-Schmitz
Hi Jojo-Schmitz,
I tried both versions you posted, but without success; exact same mistake and Musescore falls.
This is the output if I run the command line:
file:///home/nicola/Documenti/MuseScore3/Support/02-TempoChanges.qml:451: TypeError: Property 'get' of object 1 is not a function
Segmentation fault (core dump created)
In reply to Hi Jojo-Schmitz, I tried… by nicola.sarti
Very strange, that TypeError should not show at all with the 2nd version.
And even if, the error should happen on line 452, not 451!
In reply to Hi Jojo-Schmitz, I tried… by nicola.sarti
I do suspect though that the crash is unrelated to this.
In reply to Hi Jojo-Schmitz, I tried… by nicola.sarti
what about this? (3rd version)
In reply to what about this? by Jojo-Schmitz
The code, lines 449-452:
In reply to onCurrentIndexChanged: { //… by Jojo-Schmitz
Hi Jojo-Schmitz,
in the plugin you posted there is a difference:
https://drive.google.com/file/d/1-FVpv2CtoqrDP0KQ2aTYbdHkf8Px4gY6/view?…
In reply to Hi Jojo-Schmitz, in the… by nicola.sarti
That's not the 2nd nor the 3rd version of my modifications
In reply to That's not the 2nd nor the… by Jojo-Schmitz
You are right, the error is no longer logged.
Musescore keeps crashing.
The details of the incident are as follows:
https://drive.google.com/file/d/1BGGaARTSDKVqEBRu4Axg6Fns-UfDUgXR/view?…
In reply to You are right, the error is… by nicola.sarti
Which to me means that the real crash happens somewhere else, entirely unrelated to that message
Which also sort of explains, why it doesn't crash for me on Windows
In reply to Which to me means that the… by Jojo-Schmitz
I recorded the desktop during the crash.
https://drive.google.com/file/d/1yFy2qfhUcZPMkt-mZSNDWlyEsKQOKru0/view?…
I can use my workstation with all applications including Musescore, except if I run the TempoChanges plugin.
Thanks anyway.
In reply to I recorded the desktop… by nicola.sarti
Hmm.. I notice some Wayland warnings there too; can you run MuseScore on X11 instead?
In reply to Hmm.. I notice some Wayland… by jeetee
Hi jeetee,
I already tried without success.
Musescore crashes anyway.
I tried now with Jojo-Schmitz third version of TempoChanges: here are the printscreen an instant before the crash and the detail of the event in Xorg.
https://drive.google.com/file/d/1XXJYka0wofB_yN3Exl9fgQff5UzE_9BC/view?…
https://drive.google.com/file/d/1yvhuUzjfXY-nKs0jkdGTlq_2lNVKJpHl/view?…
In reply to Hi jeetee, I already tried… by nicola.sarti
So the error seems to be gone, but the result is still a crash :'(
In reply to So the error seems to be… by jeetee
Which, to me, indicates that the error is a red herring, unrelated to the crash.