QUESTION:
The problem could be related to this version? How could I fix it?
OR
Is it a problem about QMC_IOCTL_SET_YPR (when I do not activate the MediaPlayer methods i.e. no any sound), the problem persists.
And what is the QMC_IOCTL?
Here is the trace:
D/QMCX983D( 349): waitting for enable m or o sensor
D/QMCX983D( 349): QMC_IOCTL_GET_OPEN_STATUS failed
D/QMCX983D( 349): QMC_IOCTL_GET_DELAY failed
D/QMCX983D( 349): QMC_IOCTL_SET_YPR failed!
D/Surface (26316): Surface::setBuffersDimensions(this=0xf49e5500,w=676,h=1206)
E/AndroidRuntime(26316): FATAL EXCEPTION: JavaFX Application Thread
E/AndroidRuntime(26316): Process: com.gluonapplication, PID: 26316
E/AndroidRuntime(26316): java.lang.ArrayIndexOutOfBoundsException: length=30; index=-1
E/AndroidRuntime(26316): at java.util.ArrayList.get(ArrayList.java:310)
E/AndroidRuntime(26316): at javafx.scene.Parent.updateCachedBounds(Parent.java:1583)
E/AndroidRuntime(26316): at javafx.scene.Parent.recomputeBounds(Parent.java:1527)
My Java code includes:
many root.getChildren().add and root.getChildren().remove
some textProperty().bind(...);
many:
intersect = Rectangle.intersect(uneDroiteDuVE, objetMobile.getEnveloppe());
bCollisionDetected = (intersect.getBoundsInLocal().getWidth() != -1);
Thanks for your help
THE TRACE INCLUDING THE ERROR:
E/MP3Extractor( 315): Read mp3 header may timeout , time consumed = 1961
D/OMXCodec( 315): [OMX.MTK.AUDIO.DECODER.MP3] Calling emptyBuffer on buffer 0xf2ecc400 (length 9600), timestamp 720000 us (0.72 secs)
D/OMXCodec( 315): [OMX.MTK.AUDIO.DECODER.MP3] Calling emptyBuffer on buffer 0xf2ecc460 (length 9600), timestamp 960000 us (0.96 secs)
D/ActivityManager( 840): SVC-mBroadcastQueues: com.android.server.am.BroadcastQueue@1a184f1e
I/System.out(17244): trace tExec - heure : 447777 ms --- AndroidNativeAudio - play 0: / noTask: 414 / tExec: 3
D/ActivityManager( 840): SVC-mBroadcastQueues: com.android.server.am.BroadcastQueue@13a903ff
I/System.out(17244): trace tExec - heure : 447777 ms --- AndroidNativeAudio - play 1: / noTask: 414 / tExec: 0
W/ActivityManager( 840): Force finishing activity 1 com.gluonapplication/javafxports.android.FXActivity
D/OMXCodec( 315): [OMX.MTK.AUDIO.DECODER.MP3] Calling emptyBuffer on buffer 0xf2ecc4c0 (length 9600), timestamp 1200000 us (1.20 secs)
D/OMXCodec( 315): [OMX.MTK.AUDIO.DECODER.MP3] Calling emptyBuffer on buffer 0xf2ecc520 (length 9600), timestamp 1440000 us (1.44 secs)
D/OMXCodec( 315): [OMX.MTK.AUDIO.DECODER.MP3] Calling emptyBuffer on buffer 0xf2ecc5e0 (length 9600), timestamp 1680000 us (1.68 secs)
E/AndroidRuntime(17244): FATAL EXCEPTION: JavaFX Application Thread
E/AndroidRuntime(17244): Process: com.gluonapplication, PID: 17244
E/AndroidRuntime(17244): java.lang.ArrayIndexOutOfBoundsException: length=30; index=-1
E/AndroidRuntime(17244): at java.util.ArrayList.get(ArrayList.java:310)
E/AndroidRuntime(17244): at javafx.scene.Parent.updateCachedBounds(Parent.java:1583)
E/AndroidRuntime(17244): at javafx.scene.Parent.recomputeBounds(Parent.java:1527)
E/AndroidRuntime(17244): at javafx.scene.Parent.impl_computeGeomBounds(Parent.java:1380)
E/AndroidRuntime(17244): at javafx.scene.layout.Region.impl_computeGeomBounds(Region.java:3078)
E/AndroidRuntime(17244): at javafx.scene.Node.updateGeomBounds(Node.java:3577)
E/AndroidRuntime(17244): at javafx.scene.Node.getGeomBounds(Node.java:3530)
E/AndroidRuntime(17244): at javafx.scene.Node.updateBounds(Node.java:564)
E/AndroidRuntime(17244): at javafx.scene.Parent.updateBounds(Parent.java:1711)
E/AndroidRuntime(17244): at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2408)
E/AndroidRuntime(17244): at com.sun.javafx.tk.Toolkit.lambda$runPulse$30(Toolkit.java:348)
E/AndroidRuntime(17244): at com.sun.javafx.tk.Toolkit.access$lambda$3(Toolkit.java)
E/AndroidRuntime(17244): at com.sun.javafx.tk.Toolkit$$Lambda$4.run(Unknown Source)
E/AndroidRuntime(17244): at java.security.AccessController.doPrivileged(AccessController.java:52)
E/AndroidRuntime(17244): at com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:347)
E/AndroidRuntime(17244): at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:374)
E/AndroidRuntime(17244): at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:525)
E/AndroidRuntime(17244): at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:503)
E/AndroidRuntime(17244): at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$387(QuantumToolkit.java:321)
E/AndroidRuntime(17244): at com.sun.javafx.tk.quantum.QuantumToolkit.access$lambda$2(QuantumToolkit.java)
E/AndroidRuntime(17244): at com.sun.javafx.tk.quantum.QuantumToolkit$$Lambda$3.run(Unknown Source)
E/AndroidRuntime(17244): at com.sun.glass.ui.monocle.RunnableProcessor.runLoop(RunnableProcessor.java:92)
E/AndroidRuntime(17244): at com.sun.glass.ui.monocle.RunnableProcessor.run(RunnableProcessor.java:51)
E/AndroidRuntime(17244): at java.lang.Thread.run(Thread.java:818)
I have a problem that occurs in each 5 mns of javafx game for Android. By searching with Google the keywords: scene.Parent.updateCachedBounds javafx.scene.Parent.recomputeBounds , I have noticed similar problems related to an inappropriate JDK version in these issues: https://github.com/HubTurbo/addressbook/issues/338 https://bugs.openjdk.java.net/browse/JDK-8163078
I use jre1.8.0.66.
QUESTION: The problem could be related to this version? How could I fix it? OR Is it a problem about QMC_IOCTL_SET_YPR (when I do not activate the MediaPlayer methods i.e. no any sound), the problem persists. And what is the QMC_IOCTL?
Here is the trace: D/QMCX983D( 349): waitting for enable m or o sensor D/QMCX983D( 349): QMC_IOCTL_GET_OPEN_STATUS failed D/QMCX983D( 349): QMC_IOCTL_GET_DELAY failed D/QMCX983D( 349): QMC_IOCTL_SET_YPR failed! D/Surface (26316): Surface::setBuffersDimensions(this=0xf49e5500,w=676,h=1206) E/AndroidRuntime(26316): FATAL EXCEPTION: JavaFX Application Thread E/AndroidRuntime(26316): Process: com.gluonapplication, PID: 26316 E/AndroidRuntime(26316): java.lang.ArrayIndexOutOfBoundsException: length=30; index=-1 E/AndroidRuntime(26316): at java.util.ArrayList.get(ArrayList.java:310) E/AndroidRuntime(26316): at javafx.scene.Parent.updateCachedBounds(Parent.java:1583) E/AndroidRuntime(26316): at javafx.scene.Parent.recomputeBounds(Parent.java:1527)
My Java code includes: many root.getChildren().add and root.getChildren().remove some textProperty().bind(...); many: intersect = Rectangle.intersect(uneDroiteDuVE, objetMobile.getEnveloppe()); bCollisionDetected = (intersect.getBoundsInLocal().getWidth() != -1);
Thanks for your help
THE TRACE INCLUDING THE ERROR: