Skip to content

example app crashes horribly #19

@epsilonhalbe

Description

@epsilonhalbe

OS: MacOS BigSur 11.6
Terminal: iTerm/Kitty

steps to reproduce:

small terminal

git clone https://github.com/Tenchi2xh/Scurses && cd Scurses
sbt onions/run
after the sbt start the following is printed, but the process then hangs and I need to kill it by sending SIGTERM

╒═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ ╕
│                                                                                                         Example Onions UI - Powered by Scurses                                                                                                           │
├ [Labels]ns/run
                   [success] Total time: 10 s, comple(#0|83x727|→)^[[0n[success] Total time: 22 s, completed 19-Oct-2021 17:56:47                                                                                                                           
                                                     [error]    at net.team2xh.scurses.Scurses.size(Scurses.scala:200)
                                                                                                                      [error]   at net.team2xh.onions.components.Frame.<init>(Frame.scala:41)
                                                       [error]  at net.team2xh.onions.examples.ExampleUI$.$anonfun$new$1(ExampleUI.scala:36)
      [error]   at net.team2xh.onions.examples.ExampleUI$.$anonfun$new$1$adapted(ExampleUI.scala:34)
                                                                                                    [error]     at net.team2xh.scurses.Scurses$.apply(Scurses.scala:27)
                                 [error]        at net.team2xh.onions.examples.ExampleUI$.delayedEndpoint$net$team2xh$onions$examples$ExampleUI$1(ExampleUI.scala:34)
                               [error]  at net.team2xh.onions.examples.ExampleUI$delayedInit$body.apply(ExampleUI.scala:13)
                                                                                                                           [error]   at scala.Function0.apply$mcV$sp(Function0.scala:39)
                                                  [error]       at scala.Function0.apply$mcV$sp$(Function0.scala:39)
                                                                                                                    [error]     at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)
                                                                     [error]    at scala.App.$anonfun$main$1(App.scala:76)
                                                                                                                          [error]    at scala.App.$anonfun$main$1$adapted(App.scala:76)
                                                 [error]        at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:563)
                                                                                                                                   [error]    at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:561)
                                                                            [error]     at scala.collection.AbstractIterable.foreach(Iterable.scala:919)
                  [error]       at scala.App.main(App.scala:76)
                                                               [error]  at scala.App.main$(App.scala:74)
                                                                                                        [error]         at net.team2xh.onions.examples.ExampleUI$.main(ExampleUI.scala:13)
                                                    [error]     at net.team2xh.onions.examples.ExampleUI.main(ExampleUI.scala)
                                                                                                                              [error] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                                              [error]   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                  [error]       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                                                                                                                        [error]      at java.lang.reflect.Method.invoke(Method.java:498)
                                                  [error] stack trace is suppressed; run last onions / Compile / bgRun for the full output

if I use a bigger terminal output is refreshing every second or so and wiping the screen blinking ocasionally
image
changing the terminal size crashes the application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions