-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xlib deadlock in GUI thread #9533
Comments
Commented by: Be-ing |
Commented by: Be-ing Note this is a different backtrace than Bug #1789059. |
Commented by: Be-ing Using xorg-x11-drv-intel-2.99.917-39.20180618.fc29.x86_64 with Intel UHD Graphics 620. |
Commented by: Be-ing Actually this is the same backtrace in Xlib as Bug #1789059, but now something else in Mixxx is triggering it. Unfortunately the backtrace doesn't seem very helpful in identifying what that is. |
Commented by: uklotzde I've never seen this issue on Fedora 28/29 on i5-6440HQ with HD Graphics 530. |
Commented by: uklotzde ...same configuration, i.e. XWayland and RGB (GL) waveforms. I'm using the Deere skin. |
Commented by: Be-ing I have no idea why no one else has replicated this. |
Commented by: ywwg can you attach gdb while it's locked and inspect memory to see what event is being posted? Are you using JACK as your audio backend? Do you also get lockups when using a different backend? |
Commented by: Be-ing I tried, but I don't know how to get any useful information from that. Running "frame Xlib-frame-number" then "info args" and "info local" didn't yield any useful information, I think because I didn't have the source code files for the library. If you have any tips how to get more useful info, please let me know. But at this point, I think the best course of action is to hack around the bug. Considering I have encountered at least two distinct situations (this bug and Bug #1789059) that trigger the same Xlib bug, I'm not confident that if we change Mixxx to not trigger the Xlib bug in this one case that we won't discover more code in Mixxx later that also triggers the Xlib bug. I do use JACK and I haven't tested if this happens with ALSA, but nothing in the backtrace leads me to suspect this has anything to do with audio processing. The audio thread continues fine when the GUI thread deadlocks, which allows me to recover relatively gracefully by letting the track continue to play till the end, then force quitting and restarting Mixxx. |
Commented by: Be-ing I have not encountered this bug since #1923 was merged. To confirm that did hack around the issue, I applied the workaround to the testcase from https://bugs.freedesktop.org/show_bug.cgi?id=59361 and it does seem to work. Commenting out this line in the attached test case:
reproduces the bug. Build the test case with: |
Issue closed with status Fix Released. |
Reported by: Be-ing
Date: 2018-11-28T04:13:13Z
Status: Fix Released
Importance: Critical
Launchpad Issue: lp1805559
Tags: qt5
Attachments: backtrace.txt, testCase.c
[Impact]
Current Mixxx 2.2.0 beta and Mixxx 2.1.3 using 2.2 with RGB (GL) waveforms on XWayland with Qt 5.11.1-9.fc29.x86_64, libX11 1.6.7-1.fc29.x86_64, libxcb 1.13.1-1.fc29.x86_64 causes a GUI deadlock.
The issue can be isolated and fixed with the code posted in comment #11 below. It is not reliable reproducible with the original Mixxx build.
[Test Case]
[Regression Potential]
None.
[Other Info]
The Cosmic 2.1.3 build is also effected, see: https://bugs.launchpad.net/ubuntu/+source/mixxx/+bug/1804513
The text was updated successfully, but these errors were encountered: