Repository navigation
Closed
Labels
Description
CC @mahkoh
Ctrl-L fixes the glitches.
gp@MacBook-Pro-Gregory ~/d/cmus ((5969d12...)|BISECTING) [1]> git bisect log
git bisect start
# good: [9d37708a93c9fadeebe0eb9f8f67310e4fe55156] Merge pull request #475 from mahkoh/set_priority3
git bisect good 9d37708a93c9fadeebe0eb9f8f67310e4fe55156
# bad: [04836a121a1cba1950cb35371e3f8e46bbad74e1] Merge branch 'get_opt' of https://github.com/mahkoh/cmus into mahkoh-get_opt
git bisect bad 04836a121a1cba1950cb35371e3f8e46bbad74e1
# skip: [99e98f7330fef891b18a3d09e8dad921f1be85da] Add some wrapper functions to pl.c
git bisect skip 99e98f7330fef891b18a3d09e8dad921f1be85da
# skip: [4ae58951734e69c5ffe33192e33c10cff16d10d2] Use pl wrappers in command_mode.c
git bisect skip 4ae58951734e69c5ffe33192e33c10cff16d10d2
# bad: [da54f6dc59e906387fc8d2c589a2ea4998542a8e] Rename pl_clear_pl to pl_clear_visible_pl
git bisect bad da54f6dc59e906387fc8d2c589a2ea4998542a8e
# bad: [7262540b61dc1d43607215faa18456669c9e07fc] Use pl wrapper functions in ui_curses.c
git bisect bad 7262540b61dc1d43607215faa18456669c9e07fc
# bad: [4b54422c1e80e67fe8353988b178578c569dc832] Restore "continue" feature
git bisect bad 4b54422c1e80e67fe8353988b178578c569dc832
# good: [3ebe81b815e8b3b535cb23dd1869e0fbfdb34385] Add convenience macro for select
git bisect good 3ebe81b815e8b3b535cb23dd1869e0fbfdb34385
# good: [4a2ae75b27a920a8487b04f9abf35eb1761298fe] Fix a memory leak in free_update_job
git bisect good 4a2ae75b27a920a8487b04f9abf35eb1761298fe
# bad: [8fec8b59aed2ff32363508a3b795ee1a9f7cd4a7] Change jobs to use the async interface
git bisect bad 8fec8b59aed2ff32363508a3b795ee1a9f7cd4a7
# good: [5969d122a2da7b0a85256d042887e8c2b91f4ed7] Add multi-thread track requests
git bisect good 5969d122a2da7b0a85256d042887e8c2b91f4ed7
# first bad commit: [8fec8b59aed2ff32363508a3b795ee1a9f7cd4a7] Change jobs to use the async interface


Activity
mahkoh commentedon Aug 25, 2016
I'll look into it.
mahkoh commentedon Aug 25, 2016
I have not seen this myself. How can I reproduce it?
flyingmutant commentedon Aug 25, 2016
It occurs immediately after starting cmus. I can reproduce it 100% of the time. Maybe some initial draw / cache loading race?
mahkoh commentedon Aug 25, 2016
Try this patch on master
mahkoh commentedon Aug 25, 2016
I've updated the patch above.
flyingmutant commentedon Aug 26, 2016
The patch above does not help.
mahkoh commentedon Aug 26, 2016
I can't find the problem because I cannot reproduce this.
flyingmutant commentedon Aug 26, 2016
How big is your music collection? My wild guess is it may have something to do with cache loading time (I can not reproduce the issue with empty library).
mahkoh commentedon Aug 26, 2016
My cache file is 1.4M loaded from an HD. But I don't think that is the cause because the cache is loaded in the UI thread before anything is drawn and before the worker thread is initialized. Maybe try this
To me this looks like memory corruption because drawing the library will always draw the separator. And drawing any of the windows will always draw the title. Maybe put some printfs in update_window.
mahkoh commentedon Aug 26, 2016
http://clang.llvm.org/docs/AddressSanitizer.html is available on OSX.
flyingmutant commentedon Aug 26, 2016
I don't have time to dig into this right now — will look into this during the weekend.
mahkoh commentedon Aug 26, 2016
Unfortunately asan doesn't work with the latest glibc so I cannot test it myself. https://sourceware.org/bugzilla/show_bug.cgi?id=20069
mahkoh commentedon Oct 8, 2016
Can anyone besides @flyingmutant reproduce this?
mahkoh commentedon Oct 18, 2016
Asan works again in GCC and finds absolutely nothing wrong with cmus. What it did find is that pulse leaks some memory.
[-]UI corruption started with 8fec8b59aed2ff32363508a3b795ee1a9f7cd4a7[/-][+]UI corruption at startup[/+]jayay commentedon Feb 5, 2017
@flyingmutant does this still occur after 055094c?
An7ar35 commentedon Jan 13, 2018
Maybe related but as I scroll through my library, old characters belonging to names longer than the ones selected stay on screen on v2.7.1-8.
This behaviour does not happen on my desktop (Arch Linux/Nvidia using
nvidia 387.34-19) but happens on the laptop (Arch Linux/Radeon usingxf86-video-amdgpu 1.4.0-1).pgaskin commentedon Sep 20, 2024
I think this has been fixed.