Skip to content

Commit d449c93

Browse files
committed
Added a comment in the Kivy example about the error report message
in the console when creating an OSR browser - it's harmless.
1 parent e5d5a89 commit d449c93

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • cefpython/cef3/linux/binaries_64bit

cefpython/cef3/linux/binaries_64bit/kivy_.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,15 @@ def start_cef(self, start_url='http://google.com'):
125125

126126
#Create Broswer and naviagte to empty page <= OnPaint won't get called yet
127127
browserSettings = {}
128+
# The render handler callbacks are not yet set, thus an
129+
# error report will be thrown in the console (when release
130+
# DCHECKS are enabled), however don't worry, it is harmless.
131+
# This is happening because calling GetViewRect will return
132+
# false. That's why it is initially navigating to "about:blank".
133+
# Later, a real url will be loaded using the LoadUrl() method
134+
# and the GetViewRect will be called again. This time the render
135+
# handler callbacks will be available, it will work fine from
136+
# this point.
128137
self.browser = cefpython.CreateBrowserSync(windowInfo, browserSettings, navigateUrl="about:blank")
129138

130139
#set focus

0 commit comments

Comments
 (0)