-
Notifications
You must be signed in to change notification settings - Fork 13
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
Issues running in Windows with of_v0.9.7 #32
Comments
I resolved the errors and freezes by starting afresh with a new copy of of_v0.9.7_vs_release, ofxCEF and the CEF binary.
Notes: |
Not sure how to do these steps with CMake, but you can add a post build event in your Visual Studio solution to copy the relevant *.dll and *.pak files.
|
I recently updated from cef_binary_3.2840.1518.gffd843c_windows32 to cef_binary_3.2987.1601.gf035232_windows32 to get flash working and that has made a massive difference. No more crashes on exit and everything seems to run faster and more smoothly. |
I tried all the steps above with no luck to get it running. I'm using Windows 10 and Visual Studio 2015 The example builds fine and I can run it but I get the following errors in the console:
After a couple of seconds the application window becomes pink and then the |
I never saw anything like that. Do the cefclient and cefsimple examples run OK? |
Yea they both work fine. |
If you are not already using it, may be worth trying cef_binary_3.2987.1601.gf035232_windows32 |
Ok, so apparently it was an issue with the latest CEF build. I tried the one you pointed out and it worked. The only issue is that it crashes every time I close the application. Will look more into it. Thanks for the help |
I guess I just got lucky with that, it was the latest at the time I rebuilt |
@razvanilin if it's crashing on exit can you check that the main.cpp looks similar to the one in the example ? I think the order of creation of CEF / OF is important to prevent a crash on exit IIRC.... |
To prevent crash on exit you need to call cefshutdown() at the end of main after ofRunApp returns. I've made a fork which should run out of the box for Visual Studio / win32 at https://github.com/rjx-ray/ofxCef. there are also a few other improvements I've created a pull request to merge it in |
Thanks @rjx-ray. Works perfectly now and managed to integrate the addon with my main project too. The problem now is the performance. I'm getting really low framerates. Will investigate this next week |
I've been also trying to get it working on windows. Pages are loading and I'm able to interact with them but I see some weird messages in the console:
I've been running this in a virtual machine (VMware Fusion) but also used bootcamp directly. The messages seem to be similar in both environments. The problem I'm having with the virtual machine is that opening a page with webGL seems to crash the gpu-process. The 3d world appears and I can interact with it for a split second and then it's gone, the console tells me this:
And then a new gpu-process is launched. I've tested all this with the cefclient example and it behaves the same way even without offscreen rendering. But opening this page in chromium works in all cases perfectly, so it must be possible to get it to work… Also I've tried messing around with the command line switches. Without much luck, most of them don't seem to change a lot. But I've been also noticing that the switches on windows are a bit different than those on macOS. As a reference: macOS renderer (From
macOS gpu-process
windows renderer (From
windows gpu-process
|
Hi Michael, I'm not seeing any of these weird console messages and mrdoobs works OK for me. But I just have on chip intel 520 graphics so maybe that's the difference? I do get this console message though: |
Haven't tried working in a VM, I have real windows machine. |
@rjx-ray I've tried the latest cef build from here Oh and I also forgot to mention that I'm on Windows 8.1 with Visual Studio 2015. Your cmake command Do you mean with "GPU settings" the
|
@michaelbaisch OK I've tried that build with the ofxCef addon example. After getting everything converted from win32 to win64 it builds and runs mrdoobs nicely.
followed by maybe 100+ more lines of open GL code
It doesn't seem to do any harm, everything runs OK Then I tried it with my own app which draws several browsers into a FBO and I get
and it crashes with the Windows message that its stopped working. No web pages are drawn. Oh, and I'm using VS 2015 with cmake V3.7.0 which generates the 2014 build correctly with cmake -G "Visual Studio 15". That was the advice when I first started on this last year. I should probably revisit that now. I'm running Windows 10 on a i7-6600U with intel 520 graphics |
I now have my own app running - it was just the manifest needed in the x64 properties.
and then
other webGL pages such as http://mrdoob.com/#/157/spin_painter and https://threejs.org/examples/#webgl_geometries work OK |
I finally had a bit of time to test this again. I've updated to the newest version
I'm thinking about opening an issue for this in the cef project itself. Because the cefclient example behaves exactly the same way. But I would say in general it works, there might be a problem with some specific webGL examples. |
Hi,
I'm working for IglooVision and am new to both openFrameworks and CEF but I got the example running in Windows.
See attached for how I did it ( using VS2015 )
ofxCEF-Buld-Windows.txt
I resolved the speed issue by setting the ofFrameRate to 60 - it was running about 300fps.
Now some websites work well, eg https://threejs.org/examples/#webgl_geometries
But I am having problems when I type characters, eg into google search.
After every character I see several messages like this
ERROR:textbreakiteratoricu.cpp(74)] icu::BreakIterator construction failed with status 2
They don't seem to do any harm.
But then often the page freezes, I get a message saying example_ofxCEF has stopped working and I see this in the debug window:
[0103/105943:INFO:skscalercontext_win_dw.cpp(813)] y:\work\cef3_git\chromium\src\third_party\skia\src\ports\skscalercontext_win_dw.cpp:813: fatal error: "assert(false)"
Interestingly although the page freezes the framerate keeps updating in the title block and I can go to a new page with the up arrow.
It very intermittent, sometimes it works for a while, other times it crashes on the first key press.
Has anyone seen anything like this, any ideas on what could be causing it?
Thanks
Richard
The text was updated successfully, but these errors were encountered: