-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on shutdown #800
Comments
And another update: I just pulled the current master and the WPF example app didn't show the problem anymore with my last test (just 1, more testing pending). |
See #617 for into on our The official release of |
Thanks for the hint. Btw: why does the package on |
Did you try |
Ah, seems I just misinterpreted the warning about |
Are you manually calling |
I do. |
Do you have some sort of logging before and after to make sure it is actually being called? If it's called, everything should clean it's self up. (Need to make sure it's called on the same thread as Initialize is called) |
Hmm, I've added to log calls immediately before and after the End of the debug-log is as follows:
|
Calling |
Info update:
though the exception address at the end varies. |
If you close your application gracefully are the exceptions appearing? |
If I normally close the application everything is fine. |
Have you tried debugging the example? Does the debugger stay attached long enough to see anything useful? |
Did a fresh Since you're asking: does that mean you cannot reproduce the problem? |
Personally I have a huge list of other tasks to complete so I haven't had time to look at this further. It sounds like we need some sort of logging to see what's going on under the hood. |
@ray007 Is it as simple as the following, or is there more to it?
Exact steps are a necessity here, as no-one is keen on shutting down their dev computer many times 😄 Also useful is information on timing if it is relevant - i.e. waiting for page to load, or immediately attempting shutdown. |
@jankurianski I usually choose I'm not aware of additional timing-related issues, but since my resources are local/close by the page was always loaded when initiating a shutdown. But there may well be something timing-related, since I managed to reboot The good news is, if you're quick enough you can |
Can you confirm if the same problem exists with the |
Surprisingly (for me) the |
Likely it's related to the |
|
Place to start looking is https://github.com/cefsharp/CefSharp/blob/master/CefSharp.Core/Internals/RenderClientAdapter.h |
Sorry, my C++ skills are too ancient and rusty for that. The good news is, I've got a workaround for the problem that I can live with for now. I've added
to my |
I find it very disappointing that you'd give up so easily 😦 |
I'm also seeing this on logout, not just on shutdown |
Thanks for the workaround, @ray007 |
For my education, why is this |
We make a You need to make sure you call In the upcoming If your app hangs during exit, I'd typically recommend calling |
@Bodekaer Your probably aware of this already, so Ignore if you are. This issues affects |
Thanks for the heads up Alex. |
Ok thanks @Bodekaer |
Also https://msdn.microsoft.com/en-us/library/system.appdomain.processexit.aspx
|
If anyone is interested this appears to be fixed in the (I wouldn't recommend switching to |
My application is working quite nicely most of the time, but when I shutdown/restart Windows I get an error like
for each instance still running. Closing the application normally shows no problem.
Any idea what's going on here?
Info Update: the WPF Example application shows the same problem.
The text was updated successfully, but these errors were encountered: