Coder Social home page Coder Social logo

Comments (6)

yujunjiex avatar yujunjiex commented on July 22, 2024 2

@BensonLaur
会不会是存在某个解码器的依赖,这边正常环境的两台机器存在这个问题。
如果可能的话,建议可以虚拟机测试一下。辛苦啦~

from beslyric-for-x.

pzhlkj6612 avatar pzhlkj6612 commented on July 22, 2024 1

有的时候打开刚播第一首歌也会这样,debug输出很多no data in list for 1e8 times access

from beslyric-for-x.

BensonLaur avatar BensonLaur commented on July 22, 2024

好这个后面测测看

from beslyric-for-x.

BensonLaur avatar BensonLaur commented on July 22, 2024

连续在10多首歌的列表中,快速双击100多下切换播放,好像也复现不了

from beslyric-for-x.

pzhlkj6612 avatar pzhlkj6612 commented on July 22, 2024

@yujunjiex 如果仅关注输出很多no data in list for 1e8 times access的问题,是因为这里的代码:

https://github.com/Beslyric-for-X/Beslyric-for-X/blob/0dee64a8834f1ba294b12f99fee97acc438ee500/Entities/MusicPlayer/musicPlayer.cpp#L191-L195

尝试了一亿次,却并没跳出所在的那个while(true)循环,所以改一下:

             if (tryTimes >= 100000000LL) 
 { 
 	qDebug() << "no data in list for 1e8 times access"; 
 	AGStatus = AGS_FINISH; 
+       tryTimes = 0;
+  	return -1;
 } 

from beslyric-for-x.

pzhlkj6612 avatar pzhlkj6612 commented on July 22, 2024

0175326 中移除了相关逻辑,现在在 Windows 平台上快速切歌出现卡死的情况基本消失,故关闭本 Issue 。
另外,要想完全杜绝此类问题,需要对播放逻辑进行重构,这个需要较长的时间来完成。

from beslyric-for-x.

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.