Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8098249

[Android] Stackoverflow on JavaFX Application Thread

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u20
    • 8u5
    • javafx

      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.

            ddhill David Hill (Inactive)
            sfuchsjfx Stefan Fuchs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: