Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
3

Direct 2D Drawbot Error - Invalid Widnow Handle. HRESULT: -2147023496

Explorer ,
Dec 04, 2024 Dec 04, 2024

Can someone help me with this issue? I've searched for a while on the internet and nothing to be found about this specific issue, I am getting "Direct 2D Drawbot Error - Invalid Widnow Handle. HRESULT: -2147023496

 

Screenshot_11.png

That's a screenshot of the Error, the timeline after a couple minutes are passed editing the project becomes completely unusable, I can only drag the playhead thru the timeline but nothing else, when I click any panel on the upper left such as "Sequence" I get all the options white, no option to be actually seen

 

I've been experiencing this since late 2024 builds but don't wanna downgrade back to 2024 as 2025 & Beta is running too smooth on my pc, except for this constant "crash" i get, since i have to reopen the app everytime this happens

 

I also have a screen recording of the bug happening on Beta, but it crashes instead of giving me any Error codes, on premiere 2025, though, if i wait after the bug happens it will give me the error code ive uploaded on the screenshot

 

Version I am currently using: latest premiere pro 2025 version but it would also happen on the 24.6+, including Beta versions. I can recall it didn't happen on a specific Beta build that was released a few days ago but I updated like a day later and it was back happening again

 

Also searched for the HRESULT value as hexadecimal and it returned me this

Pitepx_0-1733338231715.png

 

[Title edited by mod for clarity]

4.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Pinned Replies

Adobe Employee , Dec 05, 2024 Dec 05, 2024

Hi @Pitepx - Would you be able to send me your project at jamiec@adobe.com I don't need the media, only the project.  

 

If you open task manager and go to the details tab, then right click on columns and select GDI objects, While working in Premiere you can see the GDI objects rise.  Any reproducible steps where you see this would be appreciated.

 

Also are you using 25.1 or 25.0?  

Translate
Adobe Employee , Dec 05, 2024 Dec 05, 2024

Note: The smooth performance of 25 is due to new hardware acceleration of the underlying UI layer, and interactions with features have exposed interoperation issues causing leakage- right now the two things are directly connected. This error is connected to leaks connected to atypical way some pre-existing views were using resources. When combined with this new mode, some of those usages have enabled leaks which can use up app resources through repetitive usage.

 

Thank you very much for sharing

...
Translate
LEGEND ,
Dec 04, 2024 Dec 04, 2024

If I was still a mod, I would retitle your bug report "Direct 2D Drawbot Error" in Pr25.x

 

You might do that yourself, or another mod. It gets more direct relevant informationt to the devs and anyone scanning the posts. The current title is useless.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 04, 2024 Dec 04, 2024

Update: changed the GDIProcessHandleQuota to 65k as suggested by another user in another thread about the same kind of error but did not help

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 05, 2024 Dec 05, 2024

Hi @Pitepx - Thank you for the video it is extremely helpful.  As we look to Isolate these GDI leaks.  Can you provide some more information on what effect you are using in the effect controls?  You can also isolate this by opening task manager selecting details, then right click on columns and select GDI objects, When you perform an action that you start to see the GDI objects rising is the information we need.  As soon as it hits 10,000 your system will crash unless you have changed the registry to make that number higher.  Any other reproducible steps that you can provide will help us fix it faster, so thank you for your help.  If you need to get a project out without it crashing you can go to  Preferences > General > "GPU accelerated UI rendering" checked off

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 05, 2024 Dec 05, 2024

@jamieclarke Thanks for your response, in fact changing the quota to 65k actually helped and it hasn't happened since, I got to around 15k and no problem was presented, hope you guys can fix the leak soon as I looked it up on google and apparently its hell to solve as a dev

 

I don't know exactly what info to give to you but the effects I use most and are also present on the screen recording are:

 

Crop

Turbulent Displace

Posterize Time

Transform (applied to an adjustment layer)

S_Dropshadow

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 05, 2024 Dec 05, 2024

Hi @Pitepx - Would you be able to send me your project at jamiec@adobe.com I don't need the media, only the project.  

 

If you open task manager and go to the details tab, then right click on columns and select GDI objects, While working in Premiere you can see the GDI objects rise.  Any reproducible steps where you see this would be appreciated.

 

Also are you using 25.1 or 25.0?  

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 05, 2024 Dec 05, 2024

@jamieclarke As of now I'm using 25.1 but am thinking of reversing to 25.0 as 25.1 brought a problem with text I was having in Beta too (I talk about it here)

 

I will send you a couple projects in your email

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 05, 2024 Dec 05, 2024

Note: The smooth performance of 25 is due to new hardware acceleration of the underlying UI layer, and interactions with features have exposed interoperation issues causing leakage- right now the two things are directly connected. This error is connected to leaks connected to atypical way some pre-existing views were using resources. When combined with this new mode, some of those usages have enabled leaks which can use up app resources through repetitive usage.

 

Thank you very much for sharing the video and project. From the video and description it may be an interaction of filters on the timeline - this gets us in the ballpark, and will allow us to peel into this one, but there's still a number of moving parts we'll need to tease apart at this stage.

As Jamie has noted - the next step here is we'll be looking to isolate the specific repro action(s) which cause consistent, repeatable jumps of Windows OS GDI count, so folks know what to watch out for, and that's ultimately what we'll use for preparing fix. We'll want to capture that info next as a pre-req to the bug fix, and help other users know the repro of this bug.

 

In any case, Disabling UI hardware acceleration will provide stability here, with performance like releases prior to v25. Increasing the GDI object limit will merely delay how quickly the defect of GDI resource leak manifests in an app session, until the root issue on this case is isolated and fixed.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 05, 2024 Dec 05, 2024

@Peter_Antal  I've shared the project with him via mail as he asked, hope it can help you guys. About the UI Hardware acceleration thing: it causes the timeline to flicker when zoomed in & out, so I will probably keep restarting premiere pro when the GDI objects get to around 15-20k in task manager

 

Also, can this quota change from 10k to 65k cause any problems on my PC?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 05, 2024 Dec 05, 2024

updating status.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 05, 2024 Dec 05, 2024

The limit affects how much UI resources Windows OS allows application UI to use.

 

@Pitepx -  That adjustable limit is not a generally used feature. Microsoft recommends keeping it at default level of 10k, they haven't called out specific hazards, and do acknowledge some apps do need more, but do note it has the potential to be abused by malicious applications also.

In practice, if you saw a bunch of other apps on your machine use more GDI resources than 10k, or behaving eratically you'd probably want to consier resetting that down.

 

The elevated quota should not normally be needed for Premiere, and once fixed, I'd advise against leaving it relaxed where not needed.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 06, 2024 Dec 06, 2024

@Pitepx - Update: On Windows OS, I am currently unable to repro your GDI resource leak on playback using the project you shared to Jamie. With just the project as-is (no media) and as well with substitutions for offline files, GDI resource use was holding flat for me.

 

Unless @jamieclarke was able to found a trick to replicate on his end, it's looking likely there is a combination of specific formats and/or filters codepaths together with the hardware accelerated UI mode as neccessary to elicit this repro.

 

Jamie may have ideas on best way to deal with this kind repro'es, but for something like this I'd suggest a bare minimum "toy" project with small representative media file as ideal to replicate the leak - the full crash isn't necessary. With such a project loaded, I'd expect that when I play that content from timeline, windows task manager would track a steady rise of GDI objects from the "Details" pane, when "GDI Objects" are enabled as a column under observation.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 06, 2024 Dec 06, 2024

@Peter_Antal I can try and get a whole collect of my current project which I am pretty sure would get a crash under the default 10k quota setting - upload it to G drive and send the link to jamie, let me know if that would be of your interest so I can go forward

 

As we are here, can you forward this topic to some1 to see if they can gimme any update on it?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 09, 2024 Dec 09, 2024

Hi @Pitepx - Were you able to upload that project and media to us?  Thank you for your help in troubleshooting and resolving your issue.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 07, 2025 Feb 07, 2025

Hello Jamie, i got the same error as pitepx did we find a solution ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 07, 2025 Feb 07, 2025

FYI - @Pitepx Did not report any supplemental details about the repro, their last message implied no further repro. We don't know what exactly their usage was, so can't comment on if their particular case was hardened.

 

@odysseas_7561  -  What version of Premiere are you running on- was there any particular usage pattern you were doing? How long in time does it take for you to reach this error?

That invalid window handle errors from windows would most typically be explained by if Premiere's Windows OS GDI object count crosses over OS allowed maximums(10000 objects by default). 

To understand and durably fix a resource leak of that sort, and to understand a lot of these bugs, we need information to narrow down the circumstance of where it's encountered. 

 

Leaks manifest themselves if regularly showing and hiding some UI, or repeatedly performing an operation a steady increase of GDI object use arises which doesn't get reclaimed. Windows OS Task manager details pane can be configured to show GDI Object usage, which can be very helpful to narrow down when the leakage occurs.

 

There are not a lot of user reports around this error, and it isn't an issue which is readily observed from routine testing, so your context is appreciated to help us move forward toward resolution for potential sources of it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 13, 2025 Feb 13, 2025

@Peter_Antal the error was gone when using the media I usually do use for my clients, which is usually not heavy material like 4k footage, however I still get the drawbot error (gdi leaks) when im using some other client footage (everytime im working with them) i can send them through dropbox cause the client himself has them uploaded there for me to download, can you provide me an email where i can send it to you?

 

important to note: I use the "shuttle slow right" thing all the time to speed up the video speed so i can cut faster, so when trying to reproduce after i send you the footage + project i just got the error in, this may help getting the result

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 13, 2025 Feb 13, 2025

@Pitepx - Sure, I'd be happy to take closer a look at the simplest repro material + steps you have discovered.

You can send the details of that my way via "message" on my Adobe Community user profile.
Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 09, 2024 Dec 09, 2024

A share of repro Jamie and I indeed sounds good. Your full project isn't needed- you may find that could be a lot of media to share up.

 

We just need something representative to support replication the problem of the GDI leakage, as visible in the Windows task manager. The smallest timeline which still allows that is ideal to help with handling.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 09, 2024 Dec 09, 2024

@Peter_Antal @jamieclarke Okay so today I accidentally deleted the whole folder where I would save my premiere pro projects, which is bad yeah I lost 2 or 3 days of work but apparently the problem is gone?

 

I've been editing for a couple hours w/o checking the GDI Objects, cause usually I only restart it when it hits around 45k and it took like 3/4 hours to hit around 40k.

 

After deleting my whole premiere pro projects folder I got only this in around 3 hours of work

Pitepx_0-1733777583853.png

 

(Premiere Pro is the 393 one) I don't know why it's apparently gone after deleting the folder where I saved all my projects from the last 6 months but I will keep working as usual and I'll see if it comes back later today.

 

Sorry for losing my other projects, I can still upload the media that wasn't in this folder, which are a couple copypastas' extension PNGs and I can also give you a copy of my current project that is not giving me the issue

I'm currently using the 25.0 build 61 btw

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 09, 2024 Dec 09, 2024

Thanks for the follow-up - Sorry to hear on your folder loss. Hmm, so the problem disappeared or slowed down substantially at the moment? If your repro has decided to make itself disappear, we probably won't be able to see it either.

 

We did put out a fix for an issue related to leakage in progress view dashboard into beta prime last week. I wouldn't have expected that to be elicited with what you saw with timeline, but may possibly explain.
P: Transcription leads to errors, video artifacts,... - Adobe Community - 14987974

 

It's also possible your repro was a very unusual set of factors combined, and your more recent editing hasn't tripped the same issue yet.

 

In any case, the GDI object report has been proving itself effective to help us narrow such culprits down, if similar leak situation is re-discovered going forward. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 13, 2024 Dec 13, 2024

@Peter_Antal @jamieclarke after some time editing, the problem was still gone, then back, then gone again and honestly I can't know what I did to get it back, then gone, then back again. I'll be getting the project collect later today while I'm asleep since it will take a bit (it's a newer project with around 150 items so it is easier than the previous one which had like 2k)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Mar 04, 2025 Mar 04, 2025

Thanks very much to those that have reported this and helped us isolate the problem. I received a large (150 GB) project + media set from @Pitepx and I tested it quite extensively using recent Beta builds od Pr 25.2 and 25.3 as well as the current release version, which is Pr25.1x073. The only repro steps I know of are toy do a lot off shuttling, jogging, JKL playback in conjunction with some basic editing things like trimming and moving clips. 

So the good news is that the problem was not happening at all in any of my tests, including in the latest Pr 25.3 beta builds. But it also did not happen inthe relase version of 25.1. So I can't say for sure that it's fixed with @Peter_Antal 's latest changes, but it's looking good so far, at least from my point of view. Please, for those of you who have been experiencing the problem lately, can you upgrade to the latest beta build (Pr25.3xBeta003 or higher) and let us know if the problem will still happen for you? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 18, 2025 Mar 18, 2025
LATEST

still comes up on ae. HRRESULT: -2005270523. not fixed. yay.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines