Uploaded image for project: 'TOREE'
  1. TOREE
  2. TOREE-442

Notebook hangs with ScriptException decoding functions with call by name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.2.0
    • None
    • Kernel
    • None
    • Mac

    Description

      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]. SenderActor[akka://spark-kernel-actor-system/user/interpreter#1508607646] sent message of type "scala.Tuple3".}}

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              josam Josiah Samuel Sathiadass
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: