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 on Raspberry Pi #3

Closed
Romalouz opened this issue Feb 5, 2014 · 2 comments
Closed

Segmentation fault on Raspberry Pi #3

Romalouz opened this issue Feb 5, 2014 · 2 comments

Comments

@Romalouz
Copy link

Romalouz commented Feb 5, 2014

Hello,

I am trying to use your lib on a Raspberry Pi. I tested the master and the devel branch and I am always getting a segmentation fault error.

Setup is Raspberry Pi model B
Running cec-client gives:
CEC Parser created - libCEC version 2.1.4
no serial port given. trying autodetect:
path: Raspberry Pi
com port: RPI

This is what I do in python interpreter:

Python 2.7.3 (default, Jan 13 2013, 11:20:46)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import cec
cec.list_adapters()
['RPI']
cec.list_devices()
.
.
Lot of CEC DEBUG message
.
.
{} 'Looks like no devices are found

cec.init()
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content unregistering all CEC clients
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content TV (0): device status changed into 'unknown'
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content Recorder 1 (1): device status changed into 'unknown'
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content Recorder 2 (2): device status changed into 'unknown'
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content Tuner 1 (3): device status changed into 'unknown'
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content Playback 1 (4): device status changed into 'unknown'
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content Audio (5): device status changed into 'unknown'
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content Tuner 2 (6): device status changed into 'unknown'
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content Tuner 3 (7): device status changed into 'unknown'
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content Playback 2 (8): device status changed into 'unknown'
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content Recorder 3 (9): device status changed into 'unknown'
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content Tuner 4 (A): device status changed into 'unknown'
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content Playback 3 (B): device status changed into 'unknown'
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content Reserved 1 (C): device status changed into 'unknown'
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content Reserved 2 (D): device status changed into 'unknown'
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content Free use (E): device status changed into 'unknown'
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content Broadcast (F): osd name set to 'Broadcast'
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content InitHostCEC - vchiq_initialise succeeded
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content InitHostCEC - vchi_initialise succeeded
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content InitHostCEC - vchi_connect succeeded
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
CEC DEBUG: got log callback
CEC DEBUG: GIL acquired
CEC DEBUG: Message level 16
CEC DEBUG: Message time 0
CEC DEBUG: Message content logical address changed to Broadcast (f)
CEC DEBUG: argument PyObject created
CEC DEBUG: Triggering event 1
CEC DEBUG: Event trigger done
Segmentation fault

Did I missed something on the process ?

Sorry for this long post !

Regards

@ahendrix
Copy link
Contributor

ahendrix commented Feb 5, 2014

The master and devel branches are currently broken.

I strongly suggest you use the 0.1.1 or 0.1.0 release tags as suggested in the README.

@Romalouz
Copy link
Author

Romalouz commented Feb 5, 2014

Thanks for your fast reply.
Using release 0.1.0 did the trick for raspberry.

Your project is very good, thank you for the hard work !

Regards,

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

No branches or pull requests

2 participants