Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault (core dumped) #45

Open
basiljose1 opened this issue Jun 13, 2017 · 16 comments
Open

Segmentation fault (core dumped) #45

basiljose1 opened this issue Jun 13, 2017 · 16 comments

Comments

@basiljose1
Copy link

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
Copy link
Collaborator

IngvarX commented Jun 13, 2017

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

@IngvarX IngvarX added the bug label Jun 13, 2017
@basiljose1
Copy link
Author

basiljose1 commented Jun 14, 2017

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
Copy link
Collaborator

IngvarX commented Jun 14, 2017

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

@basiljose1
Copy link
Author

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
Copy link
Collaborator

IngvarX commented Jun 14, 2017

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

@basiljose1
Copy link
Author

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
Copy link
Collaborator

IngvarX commented Jun 14, 2017

Interesting. Can you provide output for:

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

@basiljose1
Copy link
Author

basiljose1 commented Jun 14, 2017

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

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

@IngvarX
Copy link
Collaborator

IngvarX commented Jun 14, 2017

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

@IngvarX
Copy link
Collaborator

IngvarX commented Jun 14, 2017

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
Copy link
Author

prebuilt binary work like charm 👍
Thanks @ingvar1995

@basiljose1
Copy link
Author

@ingvar1995 is there any update on the issue

@IngvarX
Copy link
Collaborator

IngvarX commented Jul 6, 2017

@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
Copy link
Author

@ingvar1995 Ok thanks

@skwerlman
Copy link

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

@IngvarX
Copy link
Collaborator

IngvarX commented Sep 18, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants