You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
01:28:47.138 [Executor task launch worker for task 7] ERROR org.apache.spark.util.SparkUncaughtExceptionHandler - Uncaught exception in thread Thread[Executor task launch worker for task 7,5,main]
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:719)
at net.imglib2.cache.queue.FetcherThreads.<init>(FetcherThreads.java:92)
at net.imglib2.cache.queue.FetcherThreads.<init>(FetcherThreads.java:70)
at bdv.util.volatiles.SharedQueue.<init>(SharedQueue.java:49)
at bdv.util.volatiles.VolatileViews.wrapCachedCellImg(VolatileViews.java:178)
at bdv.util.volatiles.VolatileViews.wrapAsVolatileViewData(VolatileViews.java:124)
at bdv.util.volatiles.VolatileViews.wrapAsVolatile(VolatileViews.java:86)
at bdv.util.volatiles.VolatileViews.wrapAsVolatile(VolatileViews.java:70)
at bdv.img.omezarr.MultiscaleImage.init(MultiscaleImage.java:151)
at bdv.img.omezarr.MultiscaleImage.getType(MultiscaleImage.java:246)
at bdv.img.omezarr.ZarrImageLoader$SetupImgLoader.<init>(ZarrImageLoader.java:128)
at bdv.img.omezarr.ZarrImageLoader.createSetupImgLoader(ZarrImageLoader.java:88)
at bdv.img.omezarr.ZarrImageLoader.openZarr(ZarrImageLoader.java:62)
at bdv.img.omezarr.ZarrImageLoader.getSetupImgLoader(ZarrImageLoader.java:345)
at bdv.img.omezarr.ZarrImageLoader.getSetupImgLoader(ZarrImageLoader.java:37)
at net.preibisch.bigstitcher.spark.util.ViewUtil.getTransformedBoundingBox(ViewUtil.java:32)
at net.preibisch.bigstitcher.spark.AffineFusion.lambda$call$6156960b$1(AffineFusion.java:342)
at org.apache.spark.api.java.JavaRDDLike$$anonfun$foreach$1.apply(JavaRDDLike.scala:351)
at org.apache.spark.api.java.JavaRDDLike$$anonfun$foreach$1.apply(JavaRDDLike.scala:351)
at scala.collection.Iterator$class.foreach(Iterator.scala:891)
at org.apache.spark.InterruptibleIterator.foreach(InterruptibleIterator.scala:28)
at org.apache.spark.rdd.RDD$$anonfun$foreach$1$$anonfun$apply$27.apply(RDD.scala:972)
at org.apache.spark.rdd.RDD$$anonfun$foreach$1$$anonfun$apply$27.apply(RDD.scala:972)
at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:2101)
at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:2101)
at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:90)
at org.apache.spark.scheduler.Task.run(Task.scala:123)
at org.apache.spark.executor.Executor$TaskRunner$$anonfun$10.apply(Executor.scala:408)
at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1360)
at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:414)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
Debug hint by @tpietzsch:setNumFetcherThreads(0) that is used by BigStitcher-Spark is not respected rather default thread creation is performed.
The text was updated successfully, but these errors were encountered:
It seems that this bug is still around, this is a phase correlation run on 64 CPU with the development branch that supposed to respect setNumFetcherThreads hs_err_pid717.log
.
Could you try to hardcode private int requestedNumFetcherThreads = 0; and see whether that fixes the problem?
(I suspect maybe openZarr() is called before setNumFetcherThreads(). If so, we should find a way to avoid that.)
Could you try to hardcode private int requestedNumFetcherThreads = 0; and see whether that fixes the problem? (I suspect maybe openZarr() is called before setNumFetcherThreads(). If so, we should find a way to avoid that.)
The culprit was a missing isOpen=true in openZarr().
If the zarr reader is used in BigStitcher-Spark
AffineFusion
, it creates new reader thread for each job chunk and fails to destroy them.Debug hint by @tpietzsch:
setNumFetcherThreads(0)
that is used by BigStitcher-Spark is not respected rather default thread creation is performed.The text was updated successfully, but these errors were encountered: