Skip Menu |

This queue is for tickets about the POE-Loop-Glib CPAN distribution.

Report information
The Basics
Id: 49798
Status: stalled
Priority: 0/
Queue: POE-Loop-Glib

People
Owner: Nobody in particular
Requestors: magnet [...] ci0.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



Subject: GTK2 example in the cookbook doesn't show anything.
Hello, I tried the first example code for GTK2 from the cookbook(http://poe.perl.org/?POE_Cookbook/Gtk2_Counter) , it run without errors, but only show an empty window. Following some tips from #poe, I added a small pause between ev_count events.It fixed the problem. I changed the last line of ui_count() from : $kernel->yield("ev_count"); to $kernel->delay("ev_count",2); I use gtk2-perl 1.203, perl 5.10.1, on linux 2.6.31(gentoo) .
Hello, Thanks for reporting this bug! The wiki page has been updated to use delay => 1 and it works for me. Glib v1.222, Gtk2 v1.221, POE v1.287, POE::Loop::Glib v0.037 -- ~Apocalypse
Subject: Re: [rt.cpan.org #49798] GTK2 example in the cookbook doesn't show anything.
Date: Mon, 22 Mar 2010 08:01:02 +0100
To: bug-POE-Loop-Glib [...] rt.cpan.org
From: Martijn van Beers <MARTIJN [...] cpan.org>
On Mon, 2010-03-22 at 00:05 -0400, Apocalypse via RT wrote: Show quoted text
> Queue: POE-Loop-Glib > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=49798 > > > Hello, > > Thanks for reporting this bug! The wiki page has been updated to use > delay => 1 and it works for me. > > Glib v1.222, Gtk2 v1.221, POE v1.287, POE::Loop::Glib v0.037 >
actually, that's the wrong solution. you shouldn't need the delay (it used to work without before)
On Mon Mar 22 03:01:21 2010, MARTIJN wrote: Show quoted text
> On Mon, 2010-03-22 at 00:05 -0400, Apocalypse via RT wrote:
> > Queue: POE-Loop-Glib > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=49798 > > > > > Hello, > > > > Thanks for reporting this bug! The wiki page has been updated to use > > delay => 1 and it works for me. > > > > Glib v1.222, Gtk2 v1.221, POE v1.287, POE::Loop::Glib v0.037 > >
> > actually, that's the wrong solution. you shouldn't need the delay (it > used to work without before) >
Argh! At least on my system, I tried various schemes and got those results: yield # Gtk2 window pops up, but no data in it and 100% cpu delay => 1 # works delay => 0.1 # works delay => 0.01 # works delay => 0.001 # same result as yield So I assume somehow the internals of Gtk/Glib/whatever can't handle the insanely fast update rate? Martijn, do you remember what version of POE/Gtk/Glib/etc worked with yield? I'l leave this ticket as stalled for now until someone with more experience in the internals of Gtk/Glib can help :) -- ~Apocalypse