AIMP Forum

AIMP for Windows => Ошибки и замечания / Bugs => Обработано / Processed => Topic started by: schalmock on October 25, 2021, 17:36:20

Title: [x] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: schalmock on October 25, 2021, 17:36:20
Since the update from version 4.70.2254 to 5.00.2338, "Monitor For Changes While Running" for playlists does not work with me anymore.
My OS Win 7.

Am I doing something wrong?
Title: Re: AIMP 5 monitor for changes while running doesn't work anymore (Win7)
Post by: Artem on October 25, 2021, 22:02:09
Please, provide step-by-step instruction how to reproduce the issue.
Title: Re: [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: schalmock on October 25, 2021, 23:19:31
It's the same procedure as in v4.70

I have now found that the updating of the playlist happens, but disproportionately takes much longer time than in v4.70.

The update of a larger playlist (over 100k entries) in v4.70 lasted only a few minutes, in v5 it takes several hours. Also the final sorting is taking a very long time.
The new entries are displayed first only as filenames and reading out the tags even takes a long time.

I then abbreviated this process by manually clicking these entries. Then the reading of the tags takes place immediately.

When I switch back to v4.70, everything goes as fast as always.

Could it be that it has something to do with that the playlists were created in v4.70?
Title: Re: [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: Artem on October 27, 2021, 08:38:30
I have tried to reproduce an issue but failed. How many folders are added to monitor?
Title: Re: [?] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: schalmock on October 27, 2021, 16:15:42
I now have more detailed data to describe the problem.
I ran the exact same task with v4.70.2254 and v.5.00.2338.

The result:
1. updating the playlist also works in v5, but it takes about 30x more time than in v4. That's the reason why I originally thought it didn't work.

2. the task: update a playlist with 120k entries by 14 tracks of a new CD (1 folder) and sort them into the list according to the template.

v5: Task completed after 90 minutes
v4: Task completed after less than 3 minutes

In smaller playlists it's just the same. In v5 it takes many times longer to monitor and update than in v4.

Thank you very much for taking care of this issue.
Title: Re: [?] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: Artem on October 27, 2021, 20:51:25
I have tried to reproduce but failed. What is your antivirus?
Title: Re: [?] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: schalmock on October 27, 2021, 21:14:14
Avast Premium Security

Why should the antivirus react to v4 unlike to v5?
There were no messages from the antivirus for AIMP
Title: Re: [?] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: Artem on October 28, 2021, 09:49:54
Antivirus may slow down file operation due a check process for unknown (newer) app.

Please, use the debug version of app (https://disk.yandex.ru/d/LBuiI8x2pAuDfQ):
1. Start sync process
2. While sync process is active use the "trace" (https://disk.yandex.ru/d/LChU4E7zjYuf8) tool several times to dump the app state
3. Send the logs to me.

It would help to me to find a root of issue. Thank you.
Title: Re: [?] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: schalmock on October 28, 2021, 16:21:33
Okay, I'll do that. However, it may take a while until I can post the result.
Title: Re: [?] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: schalmock on October 29, 2021, 00:13:38
I now followed your instructions.
AIMP should update a playlist with 123516 entries by 9 tracks in a new folder.
The process took 79 min.
The tracing was started 9 times, but I could only attach 4 files

1, tracing after the monitoring has started.
2. after 22 min.
3. after 60 min.
4. after 79 min. (Task finished, playlist completed by 9 titles and sorted by template.

Hope it is useful for you
Title: Re: [?] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: Artem on October 30, 2021, 11:16:18
Thank you
Title: Re: [?] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: Alex-D on October 30, 2021, 18:12:43
Не знаю, почему Артем меня отправил в эту тему, так как здесь у человека другая проблема.
У меня синхронизация изменений работает нормально - проблема именно в постоянной активности плеера при открытии смарт-плейлистов, которой НЕ было в 4-й версии. Так уж и быть, записал отчёты из дебаг-версии, как здесь предлагалось. Только никаких маркеров этого бага в них не нашёл, кроме того, что плеер зачем-то непрошенно лезет в mp3-файлы и теги (но тут уж не мне разбираться). Первые два файла - во время этой активности (начало и середина), последний - когда плеер утихомирился. Раз уж тут спрашивали об антивирусах - то у меня их нет вообще. Пробовал снять флажок "Синхронизировать оценку с тегами" - не помогло. Кроме того, папка-источник для смарт-плейлиста вообще не находится в фонотеке и соответственно, не мониторится ей.

UPD: Плеер перестаёт сходить с ума только при отключении флажка "Синхронизировать при обнаружении изменений". Но это опять же ненормально. В папку ничего не пишется днями, но плееру постоянно что-то в ней не нравится.
Title: Re: [?] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: Artem on October 30, 2021, 18:45:15
постоянной активности плеера при открытии смарт-плейлистов, которой НЕ было в 4-й верси

Суть этой активности в тормозах синхронизации. Раньше активность тоже была, только заканчивалась она гораздо быстрее.
Title: Re: [?] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: Artem on October 30, 2021, 18:57:48
It seems that issue is related to chapters support.

In AIMP5 release, app processes chapters as CUE sheets, it means that app tries to find chapters info in the file and split it to few tracks during adding to playlist. Unlike CUE, chapters stored in file tags, so app forced to open each adding file and parse it tags. Seems it takes to much time on your PCs.

Now, I have redesigned chapters support. Now player will not split the file by chapters in playlist, but will display chapter list in seekbar's context menu for playing track only.

Please, test performance of the build: https://disk.yandex.ru/d/LBuiI8x2pAuDfQ



Похоже, проблема связана с поддержкой глав.

В AIMP5, плеер работает со списком глав также, как с файлами CUE. Это значит, что плеер читает информацию о главах для каждого файла перед добавлением в плейлист, и если главы есть - файл будет представлен в плейлисте в виде нескольких треков. Правда, в отличие от CUE, информация о главах зашита в тегах файла, а это значит, что AIMP должен открыть каждый файл и прочитать его теги перед добавлением в плейлист. Похоже, на ваших ПК это и тормозит.

Сейчас я переделал взаимодействие с главами. Сейчас плеер вообще не будет разбивать файлы по главам в плейлисте, однако будет показывать список глав в контекстном меню навигации по проигрываемому файлу.

В общем, потестируйте производительность у этой сборки: https://disk.yandex.ru/d/LBuiI8x2pAuDfQ
Title: Re: [x] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: schalmock on October 30, 2021, 19:10:44
Thank you very much for your efforts.
I will test it this evening or tomorrow.
Title: Re: [?] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: Alex-D on October 30, 2021, 19:38:43
Суть этой активности в тормозах синхронизации. Раньше активность тоже была, только заканчивалась она гораздо быстрее.
Нет, раньше у меня плеер вообще не дёргал синхронизацию без реальной на то надобности, даже на секунды. Я бы это сразу заметил, т.к. у меня ничего безконтрольно не работает фоном, и процессор 95% времени отдыхает (и монитор нагрузки встроен в панель задач). Я закидывал в папку новый трек или менял теги, и только тогда слышал активность плеера на 3-5 секунд, пока трек записывался в плейлист. Что было вполне логично и адекватно заданным мной настройкам. Сейчас же поведение вообще непредсказуемо (что, впрочем, вполне в духе современных приложений...).
Title: Re: [x] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: Artem on October 30, 2021, 20:42:28
Сейчас же поведение вообще непредсказуемо (что, впрочем, вполне в духе современных приложений...).

По существу есть что сказать?
Title: Re: [x] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: schalmock on October 31, 2021, 03:13:08
Please, test performance of the build: https://disk.yandex.ru/d/LBuiI8x2pAuDfQ

It looks like you have found the solution to the problem.
I have performed the same task as described above 2 times with the build 2240. Both times the task was finished in about 1 min, even faster than in v4.70 (about 3 min).

Thumbs up! :-)
Title: Re: [x] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: Misha60 on October 31, 2021, 17:09:10
В общем, потестируйте производительность у этой сборки: https://disk.yandex.ru/d/LBuiI8x2pAuDfQ
Вот теперь другое дело. Всё обновляется быстро. Спасибо!
Title: Re: [x] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: Alex-D on October 31, 2021, 19:58:15
По существу есть что сказать?
Думаю, проблема и так была описана достаточно подробно...
На тестовой сборке её не наблюдаю - субъективно вернулось поведение 4-й версии, за что большое спасибо!
Правда, в ней нашёлся новый недочёт - сломалось выделение плейлистов на старых скинах. В Stable-версии текст просто подсвечивался при наведении мыши.

(https://www.aimp.ru/forum/index.php?action=dlattach;topic=67829.0;attach=64762)
Title: Re: [x] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: Artem on October 31, 2021, 20:12:45
Оформите как подобает, пожалуйста, и название скина скажите
Title: Re: [x] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: schalmock on November 02, 2021, 19:32:56
I've been using build 2240 for days now because updating playlists works great with it.

However, during this time I noticed something that I would like to call "stuttering" of the player.
If the player is not busy, so no monitoring etc., it hangs when scrolling through the playlist and when starting another song by clicking on it.

Windows then displays the message "the program is not responding". This stuttering lasts only a few seconds, but in the long run it is annoying, because it occurs continuously.

In v4.70 this did not occur.

------------

Я использую сборку 2240 уже несколько дней, потому что обновление плейлистов в ней работает отлично.

Однако за это время я заметил нечто, что я хотел бы назвать "заиканием" плеера.
Если плеер не занят, то есть нет мониторинга и т.д., он зависает при прокрутке списка воспроизведения и при запуске другой песни, если нажать на нее.

Windows выводит сообщение "программа не отвечает". Зависание длится всего несколько секунд, но в долгосрочной перспективе оно раздражает, поскольку происходит постоянно.

В версии 4.70 этого не происходило.
Title: Re: [x] [2338] monitor for changes while running doesn't work anymore (Win7)
Post by: verbal on November 08, 2021, 03:11:21
I noticed something that I would like to call "stuttering" of the player.
If the player is not busy, so no monitoring etc., it hangs when scrolling through the playlist and when starting another song by clicking on it.

Windows then displays the message "the program is not responding". This stuttering lasts only a few seconds, but in the long run it is annoying, because it occurs continuously.

This is happening to me all the time.. :(
How many songs do you have in your library and how big is Local.adb file in c:\Users\***\AppData\Roaming\AIMP\Audio Library\ ?
... I can't use the player normally.. everything is bugging .. always have to de-attach the adb file