AIMP Forum

AIMP for Windows => Ошибки и замечания / Bugs => Обработано / Processed => Topic started by: Ananda96 on December 13, 2024, 16:34:31

Title: [x] [2647] GDI resource leak
Post by: Ananda96 on December 13, 2024, 16:34:31
There is a weird Problem since last three betas.

after a time line of PC inactivity while playing music comes negative windows system sound bell,
then lots of popups coming with this message: failed to create DIB (15x545), 10000.

music keeps playing, i have to kill task aimp.exe with taskmanager.

i uninstalled aimp with deep clean of registry, reinstalled with my settings.
same error appears.
i uninstalled again with deleting my settings, reinstall.

error still coming up, makes aimp unuseful.



Title: Re: Stack overflow or something like that.
Post by: Artem on December 13, 2024, 20:40:56
What skin you using? It seems like leak of gdi-resource
Title: Re: Stack overflow or something like that.
Post by: Ananda96 on December 13, 2024, 22:48:37
i am using for years the same skin:

W8 Dark v3.0
Title: Re: Stack overflow or something like that.
Post by: Artem on December 13, 2024, 23:10:01
What app version is installed now?
Title: Re: Stack overflow or something like that.
Post by: Ananda96 on December 13, 2024, 23:20:28
v5.40.2647 RC
Title: Re: Stack overflow or something like that.
Post by: Artem on December 13, 2024, 23:24:21
What action lead to this issue? How long the app works from scratch before the error? Do you use visualization?
Title: Re: [?] [2647] GDI resource leak
Post by: Ananda96 on December 13, 2024, 23:34:34
i don't use visualization.

just normal play, after 20-30 min app becomes irrespondable

popups appear in a stack with error sound, background information of albums/songs disappear like aimp isn't loaded with music.

app crashes, info bar keeps on top, frozen.
i have to kill the task and restart aimp.

this appears now for last 2 betas and the actual candid from today.

Title: Re: [?] [2647] GDI resource leak
Post by: Artem on December 13, 2024, 23:35:56
Here is build with extended debugging, please, try to reproduce an issue using it: https://disk.yandex.ru/d/i4QitRfrxG7lmA
Title: Re: [?] [2647] GDI resource leak
Post by: Ananda96 on December 13, 2024, 23:50:05
thanks  a lot, will report about behaviour tomorrow. bedtime here in spain ;.)
Title: Re: [?] [2647] GDI resource leak
Post by: Artem on December 14, 2024, 00:02:00
thanks  a lot, will report about behaviour tomorrow. bedtime here in spain ;.)

Yep, sure. It's already midnight here
Title: Re: [?] [2647] GDI resource leak
Post by: Ananda96 on December 14, 2024, 15:00:52
feedback on the debug release, same skin:
after 2 and a half hours of error-free listening to music, aimp crashed with a single popup WITHOUT TEXT, i.e. white rectangle and disappeared, taskmanager was not necessary, complete crash this time.

I installed the debug release over existing rc candidate.
Title: Re: [?] [2647] GDI resource leak
Post by: Artem on December 14, 2024, 15:21:57
feedback on the debug release, same skin:
after 2 and a half hours of error-free listening to music, aimp crashed with a single popup WITHOUT TEXT, i.e. white rectangle and disappeared, taskmanager was not necessary, complete crash this time.

I installed the debug release over existing rc candidate.

So, try to do the following: run debug version of app, close it after 10-20 minutes (before the crash). Due the closing, it should display a window with leak report. Attach the report here
Title: Re: [?] [2647] GDI resource leak
Post by: Ananda96 on December 14, 2024, 16:47:56
unfortunately no leak report appears after closing (i did so several times after 20 min)
Title: Re: [?] [2647] GDI resource leak
Post by: Artem on December 15, 2024, 22:11:07
Please, place this library (https://disk.yandex.ru/d/_bwi1Rz2d4JQBQ) to AIMP's folder. It seems like leak catching was not started without that.
Title: Re: [?] [2647] GDI resource leak
Post by: Ananda96 on December 15, 2024, 23:24:10
Ok, will report this tomorrow:

Meanwhile:

I  switched temporary to : M5 v1.2.8

this skin behaves different: aimp becomes irrespondible after 2 hours of playing, greys out and crashes, normal restart.
also sending error report popup shows up without error report.
Title: Re: [?] [2647] GDI resource leak
Post by: Artem on December 16, 2024, 10:18:22
May be, do you remember what last build number of AIMP was working fine on your side?

Title: Re: [?] [2647] GDI resource leak
Post by: Ananda96 on December 16, 2024, 12:59:18
before release candidate 2 or 3 betas before errors and crashes appeared.

both skins behave similair, but m5 greys out, becomes unclickable,  crashes.
roundabout after 2 hours.
i use scrobbling on last fm, and 25% of transparency.

I'm using aimp betas for years now, but it looks like that i have to use the regular version soon.
did the leak file not showing any errors?

Started with aimp shortly after winamp becomes abandadoned. :-)

Title: Re: [?] [2647] GDI resource leak
Post by: Artem on December 16, 2024, 13:55:08
both skins behave similair, but m5 greys out, becomes unclickable,  crashes.
roundabout after 2 hours.

It seems to me that this is a consequence of the same error

before release candidate 2 or 3 betas before errors and crashes appeared.

Please, try this build:
https://disk.yandex.ru/d/BiinUwXfuZ7DpQ
Is it works fine on your side?

I'm using aimp betas for years now, but it looks like that i have to use the regular version soon.
did the leak file not showing any errors?

Yes, but unfortunately, it does not show gdi resource leak =(

i use scrobbling on last fm, and 25% of transparency.

Please, can you share your profile folder? I will try to produce the issue on my side using your settings
Title: Re: [?] [2647] GDI resource leak
Post by: Ananda96 on December 16, 2024, 14:16:09
here is profile folder
Title: Re: [?] [2647] GDI resource leak
Post by: Artem on December 16, 2024, 14:48:56
here is profile folder

Thanks
Title: Re: [?] [2647] GDI resource leak
Post by: Artem on December 16, 2024, 15:24:57
Gotcha!

Let me some time, I will prepare the build with fix.
Title: Re: [x] [2647] GDI resource leak
Post by: Ananda96 on December 16, 2024, 16:26:46
Glad to hear this!
i would be interested to read about the reason.

the build you send me today works still good.

Its always good to share experience.

May be a suggestion for the future:
ability to change internal font size (dificult to read on very big screens, context menues and so on.)

Sorry about not able to write in russian letter (neither language) Privjet y Spasiba ( i hope thats right)!

un saludo desde espana. (I'm german)
Title: Re: [x] [2647] GDI resource leak
Post by: Artem on December 16, 2024, 19:53:27
Build is here: https://disk.yandex.ru/d/oA6oyaGRa_73Mg

Leak was in scrobbler plugin (what why debug version of player show nothing) in scrobbler's progress bar that shown in track information window only.
Thanks for helping!

May be a suggestion for the future:
ability to change internal font size (dificult to read on very big screens, context menues and so on.)

Refer to app settings \ interface \ scaling factor

Sorry about not able to write in russian letter (neither language) Privjet y Spasiba ( i hope thats right)!

Yep, almost correct ;) (in transliteration it will be "privet i spasibo").
Thanks again for helping to find this issue. I hope new build will works fine.
Title: Re: [x] [2647] GDI resource leak
Post by: gr-e on December 16, 2024, 20:45:13
Leak was in scrobbler plugin (what why debug version of player show nothing) in scrobbler's progress bar that shown in track information window only.
Same issue is also present in the skin editor when saving the project
Title: Re: [x] [2647] GDI resource leak
Post by: Ananda96 on December 16, 2024, 23:50:48
Build is here: https://disk.yandex.ru/d/oA6oyaGRa_73Mg

Leak was in scrobbler plugin (what why debug version of player show nothing) in scrobbler's progress bar that shown in track information window only.
Thanks for helping!

Refer to app settings \ interface \ scaling factor

Yep, almost correct ;) (in transliteration it will be "privet i spasibo").
Thanks again for helping to find this issue. I hope new build will works fine.

I'm happy to help finding errors and glitches, since aimp is my beloved app since beginning.

the version you send me works stable from here.
looking forward for bugfixrelease.

Fontsize: i refer to change internal font AND size, not scaling, because scaling changes everything.
Title: Re: [x] [2647] GDI resource leak
Post by: Artem on December 17, 2024, 00:01:58
Same issue is also present in the skin editor when saving the project

Yep. I will publish update on this week.

i refer to change internal font AND size, not scaling, because scaling changes everything

It impossible because of skins. Skins are not flexible and cannot adjusts to any font size.