Your message dated Thu, 7 Jan 2010 23:40:23 +1100
with message-id <[email protected]>
and subject line Re: Bug#563140: application freezes in presentation mode if
gtk.gdk.threads_init is called
has caused the Debian Bug report #563140,
regarding application freezes in presentation mode if gtk.gdk.threads_init is
called
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
563140: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=563140
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-evince
Version: 2.28.0-5
I'm trying to write an application which makes use of both gstreamer
and python-evince - in order to get gstreamer to work properly, I need
to call gtk.gdk.threads_init() when importing modules.
This unexpectedly causes problems when using a evince.View widget in
presentation mode.
I have included below a short program which demonstrates the problem -
I can reproduce this bug in both my desktop and my laptop.
import gtk
gtk.gdk.threads_init() # commenting out this line makes the problem go away.
import evince
class EvinceWindow(gtk.Window):
def __init__(self):
super(EvinceWindow, self).__init__()
document = evince.factory_get_document(
'file:///home/flowblok/test.pdf',
)
view = evince.View()
view.set_document(document)
# view.set_screen_dpi(96)
# view.set_sizing_mode(evince.SIZING_BEST_FIT)
view.set_presentation(True)
scroll = gtk.ScrolledWindow()
scroll.add(view)
self.add(scroll)
if __name__ == '__main__':
win = EvinceWindow()
win.show_all()
win.connect('destroy', gtk.main_quit)
gtk.main()
-- System Information:
Debian Release: squeeze/sid
APT prefers testing-proposed-updates
APT policy: (500, 'testing-proposed-updates'), (500, 'unstable'),
(500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages python-evince depends on:
ii libatk1.0-0 1.28.0-1 The ATK accessibility toolkit
ii libc6 2.10.2-2 GNU C Library: Shared libraries
ii libcairo2 1.8.8-2 The Cairo 2D vector graphics libra
ii libevince1 2.28.2-1 Document (postscript, pdf) renderi
ii libfontconfig1 2.8.0-1 generic font configuration library
ii libfreetype6 2.3.11-1 FreeType 2 font engine, shared lib
ii libglib2.0-0 2.23.0-1 The GLib library of C routines
ii libgtk2.0-0 2.18.5-1 The GTK+ graphical user interface
ii libpango1.0-0 1.26.2-1 Layout and rendering of internatio
ii python 2.5.4-5 An interactive high-level object-o
ii python-gtk2 2.16.0-1 Python bindings for the GTK+ widge
ii python-support 1.0.6 automated rebuilding support for P
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
python-evince recommends no packages.
python-evince suggests no packages.
-- no debconf information
--
Peter Ward
http://identi.ca/flowblok/
http://flowblok.selfip.net:8001/
--- End Message ---
--- Begin Message ---
Okay, thanks for the assistance.
On Tue, Jan 5, 2010 at 7:51 PM, Josselin Mouette <[email protected]> wrote:
> Le mardi 05 janvier 2010 à 09:18 +1100, Peter Ward a écrit :
> > Okay, so I suppose the real question now is why I need the
> > gtk.gdk.threads_init().
> >
> > I was experiencing freezes / crashes when I added the video sink into
> > my DrawingArea, which I believe was due to the issue here:
> >
> http://sourceforge.net/mailarchive/forum.php?thread_name=1258400785.3124.106.camel%40fancy&forum_name=gstreamer-devel
> >
> > As you can see, the recommended solution there was to use the GDK
> > lock, which obviously conflicts with the solution upstream have
> > supplied. :(
>
> Upstream answered again, with a link to
> http://faq.pygtk.org/index.py?req=show&file=faq20.006.htp
>
> Cheers,
> --
> .''`. Josselin Mouette
> : :' :
> `. `' “I recommend you to learn English in hope that you in
> `- future understand things” -- Jörg Schilling
>
>
>
--
Peter Ward
http://identi.ca/flowblok/
http://flowblok.selfip.net:8001/
--- End Message ---