QCefView icon indicating copy to clipboard operation
QCefView copied to clipboard

[BUG]: 启用CachePath后网页很卡,并且日志中大量记录错误

Open StackExplode opened this issue 1 year ago • 0 comments

Describe the bug 【Bug描述】

我原本使用NCW模式的QCefView在windows x64平台下运行顺畅,但添加如下代码尝试持久化cookie后,网页性能暴跌,并在Debug.log中输出大量错误

config.setCachePath("C:/TestUserData");
config.setPersistSessionCookies(true);
config.setPersistUserPreferences(true);

输出错误如下:

[1024/110613.311:FATAL:filesystem_proxy.cc(308)] Check failed: root_.AppendRelativePath(path, &relative_path).  Failed making C:/TestUserData\Local Storage\leveldb__tmp_for_rebuild relative to C:\TestUserData

我特意测试固态硬盘的C盘,但似乎性能仍旧很差,卡的不行。

To Reproduce 【复现步骤】

请参考上一节

Expected behavior 【正确的预期行为】

正常存储cookie的同时不带来卡顿。

Screenshots 【截图】

...

Environment 【BUG产生的环境】

  • OSR/NCW Mode: NCW
  • OS & Version: Windows10 x64
  • Qt Version: 5.13.1
  • CEF Version: cef_binary_127.3.5+g114ea2a+chromium-127.0.6533.120_windows64

Additional context 【更多额外信息】

...

StackExplode avatar Oct 24 '24 03:10 StackExplode