ersilia-os / ersilia

The Ersilia Model Hub, a repository of AI/ML models for infectious and neglected disease research.
https://ersilia.io
GNU General Public License v3.0
224 stars 148 forks source link

🐛 Bug: Windows Crashes while Fetching the Ersilia models #308

Closed ZakiaYahya closed 2 years ago

ZakiaYahya commented 2 years ago

Describe the bug.

Dear @GemmaTuron, my windows crashes and restarted, halting all active processes whenever i fetch the ersilia model. I have tried fetching three models i.e. eos2re5, eos 4tcc and eos78ao results in windows crash. Although when i run the fetch command everything is working fine, dependencies are installing properly without giving an error. I didn't catch up the point where the windows crashes because it's not crashes instantaniously after executing the fetch command. Here are the screeshots fetch_log fetch_log_1

and after sometime i got this error

windows-crashes

Describe the steps to reproduce the behavior

No response

Expected behavior.

No response

Screenshots.

No response

Operating environment

Window 10 pro , WLS ubuntu 18.04

Additional context

No response

GemmaTuron commented 2 years ago

Hi @ZakiaYahya Let's check if this is an issue with your system (for example, the free space you might have). Can you try:

ersilia -v fetch eos3b5e
ersilia serve eos3b5e
ersilia -v api calculate -i "CCCC"

The eos3b5e is a small model, hence it should not give problems when running, it simply calculates the molecular weight. We will try only one molecule (a random CCCC) and see if it is able to print the output

ZakiaYahya commented 2 years ago

Hi @ZakiaYahya Let's check if this is an issue with your system (for example, the free space you might have). Can you try:

ersilia -v fetch eos3b5e
ersilia serve eos3b5e
ersilia -v api calculate "CCCC"

The eos3b5e is a small model, hence it should not give problems when running, it simply calculates the molecular weight. We will try only one molecule (a random CCCC) and see if it is able to print the output

Thanks @GemmaTuron, i'll try it and will let you know.

zheeburg commented 2 years ago

Thanks, I will try only one molecule and see if it is able to print the output

GemmaTuron commented 2 years ago

@ZakiaYahya and @zheeburg note that I forgot the -i flag on the calculate, dont make the same mistake. I have corrected it.

ZakiaYahya commented 2 years ago

@ZakiaYahya and @zheeburg note that I forgot the -i flag on the calculate, dont make the same mistake. I have corrected it.

Sure, Thanks @GemmaTuron

ZakiaYahya commented 2 years ago

Hi @ZakiaYahya Let's check if this is an issue with your system (for example, the free space you might have). Can you try:

ersilia -v fetch eos3b5e
ersilia serve eos3b5e
ersilia -v api calculate -i "CCCC"

The eos3b5e is a small model, hence it should not give problems when running, it simply calculates the molecular weight. We will try only one molecule (a random CCCC) and see if it is able to print the output

@GemmaTuron, Now window doesn't crash but it gives me an error "TypeError: expected str, bytes or os.PathLike object, not NoneType" and this is already raised as an issue.

zheeburg commented 2 years ago

I had the same problem, and it turned out that systemd-oomd (a userspace out-of-memory (OOM) killer) was killing my applications whenever I was running low on swap space.

You` can run the following command to see if it is the case for you as well:

journalctl -u systemd-oomd

Two options:

1 Disable systemd-oomd: systemctl disable --now systemd-oomd

2 Increase swap size (recommended).

ZakiaYahya commented 2 years ago

I had the same problem, and it turned out that systemd-oomd (a userspace out-of-memory (OOM) killer) was killing my applications whenever I was running low on swap space.

You` can run the following command to see if it is the case for you as well:

journalctl -u systemd-oomd

Two options:

1 Disable systemd-oomd: systemctl disable --now systemd-oomd

2 Increase swap size (recommended).

Thanks @zheeburg. in my case this is not due to out-of-memory problem it's basically the Antivirus that causes the window to crash when WSL installing some dependencies.

GemmaTuron commented 2 years ago

thanks that is very helpful @ZakiaYahya and @zheeburg ! @zheeburg is then the issue #311 solved with the system-oomd changes?

I'll close this issue now, but please check #318 and work in there, thanks!