-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
URL.createObjectURL fails on 0.76.1 #8075
Comments
It works for me. I started nw, opened the devtools window and then posted the snippet. |
From my testing, this is only broken inside workers, not on the main thread
(Sorry, file too big for Github) The bug still happens in 0.77.0 |
This issue seems to be resolved in 0.78.1 |
Still failing for me. |
Same fail on 0.79.1 win64 |
I have the same problem with pixi.js on 0.79.1 win64 while pixi.js try to load asset |
Could you provide a small code sample to reproduce, not an entire application? |
I think I found a minimal repro for this: It's true that In this case, in the context of the worker, the Hopefully this is enough information to be able to fix the issue now - we're seeing reports of this from time to time (e.g. here). |
Any news on this? We are still getting reports of this causing problems, e.g.: Scirra/Construct-bugs#7466 |
Lỗi 3d object xuất njsw đã được sửa chưa? |
Any update on this? We had to disable the worker in our game because of this bug, and now getting lots of reports of poor performance from users.. |
Has any NW.js developer had the chance to review my minimal repro yet? Tagging @rogerwang for attention. We're still getting regular reports of this, e.g. here and here, both posted today. |
Another report of this today here. Any news? |
Please test this build: https://dl.nwjs.io/live-build/nw85/20240305-222312/9b99df3ea/v0.85.1/ |
Thank you, @rogerwang ! @AshleyScirra , I tested in remote preview and it appears to be working. Is it possible to build a C3 project with this new version (85.1)? |
@rogerwang - is an official NW.js 0.85.1 release coming up for this? Apparently the issue is affecting some Construct games, and it would be useful to know if a release is scheduled, or if we ought to be using a one-off build (which I'm a bit reluctant about as normally nightly releases are not as reliable) |
The fix is released with 0.86.0 |
@rogerwang - thanks for the fix! |
This comment was marked as outdated.
This comment was marked as outdated.
@rogerwang apparently there are still issues with My chromium args are:
Edit: removing |
@rogerwang the same error happens on nw.js-enabled |
Thanks to the error cause analyzed by @AshleyScirra , I found a temporary solution: <!-- Fix Blob Start -->
<script>delete window.Blob;</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/Blob.min.js"></script>
<!-- Fix Blob End -->
<script>
const objectURL = URL.createObjectURL(new Blob(["test"]));
console.log(objectURL); // 'data:;base64,dGVzdA=='
</script> But it is still a problem, I hope it can be solved reasonably. |
Issue Type
Before opening an issue, please search and see if it has already been raised.
Bug Report
Feature Request
Successfully reproduced against the latest version of NW.js?
Current/Missing Behavior
URL.createObjectURL(new Blob([]))
is the minimal code needed to reproduce the issue. In 0.76.1 the following error message is produced, regardless of input.Uncaught TypeError: Failed to execute 'createObjectURL' on 'URL': Overload resolution failed.
Expected/Proposed Behavior
The expected behavior is that a URL to the blob is returned, such as:
blob:chrome-extension://hjnamambhlpahhgnmkmdplebghbjncpm/b1957c09-3e5c-48d3-b545-8052ddb77d3c
This works as expected on 0.75.0.
Additional Info
URL.createObjectURL(new Blob([]))
The text was updated successfully, but these errors were encountered: