CefView / QCefView

A Qt Widget encapsulated CEF view based on QWidget
https://cefview.github.io/QCefView/
GNU Lesser General Public License v2.1
521 stars 137 forks source link

[BUG]: Linux下 QCefViewTest 无法运行 #285

Closed fancyop closed 1 year ago

fancyop commented 1 year ago

Describe the bug 【Bug描述】

Ubuntu 系统下源码编译完成后 QCefViewTest 无法运行

$ QCefViewTest git:(main) ./QCefViewTest                                                                                                      QCefView/git/main 
LaunchProcess: failed to execvp:
/home/XXXX/workspace/QCefView-raw/QCefView/out/linux.x86_64/QCefViewTest/CefViewWing
LaunchProcess: failed to execvp:
/home/XXXX/workspace/QCefView-raw/QCefView/out/linux.x86_64/QCefViewTest/CefViewWing

DevTools listening on ws://127.0.0.1:9000/devtools/browser/ac088435-e029-4f49-be0c-8bafb5528095
[0706/145102.951190:ERROR:gpu_process_host.cc(967)] GPU process launch failed: error_code=1002
[0706/145102.951249:WARNING:gpu_process_host.cc(1273)] The GPU process has crashed 1 time(s)
[0706/145102.951813:ERROR:gpu_process_host.cc(967)] GPU process launch failed: error_code=1002
[0706/145102.951827:WARNING:gpu_process_host.cc(1273)] The GPU process has crashed 2 time(s)
[0706/145102.952138:ERROR:gpu_process_host.cc(967)] GPU process launch failed: error_code=1002
[0706/145102.952148:WARNING:gpu_process_host.cc(1273)] The GPU process has crashed 3 time(s)
[0706/145102.952414:ERROR:gpu_process_host.cc(967)] GPU process launch failed: error_code=1002
[0706/145102.952424:WARNING:gpu_process_host.cc(1273)] The GPU process has crashed 4 time(s)
[0706/145102.952686:ERROR:gpu_process_host.cc(967)] GPU process launch failed: error_code=1002
[0706/145102.952695:WARNING:gpu_process_host.cc(1273)] The GPU process has crashed 5 time(s)
[0706/145102.952935:ERROR:gpu_process_host.cc(967)] GPU process launch failed: error_code=1002
[0706/145102.952944:WARNING:gpu_process_host.cc(1273)] The GPU process has crashed 6 time(s)
[0706/145102.953209:ERROR:gpu_process_host.cc(967)] GPU process launch failed: error_code=1002
[0706/145102.953218:WARNING:gpu_process_host.cc(1273)] The GPU process has crashed 7 time(s)
[0706/145102.953446:ERROR:gpu_process_host.cc(967)] GPU process launch failed: error_code=1002
[0706/145102.953455:WARNING:gpu_process_host.cc(1273)] The GPU process has crashed 8 time(s)
[0706/145102.953678:ERROR:gpu_process_host.cc(967)] GPU process launch failed: error_code=1002
[0706/145102.953686:WARNING:gpu_process_host.cc(1273)] The GPU process has crashed 9 time(s)
[0706/145102.953696:FATAL:gpu_data_manager_impl_private.cc(450)] GPU process isn't usable. Goodbye.
[1]    210546 trace trap (core dumped)  ./QCefViewTest

To Reproduce 【复现步骤】

直接拉取的源码,经修改过cef版本用于测试,未做其他修改

git clone --recursive https://github.com/CefView/QCefView.git

cd QCefView

./generate-linux-x86_64.sh

cmake --build .build/linux-x86_64

cmake --install .build/linux.x86_64

cd out/linux.x86_64/QCefViewTest

linuxdeployqt QCefViewTest -verbose=2

chmod +x QCefViewTest

./QCefViewTest

运行QCefViewTest就提示 【Bug描述】中的信息

Expected behavior 【正确的预期行为】

正常出现窗口并显示画面

Screenshots 【截图】

Environment 【BUG产生的环境】

Additional context 【更多额外信息】

...

fancyop commented 1 year ago

我的问题。。

执行完 cmake --install .build/linux.x86_64 命令后 默认 CefViewWingQCefViewTest 没有执行权限需要手动添加,我给QCefViewTest 加执行权限,没给 CefViewWing 导致出现上诉报错。。。。