RIDE icon indicating copy to clipboard operation
RIDE copied to clipboard

ride.py -> Segmentation fault (core dumped)

Open Ishira1601 opened this issue 4 years ago • 6 comments

Environment: Ubuntu 20.04 Python 3.7 Robot Framework 4.1.3 robotframework-ride 1.7.4.2
wxPython 4.0.7.post2 PyPubSub 4.0.3 Pygments 2.10.0 pillow 7.0.0 six 1.14.0 numpy 1.21.2

I have been using RIDE with python 3.8 for sometime but due to some compatibility issues I had to downgrade to python 3.7. RIDE has since stopped working. I reinstall robot and ride both. The installation itself seemed problem free. But when I try to ride.py in the terminal I get the following error Segmentation fault (core dumped)

Ishira1601 avatar Dec 23 '21 12:12 Ishira1601

Maybe need more information, strange it only shows the Segmentation fault (core dumped).

Things you can try:

  • Completely uninstall RIDE, first with pip and then probably even going to site-packages and removing robotide directory. Then install again (maybe is better with sudo)
  • Try running with: python3 -m robotide.__init__ or python3 -m robotide.__init__ --debugconsole
  • Install the Beta version like explained at the README on the Code section here.
  • Install the current development version like explained at the README on the Code section here (would need to upgrade wxPython to 4.1.1.)

HelioGuilherme66 avatar Dec 23 '21 20:12 HelioGuilherme66

  1. Uninstall RIDE pip uninstall robotframework-ride
Found existing installation: robotframework-ride 1.7.4.2
Uninstalling robotframework-ride-1.7.4.2:
  Would remove:
    /home/user/.local/bin/ride.py
    /home/user/.local/bin/ride_postinstall.py
    /home/user/.local/lib/python3.7/site-packages/robotframework_ride-1.7.4.2.dist-info/*
    /home/user/.local/lib/python3.7/site-packages/robotide/*
Proceed (y/n)? y
  Successfully uninstalled robotframework-ride-1.7.4.2
  1. Deleted robotide from both python3.8 and python3.7 folders
  2. Install robotframework-ride sudo pip install robotframework-ride
[sudo] password for user: 
Collecting robotframework-ride
  Downloading robotframework-ride-1.7.4.2.tar.gz (846 kB)
     |████████████████████████████████| 846 kB 2.1 MB/s 
Collecting PyPubSub
  Downloading Pypubsub-4.0.3-py3-none-any.whl (61 kB)
     |████████████████████████████████| 61 kB 1.7 MB/s 
Collecting Pygments
  Downloading Pygments-2.10.0-py3-none-any.whl (1.0 MB)
     |████████████████████████████████| 1.0 MB 12.3 MB/s 
Collecting wxPython<=4.0.7.post2
  Downloading wxPython-4.0.7.post2.tar.gz (68.9 MB)
     |████████████████████████████████| 68.9 MB 90 kB/s 
Requirement already satisfied: pillow in /usr/lib/python3/dist-packages (from wxPython<=4.0.7.post2->robotframework-ride) (7.0.0)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from wxPython<=4.0.7.post2->robotframework-ride) (1.14.0)
Collecting numpy
  Downloading numpy-1.21.5-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.7 MB)
     |████████████████████████████████| 15.7 MB 10.5 MB/s 
Building wheels for collected packages: robotframework-ride, wxPython
  Building wheel for robotframework-ride (setup.py) ... done
  Created wheel for robotframework-ride: filename=robotframework_ride-1.7.4.2-py3-none-any.whl size=950979 sha256=f35ff7bc4cea5c6497088605472277a5748a64d112a0a4c62b1ed8f36e7e99a8
  Stored in directory: /root/.cache/pip/wheels/fc/7e/ad/62316f036476f8a3eba3830dcb12649d85d209e5a42416c348
  Building wheel for wxPython (setup.py) ... done
  Created wheel for wxPython: filename=wxPython-4.0.7.post2-cp37-cp37m-linux_x86_64.whl size=135043773 sha256=f358403ef52ae41eac96d8b18834dfcca7244b4a8b3f90658a2bb9caa12f6ee0
  Stored in directory: /root/.cache/pip/wheels/eb/ec/e1/6f6afceb2d8395a2c534e042f1c9bd4cc4e39dda47c5ed5fd6
Successfully built robotframework-ride wxPython
Installing collected packages: PyPubSub, Pygments, numpy, wxPython, robotframework-ride
Successfully installed PyPubSub-4.0.3 Pygments-2.10.0 numpy-1.21.5 robotframework-ride-1.7.4.2 wxPython-4.0.7.post2

  1. Run RIDE a. ride.py Segmentation fault (core dumped) b. python3 -m robotide.__init__ Segmentation fault (core dumped) c. python3 -m robotide.__init__ --debugconsole Segmentation fault (core dumped)

  2. Steps above repeated with beta version pip install -U --pre robotframework-ride

Processing /home/user/.cache/pip/wheels/c3/2e/bf/4b6f1ee3db56841d937d0334495b6ee2e9f28d17dbf8a128b7/robotframework_ride-2.0b1-py3-none-any.whl
Requirement already satisfied, skipping upgrade: wxPython in /home/user/.local/lib/python3.7/site-packages (from robotframework-ride) (4.0.7.post2)
Requirement already satisfied, skipping upgrade: PyPubSub in /home/user/.local/lib/python3.7/site-packages (from robotframework-ride) (4.0.3)
Requirement already satisfied, skipping upgrade: Pygments in /home/user/.local/lib/python3.7/site-packages (from robotframework-ride) (2.10.0)
Requirement already satisfied, skipping upgrade: pillow in /usr/lib/python3/dist-packages (from wxPython->robotframework-ride) (7.0.0)
Requirement already satisfied, skipping upgrade: six in /usr/lib/python3/dist-packages (from wxPython->robotframework-ride) (1.14.0)
Requirement already satisfied, skipping upgrade: numpy; python_version >= "3.0" in /home/user/.local/lib/python3.7/site-packages (from wxPython->robotframework-ride) (1.21.2)
Installing collected packages: robotframework-ride
Successfully installed robotframework-ride-2.0b1

Run RIDE -> Segmentation fault (core dumped) 6. Steps repeated with current development version sudo pip install -U https://github.com/robotframework/RIDE/archive/master.zip

Collecting https://github.com/robotframework/RIDE/archive/master.zip
  Downloading https://github.com/robotframework/RIDE/archive/master.zip
     | 2.1 MB 1.1 MB/s
Requirement already satisfied, skipping upgrade: PyPubSub in /usr/local/lib/python3.7/dist-packages (from robotframework-ride==2.0b2.dev4) (4.0.3)
Requirement already satisfied, skipping upgrade: Pygments in /usr/local/lib/python3.7/dist-packages (from robotframework-ride==2.0b2.dev4) (2.10.0)
Collecting psutil
  Downloading psutil-5.8.0-cp37-cp37m-manylinux2010_x86_64.whl (296 kB)
     |████████████████████████████████| 296 kB 2.1 MB/s 
Requirement already satisfied, skipping upgrade: wxPython in /usr/local/lib/python3.7/dist-packages (from robotframework-ride==2.0b2.dev4) (4.0.7.post2)
Requirement already satisfied, skipping upgrade: pillow in /usr/lib/python3/dist-packages (from wxPython->robotframework-ride==2.0b2.dev4) (7.0.0)
Requirement already satisfied, skipping upgrade: six in /usr/lib/python3/dist-packages (from wxPython->robotframework-ride==2.0b2.dev4) (1.14.0)
Requirement already satisfied, skipping upgrade: numpy; python_version >= "3.0" in /usr/local/lib/python3.7/dist-packages (from wxPython->robotframework-ride==2.0b2.dev4) (1.21.5)
Building wheels for collected packages: robotframework-ride
  Building wheel for robotframework-ride (setup.py) ... done
  Created wheel for robotframework-ride: filename=robotframework_ride-2.0b2.dev4-py3-none-any.whl size=1410187 sha256=1fe6479758735af5fef503d40fbddcb6132d4997723f6aa3bd1ccb0fd363985a
  Stored in directory: /tmp/pip-ephem-wheel-cache-9pqkvslf/wheels/43/72/82/3733547b41c9b6a270e8ccd3c6f4b129354e18ddb4ef16bae0
Successfully built robotframework-ride
Installing collected packages: psutil, robotframework-ride
Successfully installed psutil-5.8.0 robotframework-ride-2.0b2.dev4

Run RIDE -> Segmentation fault (core dumped)

Ishira1601 avatar Dec 27 '21 09:12 Ishira1601

I am trying to reproduce on a VirtualBox image... @Ishira1601 Installed development version with WxPython 4.1.1 in Python38 because there is no package for Python37. You need to reinstall WxPython, and probably build it from source.

HelioGuilherme66 avatar Dec 27 '21 15:12 HelioGuilherme66

what's the version of ride I should install because this happens pip install robotframework-ride

Processing /home/user/.cache/pip/wheels/fc/7e/ad/62316f036476f8a3eba3830dcb12649d85d209e5a42416c348/robotframework_ride-1.7.4.2-py3-none-any.whl
Requirement already satisfied: Pygments in /home/user/.local/lib/python3.7/site-packages (from robotframework-ride) (2.10.0)
Processing /home/user/.cache/pip/wheels/eb/ec/e1/6f6afceb2d8395a2c534e042f1c9bd4cc4e39dda47c5ed5fd6/wxPython-4.0.7.post2-cp37-cp37m-linux_x86_64.whl
Requirement already satisfied: PyPubSub in /home/user/.local/lib/python3.7/site-packages (from robotframework-ride) (4.0.3)
Requirement already satisfied: pillow in /usr/lib/python3/dist-packages (from wxPython<=4.0.7.post2->robotframework-ride) (7.0.0)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from wxPython<=4.0.7.post2->robotframework-ride) (1.14.0)
Requirement already satisfied: numpy; python_version >= "3.0" in /home/user/.local/lib/python3.7/site-packages (from wxPython<=4.0.7.post2->robotframework-ride) (1.21.2)
Installing collected packages: wxPython, robotframework-ride
  Attempting uninstall: wxPython
    Found existing installation: wxPython 4.1.1
    Uninstalling wxPython-4.1.1:
      Successfully uninstalled wxPython-4.1.1
Successfully installed robotframework-ride-1.7.4.2 wxPython-4.0.7.post2

It's uninstalling wxpython 4.1.1 and installing wx 4.0.2post

Ishira1601 avatar Dec 30 '21 14:12 Ishira1601

I suspect that wxPython is not working correctly. Please run the following test: python3 -c "from wx import VERSION; print(VERSION)"

If there is some error, then it is missing a dependency, and we need to install.

@Ishira1601 Did you take a look at our FAQ?

HelioGuilherme66 avatar Dec 30 '21 15:12 HelioGuilherme66

python3 -c "from wx import VERSION; print(VERSION)" ->

Segmentation fault (core dumped)

According to the FAQ page: "At the time of this writing, you should use: python3 -m pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk2/centos-7/wxPython-4.0.7.post2-cp36-cp36m-linux_x86_64.whl"

Ishira1601 avatar Dec 31 '21 09:12 Ishira1601