toxygen-project / toxygen

Toxygen is pythonic Tox client
GNU General Public License v3.0
280 stars 46 forks source link

Segmentation fault (core dumped) #45

Open basiljose1 opened 7 years ago

basiljose1 commented 7 years ago

While running toxygen in Ubuntu 17.02 , getting Segmentation fault (core dumped)

libpng warning: iCCP: known incorrect sRGB profile Smiley pack default loaded ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map Segmentation fault (core dumped)

IngvarX commented 7 years ago

How did you install Toxygen? What version are you using?

basiljose1 commented 7 years ago

i installed by following toxygen documentation, regarding version, tried both latest stable and development versions after getting the initial login window it's ending up with Segmentation fault (core dumped)

toxcore package compiled : irungentoo/toxcore

OS details: Distributor ID: Ubuntu Description: Ubuntu 17.04 Release: 17.04 Codename: zesty

screenshot at 2017-06-14 07-48-19

Install latest Python3: sudo apt-get install python3 Install PySide: sudo apt-get install python3-pyside or install PyQt4 (sudo apt-get install python3-pyqt4). Install toxcore with toxav support in your system (install in /usr/lib/) Install PyAudio: sudo apt-get install portaudio19-dev and sudo apt-get install python3-pyaudio Download toxygen Unpack archive Run app: python3 main.py Optional: install toxygen using setup.py: python3 setup.py install

IngvarX commented 7 years ago

Are you sure that both python and toxcore are 64 (32) bit?

basiljose1 commented 7 years ago

Python and OS is 64 bit screenshot at 2017-06-14 12-03-40 But i don't know how to check toxcore architecture, is there any option to check the same

IngvarX commented 7 years ago

I think you have to check libtoxcore.so manually. "file" command probably can help.

basiljose1 commented 7 years ago

Thanks for your info, i found that

$ file /usr/local/lib/libtoxcore.so.0.0.0 
/usr/local/lib/libtoxcore.so.0.0.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=60b36e35c1e1ffe4dc36179496f7c52b974ab1c7, not stripped
IngvarX commented 7 years ago

Interesting. Can you provide output for:


python3
import sys
import ctypes
print(sys.maxsize > 2 ** 32)
x = ctypes.CDLL("libtoxcore.so")
print(x)```
basiljose1 commented 7 years ago

Output : screenshot at 2017-06-14 12-47-42

<CDLL 'libtoxcore.so', handle 55568c3b68f0 at 0x7f7ea80dc2e8>

IngvarX commented 7 years ago

Libtoxcore.so was loaded successfully, so problem is smth else. Will debug it today.

IngvarX commented 7 years ago

For some reason creation of ToxAV instance fails. Probably toxcore can't work with latest libvpx normally. I recommend to try prebuilt binary for now. I will try to find a solution but it requires more time.

basiljose1 commented 7 years ago

prebuilt binary work like charm :+1: Thanks @ingvar1995

basiljose1 commented 7 years ago

@ingvar1995 is there any update on the issue

IngvarX commented 7 years ago

@basiljose1 I tried to compile toxcore with old libs but without success. Didn't have free time to look closer. Hope to back to this problem during weekend.

basiljose1 commented 7 years ago

@ingvar1995 Ok thanks

skwerlman commented 7 years ago

i am seeing this also when installing on arch from the AUR

IngvarX commented 7 years ago

@strannik-j how did you install toxygen? was busy lately, wasn't able to look into this bug :cry: