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

[Android] Stackoverflow on JavaFX Application Thread

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u5
    • Fix Version/s: 8u20
    • Component/s: javafx

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: