You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@toree.apache.org by "Josiah Samuel Sathiadass (JIRA)" <ji...@apache.org> on 2017/09/29 09:38:01 UTC

[jira] [Commented] (TOREE-442) Notebook hangs with ScriptException decoding functions with call by name

    [ https://issues.apache.org/jira/browse/TOREE-442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16185576#comment-16185576 ] 

Josiah Samuel Sathiadass commented on TOREE-442:
------------------------------------------------

Commit 52d2ea2 caused this regression. 
[https://github.com/apache/incubator-toree/commit/52d2ea2d69881327bd5c85b05d7a482b324f3769#diff-d4e116a6b5ca1865278c33f1f3d16d86]

Reverting this code commit, resolved th

> 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)