GithubHelp home page GithubHelp logo

使用搜索后会黑屏 about chord HOT 12 CLOSED

peterding avatar peterding commented on August 25, 2024
使用搜索后会黑屏

from chord.

Comments (12)

PeterDing avatar PeterDing commented on August 25, 2024

chord 没有缓存,只有配置文件和用户数据,这些都存放在 ~/.chord


从图中报错来看,应该是对 Himalaya 搜索时,数据解析出错了。能提供一下搜索的关键字吗,方便复现错误。

from chord.

GTrunSec avatar GTrunSec commented on August 25, 2024

结构展示,

tree -L 1 ~/.chord 
/home/gtrun/.chord
├── chord-search-history.json
├── default-library.db
└── user.config

0 directories, 3 files
tree -L 1 ~/.config/chord/
/home/gtrun/.config/chord/
├── blob_storage
├── Cache
├── Code Cache
├── Cookies
├── Cookies-journal
├── Crash Reports
├── Dictionaries
├── GPUCache
├── Local Storage
├── Network Persistent State
└── Preferences

我就随便搜索的,这个问题时好时坏。同样的关键字如开心

from chord.

GTrunSec avatar GTrunSec commented on August 25, 2024

从debug 窗口是 Himalaya API 搜索时,数据解析出错了。但我前面搜索是ok的,第二次启动同样的关键字也会出现黑屏的情况。

from chord.

PeterDing avatar PeterDing commented on August 25, 2024

Screen Shot 2021-03-01 at 3 02 19 PM

我使用了初始配置,chord 版本 v0.2.37,系统 macos,关闭了代理。但是无法复现这个错误。

黑屏是因为数据出错,react 无法完成渲染导致的。你那每次出现黑屏都是应为你截图中的错误吗?

from chord.

GTrunSec avatar GTrunSec commented on August 25, 2024

是的都是我截图中的错误,这个是时好时坏(几率很高)。我不是macos,我是 linux NixOS. appimage打包下运行的。比如刚才是坏的,现在同样的关键字就突然好了

from chord.

PeterDing avatar PeterDing commented on August 25, 2024

你用的版本也是 v0.2.37 ?

from chord.

GTrunSec avatar GTrunSec commented on August 25, 2024

你用的版本也是 v0.2.37 ?

你试试关键字别告诉她。版本是没问题的0.2.37
image

from chord.

GTrunSec avatar GTrunSec commented on August 25, 2024

我目前的环境是在国外,程序运行是nix下打包运行的chord appimage. 在debian nix上也复现了这个错误
image

image

from chord.

PeterDing avatar PeterDing commented on August 25, 2024

我应该明白是怎么回事了。我很久没用 himalaya 了,也因为我在墙内且没设代理,所有 himalaya 的请求都报错了,结果chord的api都返回了空数据,所以我这没有异常。而你那 himalaya 返回了数据,可能数据格式变了,导致数据处理出错,所以黑屏了。

from chord.

GTrunSec avatar GTrunSec commented on August 25, 2024

好的麻烦你修复一下,要么给用户关闭搜索API的选项在UI或者user config都行disable search-source.都行

from chord.

PeterDing avatar PeterDing commented on August 25, 2024

v0.2.38 修复了这个bug。试试看,是否可行。

from chord.

GTrunSec avatar GTrunSec commented on August 25, 2024

可以了,完美运行。感谢!

from chord.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.