-
-
Notifications
You must be signed in to change notification settings - Fork 589
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
Flickering and rendering issues; non-functional (Nouveau) #33
Comments
What is your configuration? |
I am using the default configuration file, I have tried I should definitely add that a previous version of compton (2.0-2?) ran without issue on my system. |
What happens when you start compton with |
The issue is not present when using
I can upload a copy of the config file I was using if that would be useful? |
If that is the case, a workaround for now will be using the xrender backend. Did this issue happen with earlier version of compton (v2 for example)? Are you familiar with git enough to do a bisect? When you test earlier versions of compton, remember to use |
Sorry for closing, didn't mean to. |
This issue has never occurred before with v2. I am not familiar with bisect, but can tell you the last good/first bad commit on the arch community repository (packages/compton View Changes): upgpkg: compton 2.0-2 (10 days ago) was fine, upgpkg: compton 3.0-1 (24 hours ago) was bad. I can downgrade and test v2 with |
Yes, that would be useful. |
v2.0 worked with |
I can confirm the same issue. Occurred first with last Arch Linux update, v. 3.0.1, created 2018-10-29. Returning to --backend xrender fixes the issue. |
I have some guesses. Can you record a trace of |
And if you can, can you record a trace of compton v2 as well? So we can compare. |
Got a lead from #34. What do your xorg.conf/xorg.conf.d look like? |
Aside from a keyboard config file ( 00-keyboard.conf.txt |
OK. Hmm, I don't see anything suspicious in those config... Were you able to get a apitrace though? |
Let me know if these are what you want. I wasn't sure how to pass |
I'm having the same issue. It looks like this: https://a.uguu.se/6ldCwZGaMQyq.mkv. i3, nouveau, nvidia gtx760, two monitors configured with xrandr. Doesn't happen with only 1 monitor. At the same time xcompmgr works just fine. Starting git bisect now. |
I might be doing something wrong, but compton built from source works just fine..? I have no issues with 46a6a39, db700f9, and other commits up until d7b5104. I'm testing with:
edit: no issues with 28a2cc6 too. |
I just rebuild this package: https://www.archlinux.org/packages/community/x86_64/compton/ with makepkg and it works just fine, I have no issues... (removed, see comment history) Please disregard that, it came back after a reboot. It's non-deterministic? It went away, for a while, after testing with xrandr / xcompmgr? I'm not sure what happened. Doing git bisect again. |
@hiciu So you are saying the head of
That is really weird, since that commit changes nothing about what compton does, it just switched to xcb for event handling. If it really is the bad commit then something really weird is going on. |
Sorry about the confusion. Head of Right now d7b5104 (current head of next) again works for me. But I'm 100% sure that if I reboot, it will break.
Yeah, that and fact that the issue is not occurring right now - that's probably a nouveau bug. I'm attaching a video of me running d7b5104 (current head) right now, with no issues: https://a.uguu.se/1lXXovcjzD8T.mkv. I'll attach another one, after a reboot, hopefully showing the same compilation with flickering. |
And here, after a reboot: https://a.uguu.se/YpbGJqFOTo5l.mkv
I can't explain why it behaves the way it does. At this point I'm pretty sure this has nothing to do with compton. |
The way compton uses opengl has only very slightly changed. So if compton is using opengl wrong, it has being using opengl wrong all along. The fact it worked before, and works now with probably most of the drivers makes me think the way it uses opengl is fine. OTOH, the communication pattern between X and compton has changed a bit, because we moved to xcb and eliminated the use of Xfixes. So, this could be that the timing of things changed, and that triggered a previously unexposed bug in the driver. Although I am not very confident of that. I think right now, the best thing for me to do is to continue investigation. But at the same time we should also raise this issue to nouveau, and see if they have more insights. |
@yshui I just saw your comment and decided to try v3 after disconnecting my second monitor... No change - the rendering/flickering issue is still present with only one monitor connected, for me at least. |
@piperfw OK, at least we ruled out one of the possibilities. |
@piperfw BTW, was your screen flickering when you made the traces? |
@yshui For v3, most definitely. I can re-do to confirm if necessary. |
@piperfw That is fine. Just to confirmed, you had terminal windows and browser open when you were recording. And they are flickering, is that right? Do you have to scroll the page in the browser to make it flicker, or did it flicker without you doing anything? Also, how much time did you record in the traces? |
@yshui I believe I had terminal windows, a text editor and chromium open (I don't have firefox on my system). All were flickering severely. No scrolling, or interaction of any form for that matter, required. For the v2 trace, I must have left it on for at least 30 secs-min. Then I saw how large the file was and ended up doing the v3 trace for probably less than 10 seconds. It's possibly some rare glitch with my particular system/environment, seen as there haven't been many people coming here with the same issue? In which case you shouldn't worry about it too much, I don't mind just using v2 as it works perfectly :). I'm signing off for the day but will check back here first thing tomorrow. |
@piperfw Ah, also, when you disabled your second monitor, did you just disconnect it? Did you actually disable it with xrandr? |
@yshui I physically disconnected it only (my xrandr lists four outputs, two of which are usually connected). |
@yshui Just tried disabling the second monitor (as well as disabling and disconnecting). The issue persists.
|
@piperfw Thanks a lot for the information. |
I have a similar issue but it happens right after starting my i3 session, every ~300 ms (or every time I press a key in a text input) it switches back and forth between the first frame ever shown at session startup (black screen when starting from startx, or display manager's wallpaper) and the current real frame. I'm not sure if I should create a new issue, I think the root cause it the same. I'm using a GTX 760 with nouveau on arch, with i3-gaps. I don't mind keeping the previous version that works fine. EDIT: it seems that arch's maintainer updated compton 5 hours ago (to 7bdebbe), haven't tried it yet. |
@Exagone313 Sounds like the same issue. 7bdebbe is not relevant to this issue. I'm still waiting for more info from nouveau developers. |
Well, for me it depends. In current setup I have two monitors: one connected via DP and one connected via DVI-D (not sure if that matters, DP-1 is configured as So, for me, there are 3 possible configurations:
The issue happens in cases 1. and 2., I have no problems in case 3. (I'll confirm that after a reboot). Also, when I switch between cases 1., 2. and 3. the issue goes away. Right now everything works - during writing this comment I was switching between scenarios 2. and 3. and now the bug is gone (I'm not yet sure which combination exactly hides the issue). @piperfw, could you try disabling your other monitor? Mesa versions:
And my
|
@hiciu Now it sounds more and more like a driver bug. BTW, my bug report to upstream is here: https://bugs.freedesktop.org/show_bug.cgi?id=108651. I guess we just have to wait. If you think I missed some information in my bug report, feel free to add to it. |
@hiciu Can you try add |
Before changing to DRI 3:
After:
The issue is still present with Also after some testing I've found that this combination of xrandr commands:
fixes the issue for me until I restart my X server again. |
At the same time the issue is not present if I use |
I'm getting an error during compilation here:
|
I got it to build with meson. It works! It's gone with I've also checked previous commit to make sure and the issue is still present on Thank you! |
I've just built and tested The problem is still present for me with |
Oops! @yshui pulled the correct commit now and the bug appears to have gone! Will run for a while now to check. |
Platform
Arch Linux (4.18.16-arch1-1-ARCH)
GPU, drivers, and screen setup
Environment
Compton version
v3-rc2-18-gc0d7f9d
Compton configuration:
Default
Steps of reproduction
Expected behaviour
composite manager runs and provides compositing
Current Behaviour
Severe rendering issues; rapid flickering; window frequently disappears (see video)
Other details
Link to video (Google Drive - download if stream doesn't work) of behaviour: compton_issue.mp4
The program vlc is running in the active window as an example.
The text was updated successfully, but these errors were encountered: