chromiumembedded / cef

Chromium Embedded Framework (CEF). A simple framework for embedding Chromium-based browsers in other applications.
https://bitbucket.org/chromiumembedded/cef/
Other
3.36k stars 467 forks source link

Crash in CefTaskRunner::GetForCurrentThread on a non-CEF thread. #2923

Open magreenblatt opened 4 years ago

magreenblatt commented 4 years ago

Original report by Vladislav (Bitbucket: vmas, GitHub: vmas).


The CefTaskRunner::GetForCurrentThread documentation says:

An empty reference will be returned if this method is called on an invalid thread.

I got crash when I try to call CefTaskRunner::GetForCurrentThread from the browser process on a non-CEF thread:

[0425/151626.852:FATAL:thread_task_runner_handle.cc(29)] Check failed: current. Error: This caller requires a single-threaded context (i.e. the current task needs to run from a SingleThreadTaskRunner). If you're in a test refer to //docs/threading_and_tasks_testing.md.

Tested with M81 (Windows 10 x64).

magreenblatt commented 4 years ago

Original changes by Vladislav (Bitbucket: vmas, GitHub: vmas).


magreenblatt commented 4 years ago

Original changes by Vladislav (Bitbucket: vmas, GitHub: vmas).


magreenblatt commented 4 years ago