LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, LiMo, Maemo, MeeGo, Openmoko, Ubuntu Mobile, WebOS, Firefox OS, Open Mobile Alliance and other similar projects and products.
A reminder that LQ now has a dedicated Android sister site: AndroidQuestions.org

Notices

Reply
 
Search this Thread
Old 01-13-2011, 04:13 PM   #1
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,630
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Maemo PyQt4+Gstreamer Segfault (Python)


I'm having a strange problem on my Nokia N900, running Maemo. The code I'm running is:

Code:
#!/usr/bin/python

import sys
from PyQt4 import QtGui

import gst                          # ***
app = QtGui.QApplication(sys.argv)  # ***
When I run this, it prints "Segmentation Fault". However, if I comment out either of the two lines I marked, then it doesn't complain and terminates normally.

The fact I get a segmentation fault rather than a traceback implies to me that it's importing one or both of the libraries in compiled C/C++ form, which is then throwing the error. This means I have less of a meaningful traceback. Is there a way to use gdb (or another programme) to debug a module which I'm importing into python? Can anyone shed any light on this? This problem doesn't exist on my desktop - so I'm guessing it's something to do with the Maemo configuration (hence posting here and not in programming )
 
  


Reply

Tags
gstreamer, maemo, python, segmentation fault


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [gst-python] Python warning with gstreamer Snark1994 Programming 2 01-09-2011 09:56 AM
[SOLVED] Segfault in Python 3.x test script grail Programming 6 03-28-2010 01:18 AM
Nokia N900: Maemo vs. Android - what makes Maemo a winner? confidenceb General 3 01-06-2010 02:25 AM
Python/PyQt4 - Newbie Structure question ocularb0b Programming 0 01-28-2008 09:42 AM
Python giving SegFault Kumar Programming 2 02-16-2004 10:51 PM


All times are GMT -5. The time now is 05:19 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration