Ahhgust/RtN

"Killed" - no log and no error message

filcfig opened this issue · 7 comments

So, I've been trying to run Rtn and after a few seconds of running it, I just get "Killed" on my terminal. No error message and no log available. I didn't build from source and I'm using a VM with Linux 20.04.

When I run it without files, it shows the 'help' prompt just fine (see image).

VirtualBox_Ubuntu_20 04_05_04_2021_12_57_57

Apologies-- first, it appears that my notifications were turned off (!)-- i just happened on this message by chance. Can give me a few more details? We're using RtN on ubuntu 18.04 and 20.04 systems as well as WSL (though admittedly not through virtual box) but from the sound of it there's something either very wrong happening.
If it's possible, would you be willing to give me a sample from your bam file? And/or would you be willing to recompile it from scratch? (see the "Compilation instructions with dynamic libraries" section; it should be a simple copy and paste)
-August

(And I love how you can see the moment that my kids came and interrupted me. Really, I'm a scattered person, but not that scattered!).

Also, can you give me the results of:
ldd ./rtn
AND
ldd Nix_binary/rtn
AND
ulimit -a
(from the same directory that you ran things)
-August

After digging around a bit more I think I have the answer: the message "Killed" appears to come from a unix out of memory manager. RtN! creates a sorted and indexed bam file and the sort is an in memory sort (unlike samtools). Ie, it's assumed that all of the mito data can fit in memory. If you want I can throw an option in to have it be more memory efficient and that should do the trick. otherwise you can try increasing the amount of RAM on your virtual machine...
-August

Dear August,

Apologies for the delay as well.

I will try to compile from scratch and to run the sample in an HPC through Docker. I will keep you posted.

Best regards,

Filipe

Dear August,

Right now I'm getting an output, but I'm also getting the following error messages in all files:

[M::bwa_idx_load_from_disk] read 0 ALT contigs
[M::bwa_idx_load_from_disk] read 0 ALT contigs
Segmentation fault (core dumped)

Is there still an issue with the memory?

Best regards,

Filipe

I finally tracked this down. I had a compiler flag (-march=native ) that was in hindsight a poor choice for the statically linked binary. I removed the flag from the static build and I believe all should be working now.
My apologies for not testing the static build for portability!
-August