-
-
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
"Invalid file descriptor to ICU data received." #2166
Comments
Running
reveals the cause: files not present in directory. The special case here is that CefSharp is called by a DLL not main program. But Visual Studio does not copy all output from taht dir into main run dir. In this case, it was enough to add this to the main program's post-build event. copy /Y $(SolutionDir)\my_dll_using_cefsharp\$(OutDir)\*.dll .
copy /Y $(SolutionDir)\my_dll_using_cefsharp\$(OutDir)\*.dat .
copy /Y $(SolutionDir)\my_dll_using_cefsharp\$(OutDir)\*.bin .
copy /Y $(SolutionDir)\my_dll_using_cefsharp\$(OutDir)\*.pak .
copy /Y $(SolutionDir)\my_dll_using_cefsharp\$(OutDir)\cef*.* .
xcopy /Y /I $(SolutionDir)\my_dll_using_cefsharp\$(OutDir)\locales locales The motivation for writing this is to document it for others who stumble on the same problem. Okay for me to close the issue at once. Comments welcome, especially about the fix. Any alternate solution(s) ? Thank you. |
Thanks for posting the solution for others to find. It makes sense that you need to copy the dependency files across to the output directory when CefSharp is used inside a DLL project. I'll close the issue but others can still comment if they have cleaner solutions. |
Actually, #2156 may solve this issue. |
What version of the product are you using?
What architecture x86 or x64?
x86 (all projects)
On what operating system?
Are you using
WinForms
,WPF
orOffScreen
?WinForms
Create a project, in code run this:
Expected: initialization like in minimal sample.
Observed: program compiles, runs, then stops abruptly without a chance for the debugger to show where. Log says: "Invalid file descriptor to ICU data received."
Please provide any additional information below.
A stack trace if available, any Exception information.
No relevant stack trace.
Log says: "Invalid file descriptor to ICU data received."
Cef is instanciated in a DLL that's not the main program. Thats has implication about what's copied in output directory.
CEF
Sample Application from http://opensource.spotify.com/cefbuilds/index.html?Not tested, as I found the cause.
The text was updated successfully, but these errors were encountered: