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

Application freezes #187

Closed TerraStudio closed 4 months ago

TerraStudio commented 4 months ago

I work at a school, where we try to convert "Filius" (a software for simulating network communcation" to JS, since it can't be used on iPads.

I added my project as an attachment. The source code of Filius is taken from: https://gitlab.com/filius1/filius/-/tree/v1.14.2?ref_type=tags I compiled it with all dependencies included.

When I start it, I can add a PC with drag and drop. But then I click on Run and the simulation starts. You can click on the PC and install software on it. But when I choose a software and want to add it, the application freezes and I have to close the tab.

Unfortunately there is no error message in the console. Do you have a way to see more information about why it crashed?

config.zip

alexp-sssup commented 4 months ago

We have identified that the version of slf4j used by this app depends on NoSuchMethodError's being thrown, which is not currently supported by CheerpJ. We have added this issue to our internal bug tracker, but it might take some time before is fixed.

TerraStudio commented 4 months ago

@alexp-sssup Thanks for the slf4j tip. By using a regex in a python script, I managed to delete all occurrences of slf4j and then recompiled it. Now it works!

TerraStudio commented 4 months ago

@alexp-sssup The touch on mobile devices doesn't work. Do you know a solution?

alexp-sssup commented 4 months ago

Mobile is currently not officially supported, there is no solution at this time. It's a known issue:

https://github.com/leaningtech/cheerpj-meta/issues/110

TerraStudio commented 4 months ago

But was this also a problem in cheerpj 2.3?

alexp-sssup commented 4 months ago

Yes, nothing has changed in the AWT implementation

For these sort of discussions, please join our Discord, this is not the right platform: https://discord.gg/X9ruPkchM5

bates64 commented 4 months ago

Going to close this as it was resolved (https://github.com/leaningtech/cheerpj-meta/issues/187#issuecomment-1951473236). Mobile support is tracked in https://github.com/leaningtech/cheerpj-meta/issues/110.