Open cztomczak opened 3 years ago
Thanks for creating this library, I'm currently using it in my tkinter application to have a tab that acts as an embedded web browser. It works fine on Windows however I'm experiencing these crashes on Mac.
Have their been any updates on this issue or is there a work around to be able to consistently display webpages without crashing?
Messages in console:
Getting three different crashes so far.
From the trace I can see that there is sometimes
NSAlert
modal window being displayed during startup and it is causing issue.I also sometimes notice alert modal windows sometimes displayed during startup. It is MacOS saying that app previously did not quit cleanly and asks whether to reopen it.
Worth checking if delaying CEF initialization until after Tk windows are initialized and shown on screen (tk.mainloop must run for some time) can help resolve the issue.
It is also worth checking if maybe this issue occurs only when running from command line.
I think that our
get_window_handler
function may be failing when such alert modal window appears in app:Stack trace 1:
Stack trace 2:
Stack trace 3:
Other tkinter Mac issues: https://github.com/cztomczak/cefpython/issues/441 https://github.com/cztomczak/cefpython/issues/309