Проблема с запуском libcef

Issue #216 new
Sergey Burov created an issue

При попытке запустить приложение со встроенным chromium получаю ошибку

[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
SimpleFMXBrowser: ../../src/xcb_io.c:165: dequeue_pending_request: Проверочное утверждение «!xcb_xlib_unknown_req_in_deq» не выполнено.

Вот собственно вопрос 3 вопроса

  1. Можно ли скомпилировать приложение с поддержкой cthread
  2. Как получить xid окна для передачи во фреймворк libcef
  3. Как можно переодпределить parent окна формы ( при переопределение свойства parent, появляется два отдельных окна)


Comments (3)

  1. Михаил Рогов


    We use CEF 74.1.19 and chromium-74.0.3729.157. In CEF bitbucketwe found an issue 2014:


    In CEF rev 3538 they remove dependency on gtk. And by default build without GTK dependencies (search in file “issue #2014“):


    In your example they use old version of CEF that work only on gtk2.

    We need a xid of window to pass in CEF. On what window CEF render the browser.

    We try to pass TLinuxWindowHandle.GetNativeHandle and TLinuxWindowHandle.GetNativeDrawingArea but this dont work. In console we see that the browser is alive. We see an url load event, we see and server answer, but browser dont render…

  2. Eugene Kryukov repo owner
    1. All Delphi app should supports cthreads i guess
    2. TLinuxWindowHandle.GetNativeHandle returns GtkWindow, if you need XID please you can use gdk_x11_window_get_xid - but first get GDKWINDOW from GTKWINDOW.
    3. Sorry, can you explain better ?
  3. Log in to comment