question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ember-server hanging on cancellation

See original GitHub issue

Running into this in https://github.com/http4s/http4s-jdk-http-client/pull/645.

I extracted the test into a scala-cli runnable IOApp and did a fiber dump. They are both here: https://gist.github.com/armanbilge/ec958260fc4bd0fed34e86c8c5091035

The fiber dump seems to indicate a hang here:

cats.effect.IOFiber@5f03cbbf WAITING
 ├ delay @ fs2.io.net.SocketCompanionPlatform$AsyncSocket.$anonfun$readChunk$1(SocketPlatform.scala:123)
 ├ async @ fs2.io.net.SocketCompanionPlatform$AsyncSocket.readChunk(SocketPlatform.scala:117)
 ├ flatMap @ fs2.io.net.SocketCompanionPlatform$BufferedReads.$anonfun$read$1(SocketPlatform.scala:85)
 ├ delay @ fs2.io.net.SocketCompanionPlatform$BufferedReads.$anonfun$withReadBuffer$1(SocketPlatform.scala:54)
 ├ release @ org.http4s.jdkhttpclient.CompletableFutureTerminationApp$.stallingServerR(bug.scala:182)
 ├ release @ org.http4s.jdkhttpclient.CompletableFutureTerminationApp$.stallingServerR(bug.scala:182)
 ├ release @ org.http4s.jdkhttpclient.CompletableFutureTerminationApp$.stallingServerR(bug.scala:182)
 ╰ apply @ org.http4s.jdkhttpclient.CompletableFutureTerminationApp$.run(bug.scala:70)

However, in an ember-client cancellation bug the fiber dump also pointed us to that exact same line, but it was a red herring. See:

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
armanbilgecommented, Aug 15, 2022
0reactions
armanbilgecommented, Nov 6, 2022

I also fixed this by adding withShutdownTimeout(1.second) as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ember-cli is hanging on ember server command
I installed ember 0.1.2, bower, phantomjs, etc. I created my app, however, when I run 'ember server' it outputs the following:
Read more >
http4s/http4s - Gitter
@rossabaker I run the same code on 0.20.12, and it hangs. ... ExitCode] , is the correct way to shut down the server...
Read more >
Changelog - http4s
If the response cancellation hangs, it blocks the TickWheelScheduler thread. When this thread blocks, subsequent scheduled events are not processed, and memory ...
Read more >
Create your first Gantt sample in EmberJS - Syncfusion
Cancel, window.ej.Gantt. ... To Run the Ember CLI application using the command ember server which builds the application and creates the dist folder....
Read more >
Guide taking hours to load - Emby Guide Data
... in 1 hour 57 minutes, cancelled by user" or something similar. ... here is the copy from my /var/lib/emby/logs/emberserver.txt file.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found