-
-
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 while using FolderSchemeHandlerFactory #2041
Comments
Please use the Also please fork the https://github.com/cefsharp/CefSharp.MinimalExample project and provide an example that reproduces your problem. |
Can you fork the Minimumexample and demo your problem? Time is limited and the more work required to investigate the less likely it'll happen. |
Hi,
Its done. The only file modified is https://github.com/argon500/CefSharp.MinimalExample/blob/master/CefSharp.MinimalExample.WinForms/Program.cs
The javascript application (cesium) is too large to upload to github. It can be downloaded from http://cesiumjs.org/downloads.html
Extract the downloaded zip file to c:\entime\cesium then compile/run the forked minimalexample. The url you want to put in the address bar is local://entime/Apps/Sandcastle/index.html
There is no rush to fix the bug. I am able to proceed with my work.
Take Care
|
If that's all you've changed then it's likely a bug in CEF, you'll need to get a symbolized stack trace. https://bitbucket.org/chromiumembedded/cef/wiki/CrashReporting.md |
Under the hood |
Also if your new to Formatting would go a long way to making your posts readable. |
Thanks a ton for all your help Alex. You are very responsive and helpful! I am new to GitHub so all suggestions are welcome.
The dumps and logs indicate that this is definitely a problem in the CEF code and not a cefsharp issue.
I am able to do everything I need to do with cefsharp despite this rare bug. Your product is outstanding!
Thanks for everything!
…Sent from my iPhone
On May 7, 2017, at 5:40 PM, Alex Maitland ***@***.***> wrote:
Also if your new to GitHub, please checkout https://guides.github.com/features/mastering-markdown/
Formatting would go a long way to making your posts readable.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Seems like You can debug this for yourself if interested https://github.com/cefsharp/CefSharp/blob/cefsharp/57/CefSharp.Core/SchemeHandlerFactoryWrapper.h#L52 |
Thanks! I'll try it out tomorrow.
…Sent from my iPhone
On May 8, 2017, at 5:57 PM, Alex Maitland ***@***.***> wrote:
[0508/112332.044:FATAL:cef_stream_resource_handler.cc(93)] Check failed: stream_.get().
Seems like CefStreamReader::CreateForFile returns NULL unexpectedly, not exactly sure why. Easy enough to add some checks to avoid the hard crash.
You can debug this for yourself if interested https://github.com/cefsharp/CefSharp/blob/cefsharp/57/CefSharp.Core/SchemeHandlerFactoryWrapper.h#L52
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@amaitland I assume this is because the file is already be in use. (Request shows up while another one is in progress)
|
@merceyz That is quite likely though I'm surprised the file isn't opened for shared read. https://bitbucket.org/chromiumembedded/cef/src/f035232c082f837d2b85bd7821a93a54fc742775/libcef/browser/stream_impl.cc?at=2987&fileviewer=file-view-default#stream_impl.cc-21 Quick look suggests it's using
I cannot imagine that's much different in performance to using the |
You can however reuse the If you were to read in the data upon calling This would effectively revert 6691d00 |
If the data is
No thankyou, I think that's a better approach, gives more By all means improve |
Yes, there is however a simple workaround by placing the Callbacks from I'll create a PR showing my proposals instead of trying to explain it |
Interesting idea, sounds workable 👍 You can likely update the default |
Going with the simplest fix for now, see 13c9c9c By all means make further improvements 👍 |
There are problems with multiple concurrent calls to the underlying CefResourceHandler See #2041 for background
What version of the product are you using?
v4.0.30319
What version are you using? Nuget? CI Nuget? build from a branch? If so which branch? e.g. 53.0.1
57.0.0.0
What architecture x86 or x64?
x64
On what operating system?
Win10
Are you using WinForms, WPF or OffScreen?
WinForms -- Using Visual Studio 2017 CE
What steps will reproduce the problem?
See https://pastebin.com/zNQEcTDz
After clicking menu option for mBrowser.Load("local://entime/index.html"); wait for page to load then click "Sandcastle"
What is the expected output? What do you see instead?
Expect similar output to http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html
Please provide any additional information below.
A stack trace if available, any Exception information.
Does the cef log provide any relevant information? (By default there should be a debug.log file in your bin directory)
Any other background information that's relevant? Are you doing something out of the ordinary? 3rd party controls?
This is all vanilla visual studio and nuget version of cefsharp. No additional controls or code
Does this problem also occur in the CEF Sample Application from http://opensource.spotify.com/cefbuilds/index.html?
This will only occur if a FolderSchemeHandlerFactory is used as far as I can tell
To compare with WPF run cefclient --multi-threaded-message-loop --off-screen-rendering-enabled
Not using WPF
To compare with WinForms run cefclient --multi-threaded-message-loop
If you can reproduce the problem with cefclient then you'll need to report the bug on https://bitbucket.org/chromiumembedded/cef/overview there is no point opening an issue here. (Make sure you search before opening an issue)Please include the version you tested with e.g. cef_binary_3.3029.1611.g44e39a8_windows64_client.tar.bz2
When I load the same from a web server on localhost (no scheme same files) there is no problem.
I can load a stock page via FolderSchemeHandlerFactory containing the cesium map viewer with no problem...this seems to be triggered from something in the cesium sandcastle.
The text was updated successfully, but these errors were encountered: