giuspen / x-tile

X Tile
https://www.giuspen.net/x-tile/
Other
69 stars 13 forks source link

segmentation fault #2

Closed cybermails closed 3 years ago

cybermails commented 9 years ago

X-tile doesn't start in Xfce. When I type 'x-tile' in terminal it gives me the error "Segmentation fault (core dumped)" and doesn't start the program. Any idea why this happens and how it can be resolved?

giuspen commented 9 years ago

What is your linux distribution and version? Are you running python 2 or 3? On 8 Jun 2015 16:07, "cybermails" notifications@github.com wrote:

X-tile doesn't start in Xfce. When I type 'x-tile' in terminal it gives me the error "Segmentation fault (core dumped)" and doesn't start the program. Any idea why this happens and how it can be resolved?

— Reply to this email directly or view it on GitHub https://github.com/giuspen/x-tile/issues/2.

cybermails commented 9 years ago

Hi giuspen. I'm using Manjaro Xfce 64-bit. The python version is 3.4.3. But I also have python2.7 installed on my system.

giuspen commented 9 years ago

Hi, if you type python in a terminal you should see python 2, this is probably the problem. X-tile unfortunately does not point to python2 but generically python still expecting the version 2. You can either change your system to point to python 2 by default or edit the first line of the x-tile file replacing

!/usr/bin/env python

With

!/usr/bin/env python2

That should make it. On 9 Jun 2015 00:01, "cybermails" notifications@github.com wrote:

Hi guispen. I'm using Manjaro Xfce 64-bit. The python version is 3.4.3. But I also have python2.7 installed on my system.

— Reply to this email directly or view it on GitHub https://github.com/giuspen/x-tile/issues/2#issuecomment-110167117.

cybermails commented 9 years ago

I just checked the /usr/bin/x-tile python script and the first line says,

!/usr/bin/python2

Am I looking at the wrong file?

giuspen commented 9 years ago

Unfortunately you are looking at the good one, it's me that was remembering bad. You could try to run "strace x-tile" and hopefully from the output I may understand something. On 9 Jun 2015 00:27, "cybermails" notifications@github.com wrote:

I just checked the /usr/bin/x-tile python script and the first line says,

!/usr/bin/python2

Am I looking at the wrong file?

— Reply to this email directly or view it on GitHub https://github.com/giuspen/x-tile/issues/2#issuecomment-110170953.

cybermails commented 9 years ago

Ok. Not sure if I can attach file here, so here is the pastebin. http://pastebin.com/DtjwN2T5

ghost commented 9 years ago

Hi, currently I'm experiencing the same issue after upgrading from Python 2.7.9 to 2.7.10.

So here's a backtrace. I hope it helps to resolve the issue.

#0  0x00007fd8ee063800 in XDefaultRootWindow () from /usr/lib/libX11.so.6
#1  0x00007fd8f31bf1f0 in ffi_call_unix64 () from /usr/lib/libffi.so.6
#2  0x00007fd8f31bec58 in ffi_call () from /usr/lib/libffi.so.6
#3  0x00007fd8f33d2edf in _ctypes_callproc () from /usr/lib/python2.7/lib-dynload/_ctypes.so
#4  0x00007fd8f33ccad4 in ?? () from /usr/lib/python2.7/lib-dynload/_ctypes.so
#5  0x00007fd8f4b129e3 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
#6  0x00007fd8f4ba7db3 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#7  0x00007fd8f4baaabc in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
#8  0x00007fd8f4b373cc in function_call () from /usr/lib/libpython2.7.so.1.0
#9  0x00007fd8f4b129e3 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
#10 0x00007fd8f4b217c7 in instancemethod_call () from /usr/lib/libpython2.7.so.1.0
#11 0x00007fd8f4b129e3 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
#12 0x00007fd8f4b68867 in slot_tp_init () from /usr/lib/libpython2.7.so.1.0
#13 0x00007fd8f4b675cf in type_call () from /usr/lib/libpython2.7.so.1.0
#14 0x00007fd8f4b129e3 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
#15 0x00007fd8f4ba7db3 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#16 0x00007fd8f4baaabc in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
#17 0x00007fd8f4baabd9 in PyEval_EvalCode () from /usr/lib/libpython2.7.so.1.0
#18 0x00007fd8f4bc403f in run_mod () from /usr/lib/libpython2.7.so.1.0
#19 0x00007fd8f4bc5212 in PyRun_FileExFlags () from /usr/lib/libpython2.7.so.1.0
#20 0x00007fd8f4bc6427 in PyRun_SimpleFileExFlags () from /usr/lib/libpython2.7.so.1.0
#21 0x00007fd8f4bd84a1 in Py_Main () from /usr/lib/libpython2.7.so.1.0
#22 0x00007fd8f4529790 in __libc_start_main () from /usr/lib/libc.so.6
#23 0x00007fd8f50b4859 in _start ()
giuspen commented 9 years ago

Hi datenpunk, are you also on Manjaro Xfce 64-bit? If not what exactly is your linux distro? You updated only python before starting to have this crash? On 20 Jun 2015 15:11, "datenpunk" notifications@github.com wrote:

Hi, currently I'm experiencing the same issue after upgrading from Python 2.7.9 to 2.7.10.

So here's a backtrace. I hope it helps to resolve the issue.

0 0x00007fd8ee063800 in XDefaultRootWindow () from /usr/lib/libX11.so.6

1 0x00007fd8f31bf1f0 in ffi_call_unix64 () from /usr/lib/libffi.so.6

2 0x00007fd8f31bec58 in ffi_call () from /usr/lib/libffi.so.6

3 0x00007fd8f33d2edf in _ctypes_callproc () from /usr/lib/python2.7/lib-dynload/_ctypes.so

4 0x00007fd8f33ccad4 in ?? () from /usr/lib/python2.7/lib-dynload/_ctypes.so

5 0x00007fd8f4b129e3 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0

6 0x00007fd8f4ba7db3 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0

7 0x00007fd8f4baaabc in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0

8 0x00007fd8f4b373cc in function_call () from /usr/lib/libpython2.7.so.1.0

9 0x00007fd8f4b129e3 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0

10 0x00007fd8f4b217c7 in instancemethod_call () from /usr/lib/libpython2.7.so.1.0

11 0x00007fd8f4b129e3 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0

12 0x00007fd8f4b68867 in slot_tp_init () from /usr/lib/libpython2.7.so.1.0

13 0x00007fd8f4b675cf in type_call () from /usr/lib/libpython2.7.so.1.0

14 0x00007fd8f4b129e3 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0

15 0x00007fd8f4ba7db3 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0

16 0x00007fd8f4baaabc in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0

17 0x00007fd8f4baabd9 in PyEval_EvalCode () from /usr/lib/libpython2.7.so.1.0

18 0x00007fd8f4bc403f in run_mod () from /usr/lib/libpython2.7.so.1.0

19 0x00007fd8f4bc5212 in PyRun_FileExFlags () from /usr/lib/libpython2.7.so.1.0

20 0x00007fd8f4bc6427 in PyRun_SimpleFileExFlags () from /usr/lib/libpython2.7.so.1.0

21 0x00007fd8f4bd84a1 in Py_Main () from /usr/lib/libpython2.7.so.1.0

22 0x00007fd8f4529790 in __libc_start_main () from /usr/lib/libc.so.6

23 0x00007fd8f50b4859 in _start ()

— Reply to this email directly or view it on GitHub https://github.com/giuspen/x-tile/issues/2#issuecomment-113771238.

ghost commented 9 years ago

Hi, no, I'm using a fully updated Archlinux X86_64 (Kernel 4.0.6) and LXDE as DE with Openbox 3.6 as WM. The problem started after upgrading to python 2.7.10. Downgrading to Python 2.7.9 fixes the Problem for me.

On-Impulse commented 9 years ago

Hey giuspen, I've been using x-tile for a while, but it's not working now either. Fresh Manjaro install, I couldn't fix it in Arch either. Looking forward to seeing it fixed! I quite enjoy the custom tiling features.

giuspen commented 9 years ago

I have a virtual machine with Manjaro and python 2.7.10 now where I see the Segmentation Fault so hopefully in the next days I will understand what's wrong On 10 Jul 2015 16:13, "On-Impulse" notifications@github.com wrote:

Hey giuspen, I've been using x-tile for a while, but it's not working now either. Fresh Manjaro install, I couldn't fix it in Arch either. Looking forward to seeing it fixed! I quite enjoy the custom tiling features.

— Reply to this email directly or view it on GitHub https://github.com/giuspen/x-tile/issues/2#issuecomment-120432914.

charlwillia6 commented 8 years ago

Were you ever able to look into this giuspen?

giuspen commented 8 years ago

I looked into this but I have no idea what happened in Python 2.7.10 to break ctypes use in x-tile. Frankly I wanted to see if they'll fix this in Python 2.7.11 but it could be worth to raise a bug against Python 2.7.10 and see if and what they reply.

giuspen commented 8 years ago

Fortunately raghavendra-talur provided a fix to support python 2.7.10. I will release a bugfix version shortly.

0815fox commented 7 years ago

What is the status of this? I also get a segmentation fault on Ubuntu 14.04 LTS, WM = GNOME Shell. However, the python version is 2.7.6 - maybe it is not (only) the python version?

giuspen commented 7 years ago

Version 2.5.1 fixed this problem. Does it crash systematically or with one particular app running?

On 8 Nov 2016 11:01, "Michael Kriegel" notifications@github.com wrote:

What is the status of this? I also get a segmentation fault on Ubuntu 14.04 LTS, WM = GNOME Shell. However, the python version is 2.7.6 - maybe it is not (only) the python version?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/giuspen/x-tile/issues/2#issuecomment-259108123, or mute the thread https://github.com/notifications/unsubscribe-auth/AGhmy8uAkJP-pdiY_O9RTjriwNpaDQK1ks5q8FalgaJpZM4E7z-d .

0815fox commented 7 years ago

Okay, I checked this out and tried to start the applications I usually have open one by one. It only happens when I have Atom open. However, I didn't notice that, as I have it open almost always. Does x-tile identify windows by title? The title seems to contain long dashes. Title

giuspen commented 7 years ago

Can you confirm that you are running x-tile 2.5.1?

On 9 Nov 2016 12:36, "Michael Kriegel" notifications@github.com wrote:

Okay, I checked this out and tried to start the applications I usually have open one by one. It only happens when I have Atom https://atom.io/ open. However, I didn't notice that, as I have it open almost always. Does x-tile identify windows by title? The title seems to contain long dashes. [image: Title] https://cloud.githubusercontent.com/assets/8955528/20138588/7c31ab00-a681-11e6-8304-9f0d6736b13a.jpeg

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/giuspen/x-tile/issues/2#issuecomment-259405027, or mute the thread https://github.com/notifications/unsubscribe-auth/AGhmy3ZHIUNOqM41V_ez3eorRY76Yw7gks5q8b5MgaJpZM4E7z-d .

0815fox commented 7 years ago
mk@mk-actifsource:~$ dpkg -l x-tile
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                     Version           Architecture      Description
+++-========================-=================-=================-======================================================
ii  x-tile                   2.5-2             all               tile selected windows in different ways

However, in the man page it says x-tile 2.4 Is there a version command? How to find out the real version?

giuspen commented 7 years ago

Your version is 2.5. Please add giuspen ppa to upgrade to latest version 2.5.1 where the problem should be fixed.

On 9 Nov 2016 13:09, "Michael Kriegel" notifications@github.com wrote:

mk@mk-actifsource:~$ dpkg -l x-tile Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-========================-=================-=================-====================================================== ii x-tile 2.5-2 all tile selected windows in different ways

However, in the man page it says x-tile 2.4 Is there a version command? How to find out the real version?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/giuspen/x-tile/issues/2#issuecomment-259410810, or mute the thread https://github.com/notifications/unsubscribe-auth/AGhmyxgD1ZTSlIRAA4s_2ukXVuBCCMYsks5q8cYLgaJpZM4E7z-d .

0815fox commented 7 years ago

Okay, 2.5.1 also fixed it for me. Thank you. Wasn't sure, which version I actually had. I created a ticket asking for a version command.

k-sz commented 6 years ago

Hello gisupen, similar problem here. I just discovered your program today thanks to /r/unixporn ^^

I'm running :

as an attachment, you'll find the output of strace x-tile.

Cordially yours, k_sz strace_x-tile.txt

giuspen commented 6 years ago

Hi k_sz, x-tile 2.5.3 does not exist, the latest is 2.5.1. Please check the version again it could be 2.5-3 which is different, means version 2.5 and the number after the - does not count

k-sz commented 6 years ago

Thx for your quick answer !

Oops... seems to be 2.5(.0)-3. My bad.

# dpkg -l x-tile
(snip)
||/ Nom                                     Version                  Architecture             Description
+++-=======================================-========================-========================-===================================================================================
ii  x-tile                                  2.5-3                    all                      tile selected windows in different ways

I'll install your 2.5.1 .deb later.

k-sz commented 6 years ago

v 2.5.3 is working perfectly.

Sorry for the disturbance, and thank you for your good work. Take care - and have a good year !

rvernica commented 6 years ago

Fedora 27 has version 2.5. I assume this doesn't have the fix. I would expect it would have it after three years.

> dnf info x-tile
Last metadata expiration check: 1:08:24 ago on Tue 19 Jun 2018 09:25:41 AM PDT.
Installed Packages
Name         : x-tile
Version      : 2.5
Release      : 8.fc27
Arch         : noarch
Size         : 1.2 M
Source       : x-tile-2.5-8.fc27.src.rpm
Repo         : @System
From repo    : fedora
Summary      : A GTK application to tile windows in different ways
URL          : http://www.giuspen.com/x-tile/
License      : GPLv2+
Description  : X-tile is a GTK application that allows you to select a number of windows and
             : tile them in different ways. This is especially useful for comparing products in
             : separate web pages, or for programmers referring to documentation as they are
             : programming.
giuspen commented 6 years ago

Correct, 2.5.1 has the fix. I can make an rpm package later if you need that should work

cmcanulty commented 5 years ago

Thank you I had used it in past and now in xubuntu 18.04 it wouldn't run. Adding the PPA fixed it! I didn't want to change the whole window manager. Now I remember why I loved x-tile.