Skip to content
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

Very bad performance and lag in VirtualBox #40

Closed
tiiiecherle opened this issue Nov 5, 2018 · 44 comments
Closed

Very bad performance and lag in VirtualBox #40

tiiiecherle opened this issue Nov 5, 2018 · 44 comments
Labels
driver Driver issues, or poor interaction between the compositor and the driver stale

Comments

@tiiiecherle
Copy link

Platform

archlinux in virtualbox

GPU, drivers, and screen setup

vboxvideo

Environment

openbox and mate

Compton version

v3 with additional commits
https://git.archlinux.org/svntogit/community.git/commit/trunk?h=packages/compton&id=611a4d7d3012745b7243df25e1036f0e50ec7f78
and latest git

Compton configuration:

# running with empty config file

Steps of reproduction

Login to a desktop environment and start compton &

Expected behavior

no lag, no performance issues

Current Behavior

the whole desktop gets almost unusable with a really bad lag.

Other details

I´m using archlinux and the problem started with version 3.0-2 which cherrypicked a commit from github. The latest git version still has the issue. Downgrading the package to 3.0-1 solves it.

According to the changes made it must be related to changes before that point.

@yshui
Copy link
Owner

yshui commented Nov 5, 2018

Are you sure you tested both 3.0-2 and 3.0-1 with the exactly same config? If you used an empty config, nothing should really change for you between 3.0-2 and 3.0-1.

@tiiiecherle
Copy link
Author

Thanks for the fast answer. Yes, I just rechecked that 3.0-1 is working fine and 3.0-2 is not. Both with empty config file.

@yshui
Copy link
Owner

yshui commented Nov 5, 2018

@tiiiecherle OK, can you do a bisect between c0d7f9d (bad) and 16f202f (good) then?

@yshui
Copy link
Owner

yshui commented Nov 5, 2018

@tiiiecherle BTW, do you have a video of what the lag looks like?

@yshui yshui added the driver Driver issues, or poor interaction between the compositor and the driver label Nov 5, 2018
@tiiiecherle
Copy link
Author

tiiiecherle commented Nov 5, 2018

@tiiiecherle OK, can you do a bisect between c0d7f9d (bad) and 16f202f (good) then?

sorry, I don`t know how to do that.

@tiiiecherle
Copy link
Author

tiiiecherle commented Nov 5, 2018

@tiiiecherle BTW, do you have a video of what the lag looks like?

No, I don`t. But for example when you click on the openbox background you can not use the opening menu as it is not possible to select it fast enough. moving around windows or opening apps is very slow.

@yshui yshui added the priority:low Likely won't be done without some volunteers taking the task label Nov 5, 2018
@yshui
Copy link
Owner

yshui commented Nov 5, 2018

OK, then. Can you try 5694e75 and see if that works?

@tiiiecherle
Copy link
Author

OK, then. Can you try 5694e75 and see if that works?

what do you mean by try that? I tried the latest git version with all commits until yesterday by testiung the git package in the aur and the issue was still there.

@yshui
Copy link
Owner

yshui commented Nov 5, 2018

@tiiiecherle can you try checking out compton from this repository at that commit, build it and run it?

@yshui yshui changed the title Very bad performance and lag Very bad performance and lag in VirtualBox Nov 5, 2018
@tiiiecherle
Copy link
Author

It would be very nice if you could give me the exact steps / commands how to do that.
Then I will try it out and report back tomorrow. Thanks

@aruhier
Copy link

aruhier commented Nov 5, 2018

If you're running on Archlinux, install compton-git from AUR but edit the PKGBUILD to replace the source by this one:

source=(git+"https://github.com/yshui/compton.git#commit=5694e75")

@tiiiecherle
Copy link
Author

Thanks a lot. I had to do

pacman -S asciidoc
yay -S --editmenu compton-git

and then changed the source line.

pacman -Qs compton
is showing me
local/compton-git 2:581_3.rc2.14.g5694e75_2018.10.28-1
afterwards. With this change everything is running fine without the issue.

@tiiiecherle
Copy link
Author

I performed another full system update including all repo and aur packages this morning and the strange thing is that even 3.0-2 seems to work fine now. So I don`t know if changing back to commit 5694e75 helped in any way.

It seems like there was in interaction with another issue and this one can be closed.

Thanks for all the fast help. I will have an eye on it the next days / weeks and open another issue if the issue comes back.

@yshui
Copy link
Owner

yshui commented Nov 6, 2018

@tiiiecherle Hmm, I wonder if the problem is really gone.

Thanks for testing though. I will close this for now. If the problem comes back you can leave a comment here and I will reopen this issue.

@yshui yshui closed this as completed Nov 6, 2018
@tiiiecherle
Copy link
Author

tiiiecherle commented Nov 7, 2018

Hey, sorry to get back to this. But this got even more strange. Yesterday I wrote it worked after the system package updates. I went home and the issue was back using the same software.

Then I started thinking about what else changed. I use a Macbook Pro 15 inch with the virtualbox setup. At home I use it standalone and at work with an external monitor (27 inch usbc). Today I went back to the office and the issue is gone again. So the issue occurs when using the macbook standalone and is gone when using the external monitor.

The issue is not occuring on the standalone macbook when killing compton or using the older version 3.0-1.
I don`t know, but I think the issue should be reopened.

@tiiiecherle
Copy link
Author

After the discoveries from the office I went back home and tried on the standalone macbook (where the issue occurs) to go back to this commit:

source=(git+"https://github.com/yshui/compton.git#commit=5694e75")

and I can confirm that installing with this source that the issue is NOT solved. Hope this helps.

@jrudess
Copy link

jrudess commented Nov 7, 2018

Would you mind also trying source=(git+"https://github.com/yshui/compton.git#commit=56f7dd36") ?

I'm also seeing vbox perf issues in #41 and that commit is the last one with the higher performance for my setup.

@tiiiecherle
Copy link
Author

Sure, I tried, but it gives me an error during building...

==> Beginne build()...
Error during basic setup:

Neither directory contains a build file meson.build.
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...
Error making: compton-git

@jrudess
Copy link

jrudess commented Nov 7, 2018

Ah I forgot. You'll need to checkout an older version of the PKGBUILD:

git checkout c69151e34f044e7f024ef3abb937cc35c83c303d

And then comment out a license install line:

  # install license
  #install -D -m644 "LICENSES/MIT" "$pkgdir/usr/share/licenses/$_gitname/LICENSE-MIT"

@tiiiecherle
Copy link
Author

Thanks for the heads-up. I did this and indeed with this build everything is working fine. Hope this helps.

@yshui
Copy link
Owner

yshui commented Nov 8, 2018

OK, I reverted 50e2259, the head of next should working fine again.

@yshui yshui added revisit Resolved temporarily, more work has to be done when more info is available and removed priority:low Likely won't be done without some volunteers taking the task labels Nov 8, 2018
@tiiiecherle
Copy link
Author

Thank you. But I´m sorry to tell you that neither compton-git-next nor compton-3.0-3 are solving the issue. It still persists with both of them.

@tiiiecherle
Copy link
Author

tiiiecherle commented Nov 10, 2018

As I have to give my macbook into repairs for a not-working usb-c port on monday I took some time to filter out the commit causing my issue. I don`t know if it was the right way to do it but I took the old PKGBUILD as decribed in this comment and tried all of these sources. I made a comment behind it if working or not...

#source=(git+"https://github.com/yshui/compton.git#branch=next")                                            # not working
#source=(git+"https://github.com/yshui/compton.git#commit=50e2259404344a5a3932b8e3873e1c047f31056b")        # not working
#source=(git+"https://github.com/yshui/compton.git#commit=796b0e0448b7233ef18a0c04a7ebe368fdc418ba")        # not working
#source=(git+"https://github.com/yshui/compton.git#commit=be09a9a8357dcd581947f4330036dcb57f791847")        # not working
#source=(git+"https://github.com/yshui/compton.git#commit=d7b5104fd4d3e224ad56920fa5aca91762f9ff17")        # not working
#source=(git+"https://github.com/yshui/compton.git#commit=309a4cec79035c2d873ace7e763ea1c4a0bf6bfd")        # not working

#source=(git+"https://github.com/yshui/compton.git#commit=93dd2d92fd8bc0605119f3862f927b67ae75722e")        # working
#source=(git+"https://github.com/yshui/compton.git#commit=db700f9be1ee7c9e9e7febe337cdb207f9ef34a2")        # working
#source=(git+"https://github.com/yshui/compton.git#commit=df63cab39a1c2ff995ed55186193949b54e55682")        # working
#source=(git+"https://github.com/yshui/compton.git#commit=e13bc7fc51e394c6a0b681c1d0017a9f3326a81a")        # working
#source=(git+"https://github.com/yshui/compton.git#commit=551d48783658323f221b87813b4d84bc76d0e969")        # working

As it turned out that the last working commit is 551d48783658323f221b87813b4d84bc76d0e969 and with commit 309a4cec79035c2d873ace7e763ea1c4a0bf6bfd the issue starts. Hope this helps.

@yshui yshui removed the revisit Resolved temporarily, more work has to be done when more info is available label Nov 10, 2018
@yshui
Copy link
Owner

yshui commented Nov 10, 2018

@tiiiecherle Thanks for your effort at diagnosing this problem. Based on your finding, I have some hypothesis about what might be the problem.

Can you test a4d351f and see if that fixes your problem?

@tiiiecherle
Copy link
Author

tiiiecherle commented Nov 10, 2018

Sure, thanks for looking into it. How do I test that? Or better how do I include the commit it in the latest PKGBUILD?

When just using
source=git+"https://github.com/yshui/compton.git#commit=a4d351f051a039112babe5883eff6ca3da97a6aa")
in the PKGBUILD then everything is working fine. But I don`t know if that includes all the latest commits...

@yshui
Copy link
Owner

yshui commented Nov 10, 2018

@tiiiecherle If you can confirm that works, I will update the branch to include that commit.

yshui added a commit that referenced this issue Nov 10, 2018
Setting it on the target buffer picture has no effect. Fix performance
problem when using xrender with virtual box.

Fixes #40

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
@yshui yshui closed this as completed in #49 Nov 10, 2018
@tiiiecherle
Copy link
Author

Yes, using this in the PKGBUILD works without the issue.

source=git+"https://github.com/yshui/compton.git#commit=a4d351f051a039112babe5883eff6ca3da97a6aa")

Thanks for looking into it.

@yshui
Copy link
Owner

yshui commented Nov 10, 2018

@tiiiecherle Merged into next now

@tiiiecherle
Copy link
Author

Perfect, thanks for alle the help, just tried next and the issue is solved. Have a good day and a nice weekend ;)

@tiiiecherle
Copy link
Author

tiiiecherle commented Nov 10, 2018

Would be really nice to see an updated stable (community-repo) version in archlinux including the fix. Thanks in advance

@yshui
Copy link
Owner

yshui commented Aug 9, 2019

Reopening this since it's reported again.

@tiiiecherle what has changed?

@yshui yshui reopened this Aug 9, 2019
@dustinwilson
Copy link

I am getting this issue as well where the performance is terrible in virtualbox. Going through this thread I tried 683cda0, and it works just fine so something added between then and now has caused virtualbox to croak. I'll go through the commits from 683cda0 until I reach one that doesn't work anymore like @tiiiecherle did before and report back to you what I find.

@tiiiecherle
Copy link
Author

@dustinwilson that's great, thanks a lot.

@dustinwilson
Copy link

Sorry about the wait. I could only test this on a computer I use at work. The first commit I found to cause a great deal of lag starting from 683cda0 is 94b1bc0. That means that the last commit to work (at least for me with Manjaro Xfce in Virtualbox) is 68873ef.

After I went up the tree from 683cda0 and found the first one to not work I tried each of the releases since then and none of them work either, so it looks like whatever was changed in 94b1bc0 is what has Virtualbox confused.

@yshui
Copy link
Owner

yshui commented Aug 20, 2019

@dustinwilson if that's the case, can you run compton --diagnostics?

@dustinwilson
Copy link

dustinwilson commented Aug 20, 2019

Version: v4-rc1-54-g94b1bc0

Extensions:

  • Name Pixmap: Yes
  • Shape: Yes
  • XRandR: Yes
  • Present: Present

Misc:

  • Use Overlay: Yes
  • Config file used: /home/dw/.config//compton/compton.conf

That is for 94b1bc0.

@yshui
Copy link
Owner

yshui commented Aug 20, 2019

@dustinwilson perhaps you have a different config file at /home/dw/.config//compton.conf or /etc/xdg/compton.conf? because the config file at /home/dw/.config//compton/compton.conf will NOT be picked up before 94b1bc0

@tiiiecherle
Copy link
Author

@dustinwilson thanks for looking into this,
@yshui I don't have another config file besides an empty one at /etc/xdg/compton.conf and the problem persits with the latest compton version. Thanks for looking into it in advance.

@yshui
Copy link
Owner

yshui commented Sep 16, 2019

@tiiiecherle that means, before 94b1bc0, the config file at /etc/xdg/compton.conf will be used, that could explain the performance change

@tiiiecherle
Copy link
Author

tiiiecherle commented Sep 17, 2019

Just to avoid misunderstandings. Yesterday I tried the latest version of compton (7.3-1)

  • with an empty config file at /etc/xdg/compton.conf (no other config files)
  • with an empty config file at /home/$USER/.config/compton/compton.conf (no other config files)

In both setups the issue persists.

Downgrading back to 5.1-1 and empty config file at /etc/xdg/compton.conf (no other config files) works.

@dustinwilson
Copy link

Sorry about the lack of response on this. I haven't had a chance to test this at work as I haven't been at the computer I can test on. @yshui is right in that the config file at /etc/xdg/compton.conf is used then. Since it has no blurring it runs just fine. I plan on going through the commit list again and finding one where it does work so we can pinpoint where the issue starts.

@yshui
Copy link
Owner

yshui commented Feb 7, 2024

there seems to be a lot of problems with vbox's driver. i probably should consolidate them into a single issue. this one is old so i am closing this. if you are still experiencing problems with vbox, search the issue list first, and only open a new one if there isn't one about vbox open already. thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
driver Driver issues, or poor interaction between the compositor and the driver stale
Projects
None yet
Development

No branches or pull requests

6 participants