JetBrains-Research / viktor

Efficient f64-only ndarray in Kotlin
MIT License
125 stars 6 forks source link

java.lang.StackOverflowError #6

Closed atsky closed 7 years ago

atsky commented 7 years ago

Exception in thread "main" java.lang.StackOverflowError at java.util.stream.SpinedBuffer$OfPrimitive.capacity(SpinedBuffer.java:481) at java.util.stream.SpinedBuffer$OfPrimitive.ensureCapacity(SpinedBuffer.java:494) at java.util.stream.Nodes$DoubleSpinedNodeBuilder.begin(Nodes.java:1780) at java.util.stream.ReferencePipeline$9$1.begin(ReferencePipeline.java:318) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:511) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:576) at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:255) at java.util.stream.DoublePipeline.toArray(DoublePipeline.java:506) at org.jetbrains.bio.viktor.F64ArrayKt.flatten(F64Array.kt:784) at org.jetbrains.bio.viktor.F64ArrayKt.access$flatten(F64Array.kt:1) at org.jetbrains.bio.viktor.F64ArrayKt$flatten$1.apply(F64Array.kt:781) at org.jetbrains.bio.viktor.F64ArrayKt$flatten$1.apply(F64Array.kt) at java.util.stream.ReferencePipeline$9$1.accept(ReferencePipeline.java:323) at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:576) at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:255) at java.util.stream.DoublePipeline.toArray(DoublePipeline.java:506) at org.jetbrains.bio.viktor.F64ArrayKt.flatten(F64Array.kt:784) at org.jetbrains.bio.viktor.F64ArrayKt.access$flatten(F64Array.kt:1) at org.jetbrains.bio.viktor.F64ArrayKt$flatten$1.apply(F64Array.kt:781) at org.jetbrains.bio.viktor.F64ArrayKt$flatten$1.apply(F64Array.kt) at java.util.stream.ReferencePipeline$9$1.accept(ReferencePipeline.java:323) at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:576) at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:255) at java.util.stream.DoublePipeline.toArray(DoublePipeline.java:506) at org.jetbrains.bio.viktor.F64ArrayKt.flatten(F64Array.kt:784) at org.jetbrains.bio.viktor.F64ArrayKt.access$flatten(F64Array.kt:1) at org.jetbrains.bio.viktor.F64ArrayKt$flatten$1.apply(F64Array.kt:781) at org.jetbrains.bio.viktor.F64ArrayKt$flatten$1.apply(F64Array.kt) at java.util.stream.ReferencePipeline$9$1.accept(ReferencePipeline.java:323) at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:576) at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:255) at java.util.stream.DoublePipeline.toArray(DoublePipeline.java:506) at org.jetbrains.bio.viktor.F64ArrayKt.flatten(F64Array.kt:784) at org.jetbrains.bio.viktor.F64ArrayKt.access$flatten(F64Array.kt:1) at org.jetbrains.bio.viktor.F64ArrayKt$flatten$1.apply(F64Array.kt:781) at org.jetbrains.bio.viktor.F64ArrayKt$flatten$1.apply(F64Array.kt) at java.util.stream.ReferencePipeline$9$1.accept(ReferencePipeline.java:323) at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:576) at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:255) at java.util.stream.DoublePipeline.toArray(DoublePipeline.java:506) at org.jetbrains.bio.viktor.F64ArrayKt.flatten(F64Array.kt:784) at org.jetbrains.bio.viktor.F64ArrayKt.access$flatten(F64Array.kt:1) at org.jetbrains.bio.viktor.F64ArrayKt$flatten$1.apply(F64Array.kt:781) at org.jetbrains.bio.viktor.F64ArrayKt$flatten$1.apply(F64Array.kt) at java.util.stream.ReferencePipeline$9$1.accept(ReferencePipeline.java:323) at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:576) at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:255) at java.util.stream.DoublePipeline.toArray(DoublePipeline.java:506) at org.jetbrains.bio.viktor.F64ArrayKt.flatten(F64Array.kt:784) at org.jetbrains.bio.viktor.F64ArrayKt.access$flatten(F64Array.kt:1) at org.jetbrains.bio.viktor.F64ArrayKt$flatten$1.apply(F64Array.kt:781) at org.jetbrains.bio.viktor.F64ArrayKt$flatten$1.apply(F64Array.kt) at java.util.stream.ReferencePipeline$9$1.accept(ReferencePipeline.java:323) at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:576) at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:255) at java.util.stream.DoublePipeline.toArray(DoublePipeline.java:506) at org.jetbrains.bio.viktor.F64ArrayKt.flatten(F64Array.kt:784) at org.jetbrains.bio.viktor.F64ArrayKt.access$flatten(F64Array.kt:1) at org.jetbrains.bio.viktor.F64ArrayKt$flatten$1.apply(F64Array.kt:781) at org.jetbrains.bio.viktor.F64ArrayKt$flatten$1.apply(F64Array.kt) at java.util.stream.ReferencePipeline$9$1.accept(ReferencePipeline.java:323) at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:576) at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:255) at java.util.stream.DoublePipeline.toArray(DoublePipeline.java:506) at org.jetbrains.bio.viktor.F64ArrayKt.flatten(F64Array.kt:784) at org.jetbrains.bio.viktor.F64ArrayKt.access$flatten(F64Array.kt:1) at org.jetbrains.bio.viktor.F64ArrayKt$flatten$1.apply(F64Array.kt:781) at org.jetbrains.bio.viktor.F64ArrayKt$flatten$1.apply(F64Array.kt) at java.util.stream.ReferencePipeline$9$1.accept(ReferencePipeline.java:323) at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:576) at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:255) at java.util.stream.DoublePipeline.toArray(DoublePipeline.java:506) at org.jetbrains.bio.viktor.F64ArrayKt.flatten(F64Array.kt:784) at org.jetbrains.bio.viktor.F64ArrayKt.access$flatten(F64Array.kt:1) at org.jetbrains.bio.viktor.F64ArrayKt$flatten$1.apply(F64Array.kt:781) at org.jetbrains.bio.viktor.F64ArrayKt$flatten$1.apply(F64Array.kt)