-
Enhancement
-
Resolution: Fixed
-
P4
-
8u5
When trying to port a somewhat bigger application to Android on dalvik, I hit an StackOverFlow Exception in the JavaFX Application Thread.
According to http://stackoverflow.com/questions/16843357/what-is-the-android-ui-thread-stack-size-limit-and-how-to-overcome-it the default stack sizes on dalvik are rather small.
API 3 (Android 1.5) = 8KB
API 4-10 (Android 1.6 - Android 2.3.7) = 12KB
API 14-17 (Android 4.0 - Android 4.2.2) = 16KB
Providing an increased stacksize for the thread created in LensApplication runLoop solved the problem.
(This thread will be renamed to JavaFX Application Thread later on).
Therefore it would be good to have some system property to set the stack size for this thread.
According to http://stackoverflow.com/questions/16843357/what-is-the-android-ui-thread-stack-size-limit-and-how-to-overcome-it the default stack sizes on dalvik are rather small.
API 3 (Android 1.5) = 8KB
API 4-10 (Android 1.6 - Android 2.3.7) = 12KB
API 14-17 (Android 4.0 - Android 4.2.2) = 16KB
Providing an increased stacksize for the thread created in LensApplication runLoop solved the problem.
(This thread will be renamed to JavaFX Application Thread later on).
Therefore it would be good to have some system property to set the stack size for this thread.
- relates to
-
JDK-8096348 Stackoverflow on JavaFX Application Thread
- Resolved