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

Crashes when trying to do offscreen rendering. Plus CEFDemo too #47

Closed
knightbenax opened this issue Sep 30, 2020 · 3 comments
Closed

Comments

@knightbenax
Copy link

Currently if you try to use windowless rendering, you get a crash at the runMessageLoop() function. The error message isn't quite clear

@knightbenax
Copy link
Author

Resolved this. Putting here for anyone from the future. You need to provide the viewRectForBrowser as well as onPaint methods in a custom CEFRenderHandler and you should be good to go

@lvsti
Copy link
Owner

lvsti commented Oct 8, 2020

Can you tell me whether it was a crash in CEF.swift or in CEF itself?

@knightbenax
Copy link
Author

It's an error itself with CEF. Turns out if you don't provide the GetViewRect, CEF doesn't know what bounds to draw the off-screen window at.

The CEF docs just didn't say that.

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

No branches or pull requests

2 participants