Skip to content
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

DevTools window is white and could be debugged #711

Closed
zhuangpearl opened this issue Dec 23, 2014 · 4 comments
Closed

DevTools window is white and could be debugged #711

zhuangpearl opened this issue Dec 23, 2014 · 4 comments

Comments

@zhuangpearl
Copy link

I am using CefSharp37.0.0 in my WPF application.

When ChromiumWebBrowser is loading I want to keep UI thread free, So I create ChromiumWebBrowser object in the loaded event of UserControl. After ChromiumWebBrowser is created I add it to the UserControl by ***.Children.Add() method.

I call the ShowDevTools method to show the devtools but it is white and has no elements in it.

I follow the Wpf.Example to add it in XAML file and try again, it turns out perfect.

I want to know what happened when i create it in background and add it in UI thread.

In debug.log file, there is some information like these.
[1226/175123:WARNING:backend_impl.cc(1497)] Messed up entry found.
[1226/175123:WARNING:backend_impl.cc(1785)] Destroying invalid entry.
[1226/175131:WARNING:resource_bundle.cc(286)] locale_file_path.empty()
[1226/175131:ERROR:renderer_main.cc(227)] Running without renderer sandbox
[1226/175131:ERROR:content_client.cc(148)] No data resource available for id 22000
[1226/175131:WARNING:url_request_job_manager.cc(101)] Failed to map: chrome-devtools://devtools/devtools.html
[1226/175137:WARNING:resource_bundle.cc(373)] Unable to load image with id 5830

@zhuangpearl zhuangpearl changed the title In wpf "Failed to map: chrome-devtools://devtools/devtools.html" occurred DevTools window is white and could be debugged Dec 26, 2014
@amaitland
Copy link
Member

[1226/175131:ERROR:content_client.cc(148)] No data resource available for id 22000

Looks like it can't find the .pak files, have you disabled pack loading? Are the .pak files being copied to your bin directory?

Basic list of pack files is here
https://github.com/cefsharp/cef-binary/blob/master/README.txt#L100

@amaitland
Copy link
Member

@zhuangperola Did you sort this one out?

@zhuangpearl
Copy link
Author

@amaitland I am so sorry for my mistake.
As you said, i do disabled pack loading and make dev tools not work.

@amaitland
Copy link
Member

@zhuangperola No problem, glad it's resolved 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants