Comments (7)
I sent you video on discord
from gdx-teavm.
was not found means that teavm does not have the class implemented.
I guess kotlin 1.9.10 is using it and teavm for some reason is trying to parse it now.
TeaGL20 you can ignore, it should work with this error. I think the problem started when I added Emulate anotation in GL20. I'll try a different approuch.
from gdx-teavm.
Hey @Quillraven.
Can you try the snapshots? I just updated to teavm version 0.9.0 and from the release note it now supports AtomicReferenceFieldUpdater. https://github.com/konsoletyper/teavm/releases/tag/0.9.0
from gdx-teavm.
I have good and bad news!
Good: both compilation errors are gone and one of the games is working again using the SNAPSHOT version!
Bad: the other game still does not work. I can see the LibGDX logo and the first few frames of the game, which is better than before. I also see some debug messages in the browser console. But after a few frames it simply freezes and I get the browser popup that the page is not reacting and if I want to close it.
Working: https://github.com/Quillraven/MysticGarden/tree/kotlin
Not-working: https://github.com/Quillraven/MysticWoods/tree/fleks-2.0
from gdx-teavm.
For mysticwoods. Its a deadlock somewhere. Its getting inside a loop and cant escape.
from gdx-teavm.
Cool - will have a look in more detail tomorrow. I know that it worked before with Fleks 2.4 (ECS) and TeaVM 1.0.0.b7. I think the normal desktop backend is also still working. That is what I used to check if Fleks 2.5 has any sideeffects.
I will see if something has changed in findNearbyEnemies or if I can rewrite it to avoid the deadlock.
fyi: before this project did not work because it used GdxAI with some special annotations to pass info from a .tree file to a AI task. I updated that recently as well to the latest LibKTX version which supports a DSL for behavior tree creation. With that change, this project was then successfully running as well in the browser because the annotations + reflection stuff was no longer needed :)
from gdx-teavm.
I quote myself from Discord:
The problem is using "mutableSetOf()". For whatever reason this causes the deadlock. Using "hashSetOf()" is working. The difference is, that mutableSetOf is using a LinkedHashSet while hashSetOf uses a HashSet.
No idea why this is a problem since Kotlin 1.9.x but it is rather simple to fix 😉
Thank you for pointing me to the function that caused the issue!
from gdx-teavm.
Related Issues (20)
- Obfuscation not Working HOT 17
- ArrayIndexOutOfBoundsException during compilation HOT 14
- Random.UInt & TypeError: b.$array0 is undefined HOT 3
- Bug when a enum contains the last word S HOT 2
- Mobile (Android) canvas position wrong HOT 1
- TeaVM run issue HOT 5
- ConcurrentHashMap issue HOT 2
- Server running the same application regardless of changes HOT 1
- How to distinguish between mobile and desktop browser? HOT 1
- Release: 1.0.0-b5 HOT 3
- freetype crashes HOT 1
- You cannot have any subfolder called assets in your assets folder hierarchy. HOT 3
- GL20.GL_VIEWPORT not supported glGetIntegerv in the TeaGL20 class HOT 1
- Update libGDX to 1.12.0? HOT 1
- Audio question on mobile browsers HOT 2
- Support for WebGL 2 (GL30) HOT 2
- how to use js library? HOT 2
- Refrencing ashley components causes black screen (update: actually scala flatten and flatmap break it) HOT 5
- The AudioContext was not allowed to start HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdx-teavm.