# AssertionError: 0 \< tid \<= length(THREAD\_RNGs) during compilation with PackageCompiler

**URL:** <https://discourse.julialang.org/t/assertionerror-0-tid-length-thread-rngs-during-compilation-with-packagecompiler/69179>\
**Category:** New to Julia\
**Tags:** question, package\
**Created:** [October 4, 2021, 10:49am UTC](https://discourse.julialang.org/t/assertionerror-0-tid-length-thread-rngs-during-compilation-with-packagecompiler/69179 "2021-10-04T10:49:21Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![amckay1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amckay1/32/8280_2.png) [@amckay1](https://discourse.julialang.org/u/amckay1)\
**Post date:** [October 7, 2021, 3:27pm UTC](https://discourse.julialang.org/t/assertionerror-0-tid-length-thread-rngs-during-compilation-with-packagecompiler/69179/10 "2021-10-07T15:27:24Z")

</div>

So I rolled back to 1.6 and tried both locally and on the cluster and the assertion error returned. For reproducibility, I added XAM.jl to the MyApp example (added to dev’d package, only included “using XAM” in src/MyApp.jl) and it started failing with the same assertion error both locally and on the cluster.

I’m dealing with another issue or two ([PackageCompiler "create\_app" function failing on slurm cluster: "error: undefined reference to 'ceil'"](https://discourse.julialang.org/t/packagecompiler-create-app-function-failing-on-slurm-cluster-error-undefined-reference-to-ceil/69344)) but I don’t think that changes the conclusion that the PackageCompiler v1.6.0 issue can be reproduced with that XAM.jl package?

Please let me know if you need any more details!

---

_[View the full topic](https://discourse.julialang.org/t/assertionerror-0-tid-length-thread-rngs-during-compilation-with-packagecompiler/69179)._
