Error dialog not displayed

Bug #1748636 reported by Johan Lasperas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
Fix Released
Low
RJ Skerry-Ryan

Bug Description

Discovered while discussing https://github.com/mixxxdj/mixxx/pull/1506

Error dialogs are not handled properly, and might be displayed or not depending on which thread was the first to request an error.

How to reproduce :
Launch mixxx, go to preference -> Live Broadcasting
Check "Turn on Live broadcasting when applying these settings", set encoding format to OggVorbis, rate to 96Kbps and apply.
An error is displayed, as this specific combination of format and rate is not supported

Close mixxx, mess with a controller preset xml file (res > controllers > *.midi.xml), then repeat the steps above. No error is displayed, log shows : "Warning [Controller]: WARNING: errorDialog not called in the main thread. Not showing error dialog."

The reason is that in the second case, the first error called (bad XML) is from a background thread. Any subsequent attempt to display an error dialog will then be made from that thread, even if the error happens in the main thread, as with the broadcasting error.

This is not critical right now because error dialogs are not used widely, and it shouldn't affect users, but might lead to inconsistencies in the future

Tags: easy
Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

Nice catch!

tags: added: broadcast
Changed in mixxx:
status: New → Confirmed
importance: Undecided → Low
tags: added: easy
removed: broadcast
RJ Skerry-Ryan (rryan)
Changed in mixxx:
assignee: nobody → RJ Skerry-Ryan (rryan)
status: Confirmed → In Progress
Revision history for this message
RJ Skerry-Ryan (rryan) wrote :
Changed in mixxx:
status: In Progress → Fix Committed
milestone: none → 2.2.0
Changed in mixxx:
status: Fix Committed → Fix Released
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/9130

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.