Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ex 38 (primeiro de while) está derrubando o servidor #298

Open
jonasabreu opened this issue Nov 11, 2014 · 1 comment
Open

Ex 38 (primeiro de while) está derrubando o servidor #298

jonasabreu opened this issue Nov 11, 2014 · 1 comment
Milestone

Comments

@jonasabreu
Copy link
Member

A resposta

var soma = 0
var i = 0
while (i < 100) soma += i

Derruba o servidor.

Stacktrace:

[ERROR] [11/11/2014 15:12:02.336] [vg-games-system-akka.actor.default-dispatcher-4] [ActorSystem(vg-games-system)] Uncaught error from thread [vg-games-system-akka.actor.default-dispatcher-4] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled
java.lang.OutOfMemoryError: unable to create new native thread
    at java.lang.Thread.start0(Native Method)
    at java.lang.Thread.start(Thread.java:691)
    at vggames.scala.actors.ScalaProcessor$$anonfun$receive$1.applyOrElse(ScalaProcessor.scala:16)
    at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
    at vggames.scala.actors.ScalaProcessor.aroundReceive(ScalaProcessor.scala:7)
    at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
    at akka.actor.ActorCell.invoke(ActorCell.scala:487)
    at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
    at akka.dispatch.Mailbox.run(Mailbox.scala:220)
    at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
    at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
    at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
    at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

@jonasabreu jonasabreu added this to the Scala Game milestone Nov 11, 2014
@jonasabreu
Copy link
Member Author

É possível que a migração que vou fazer para uma nova máquina resolva esse problema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant