[ https://issues.apache.org/jira/browse/TOREE-442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16258649#comment-16258649 ]
Hans Schlenker commented on TOREE-442: -------------------------------------- (Spark 2.2.0, Scala 2.11.8, Toree 0.2.0 rc1|rc2) I am having the exact same issue with the following content in a cell: def b(f:(Int => Int)) = f(0) The problem seems to come from the first class / higher order function definition. Is there anything I can do to solve this? I need Toree for a lecture that I will give in a few weeks and now I am blocked with the current Spark/Toree versions. Tried Toree 0.2.0 RC1 and RC2. Thanks! > Notebook hangs with ScriptException decoding functions with call by name > ------------------------------------------------------------------------- > > Key: TOREE-442 > URL: https://issues.apache.org/jira/browse/TOREE-442 > Project: TOREE > Issue Type: Bug > Components: Kernel > Affects Versions: 0.2.0 > Environment: Mac > Reporter: Josiah Samuel Sathiadass > > Jupyter notebook with Toree kernel hangs when decoding a cell with the > following content, > ``` > def function( func : => Int) = { > > } > ``` > I'm using the fresh built version of toree from the source master branch. > The only way to get back the control is to restart jupyter. > I see the following error message in the console, > {{javax.script.ScriptException: compile-time error > at scala.tools.nsc.interpreter.IMain.compiled(IMain.scala:602) > at scala.tools.nsc.interpreter.IMain.eval(IMain.scala:1074) > at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264) > at > org.apache.toree.kernel.interpreter.scala.ScalaInterpreterSpecific$class.read(ScalaInterpreterSpecific.scala:261) > at > org.apache.toree.kernel.interpreter.scala.ScalaInterpreter.read(ScalaInterpreter.scala:42) > at > org.apache.toree.kernel.interpreter.scala.ScalaInterpreter$$anonfun$prepareResult$1.apply(ScalaInterpreter.scala:182) > at > org.apache.toree.kernel.interpreter.scala.ScalaInterpreter$$anonfun$prepareResult$1.apply(ScalaInterpreter.scala:181) > at > scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33) > at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186) > at > org.apache.toree.kernel.interpreter.scala.ScalaInterpreter.prepareResult(ScalaInterpreter.scala:181) > at > org.apache.toree.kernel.interpreter.scala.ScalaInterpreter$$anonfun$interpretMapToResultAndOutput$1.apply(ScalaInterpreter.scala:261) > at > org.apache.toree.kernel.interpreter.scala.ScalaInterpreter$$anonfun$interpretMapToResultAndOutput$1.apply(ScalaInterpreter.scala:256) > at scala.util.Success$$anonfun$map$1.apply(Try.scala:237) > at scala.util.Try$.apply(Try.scala:192) > at scala.util.Success.map(Try.scala:237) > at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:237) > at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:237) > at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32) > at > scala.concurrent.impl.ExecutionContextImpl$AdaptedForkJoinTask.exec(ExecutionContextImpl.scala:121) > 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) > }} > Rarely i get this error message too, > {{17/09/28 17:33:03 ERROR InterpreterActor: Could not execute code def > timeit[T]( code: => T): T ={ > val now1 = System.nanoTime > val ret: T = code > val ms1 = (System.nanoTime - now1) / 1000000 > println("Elapsed time: %d ms".format( ms1)) > ret > } because of exception: Ask timed out on > [Actor[akka://spark-kernel-actor-system/user/interpreter/execute_request_task#160406270]] > after [21474835000 ms]. > Sender[Actor[akka://spark-kernel-actor-system/user/interpreter#1508607646]] > sent message of type "scala.Tuple3".}} -- This message was sent by Atlassian JIRA (v6.4.14#64029)