I have finalized a video game for Android Smartphones that works fine when the Real Time is not too strong (ie. the player provides an event each second). But, when I use it "with determination as a geek", an error outside my JavaFX code is raised (approximately every 15-20 minutes).
My SW architecture is simple: a loop activated each 110 ms, the accelerometer sensor and the AndroidNativeAudio class for sounds
I have added some debug traces:
at the beginning and the end of the loop,
some traces in AndroidNativeAudio and the sensor (optional).
In these conditions, I have noticed that the error trace is OUTSIDE my code (loop + accelerometer) and the AndroidNativeAudio code: the trace mentions that my code is completely performed before the error is raised. So, I am stuck.
Have you already encountered this kind of problem with Javafx on a Real Time game running on Android smartphone?
Where could I get the JavaFxPorts (including MediaPlayer) source code with debug trace of the javafxports for trying to understand the problem source?
If I don't find the problem source, migrating my JavaFX code (20 000 Javafx lines) to Java in Android studio could be an eventuality (but that would be a heavy work that I'ld want to avoid).
Thanks for your feedback
Note: The compiler option for detecting some leak memory in my code is set and there is no code problem, at this time.
Additional info: the FATAL exception systematically occurs with that message (outside my code i.e. after the end of the processing inside the 110ms loop):
E/AndroidRuntime(14369): FATAL EXCEPTION: JavaFX Application Thread
E/AndroidRuntime(14369): Process: com.gluonapplication, PID: 14369
E/AndroidRuntime(14369): java.lang.ArrayIndexOutOfBoundsException: length=20; index=-1
E/AndroidRuntime(14369): at java.util.ArrayList.get(ArrayList.java:310)
E/AndroidRuntime(14369): at javafx.scene.Parent.updateCachedBounds(Parent.java:1583)
E/AndroidRuntime(14369): at javafx.scene.Parent.recomputeBounds(Parent.java:1527)
E/AndroidRuntime(14369): at javafx.scene.Parent.impl_computeGeomBounds(Parent.jav