Open Nuan-Yang opened 2 years ago
Hey @Nuan-Yang - I'm not sure there's enough information here to go off of. Do you have code you can share, stack/dump, or a sample app which reproduces this problem? Thanks!
hey @champnic I uploaded the sample project https://github.com/Nuan-Yang/cag-studio , you can build and run this demo, and Drag the black bar at the top https://github.com/Nuan-Yang/cag-studio/blob/main/images/image1.png, This problem occurs when you hold down the mouse and drag the form for too long
I have the same problem too.
Sorry for the delay, I've added this bug to our backlog. From initial guess I would say that the SendMessage is blocking some other message from being handled.
Your guess is correct. I had the same problem, but when I replaced SendMessage with PostMessage, it didn't happen again.
@champnic hey
在使用 FolderBrowserDialog 打开文件夹的时候, 我在主线程(UI线程) .ShowDialog() 长时间无操作会导致 软件闪退并报错 ; 然而,使用 OpenFileDialog() 却并未发生任何事情 我很疑惑,该如何处理这个问题
When using FolderBrowserDialog to open a folder, I am in the main thread (UI thread) .ShowDialog() if there is no operation for a long time, the software will crash and report an error; However, using OpenFileDialog() nothing happens I'm wondering how to deal with this problem
C# CODE
MainWindows.form.Invoke((EventHandler)delegate { var fileSave = new FolderBrowserDialog(); if (fileSave.ShowDialog() == DialogResult.OK) { .... } }
ERROR CODE 错误应用程序名称: PTU_IEVR1000_ControlSystem.exe,版本: 1.0.0.0,时间戳: 0x62cf0990 错误模块名称: EmbeddedBrowserWebView.dll,版本: 104.0.1293.70,时间戳: 0x6306da0a 异常代码: 0x80000003 错误偏移量: 0x0000000000294afd 错误进程 ID: 0x3c1c 错误应用程序启动时间: 0x01d8bd095407d794 错误应用程序路径: D:\1Workspace\2.PTU_IEVR1000_ControlSystem\PTU_IEVR1000_ControlSystem\PTU_IEVR1000_ControlSystem\bin\Debug\net6.0-windows\PTU_IEVR1000_ControlSystem.exe 错误模块路径: C:\Program Files (x86)\Microsoft\EdgeWebView\Application\104.0.1293.70\EBWebView\x64\EmbeddedBrowserWebView.dll 报告 ID: f9e3b85e-ea71-4afa-bd11-c571e07d1f30 错误程序包全名: 错误程序包相对应用程序 ID:
@Liuwenjie0720 Can you share a sample app that reproduces this error? Or can you share the stack when this error occurs? Thanks!
Hello @champnic, I hope you are doing well; is there an update on this defect? Our logs indicate the exact issue.
We have a client who is getting this issue; I am attaching an eventvwr file with the error. For this crash, we are running in a Excel Addin, x64bit. This is a stable software version; with thousands of clients; it is running:
This client has suggested two possible causes:
@LK-Global I'm not sure if this is related or not - the eventvwr doesn't look to have a lot of helpful info. If you look in the <user data folder>\EBWebView\Crashpad\reports
is there a dump file in there from the same time?
Given it's a fixed version, I'd be surprised about contention with another plugin, or whether a windows update would cause this. Can you share a stack trace, repro steps, or a sample app which reproduces this issue? Is it a single client running into it? Is it consistent failure, or gets fixed when restarting the add-in or excel or the machine?
@champnic Working with Microsoft Support, we used DebugDiag to produce logging. What is interesting is that the DebugDiag logs only shows the evergreen runtime loaded; our application uses a fixed runtime.
As this problem only occurs in Excel when a specific second add-in is loaded, and happens every time, I have this question: What is the expected behavior if, within a single Excel process, the evergreen runtime and a specific fixed runtime are loaded? Let me know if you want to see specific logging outputs or DMP files. Thanks for your response.
You should be fine to load separate WebView2 controls using different runtimes, such as loading 1 with Evergreen, and 1 with Fixed Version, etc. Is your plugin using a user data folder that might be conflicting with the other plugin? If so, can you try specifying a different and unique user data folder?
The other thing to check would be how you are specifying the Fixed Version location. It's possible that if you are using an environment variable, for example, it could be getting overridden by something else setting the environment variable before your WebView2 is initialized.
@Liuwenjie0720 我也遇到了这个问题,请问你找到解决办法了吗?
I got an error when I used SendMessage to simulate dragging a window
Who can tell me why
错误应用程序名称: CAG Studio.exe,版本: 1.0.0.0,时间戳: 0x61e1d8d9 错误模块名称: EmbeddedBrowserWebView.dll,版本: 99.0.1150.46,时间戳: 0x62325f3e 异常代码: 0xc000041d 错误偏移量: 0x000000000026939d 错误进程 ID: 0xaf40 错误应用程序启动时间: 0x01d83f5a6318ef60 错误应用程序路径: E:\CAG Studio\CAG\CAG\bin\Debug\net6.0-windows\CAG Studio.exe 错误模块路径: C:\Program Files (x86)\Microsoft\EdgeWebView\Application\99.0.1150.46\EBWebView\x64\EmbeddedBrowserWebView.dll 报告 ID: 640d11db-50f8-4bf4-9eb3-15f445f8ff34 错误程序包全名: 错误程序包相对应用程序 ID:
AB#40462285