manuvarkey / GElectrical

GElectrical is a free and opensource electrical system analysis software for LV/MV electrical distribution networks.
https://manuvarkey.github.io/GElectrical/
GNU General Public License v3.0
58 stars 5 forks source link

Segmentation fault (core dumped) #17

Open maipj opened 2 weeks ago

maipj commented 2 weeks ago

when I run gelectrical_launcher.py , has error Segmentation fault (core dumped)

vmware workstation Ubuntu18 CPU 2 memory 2G

python3.10.13

pkg-config --modversion gtk+-3.0 gtk3.22.30

py package

appdirs 1.4.4 Brotli 1.1.0 cffi 1.17.1 contourpy 1.3.0 cssselect2 0.7.0 cycler 0.12.1 deepdiff 8.0.1 et-xmlfile 1.1.0 fonttools 4.54.1 html5lib 1.1 Jinja2 3.1.4 kiwisolver 1.4.7 llvmlite 0.43.0 Mako 1.3.5 MarkupSafe 3.0.1 matplotlib 3.9.2 networkx 3.3 numba 0.60.0 numpy 1.26.4 openpyxl 3.1.5 orderly-set 5.2.2 packaging 24.1 pandapower 2.14.11 pandas 2.2.3 pillow 10.4.0 pip 23.0.1 pycairo 1.27.0 pycparser 2.22 pydyf 0.11.0 PyGObject 3.40.0 pyparsing 3.1.4 pyphen 0.16.0 python-dateutil 2.9.0.post0 pytz 2024.2 scipy 1.13.1 setuptools 65.5.0 shapely 2.0.6 six 1.16.0 tinycss2 1.3.0 tqdm 4.66.5 tzdata 2024.2 weasyprint 62.3 webencodings 0.5.1 zopfli 0.2.3

python gelectrical_launcher.py has error: Segmentation fault (core dumped)

I test some code, when run this code

from gelectrical import MainApp, misc has error: Segmentation fault (core dumped)

How can I do?

manuvarkey commented 2 weeks ago

You seems to be running a very old version Ubuntu and Python in your VM. Any chance you can try it out in a more modern version ?

maipj commented 1 week ago

You seems to be running a very old version Ubuntu and Python in your VM. Any chance you can try it out in a more modern version ?

What are your requirements,Ubuntu20 up?python3.11?or other?

maipj commented 1 week ago

I try use this https://github.com/manuvarkey/GElectrical/releases/download/v1-RC.1/gelectrical.flatpak run in cenots7 or ubuntu18 is ok,but run python is not ok! Segmentation fault (core dumped) I use a day to test this,god!

manuvarkey commented 1 week ago

Program is available as Snap and Flatpak.

https://snapcraft.io/gelectrical https://flathub.org/apps/com.kavilgroup.gelectrical

The latest build on both platforms seems to work fine. See https://buildbot.flathub.org/#/builders/6/builds/144709 for latest flatpak build. Snap uses core22. So Ubuntu 22.04 and above should work ok.

Btw, have you tried using the latest version ? https://github.com/manuvarkey/GElectrical/releases/tag/v1.1.2

maipj commented 1 week ago

Program is available as Snap and Flatpak.

https://snapcraft.io/gelectrical https://flathub.org/apps/com.kavilgroup.gelectrical

The latest build on both platforms seems to work fine. See https://buildbot.flathub.org/#/builders/6/builds/144709 for latest flatpak build. Snap uses core22. So Ubuntu 22.04 and above should work ok.

Btw, have you tried using the latest version ? https://github.com/manuvarkey/GElectrical/releases/tag/v1.1.2

I not use the /v1.1.2 , But I try use the master,the same error

I running in Ubuntu22.04 and python3.10.13,is ok!!

This error may be related to the operating system,or related to compatibility with packages provided by the operating system

Thank you for your help !