Participant
August 5, 2024
CEP panel issue: 'WM_DESTROY' event is also received on another panel, causing that panel to close.
- August 5, 2024
- 0 replies
- 157 views
- After Effects Version: 22.6.0(but, occured same issue on 24.X.Y)
- OS: Windows 10 Pro
- OS Version: 22H2
- OS Build: 19045.4529
- CPU: Xeon W-2123 3.60GHz
- GPU: NVIDIA Quadro RTX 4000
- Third party plug-ins or panels: Occurs whether there or not
I am developing a panel application using CEP for business use, plagued by a strange problem.
If I open multiple panels and close the first panel that I open, the last panel that I open also closes by itself.
I cannot attach what I'm actually developing, but the same problem occurs even in a very simple application like this sample.
index.html
<html>
<head>
<title>Test1</title>
</head>
<body>
<div style="color: white">
ABCDE
</div>
</body>
</html>
manifest.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ExtensionManifest Version="6.0" ExtensionBundleId="tests" ExtensionBundleVersion="1.0.0" ExtensionBundleName="tests" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ExtensionList>
<Extension Id="tests.panel01" Version="1.0.0" />
<Extension Id="tests.panel02" Version="1.0.0" />
<Extension Id="tests.panel03" Version="1.0.0" />
</ExtensionList>
<ExecutionEnvironment>
<HostList>
<Host Name="AEFT" Version="[15.0,99.9]" />
</HostList>
<LocaleList>
<Locale Code="All" />
</LocaleList>
<RequiredRuntimeList>
<RequiredRuntime Name="CSXS" Version="9.0"/>
</RequiredRuntimeList>
</ExecutionEnvironment>
<DispatchInfoList>
<Extension Id="tests.panel01">
<DispatchInfo>
<Resources>
<MainPath>./index.html</MainPath>
</Resources>
<Lifecycle>
<AutoVisible>true</AutoVisible>
</Lifecycle>
<UI>
<Type>Panel</Type>
<Menu>tests 01</Menu>
<Geometry>
<Size>
<Width>1200</Width>
<Height>800</Height>
</Size>
<MaxSize>
<Height>3000</Height>
<Width>3000</Width>
</MaxSize>
<MinSize>
<Height>1</Height>
<Width>1</Width>
</MinSize>
</Geometry>
</UI>
</DispatchInfo>
</Extension>
<Extension Id="tests.panel02">
<DispatchInfo>
<Resources>
<MainPath>./index.html</MainPath>
</Resources>
<Lifecycle>
<AutoVisible>true</AutoVisible>
</Lifecycle>
<UI>
<Type>Panel</Type>
<Menu>tests 02</Menu>
<Geometry>
<Size>
<Width>1200</Width>
<Height>800</Height>
</Size>
<MaxSize>
<Height>3000</Height>
<Width>3000</Width>
</MaxSize>
<MinSize>
<Height>1</Height>
<Width>1</Width>
</MinSize>
</Geometry>
</UI>
</DispatchInfo>
</Extension>
<Extension Id="tests.panel03">
<DispatchInfo>
<Resources>
<MainPath>./index.html</MainPath>
</Resources>
<Lifecycle>
<AutoVisible>true</AutoVisible>
</Lifecycle>
<UI>
<Type>Panel</Type>
<Menu>tests 03</Menu>
<Geometry>
<Size>
<Width>1200</Width>
<Height>800</Height>
</Size>
<MaxSize>
<Height>3000</Height>
<Width>3000</Width>
</MaxSize>
<MinSize>
<Height>1</Height>
<Width>1</Width>
</MinSize>
</Geometry>
</UI>
</DispatchInfo>
</Extension>
</DispatchInfoList>
</ExtensionManifest>
This issue also occurs with the built-in 'Libraries' panel.
C:\Users\<username>\AppData\Local\Temp
I checked the log here, it seemed that the panels that closed on their own received the 'WM_DESTROY' event just like the panels that I closed myself.
tests01 Log (Closed by user operation)
2024-08-05 15:11:07:315 : INFO GetProcessDpiAwareness succeeded with the value 2
2024-08-05 15:11:07:318 : INFO SetProcessDpiAwareness succeeded with the value 2
2024-08-05 15:11:07:320 : WARN No debug port file found.
2024-08-05 15:11:07:392 : INFO GetProcessDpiAwareness succeeded with the value 2
2024-08-05 15:11:07:402 : INFO TEST-LOADEXTENSION-PERFORMANCE, CEPHTMLENGINE, CreateBrowser begin.
2024-08-05 15:11:07:434 : INFO TEST-LOADEXTENSION-PERFORMANCE, CEPHTMLENGINE, CreateBrowser end.
2024-08-05 15:11:07:541 : INFO GetProcessDpiAwareness succeeded with the value 2
2024-08-05 15:11:07:542 : INFO The scale factor from host application is 1.000000
2024-08-05 15:11:07:695 : INFO TEST-LOADEXTENSION-PERFORMANCE, CEPHTMLENGINE, RPC Call, ClientInitialized begin.
2024-08-05 15:11:07:697 : INFO TEST-LOADEXTENSION-PERFORMANCE, CEPHTMLENGINE, RPC Call, ClientInitialized end.
2024-08-05 15:11:07:715 : INFO GetProcessDpiAwareness succeeded with the value 2
2024-08-05 15:11:07:716 : INFO The scale factor from host application is 1.000000
2024-08-05 15:11:15:511 : INFO CefController::HandleWindowEvent: received WM_DESTROY
2024-08-05 15:11:15:512 : WARN CefController::HandleWindowEvent: SetParent() failed for handle 201468, errno is 0!
test03 Log (Closed by on its own)
2024-08-05 15:11:11:450 : INFO GetProcessDpiAwareness succeeded with the value 2
2024-08-05 15:11:11:453 : INFO SetProcessDpiAwareness succeeded with the value 2
2024-08-05 15:11:11:455 : WARN No debug port file found.
2024-08-05 15:11:11:520 : INFO GetProcessDpiAwareness succeeded with the value 2
2024-08-05 15:11:11:526 : INFO TEST-LOADEXTENSION-PERFORMANCE, CEPHTMLENGINE, CreateBrowser begin.
2024-08-05 15:11:11:566 : INFO TEST-LOADEXTENSION-PERFORMANCE, CEPHTMLENGINE, CreateBrowser end.
2024-08-05 15:11:11:680 : INFO GetProcessDpiAwareness succeeded with the value 2
2024-08-05 15:11:11:681 : INFO The scale factor from host application is 1.000000
2024-08-05 15:11:11:823 : INFO TEST-LOADEXTENSION-PERFORMANCE, CEPHTMLENGINE, RPC Call, ClientInitialized begin.
2024-08-05 15:11:11:825 : INFO TEST-LOADEXTENSION-PERFORMANCE, CEPHTMLENGINE, RPC Call, ClientInitialized end.
2024-08-05 15:11:11:845 : INFO GetProcessDpiAwareness succeeded with the value 2
2024-08-05 15:11:11:846 : INFO The scale factor from host application is 1.000000
2024-08-05 15:11:15:513 : INFO CefController::HandleWindowEvent: received WM_DESTROY
