I am using Jupyter Lab with python for data analysis of cosmological data sets. I use Dell Vostro 5515 laptop with 16gb ram and Ryzen7 processor. My OS is Fedora 36 with KDE and Xfce environments.
The problem is that on running my .ipynb notebook for some time, it closes down abruptly if I am in KDE. If I m in xfce, it also closes all the applications and logs out my session.
The crash happens mostly while running a function called compute_full_master
in pymaster
library in python. But has also happened rarely while running some other functions.
I have tried to get error messages by running jupyter lab in --debug
mode, but when the crash happens, the terminal is also closed. I do not know how to get the crash details in other ways.
I have tried to run the code in firefox, chrome, and VSCode.
I am sorry if I have not provided any details necessary and I am happy to provide any if anyone can help!
EDIT:
A simple example:
arr_len = 8394753
x = np.arange(arr_len)
plt.figure(figsize=(25,15))
plt.plot(x, y_1 - y_2)
plt.plot(x, y_1 - y_3)
plt,plot(x, y_1 - y_4)
plt.ylim((-1e-6,1e-6))
The arrays y_1, y_2, y_3 and y_4 have the length arr_len and are complex. The imaginary part does not matter. The notebook is already having run some code in previous cells. But running this plotting cell a few times caused the shut down many times.