Regression on 3.4.1 (Linux) - CLI JSON job hangs - "qrc:/qml/TelemetryPermissionDialog.qml:30: ReferenceError: globalStyle is not defined"

• Jan 25, 2020 - 20:26

When I run execute this JSON job on the CLI with the AppImage on Linux, MuseScore hangs. This worked previously in 3.3.4.

I have verified that this regression is on Linux ONLY. Windows x64 (3.4.1) and macOS (3.4.1) are unaffected.

I have supplied the JSON and MSCZ in the attached zip zile.

To reproduce, perform the following steps on Linux:
1) Unzip the files to a directory
2) Navigate to that directory in Terminal
3) wget http://ftp.osuosl.org/pub/musescore-nightlies/linux/x86_64/MuseScore-3… to retrieve MuseScore 3.4.1
4) chmod +x musescore3 (requires sudo)
5) ./MuseScore-3.4.1-x86_64.AppImage -j Blaster\ Master\ -\ Area\ 7.json -r 144 -m -s -w
6) ???
7) Observe that MuseScore starts up, says something about globalStyle not being defined, and hangs.

Here is my console output for MuseScore 3.4.1:
jroque@localhost:~$ ./MuseScore-3.4.1-x86_64.AppImage -j Blaster\ Master\ -\ Area\ 7.json -r 144 -m -s -w
/usr/lib/x86_64-linux-gnu/libjack.so.0
/usr/lib/x86_64-linux-gnu/libnss3.so
qrc:/qml/TelemetryPermissionDialog.qml:30: ReferenceError: globalStyle is not defined
qrc:/qml/DialogButton.qml:50: ReferenceError: globalStyle is not defined
qrc:/qml/DialogButton.qml:50: ReferenceError: globalStyle is not defined

Here is the console output when running MuseScore 3.3.4:
jroque@localhost:~$ ./MuseScore-3.3.4-x86_64.AppImage -j Blaster\ Master\ -\ Area\ 7.json -r 144 -m -s -w
/usr/lib/x86_64-linux-gnu/libjack.so.0
convert ...
part <[C]-Blaster Master - Area 7.pdf>
part <[Bb]-Blaster Master - Area 7.pdf>
part <[Eb]-Blaster Master - Area 7.pdf>
part <[F]-Blaster Master - Area 7.pdf>
part <[Alto]-Blaster Master - Area 7.pdf>
part <[Bass]-Blaster Master - Area 7.pdf>
part <[C]-Blaster Master - Area 7.png>
part <[Bb]-Blaster Master - Area 7.png>
part <[Eb]-Blaster Master - Area 7.png>
part <[F]-Blaster Master - Area 7.png>
part <[Alto]-Blaster Master - Area 7.png>
part <[Bass]-Blaster Master - Area 7.png>
part <[MID][C]-Blaster Master - Area 7.mid>
part <[MID][Bb]-Blaster Master - Area 7.mid>
part <[MID][Eb]-Blaster Master - Area 7.mid>
part <[MID][F]-Blaster Master - Area 7.mid>
part <[MID][Alto]-Blaster Master - Area 7.mid>
part <[MID][Bass]-Blaster Master - Area 7.mid>
to <[MP3]-Blaster Master - Area 7.mp3>
QMutex: destroying locked mutex
to <[MID]-Blaster Master - Area 7.mid>
... success!

Here is the version of Linux I am running on:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS"
NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.3 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

Attachment Size
3.4.1-CLI-hang.zip 3.07 MB

Comments

I tried this with the latest nightly build, MuseScoreNightly-202001251252-master-ad4955f-x86_64.AppImage, and this does not appear to be an issue with it. Could it be related to TelemetryPermisisonDialog? Is there a way to disable that via CLI?

I see a hang in 3.4.1 even when trying to start MuseScore normally. I get an error "ReferenceError: globalStyle is not defined" in the terminal, and although the "Help Us Improve MuseScore" dialog appears I am unable to click any of the buttons, and a result MuseScore cannot start.

I met the exact same problem and came up with a workaround.

Like it as been said in other comments, this hanging is linked to a telemetry popup that opens when musescore >= 3.4 starts.

The solution to this is to update the config file. On a debian / ubuntu machine, it can be found in ~/.config/MuseScore/MuseScore3.ini. Add the following lines in the [application] section:

startup\telemetry_access_requested=3.4.1
telemetry\allowed=false

I'd like to add that even though Musescore is really an incredible software, it is really hard to run in headless mode. Maybe the use case is not common enough.

Do you still have an unanswered question? Please log in first to post your question.