leaningtech / cheerpj-meta

Run Java 8 applications, libraries, applets, Java Web Start, and Oracle Forms on the web without legacy plugins.
https://labs.leaningtech.com/cheerpj
434 stars 21 forks source link

requestAnimationFrame not supported in this Worker. #192

Closed JoseVSeb closed 3 months ago

JoseVSeb commented 3 months ago

I'm trying to load cheerpj in a web worker (vscode web extension language server). it throws the following error when loading a jar file in chromium browser:

Uncaught DOMException: Failed to execute 'requestAnimationFrame' on 'DedicatedWorkerGlobalScope': requestAnimationFrame not supported in this Worker.

I first thought it had something to do with vscode web extension limitations but it loads without the error when testing on firefox. please help.

alexp-sssup commented 3 months ago

Can you provide the complete integrated HTML + JavaScript code? Ideally deployed on a publicly accessible URL.

alexp-sssup commented 3 months ago

The problem should we fixed with the following build: https://cjrtnc.leaningtech.com/3_20240315_458/cj3loader.js

Please try again, we could not verify ourselves since a complete test case was not provided.

JoseVSeb commented 3 months ago

The issue is resolved. But it didn't amount to much, since the jar file I was trying to load needed Java 11 and Cheerpj only supports 8. It was an unfortunate oversight from my end. Sorry for the inconvenience caused.