Giter VIP home page Giter VIP logo

Comments (10)

kowsen avatar kowsen commented on June 1, 2024

Which ones are freezing it? Those look like they should all work - I'll test them out when I wake up.

from ac-music-extension.

JdotCarver avatar JdotCarver commented on June 1, 2024

Simply the ones that are in commentary. As soon as I disable the commentary tags it freezes the extension and you can't play any of the music. That's why I found it weird, it affects way more than I thought it would so I don't really understand.

Ok, thanks Kyle. Good Night then!

from ac-music-extension.

TheDirtySpaceman avatar TheDirtySpaceman commented on June 1, 2024

You might want to check the documentation for set timeout. Some of the resolutions you have set look very tight. I wonder if perhaps it's an issue with how precise your time markers are.

Harold Houchin

On Feb 15, 2016, at 7:36 AM, JdotCarver [email protected] wrote:

Simply the ones that are in commentary. As soon as I disable the commentary tags it freezes the extension and you can't play any of the music. That's why I found it weird, it affects way more than I thought it would so I don't really understand.


Reply to this email directly or view it on GitHub.

from ac-music-extension.

JdotCarver avatar JdotCarver commented on June 1, 2024

Thing is they all are triple digit precision and the one that Kylechu already implemented work fine. And the first three work fine too whereas they all are equally precise.

from ac-music-extension.

kowsen avatar kowsen commented on June 1, 2024

You had a few numbers formatted incorrectly. Javascript doesn't recognize numbers with unnecessary leading zeros. For example, you can't type "00.32", you would need to use either "0.32" or ".32". Additionally, you can't structure the end time as "1.29.519" on line 44. The number represents seconds, not a timecode - you would want "89.519".

Also, "24" isn't a valid hour - the times are zero indexed and go from 0-23. You likely either mean for that to be 0, or all of your hour values are shifted one value too high.

Once I fixed these issues, everything worked perfect for me.

from ac-music-extension.

kowsen avatar kowsen commented on June 1, 2024

The reason why it was killing everything is because AudioManager is making the assumption that a "loopTimes" object exists when it attempts to play a song. Since the invalid numbers were causing a parsing error when creating that object, loopTimes === undefined and AudioManager crashes when it attempts to check the attributes of the nonexistent object.

I could change it so AudioManager will play regardless and only looping will break, but personally, I feel like it's better as it is now than to have it silently fail if someone messes up a loop time.

EDIT: Also, there is no maximum precision on the loop times. SetTimeout isn't guaranteed to give you more than ~2-3ms of precision, so there isn't much point going past three decimal places, but writing more precise times won't crash anything.

from ac-music-extension.

kowsen avatar kowsen commented on June 1, 2024

I made a pull request with the fixes I mentioned - #19

Also, in the future if you have issues like this, I highly recommend using the web inspector for the background page. It makes it easy to track down the causes of simple bugs - that's how I tracked down what was causing this error. You can get to it through a link in the Manage Extensions page.

from ac-music-extension.

JdotCarver avatar JdotCarver commented on June 1, 2024

Thank you so much. <3
Though you didn't need to do a pull request I could've corrected it myself Haha, and these were only the first few, I am still doing the rest.

from ac-music-extension.

kowsen avatar kowsen commented on June 1, 2024

I had already gone through and corrected them so I could test whether that was the problem - doing the pull request only took about five seconds and I figured I might as well save you the trouble of redoing the work.

So this bug can be closed?

from ac-music-extension.

PikaDude avatar PikaDude commented on June 1, 2024

This issue can be closed as the fix was merged.

from ac-music-extension.

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.