[Crash Reporter] Crash on accessing QPreferences from paCallback
Reported version
3.0
Priority
P1 - High
Type
Functional
Frequency
Many
Severity
S3 - Major
Reproducibility
Randomly
Status
closed
Regression
No
Workaround
No
Project
The crash log is attached.
The initialMillisecondsSeconds info is needed only for debugging.
I tend to remove the call in release version.
Attachment | Size |
---|---|
637fe44d6ed7455e90c6bd9d15eea41b-symbolicated.txt | 15.82 KB |
Comments
Not a regression, but pretty easy to fix and avoid Top-4 crash (by frequency) .
relates to #289587: [EPIC] Most frequent crash reporter events
It is not so easy. There was one attempt to fix it, still unsuccessful: https://github.com/musescore/MuseScore/pull/4873.
We cannot just remove the initialisation, because it is used everywhere in the Portaudio::putEvent code.
The problem was due to the fact that from different threads the same container (QHash) is accessed. Now there is no method in the code. And now the settings are not called directly from the audio driver thread, the structure with their values is used https://github.com/musescore/MuseScore/commit/39305c9bc214795c7933024d4…