Skip to content

Calling https://petstore.swagger.io/v2/pet/findByStatus?status=available multiple times make UI frozen #17

@ozkanpakdil

Description

@ozkanpakdil

Describe the bug
Just calling this end point multiple times make UI frozen, good thing we have graalvm which make starting very fast 🤓
Image

today tested more and did not freeze like yesterday but got these exceptions on multiple calls.

09:15:23.343 [JavaFX Application Thread] INFO  i.g.o.swaggerific.tools.HttpUtility - Request completed with status code: 200
Exception in thread "JavaFX Application Thread" java.lang.IndexOutOfBoundsException: Position 54117 is out of bounds
        at org.reactfx.util.FingerTree$NonEmptyFingerTree.locate(FingerTree.java:42)
        at org.fxmisc.richtext.model.ReadOnlyStyledDocument.split(ReadOnlyStyledDocument.java:278)
        at org.fxmisc.richtext.model.ReadOnlyStyledDocument.subSequence(ReadOnlyStyledDocument.java:318)
        at org.fxmisc.richtext.model.GenericEditableStyledDocumentBase.subSequence(GenericEditableStyledDocumentBase.java:196)
        at org.fxmisc.richtext.model.SimpleEditableStyledDocument.subSequence(SimpleEditableStyledDocument.java:10)
        at org.fxmisc.richtext.model.StyledDocument.getText(StyledDocument.java:35)
        at org.fxmisc.richtext.GenericStyledArea.getText(GenericStyledArea.java:1119)
        at io.github.ozkanpakdil.swaggerific.ui.textfx.BracketHighlighter.highlightBracket(BracketHighlighter.java:33)
        at io.github.ozkanpakdil.swaggerific.ui.textfx.BracketHighlighter.lambda$new$1(BracketHighlighter.java:24)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456)
        at java.base@23.0.2/java.security.AccessController.executePrivileged(AccessController.java:132)
        at java.base@23.0.2/java.security.AccessController.doPrivileged(AccessController.java:400)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455)
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:185)
        at java.base@23.0.2/java.lang.Thread.runWith(Thread.java:1588)
        at java.base@23.0.2/java.lang.Thread.run(Thread.java:1575)
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:832)
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:808)
Exception in thread "JavaFX Application Thread" java.lang.IndexOutOfBoundsException: Position 54117 is out of bounds
        at org.reactfx.util.FingerTree$NonEmptyFingerTree.locate(FingerTree.java:42)
        at org.fxmisc.richtext.model.ReadOnlyStyledDocument.split(ReadOnlyStyledDocument.java:278)
        at org.fxmisc.richtext.model.ReadOnlyStyledDocument.subSequence(ReadOnlyStyledDocument.java:318)
        at org.fxmisc.richtext.model.GenericEditableStyledDocumentBase.subSequence(GenericEditableStyledDocumentBase.java:196)
        at org.fxmisc.richtext.model.SimpleEditableStyledDocument.subSequence(SimpleEditableStyledDocument.java:10)
        at org.fxmisc.richtext.model.StyledDocument.getText(StyledDocument.java:35)
        at org.fxmisc.richtext.GenericStyledArea.getText(GenericStyledArea.java:1119)
        at io.github.ozkanpakdil.swaggerific.ui.textfx.BracketHighlighter.highlightBracket(BracketHighlighter.java:33)
        at io.github.ozkanpakdil.swaggerific.ui.textfx.BracketHighlighter.lambda$new$1(BracketHighlighter.java:24)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456)
        at java.base@23.0.2/java.security.AccessController.executePrivileged(AccessController.java:132)
        at java.base@23.0.2/java.security.AccessController.doPrivileged(AccessController.java:400)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455)
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:185)
        at java.base@23.0.2/java.lang.Thread.runWith(Thread.java:1588)
        at java.base@23.0.2/java.lang.Thread.run(Thread.java:1575)
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:832)
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:808)
Exception in thread "JavaFX Application Thread" java.lang.IndexOutOfBoundsException: Position 54117 is out of bounds
        at org.reactfx.util.FingerTree$NonEmptyFingerTree.locate(FingerTree.java:42)
        at org.fxmisc.richtext.model.ReadOnlyStyledDocument.split(ReadOnlyStyledDocument.java:278)
        at org.fxmisc.richtext.model.ReadOnlyStyledDocument.subSequence(ReadOnlyStyledDocument.java:318)
        at org.fxmisc.richtext.model.GenericEditableStyledDocumentBase.subSequence(GenericEditableStyledDocumentBase.java:196)
        at org.fxmisc.richtext.model.SimpleEditableStyledDocument.subSequence(SimpleEditableStyledDocument.java:10)
        at org.fxmisc.richtext.model.StyledDocument.getText(StyledDocument.java:35)
        at org.fxmisc.richtext.GenericStyledArea.getText(GenericStyledArea.java:1119)
        at io.github.ozkanpakdil.swaggerific.ui.textfx.BracketHighlighter.highlightBracket(BracketHighlighter.java:33)
        at io.github.ozkanpakdil.swaggerific.ui.textfx.BracketHighlighter.lambda$new$1(BracketHighlighter.java:24)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456)
        at java.base@23.0.2/java.security.AccessController.executePrivileged(AccessController.java:132)
        at java.base@23.0.2/java.security.AccessController.doPrivileged(AccessController.java:400)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455)
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:185)
        at java.base@23.0.2/java.lang.Thread.runWith(Thread.java:1588)
        at java.base@23.0.2/java.lang.Thread.run(Thread.java:1575)
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:832)
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:808)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions