I decided to try wxpython.py example on Linux Mint 18 but it crashes.
Symptoms are identical to https://github.com/cztomczak/cefpython/issues/309 Though I work not on Mac, but Linux. It crashes on both python 2.7 and 3.6.
[wxpython.py] CEF Python 66.0
[wxpython.py] Python 3.6.8 64bit
[wxpython.py] wxPython 4.0.3 gtk3 (phoenix) wxWidgets 3.0.5
DevTools listening on ws://127.0.0.1:64466/devtools/browser/d3669946-a831-40e4-aa7e-327dce471193
[wxpython.py] wx.GetDisplayPPI = (96, 95)
[wxpython.py] wx.GetDisplaySize = (3840, 1080)
[wxpython.py] MainFrame declared size: (900, 640)
[wxpython.py] MainFrame DPI scaled size: (900, 640)
[wxpython.py] MainFrame actual size: (900, 640)
Segmentation fault
If I remove window_info in
self.browser = cef.CreateBrowserSync(window_info,
url="http://www.google.com/")
I don't have a crash.
sudo apt-get install gdbgdb python
run wxpython.pybt
[wxpython.py] wx.GetDisplayPPI = (96, 95)
[wxpython.py] wx.GetDisplaySize = (3840, 1080)
[wxpython.py] MainFrame declared size: (900, 640)
[wxpython.py] MainFrame DPI scaled size: (900, 640)
[wxpython.py] MainFrame actual size: (900, 640)
Thread 1 "python3.6" received signal SIGSEGV, Segmentation fault.
0x00007fffe50df0bf in FindChild ()
at ../../cef/libcef/browser/native/window_x11.cc:44
44 ../../cef/libcef/browser/native/window_x11.cc: No such file or directory.
(gdb) bt
#0 0x00007fffe50df0bf in FindChild () at ../../cef/libcef/browser/native/window_x11.cc:44
#1 Show () at ../../cef/libcef/browser/native/window_x11.cc:178
#2 0x00007fffe50dba57 in CreateHostWindow () at ../../cef/libcef/browser/native/browser_platform_delegate_native_linux.cc:89
#3 0x00007fffe4ff6879 in CreateHostWindow () at ../../cef/libcef/browser/browser_host_impl.cc:3159
#4 CreateInternal () at ../../cef/libcef/browser/browser_host_impl.cc:418
#5 0x00007fffe4ff536f in Create () at ../../cef/libcef/browser/browser_host_impl.cc:359
#6 0x00007fffe4ff4b3d in CreateBrowserSync () at ../../cef/libcef/browser/browser_host_impl.cc:275
#7 0x00007fffe37ace21 in cef_browser_host_create_browser_sync () at ../../cef/libcef_dll/cpptoc/browser_host_cpptoc.cc:94
#8 0x00007fffdfcc13f8 in CefBrowserHost::CreateBrowserSync(CefWindowInfo const&, scoped_refptr<CefClient>, CefStringBase<CefStringTraitsUTF16> const&, CefStructBase<CefBrowserSettingsTraits> const&, scoped_refptr<CefRequestContext>) ()
from /usr/local/lib/python3.6/dist-packages/cefpython3/cefpython_py36.so
#9 0x00007fffffffbf00 in ?? ()
#10 0x000000000120bd40 in ?? ()
#11 0x000000000120be40 in ?? ()
#12 0x0000000001210220 in ?? ()
#13 0x00007fffdff63158 in construction vtable for CefRequestContextHandler-in-RequestContextHandler ()
from /usr/local/lib/python3.6/dist-packages/cefpython3/cefpython_py36.so
#14 0x00000000009ec9c0 in ?? ()
#15 0x00007fffffffc9f0 in ?? ()
#16 0x0000000001210220 in ?? ()
#17 0x00007fffdff63158 in construction vtable for CefRequestContextHandler-in-RequestContextHandler ()
from /usr/local/lib/python3.6/dist-packages/cefpython3/cefpython_py36.so
#18 0x00007fffdff63158 in construction vtable for CefRequestContextHandler-in-RequestContextHandler ()
from /usr/local/lib/python3.6/dist-packages/cefpython3/cefpython_py36.so
#19 0x0000000001210220 in ?? ()
#20 0x00007fffdf9c3093 in __pyx_pf_14cefpython_py36_30CreateBrowserSync(_object*, _object*, _object*, _object*, _object*, _object*) [clone .isra.328.15445] () from /usr/local/lib/python3.6/dist-packages/cefpython3/cefpython_py36.so
Backtrace stopped: previous frame inner to this frame (corrupt stack?)