Profile

unixronin: Galen the technomage, from Babylon 5: Crusade (Default)
Unixronin

December 2012

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829
3031     

Most Popular Tags

Expand Cut Tags

No cut tags
Saturday, January 2nd, 2010 05:24 pm

So I recently mentioned the provisionally-named PerlDJ, my Perl/Tk DigitalDJ clone.  What I didn't know then, and just now discovered, is that something that differs between babylon5, the machine I'm working towards reinstalling with Gentoo, and whitestar which already runs Gentoo 10.0, is causing PerlDJ to not work properly.  It seems to be something in dev-lang/tk on Gentoo.  Specifically, what's going wrong is that on Gentoo, PerlDJ blocks on the Tk interface MainLoop(), and will not come out of MainLoop() until somethingANYTHING — happens in PerlDJ's window.  It can be as simple as a focus change or even just a mouse move, but something has to happen in the window before MainLoop() will yield.

Also, on Gentoo, PerlDJ goes into an infinite loop on exit.  I'm not sure what's behind that yet.  It's kind of moot unless I can solve the UI blocking problem.

Tags:
Saturday, January 2nd, 2010 10:51 pm (UTC)
Is it possible that you built tk without thread support on Gentoo? I could see that causing the UI to block.
Saturday, January 2nd, 2010 11:18 pm (UTC)
I thought of, and checked, that.

[I] dev-lang/perl
Available versions: 5.8.8-r5 (~)5.8.8-r6 5.8.8-r8 {M}(~)5.10.1 {M}(**)5.10.1-r11[1] {berkdb build debug doc elibc_FreeBSD gdbm ithreads perlsuid}
Installed versions: 5.10.1-r11[1](20:49:36 11/10/09)(berkdb gdbm ithreads -build -debug -doc)
Homepage: http://www.perl.org/
Description: Larry Wall's Practical Extraction and Report Language
[I] dev-perl/perl-tk
Available versions: 804.028-r2
Installed versions: 804.028-r2(12:19:44 11/10/09)
Homepage: http://search.cpan.org/dist/Tk/
Description: A Perl Module for Tk
[I] dev-lang/tk
Available versions: 8.4.15-r1 8.4.18 8.4.18-r1 ~8.4.19-r1 8.5.7 ~8.5.7-r1 {debug threads truetype}
Installed versions: 8.5.7(19:02:13 12/12/09)(threads truetype -debug)
Homepage: http://www.tcl.tk/
Description: Tk Widget Set
Sunday, January 3rd, 2010 01:14 pm (UTC)
Instead of "PerlDJ", "DJPerl" has more of a ring to it -- just sayin'.