privefl / bigstatsr

R package for statistical tools with big matrices stored on disk.
https://privefl.github.io/bigstatsr/
179 stars 30 forks source link

segfault with big_prodMat #154

Closed opain closed 2 years ago

opain commented 2 years ago

Hello Florian,

I have started receiving a segfault when using the big_prodMat function. I am not sure what is causing it. Any ideas? Happy to send the full script if useful.

Best wishes,

Ollie

Error: image

Session info: image

opain commented 2 years ago

Hi Florian,

Apologies, I have realised my mistake. The values in ind.col=ss_gene_i_ldpred2[["_NUMID"]] do not correspond to indices in G. This is due to me mismatching the reference with the sumstats. I should be able to resolve.

Best wishes,

Ollie

privefl commented 2 years ago

No worries.

Normally, if the indices are outside the range, you should get a normal error, not a segfault. If not, the code is missing something.