Fedora Linux Support Community & Resources Center
  #1  
Old 9th May 2012, 06:11 PM
katastrophal Offline
Registered User
 
Join Date: Jan 2010
Posts: 87
linuxfirefox
ClutterGst Segfaulting

I'm at a loss. This is the first time I've tried python and gtk and I don't know what's wrong. This code is based on the video tutorials at http://vimeo.com/26452876

I've tried it myself and it kept segfaulting, I've typed it from the video -letter-by-letter- and it still segfaults. I'm on Fedora 17 and don't know what's wrong. This code should just paint the window (built with glade: 2 boxes, a play button and a progress bar), set up a clutter stage and show that to me. As soon as I import ClutterGst or initialize it, it segfaults... What's wrong with that?

Code:
#!/usr/bin/env python

from gi.repository import Gtk, Clutter, GtkClutter, ClutterGst
import os, sys

UI_FILE = "Video-Player.ui"

class VideoPlayer:
    def __init__(self):
        self.builder = Gtk.Builder()
        self.builder.add_from_file(UI_FILE)
        self.builder.connect_signals(self)

        self.progress = self.builder.get_object('progress')
        self.button = self.builder.get_object('button')
        
        clutter_widget = GtkClutter.Embed()
        clutter_widget.set_size_request(600, 400)
        
        self.videotexture = ClutterGst.VideoTexture()
        
        stage = clutter_widget.get_stage()
        stage.set_color(Clutter.Color())
        
        stage.add_actor(self.videotexture)
        stage.show_all()
        
        box = self.builder.get_object('box')
        box.add(clutter_widget)
        box.reorder_child(clutter_widget, 0)
        
        
        self.window = self.builder.get_object('window')
        self.window.show_all()
        
    def destroy(self, window):
        Gtk.main_quit
        
def main():
    GtkClutter.init(sys.argv)
    ClutterGst.init(sys.argv)
    app = VideoPlayer()
    Gtk.main()
    
if __name__ == "__main__":
    sys.exit(main())
Reply With Quote
  #2  
Old 19th June 2012, 02:11 PM
davideddu Offline
Registered User
 
Join Date: Jun 2012
Location: Italy
Posts: 1
linuxubuntuchrome
Angry Re: ClutterGst Segfaulting

I have the same problem with Ubuntu. I have installed all the packages. It worked some time ago, but it doesn't work any more...
Reply With Quote
Reply

Tags
cluttergst, segfaulting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F10 -> F11 preupgrade, anaconda segfaulting Mick.Ohrberg Installation and Live Media 1 25th September 2009 04:50 AM
nvidia GLX segfaulting: Blender raschko Using Fedora 4 8th July 2009 10:15 PM


Current GMT-time: 19:22 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat