# Pc\_relate error

**URL:** <https://discuss.hail.is/t/pc-relate-error/1317>\
**Category:** Hail Query & hailctl\
**Created:** [February 28, 2020, 10:36am UTC](https://discuss.hail.is/t/pc-relate-error/1317 "2020-02-28T10:36:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rost](https://avatars.discourse-cdn.com/v4/letter/r/6de8d8/32.png) [@Rost](https://discuss.hail.is/u/Rost)\
**Post date:** [February 28, 2020, 10:36am UTC](https://discuss.hail.is/t/pc-relate-error/1317/1 "2020-02-28T10:36:20Z")

</div>

I tried to do relatedness analysis but I’m facing a problem with large amount of comparison.

```auto
pc_rel = hl.pc_relate(mt.GT, min_individual_maf = 0.01, k=10, statistics='kin', min_kinship=0.2, block_size=512)

```

```auto
2020-02-28 12:43:06 Hail: INFO: hwe_normalized_pca: running PCA using 37119 variants.
2020-02-28 12:43:32 Hail: INFO: pca: running PCA with 10 components...
2020-02-28 12:50:20 Hail: INFO: Wrote all 942 blocks of 80285 x 2601 matrix with block size 512.

```

```auto
pc_rel.show(5)

```

`Py4JError: An error occurred while calling o130.executeJSON`

```auto
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f9477a84b34, pid=27117, tid=0x00007f93ffcfc700
#
# JRE version: OpenJDK Runtime Environment (8.0_212-b03) (build 1.8.0_212-8u212-b03-0ubuntu1.18.04.1-b03)
# Java VM: OpenJDK 64-Bit Server VM (25.212-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x88cb34]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /mnt/tank/scratch/rskitchenko/FSGS/hs_err_pid27117.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#

```

is the problem related to a lack of memory?

---

<div class="post-metadata">

**Author:** ![danking](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/danking/32/43_2.png) [@danking](https://discuss.hail.is/u/danking)\
**Post date:** [February 28, 2020, 2:52pm UTC](https://discuss.hail.is/t/pc-relate-error/1317/2 "2020-02-28T14:52:27Z")

</div>

Are you using Google Cloud Dataproc (e.g. `hailctl dataproc start`) or something else? If you’re using something else, you need to [install hail from source](https://hail.is/docs/0.2/getting_started.html#running-on-a-spark-cluster). Moreover, this error sometimes occurs if you do not have LAPACK and BLAS installed, two high performance linear algebra libraries. The easiest BLAS/LAPACK library to install is probably [OpenBLAS](https://github.com/xianyi/OpenBLAS/wiki/Precompiled-installation-packages).
