-
-
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
Application crashes if it is launched from Windows Task Scheduler #2365
Comments
How exactly is task scheduler relevant in this case? It's quite hard to read the stack trace, if I had to guess I'd say this is a duplicate of #2301 |
Sincerely I have no idea. It's relevant because executing the application directly it works (double clicking on it), but if it's executed by the task scheduler it doesn't. I've tested also with the minimal example, launched from the task scheduler it doesn't open. It runs and appears on the task manager but it's freezed. Sorry but there is no more information than that stack trace. Not sure also if it could be a duplicate of #2301. In this case there is only one execution with one instance of a browser. I tested it on two machines with win10 and one with winserver2016 with the same result. |
Did you by chance happen to compare the two stack traces? There are two dictionary adds in that section of code and only one can cause that exception. Is the stack trace provided relevant to the problem you've reported? Since your app works when run directly it's unlikely a bug in CefSharp, more likely an environment/configuration issue. Have you confirmed that the exception is generated every time? I expect task scheduler to cause problems, mostly stemming from the current director not being set correctly, if you log Environment.CurrentDirectory what do you get? |
Effectively it was an environment configuration issue. Putting the start directory in the task window (as the SO link indicates) solves the issue, so it is not a CefSharp bug. Sorry for the inconvenience and thank you very much. |
What version of the product are you using?
What architecture x86 or x64?
On what operating system?
Are you using
WinForms
,WPF
orOffScreen
?What steps will reproduce the problem?
What is the expected output? What do you see instead?
Please provide any additional information below.
Does the cef log provide any relevant information? (By default there should be a debug.log file in your bin directory)
Does this problem also occur in the
CEF
Sample Application from http://opensource.spotify.com/cefbuilds/index.html?cef_binary_3.3325.1758.g9aea513_windows32_client
The text was updated successfully, but these errors were encountered: