Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to execute 'importScripts' on 'WorkerGlobalScope' #1400

Closed
1 task done
jonaro00 opened this issue Mar 7, 2024 · 3 comments · Fixed by #1401
Closed
1 task done

Failed to execute 'importScripts' on 'WorkerGlobalScope' #1400

jonaro00 opened this issue Mar 7, 2024 · 3 comments · Fixed by #1401
Assignees
Labels
area-core Related to some core parts of alphaTab platform-javascript Related to the JavaScript version of alphaTab state-accepted This is a valid topic to work on.

Comments

@jonaro00
Copy link
Contributor

jonaro00 commented Mar 7, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

On version 1.3.0-alpha.938 and later, alphaTab fails to render and this error appears twice in the Console.
Uncaught DOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://cdn.jsdelivr.net/npm/@coderline/alphatab@1.3.0-alpha.938/dist/alphaTab.js' failed to load. at blob:http://127.0.0.1:8000/f7d3e53e-53e3-47de-8150-6daacba5fcfe:1:1

Expected Behavior

On version 1.3.0-alpha.933, it works like it should.

Steps To Reproduce

This happens in the project https://github.com/jonaro00/TabPortal (plain HTML+CSS+JS with alphaTab from CDN)
Not sure if there is anything with my use-case triggering this.

Link to jsFiddle, CodePen, Project

https://github.com/jonaro00/TabPortal

Found in Version

1.3-alpha

Platform

Web

Environment

- **OS**: Ubuntu
- **Browser**: Brave Version 1.63.165 Chromium: 122.0.6261.94 (Official Build) (64-bit)

Anything else?

Based on the timing, this was likely caused by #1393 or #1386

@jonaro00 jonaro00 added the state-needs-triage Bug not triaged yet. label Mar 7, 2024
@Danielku15
Copy link
Member

Can you please provide a minimal repoducible example which doesn't require setting up a whole development environment for rust?

@Danielku15 Danielku15 added state-needs-discussion 💬 and removed state-needs-triage Bug not triaged yet. labels Mar 8, 2024
@jonaro00
Copy link
Contributor Author

jonaro00 commented Mar 8, 2024

Sure, I quickly pasted all parts into one standalone file:
https://gist.github.com/jonaro00/e623e47e29f285373dd496ff67e46c66
I can strip away more things if this one is too hard to debug.

@Danielku15 Danielku15 added 🕷️ type-bug state-accepted This is a valid topic to work on. platform-javascript Related to the JavaScript version of alphaTab area-core Related to some core parts of alphaTab and removed state-needs-discussion 💬 labels Mar 10, 2024
@Danielku15
Copy link
Member

Thanks for providing the standalone snippet. Could reproduce the problem and its fixed in #1401

@github-project-automation github-project-automation bot moved this from Todo to Done in Version 1.3 Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core Related to some core parts of alphaTab platform-javascript Related to the JavaScript version of alphaTab state-accepted This is a valid topic to work on.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants