Opening Explorer with Win-E flashes Blender #116618
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#116618
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows 11
Graphics card: RTX 2070 / Intel IGPU on another PC.
Blender Version
Broken: 4.1.0 Alpha, branch: main,
eb99895c972b
Worked: 3.1, 3.6, 4.0
Short description of error
Whenever I start a new file explorer using "win-e" Blender flashes in the background. What is interesting is that it even flashes when Blender is really in the background of other apps. I see it does this double flash.
I ran it with
--debug-all
and I see that it does a redraw (ghost_event_proc: ghost redraw 1
) after I pressWin-E
to open an Explorer windowI tested it on another computer that just has an internal Intel GPU, and it has this issue too so I doubt that it is an Nvidia driver issue. Bear in mind that Blender is the only app that flashes, I think this is a Blender issue.
(Blender is running in the backround)
Here is a screen video showing the issue, as you can see Blender flashes and then the explorer window opens up.
Exact steps for others to reproduce the error
Open Blender.exe
Press Win+E to open an Explorer file browser window.
Hi, unable to replicate the issue but I observed similar problem when blender launched on intel iGPU: #97674
Thanks for testing. I can definitely confirm that "ghost_event_proc: ghost redraw 1" happens when explorer is launched with "Win-E" on multiple Windows machines whether Blender is the most front app or it is sitting idle in the background. See the video please, I can repeat this issue hundred times a day.
Somehow opening a new instance of Windows Explorer forces Blender to redraw.
Yes, watched the video but still not able to redo the problem. Let's wait for others to verify this behavior (cc @Harley ).
BTW, do you have multiple monitors in setup? Maybe that will make some difference?
I have multiple monitors on one of the PCs, but not with the other one.
This sounds like a minor annoyance, but it could cause bigger performance and scene related issues down the road on Windows. It would be nice to get an opinion of a developer to see why it is happening. This might be an edge case too, but it is curious that can be repeated on completely unrelated Windows 11 PC hardware specs.
I also cannot reproduce the issue. There are no ghost redraw messages in my trace. Win11, NVIDIA, 2 monitors (left-right). Are you using a WACOM tablet, or similar, as it looks like some of the notifications I see in your trace are coming in from Wintab/tablet software:
WT_CTXOVERLAP CXS_OBSCURED
. Have any drawing tablet devices ever been installed on the PCs you're experiencing this on?@deadpin Thanks for testing it. This is really interesting. You can clearly see that the draw happens (first flashes then prints the draw) in the terminal while Blender is in the background when I recorded the video, you might need to slow it down in Blender video editor to see the affect.
I have Wacom display and a Wacom tablet with my desktop. The other one is a laptop with no dedicated GPU, except the internal Igpu. However that one also has a Wacom display as part of the laptop screen. Would a Wacom driver causing a draw?
What is even more fascinating is that I do not have this issue with Blender 3.1, 3.6 and 4.0 (ones I have locally), but 4.1 has it. So a new change in 4.1 is causing it. I tested it 4.1 factory defaults, and that one still displays the issue.
First, I do see this. But not seeing this as our problem...
While Blender is in the background (not active), launching Explorer with Win-E will cause blender to redraw once.
We're basically getting an extra WM_PAINT message from the system and so redrawing. If we didn't redraw at that point we would instead become a grey screen.
Is it just Blender? Nope. I see the exact same behavior with "Notepad++" and here is a complaint about the same behavior with the "foobar2000" audio program: https://hydrogenaud.io/index.php/topic,124874.0.html
This looks to be just a change in behavior in the new explorer in Windows 11. Is it a performance issue? No, this is literally just an extra redraw of the interface.
@Harley This was not there until 4.1 Please see my previous comment. 3.6, 3.1 and 4.0 do not have this issue, I just tested them on the same system. I do not have it with Notepad++ btw, but I see it happens with Godot 4
That's good info to have. Why didn't you say in your initial description that prior versions worked. I'll modify the description at least.
In the meantime, you can use archived builds to try to narrow down the problem. There's 4.1 builds as far back as 2023-10-01, can you try binary searching a few of them to see when the problem occurred? Start with that Oct 1st build to see if it was present even at that point: https://builder.blender.org/download/daily/archive/
@deadpin I assumed that the issue was there in the previous versions. I will test these archives.
@LazyDodo
I'm fairly certain you won't be able to recreate this issue since you are on Windows 10.
But this issue goes away if I do only this:
Not seeing anything not working as expected with the above change, we still draw exactly when I think we should. Does this ring a bell?
@LazyDodo
I think I see this now.
If we have a null background brush in our class, prior to #115968, then we don't get this problem. But then we DO get a white flash when the application starts and before we start painting ourselves.
But if set a background brush, in our case now
GetStockObject(DKGRAY_BRUSH)
we get a nice dark grey background that matches our initial GL clear color. So the startup looks awesome. But we get an extra redraw when Explorer launches. That only goes away if we suppress WM_ERASEBKGND. More details here: https://stackoverflow.com/questions/12073721/what-is-the-correct-way-to-suppress-wm-erasebkgndSo go back to using a null hbrBackground or suppress WM_ERASEBKGND?
@LazyDodo : never mind, the initial background isn't painted with the class brush if we don't pass along WM_ERASEBKGND. So just going back to a null brush.
@Harley It looks like you fixed. I do not have the issue with
blender-4.1.0-alpha+main.d721dcd76747-windows.amd64-release.zip