Bug 402 (sopcast-player)

Summary: Review request: sopcast-player - A GUI front-end to SopCast
Product: Package Reviews Reporter: Orcan Ogetbil <oget.fedora>
Component: Review RequestAssignee: RPM Fusion Package Review <rpmfusion-package-review>
Status: RESOLVED WONTFIX    
Severity: normal CC: chris, hobbes1069, jason.scheunemann, rpmfusion-package-review
Priority: P5    
Version: Current   
Hardware: All   
OS: GNU/Linux   
URL: http://code.google.com/p/sopcast-player/
namespace:
Bug Depends on: 391, 392    
Bug Blocks:    

Description Orcan Ogetbil 2009-02-22 20:07:51 CET
SPEC: http://oget.fedorapeople.org/review/sopcast-player.spec
SRPM: http://oget.fedorapeople.org/review/sopcast-player-0.2.1-2.fc10.src.rpm
Description:
SopCast Player is designed to be an easy to use Linux GUI front-end for the p2p
streaming technology developed by SopCast. SopCast Player features an
integrated video player, a channel guide, and bookmarks. Once SopCast Player is
installed it simply "just works" with no required configuration.

Rpmlint: 
Silent

Why rpmfusion:
This one depends on sp-auth, which is nonfree.
Comment 1 Orcan Ogetbil 2009-06-12 07:49:34 CEST
SPEC: http://oget.fedorapeople.org/review/sopcast-player.spec
SRPM: http://oget.fedorapeople.org/review/sopcast-player-0.3.0-1.fc11.src.rpm

changelog - 0.3.0-1
- New upstream release
Comment 2 Chris Nolan 2009-06-13 18:22:15 CEST
(In reply to comment #1)
> SPEC: http://oget.fedorapeople.org/review/sopcast-player.spec
> SRPM: http://oget.fedorapeople.org/review/sopcast-player-0.3.0-1.fc11.src.rpm
> 
> changelog - 0.3.0-1
> - New upstream release
> 

Builds fine here on F11 x86_64 but can't install - missing dependency python-vlc. This package doesn't seem to exist any more in F11 - any ideas?
Comment 3 Orcan Ogetbil 2009-06-13 18:32:33 CEST
It used to be a subpackage of vlc but it was dropped from the vlc tarball.

But I packaged it separately. Look above at the "Depends On" list. We are waiting for Nicolas to finish the review.
Comment 4 Chris Nolan 2009-06-13 18:44:27 CEST
(In reply to comment #2)
> 
> Builds fine here on F11 x86_64 but can't install - missing dependency
> python-vlc. This package doesn't seem to exist any more in F11 - any ideas?
> 

My bad, just seen that python-vlc is also still pending review. 

I built and installed both this and python-vlc and found that sopcast-player crashes on F11 x86_64 (I was using the official sp-auth from F10 release):

$ sopcast-player 
Instantiating mediacontrol
Inbound Port: 8884
Outbound Port: 56364
Traceback (most recent call last):
  File "/usr/share/sopcast-player/lib/sopcast-player.py", line 728, in on_open_sop_address_activate
    self.play_channel(entry.get_text())
  File "/usr/share/sopcast-player/lib/sopcast-player.py", line 1249, in play_channel
    self.fork_sop.fork_sop(self.channel_url, str(self.inbound_port), str(self.outbound_port))
  File "/usr/share/sopcast-player/lib/fork.py", line 51, in fork_sop
    os.execlp("sp-sc", "sp-sc", self.sop_address, self.inbound_port, self.outbound_port)
  File "/usr/lib64/python2.6/os.py", line 327, in execlp
    execvp(file, args)
  File "/usr/lib64/python2.6/os.py", line 344, in execvp
    _execvpe(file, args)
  File "/usr/lib64/python2.6/os.py", line 380, in _execvpe
    func(fullname, *argrest)
OSError: [Errno 2] No such file or directory
python: xcb_io.c:242: process_responses: Assertion `(((long) (dpy->last_request_read) - (long) (dpy->request)) <= 0)' failed.
python: xcb_io.c:242: process_responses: Assertion `(((long) (dpy->last_request_read) - (long) (dpy->request)) <= 0)' failed.
Multiple segmentation faults occurred; can't display error dialog
[cnolan@macbook ~]$ The program 'sopcast-player.py' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadDrawable (invalid Pixmap or Window parameter)'.
  (Details: serial 2107 error_code 9 request_code 53 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Comment 5 Orcan Ogetbil 2009-06-13 18:54:56 CEST
Please try the new sp-auth package I made. sopcast-player is looking for the /usr/bin/sp-sc executable and it fails to start when /usr/bin/sp-sc can't be found. The first attempt of sp-auth package (the one you probably have right now) only provides /usr/bin/sp-sc-auth. So I made a symlink to it on the last one.
Comment 6 Chris Nolan 2009-06-13 18:59:32 CEST
(In reply to comment #5)
> Please try the new sp-auth package I made. sopcast-player is looking for the
> /usr/bin/sp-sc executable and it fails to start when /usr/bin/sp-sc can't be
> found. The first attempt of sp-auth package (the one you probably have right
> now) only provides /usr/bin/sp-sc-auth. So I made a symlink to it on the last
> one.
> 

I was using the sp-auth from the google code page (worked fine in F10 along with the RPM for sopcast-player also available on that page). sopcast did actually start but it spewed the above error when I tried to watch a channel. 

I can't build your most recent sp-auth package because I don't have a 32bit build environment.
Comment 7 Orcan Ogetbil 2009-06-13 19:16:49 CEST
You can build the rpm on F-10 with
   rpmbuild -ba --target i386 sp-auth.spec
or on F-11 with
   rpmbuild -ba --target i586 sp-auth.spec

Or you can make the symlink yourself (as root):
   ln -s sp-sc-auth /usr/bin/sp-sc
Comment 8 Chris Nolan 2009-06-13 19:29:32 CEST
(In reply to comment #7)
> You can build the rpm on F-10 with
>    rpmbuild -ba --target i386 sp-auth.spec
> or on F-11 with
>    rpmbuild -ba --target i586 sp-auth.spec

Great, that did the trick - built and installed all the RPMs and sopcast-player is running okay, but I get no video displayed:

$ sopcast-player 
Instantiating mediacontrol
Inbound Port: 19995
Outbound Port: 53412
*** Unable to locate valid config! Falling back to auto-detection...
*** Unable to locate PAC! Falling back to direct...

--------------------------------------------------
Then when I actually close the window it crashes out and the sopcast and sp-auth processes need killing manually:

Traceback (most recent call last):
  File "/usr/share/sopcast-player/lib/sopcast-player.py", line 1306, in on_exit
    config_manager.write()
  File "/usr/share/sopcast-player/lib/ConfigurationManager.py", line 47, in write
    config.set(section_name, attribute_name, self.__escape(str(attribute_value)))
  File "/usr/lib64/python2.6/ConfigParser.py", line 668, in set
    "position %d" % (value, m.start()))
ValueError: invalid interpolation syntax in 'mplayer -ontop -geometry 100%%%%:100%%%%' at position 31
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib64/python2.6/threading.py", line 522, in __bootstrap_inner
    self.run()
  File "/usr/share/sopcast-player/lib/sopcast-player.py", line 135, in run
    self.parent.update_statusbar("%s" % _("Connecting"))
  File "/usr/share/sopcast-player/lib/sopcast-player.py", line 1350, in update_statusbar
    self.status_bar.push(1, text)
AttributeError: 'NoneType' object has no attribute 'push'
Comment 9 Orcan Ogetbil 2009-06-13 20:12:05 CEST
(In reply to comment #8)
> (In reply to comment #7)
> > You can build the rpm on F-10 with
> >    rpmbuild -ba --target i386 sp-auth.spec
> > or on F-11 with
> >    rpmbuild -ba --target i586 sp-auth.spec
> 
> Great, that did the trick - built and installed all the RPMs and sopcast-player
> is running okay, but I get no video displayed:
> 

Some channels work for me rightaway. I have to wait a little with some of them. Some don't work.

> $ sopcast-player 
> Instantiating mediacontrol
> Inbound Port: 19995
> Outbound Port: 53412
> *** Unable to locate valid config! Falling back to auto-detection...
> *** Unable to locate PAC! Falling back to direct...
> 
> --------------------------------------------------
> Then when I actually close the window it crashes out and the sopcast and
> sp-auth processes need killing manually:
> 

This happens here too. It needs to be reported upstream.
Comment 10 Orcan Ogetbil 2009-11-22 23:30:55 CET
SPEC: http://oget.fedorapeople.org/review/sopcast-player.spec
SRPM: http://oget.fedorapeople.org/review/sopcast-player-0.3.2-1.fc11.src.rpm

changelog - 0.3.2-1
- New upstream release
Comment 12 Jason Scheunemann 2009-12-30 12:27:43 CET
(In reply to comment #9)
> (In reply to comment #8)
> > (In reply to comment #7)
> > > You can build the rpm on F-10 with
> > >    rpmbuild -ba --target i386 sp-auth.spec
> > > or on F-11 with
> > >    rpmbuild -ba --target i586 sp-auth.spec
> > 
> > Great, that did the trick - built and installed all the RPMs and sopcast-player
> > is running okay, but I get no video displayed:
> > 
> 
> Some channels work for me rightaway. I have to wait a little with some of them.
> Some don't work.
> 
> > $ sopcast-player 
> > Instantiating mediacontrol
> > Inbound Port: 19995
> > Outbound Port: 53412
> > *** Unable to locate valid config! Falling back to auto-detection...
> > *** Unable to locate PAC! Falling back to direct...
> > 
> > --------------------------------------------------
> > Then when I actually close the window it crashes out and the sopcast and
> > sp-auth processes need killing manually:
> > 
> 
> This happens here too. It needs to be reported upstream.
> 
The above issue is linked to VLC. Steps to replicate the problem is to use SopCast Player in default mode (uses embedded vlc). Steps to ensure it is not an issue with SopCast Player is to configure to use an external player (such as MPlayer) to make sure SopCast Player no longer links with VLC. In the external player configuration I am not able to replicate the problem.
Comment 14 Orcan Ogetbil 2010-10-07 05:20:23 CEST
Since I dropped the sp-auth review request, this comes next. I'm closing the bug. Feel free to pick it up and revive.