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

Linux: cefclient frozen when pasting clipboard #3117

Open
magreenblatt opened this issue Apr 27, 2021 · 4 comments
Open

Linux: cefclient frozen when pasting clipboard #3117

magreenblatt opened this issue Apr 27, 2021 · 4 comments
Labels
bug Bug report linux Linux platform SampleApps Related to sample apps

Comments

@magreenblatt
Copy link
Collaborator

Original report by Emmanuel Jorge (Bitbucket: e.jorge).


1 - Steps to reproduce:
-- Launch ./cefclient
-- https://www.google.com is loaded
-- From the address bar, copy (using ctrl+c) the url or some word of the url (e.g: google)
-- Paste the related text (using ctrl+v) in an input field into the webview (e.g: google.com search field)

2 - Expected output: the text may be pasted
Instead, the entire application freezes, then after exactly 30 sec, the application comes back to life but the copied word is not pasted

3 - Tested version : CEF 90 (https://cef-builds.spotifycdn.com/cef_b ... 64.tar.bz2) built and run from Ubuntu 18.04 64 bits
The issue seems to have been introduced from CEF 89. I could not reproduce it using CEF 88.
Running with multi-threaded-message-loop avoid the issue:
./cefclient --multi-threaded-message-loop

@magreenblatt
Copy link
Collaborator Author

Original comment by Emmanuel Jorge (Bitbucket: e.jorge).


Reproduced not only in OSR mode (updated issue description)

@magreenblatt
Copy link
Collaborator Author

Original changes by Emmanuel Jorge (Bitbucket: e.jorge).


  • changed title from "cefclient OSR frozen when pasting clipboard" to "cefclient frozen when pasting clipboard"
  • edited description

@magreenblatt
Copy link
Collaborator Author

  • changed title from "cefclient frozen when pasting clipboard" to "Linux: cefclient frozen when pasting clipboard"
  • changed component from "Unclassified" to "SampleApps"

@Lecrapouille
Copy link

Lecrapouille commented Apr 20, 2024

@magreenblatt I have this issue with CEF 123 on Debian 12 with my CEF application in offscreen rendering mode:

  • When selecting a paragraph with the mouse, then doing browser->GetMainFrame()->Copy() then pasting inside a text editor (or echo <Ctr-C> | cat -e) it gives the text with 3 consecutive '\n' instead of 1.

  • When doing the same thing (browser->GetMainFrame()->Paste()) inside a GitHub input text, it works (\n are removed). But if I paste it for either in a Godot input text or getting the Godot clipboard, then my CEF application is freezing.

  • In Godot when pressing keys they can repeat actions, I noticed this called many times browser->GetMainFrame()->Copy() with consequence it cumulates the selected text.

I think there is possible memory corruption with browser->GetMainFrame()->Copy().

PS: how to get the C++ string of browser->GetMainFrame()->Paste() ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report linux Linux platform SampleApps Related to sample apps
Projects
None yet
Development

No branches or pull requests

2 participants