-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault during inference #35
Comments
Hi Thomas, this->dinuc_proba_matrix(i,j) += marginal_array[event_index + i*event_realizations.size() + j];
//TODO This is risky in case the code evolves to have more than 4 realizations At first I thought I had made a mistake upon making changes to handle ambiguous nucleotides within IGoR but it seems commit 4a1ac62 did not change anything there. I had checked all the code using valgrind at some point but maybe I missed something. Also it seems upon writing this line of code I was already suspicious of its potential pitfalls. This is indeed the right way to supply a model for an undefined species, however did you make changes to the model_marginals or model_parms by hand or did you use the command line and or cpp interface? I'll try and find what is wrong just from the error message but I might ask you all the models and sequences if I cannot find an obvious cause. Best, |
Thanks for the fast answer, I'm not providing the model_marginals (if I'm reading the documentation correctly, this should initialize it to the uniform distribution), but I write my Here is a summary of the file:
(Only three V-genes, I'm focusing on one primer) Best, |
Hi, I think I solved the first Valgrind error, you were right it was a "typo" leftover from your move to ambiguous nucleotides. I sent you a pull request (which is completely unnecessary for this one-line fix, but I never sent one, and I wanted to try it out) It didn't solve my issue though, and a few other memory errors are popping out, I'm gonna try to look into these in the next few days (weeks more probably). I'm joining my valgrind error log, if you think your workload is too light, Best, Thomas |
Hi Thomas, |
Hi, I think I figured out how to avoid the segmentation fault, in my model the maximum number of allowed deletions on the D gene was too low , and when I increased it, IGoR ran fine. So if someone happens to get the same error, increasing the range of parameters of the model seems to work. While I'm here and because this probably doesn't need a new issue, I have a small question, do you know what happens in IGoR when delD3 + delD5 > len(D) ? (or even delD3 > len(D)) Best, Thomas |
Hi Thomas, As for your last question: the code design assuming there is no deletion simply prevents this from happening. You can only delete up to current D length (meaning if you have added p nucleotides on 1 side, it is still allowed to delete them upon deleting on the other side). Quentin |
Hi Quentin,
I have a recurrent "Segmentation fault", crashing IGoR, with no error message during inference. It happens both on my laptop and on the cluster, usually at the start of an iteration (rarely the first one). The iteration at which the crash happens seems to be random, even with the same sequences, sometimes it can even end without a crash (especially if I look at small number of sequences, say < 10000) . The alignment part always goes smoothly. I tested that it is not tied to a particular sequence. Additionally, when there is no crash
final_marginals.txt
is produced and looks reasonable.I'm providing IGoR my own genomics files and
model_parms.txt
and running it with the following commands:I'm using the current version of IGoR, compiled with
I've tried to run it through valgrind to pinpoint where the error happens, so I've compiled IGoR with debug flags:
And ran the same command as before (without the alignment part)
At the start of the inference process (just after "Initialization of probability bounds over."), I start to get multiple valgrind errors, with the first one being:
That's it I think, if you need my genes/CDR3/model_parms files, or the sequences, just ask.
Additional question, is this the "right way" to provide IGoR with a non-supplied specie ?
Thanks,
Thomas
The text was updated successfully, but these errors were encountered: