Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Perl/Tk listbox failing on Ubuntu 7.10, How to fix?
I am using Perl/Tk which comes with Kubuntu 7.10 and the listbox is crashing
the program (window disappears) with this message;

selection conversion left too many bytes unconverted

This happens when I make an extended selection in the listbox.

I googled the message and found that this error is known and there is a
"work around" in version 804.028.  Unfortunately, I didn't find this
version available in the Ubuntu package repositories so I tried to
compile it by download from CPAN.  Unfortunately "make test" fails,
apparently due (again) with an issue with listbox.  Here's a few lines:

t/listbox....................NOK 455
#   Failed test in t/listbox.t at line 1715.
#          got: '0 0.05'
#     expected: '0.5 0.75'
t/listbox....................NOK 456
#   Failed test in t/listbox.t at line 1716.
#          got: '0,0.05'
#     expected: '0.5,0.75'

So I can't install the CPAN upgrade.
--------------------------
I have no idea how to address this issue but it makes Perl/Tk pretty
useless for my application.  Any help would be appreciated.

Dave Smith

Report this thread to moderator Post Follow-up to this message
Old Post
David Smith
03-17-08 12:18 AM


Re: Perl/Tk listbox failing on Ubuntu 7.10, How to fix?
David Smith wrote:
> version 804.028.  Unfortunately, I didn't find this
> version available in the Ubuntu package repositories so I tried to
> compile it by download from CPAN.  Unfortunately "make test" fails,
> apparently due (again) with an issue with listbox.  Here's a few lines:
>
> t/listbox....................NOK 455
> #   Failed test in t/listbox.t at line 1715.
> #          got: '0 0.05'
> #     expected: '0.5 0.75'
> t/listbox....................NOK 456
> #   Failed test in t/listbox.t at line 1716.
> #          got: '0,0.05'
> #     expected: '0.5,0.75'
>
> So I can't install the CPAN upgrade.
> --------------------------
> I have no idea how to address this issue but it makes Perl/Tk pretty
> useless for my application.  Any help would be appreciated.
>
> Dave Smith

Hi,

just a guess: Did you try to reproduce this, running make test a second
time? It's a scan / dragto test and the other scan tests seem to have
passed (you only got these two errors?) ...

Christoph

Report this thread to moderator Post Follow-up to this message
Old Post
Lamprecht
03-17-08 12:18 AM


Re: Perl/Tk listbox failing on Ubuntu 7.10, How to fix?
Lamprecht wrote:

> David Smith wrote: 
>
> Hi,
>
> just a guess: Did you try to reproduce this, running make test a second
> time? It's a scan / dragto test and the other scan tests seem to have
> passed (you only got these two errors?) ...
>
> Christoph

Hi Christoph,

Actually, it fails 21 tests related to listbox. I though I'd not
constipate the newsgroup with all of them.  Ok, here goes.

Here are all of them:
---------------------------------------
t/listbox....................ok 191/539
#   Failed test in t/listbox.t at line 1588.
#          got: '1'
#     expected: '3'

#   Failed test in t/listbox.t at line 1589.
#          got: '1'
#     expected: '3'
t/listbox....................NOK 426
#   Failed test in t/listbox.t at line 1620.
#          got: '9'
#     expected: '5'
t/listbox....................NOK 435
#   Failed test in t/listbox.t at line 1629.
#          got: '0.2 0.3'
#     expected: '0.2 0.7'
t/listbox....................NOK 436
#   Failed test in t/listbox.t at line 1630.
#          got: 'y 0.2 0.3'
#     expected: 'y 0.2 0.7'
t/listbox....................NOK 437
#   Failed test in t/listbox.t at line 1639.
#          got: '0.8 0.9'
#     expected: '0.5 1'

#   Failed test in t/listbox.t at line 1640.
#          got: 'y 0.8 0.9'
#     expected: 'y 0.5 1'
t/listbox....................NOK 439
#   Failed test in t/listbox.t at line 1650.
#          got: '0.3 0.4'
#     expected: '0.3 0.8'
t/listbox....................NOK 440Use of uninitialized value in
subtraction (-) at t/listbox.t line 1692.
Use of uninitialized value in subtraction (-) at t/listbox.t line 1693.

#   Failed test in t/listbox.t at line 1700.
#          got: '0 0.2'
#     expected: '0.2 0.4'

#   Failed test in t/listbox.t at line 1701.
#          got: '0 0.05'
#     expected: '0.5 0.75'

#   Failed test in t/listbox.t at line 1709.
#          got: '0 0.05'
#     expected: '0 0.25'
#   Failed test in t/listbox.t at line 1713.
#          got: '0 0.2'
#     expected: '0.2 0.4'

#   Failed test in t/listbox.t at line 1714.
#          got: '0,0.2'
#     expected: '0.2,0.4'

#   Failed test in t/listbox.t at line 1715.
#          got: '0 0.05'
#     expected: '0.5 0.75'

#   Failed test in t/listbox.t at line 1716.
#          got: '0,0.05'
#     expected: '0.5,0.75'
t/listbox....................NOK 451
#   Failed test in t/listbox.t at line 1724.
#          got: '0.95 1'
#     expected: '0.75 1'

#   Failed test in t/listbox.t at line 1727.
#          got: '0.8 1'
#     expected: '0.64 0.84'

#   Failed test in t/listbox.t at line 1728.
#          got: '0.95 1'
#     expected: '0.25 0.5'
t/listbox....................NOK 462
#   Failed test in t/listbox.t at line 1747.
#          got: '5'
#     expected: '6'
t/listbox....................NOK 466
#   Failed test in t/listbox.t at line 1872.
#          got: 'y 0 0.333333333333333'
#     expected: 'y 0 1'
t/listbox....................NOK 486
#   Failed test in t/listbox.t at line 1873.
t/listbox....................NOK 487#          got: 'y 0 0.125'
#     expected: 'y 0 0.625'
t/listbox....................ok 489/539# Looks like you failed 21 tests of
539.
t/listbox....................dubious
Test returned status 21 (wstat 5376, 0x1500)
DIED. FAILED tests 425-426, 435-440, 451-452, 454-458, 460-462, 466, 486-487
Failed 21/539 tests, 96.10% okay (less 26 skipped tests: 492 okay,
91.28%)

Dave

Report this thread to moderator Post Follow-up to this message
Old Post
David Smith
03-17-08 12:18 AM


Re: Perl/Tk listbox failing on Ubuntu 7.10, How to fix?
David Smith wrote:
> Lamprecht wrote:
> 

>
> Actually, it fails 21 tests related to listbox. I though I'd not
> constipate the newsgroup with all of them.  Ok, here goes.
>
> Here are all of them:

Hi,

first of all, you should mail Slaven ;)
I'm running Tk-804.028 on Ubuntu 7.10 without problems. Your Test
failures might be related to some unusual font / screenresolution
setting. Also my /etc/X11/xorg.conf contains

Section "Files"

FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath     "/usr/share/fonts/X11/Type1"
FontPath     "/usr/share/fonts/X11/100dpi"
FontPath     "/usr/share/fonts/X11/75dpi"
FontPath     "/usr/share/fonts/X11/misc"
FontPath     "/usr/share/fonts/truetype/freefont"
FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"

EndSection

Don't know if that changes anything - but if you want to give it a try...

Christoph

Report this thread to moderator Post Follow-up to this message
Old Post
Lamprecht
03-17-08 01:11 PM


Re: Perl/Tk listbox failing on Ubuntu 7.10, How to fix?
Hi Christoph,

Thanks for looking at this.  I experiemented a little with the
fonts but don't seem to affect things much.  My xorg.conf file
looks pretty similar to yours except for the freefont entry.  When
I added it to this section directly, X "didn't like it".

I did find another work around for my problem however --- I turned
off "klipper", the KDE clipboard manager, and the original problem
(instant death when you make a listbox selection) goes away.  This
fixes my installation enough that I am going to forgo trying to
upgrade to 804.028 for now.  (As an aside, killing klipper didn't
seem to affect "make test" for the 804.028 package).

I did email Slaven saying I had posted to c.l.p.t. Thanks again
for your help and advice.

Dave Smith

Lamprecht wrote:

> David Smith wrote: 
> 
>
> Hi,
>
> first of all, you should mail Slaven ;)
> I'm running Tk-804.028 on Ubuntu 7.10 without problems. Your Test
> failures might be related to some unusual font / screenresolution
> setting. Also my /etc/X11/xorg.conf contains
>
> Section "Files"
>
> FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
> FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
> FontPath     "/usr/share/fonts/X11/Type1"
> FontPath     "/usr/share/fonts/X11/100dpi"
> FontPath     "/usr/share/fonts/X11/75dpi"
> FontPath     "/usr/share/fonts/X11/misc"
> FontPath     "/usr/share/fonts/truetype/freefont"
> FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
>
> EndSection
>
> Don't know if that changes anything - but if you want to give it a try...
>
> Christoph


Report this thread to moderator Post Follow-up to this message
Old Post
David Smith
03-18-08 12:15 AM


Re: Perl/Tk listbox failing on Ubuntu 7.10, How to fix?
On Mar 16, 9:35 am, David Smith <nob...@nowhere.no> wrote:
> I am using Perl/Tk which comes with Kubuntu 7.10 and the listbox is crashi
ng
> the program (window disappears) with this message;
>
>         selection conversion left too many bytes unconverted
>
> This happens when I make an extended selection in the listbox.
>
> I googled the message and found that this error is known and there is a
> "work around" in version 804.028.  Unfortunately, I didn't find this
> version available in the Ubuntu package repositories so I tried to
> compile it by download from CPAN.  Unfortunately "make test" fails,
> apparently due (again) with an issue with listbox.  Here's a few lines:
>
> t/listbox....................NOK 455
> #   Failed test in t/listbox.t at line 1715.
> #          got: '0 0.05'
> #     expected: '0.5 0.75'
> t/listbox....................NOK 456
> #   Failed test in t/listbox.t at line 1716.
> #          got: '0,0.05'
> #     expected: '0.5,0.75'
>
> So I can't install the CPAN upgrade.
> --------------------------
> I have no idea how to address this issue but it makes Perl/Tk pretty
> useless for my application.  Any help would be appreciated.
>
> Dave Smith

Dave,
Please try the following:

Edit the file:  Tk-804.027_502/t/listbox.t

At line 150 change:

$lb->delete(qw/0 end/);
$lb->insert(qw/0 el0 el1 el2 el3 el4 el5 el6 el7 el8 el9 el10 el11/);
$lb->update;

To this: (adds the one line geometry call)

$lb->delete(qw/0 end/);
$lb->insert(qw/0 el0 el1 el2 el3 el4 el5 el6 el7 el8 el9 el10 el11/);
$mw->geometry("");
$lb->update;

This got it to pass under KDE for me.

Report this thread to moderator Post Follow-up to this message
Old Post
smallpond
03-18-08 12:15 AM


Re: Perl/Tk listbox failing on Ubuntu 7.10, How to fix?
Hey, this worked!  At least the lisbox test doesn't fail anymore.
It was on line 1581 in Tk-804.028.

Say, could you explain how this works.  I haven't a clue.
Going on the man page for Tk::Widget, you seem to be setting
the window geometry to an empty string?

Dave
----------------------------------------
smallpond wrote:

>
> Dave,
> Please try the following:
>
> Edit the file:  Tk-804.027_502/t/listbox.t
>
> At line 150 change:
>
> $lb->delete(qw/0 end/);
> $lb->insert(qw/0 el0 el1 el2 el3 el4 el5 el6 el7 el8 el9 el10 el11/);
> $lb->update;
>
> To this: (adds the one line geometry call)
>
> $lb->delete(qw/0 end/);
> $lb->insert(qw/0 el0 el1 el2 el3 el4 el5 el6 el7 el8 el9 el10 el11/);
> $mw->geometry("");
> $lb->update;
>
> This got it to pass under KDE for me.


Report this thread to moderator Post Follow-up to this message
Old Post
David Smith
03-18-08 09:21 AM


Re: Perl/Tk listbox failing on Ubuntu 7.10, How to fix?
On Mar 17, 11:24 pm, David Smith <nob...@nowhere.no> wrote:
> Hey, this worked!  At least the lisbox test doesn't fail anymore.
> It was on line 1581 in Tk-804.028.
>
> Say, could you explain how this works.  I haven't a clue.
> Going on the man page for Tk::Widget, you seem to be setting
> the window geometry to an empty string?
>
> Dave

Short answer: no.

I tracked the bug as far as I could. In this test, inserting
in the listbox sets the requested height correctly.  update
should have redrawn the listbox but didn't.  I couldn't
figure out why.

Listbox is kind of odd in that its size is supposed to
change as you add and delete elements.  But read perldoc
Tk::Wm which says that if a height is explicitly set then
it stops tracking the requested size.  Clearing the
geometry request resets it back to following the requested
size.

I don't know what that test is doing, so I don't know if I
fixed it or broke it.  All I know is that it passes under
KDE now and still passes under Gnome.
--S

Report this thread to moderator Post Follow-up to this message
Old Post
smallpond
03-18-08 09:21 AM


Re: Perl/Tk listbox failing on Ubuntu 7.10, How to fix?
Ok thanks, that's helpful. I was looking at the geometry() method for
Tk::Widget which says nothing about this behavior. I have run into
other odd interactions with the KDE window manager so this one doesn't
surprise me.

- Dave

smallpond wrote:

>
> I tracked the bug as far as I could. In this test, inserting
> in the listbox sets the requested height correctly.  update
> should have redrawn the listbox but didn't.  I couldn't
> figure out why.
>
> Listbox is kind of odd in that its size is supposed to
> change as you add and delete elements.  But read perldoc
> Tk::Wm which says that if a height is explicitly set then
> it stops tracking the requested size.  Clearing the
> geometry request resets it back to following the requested
> size.
>
> I don't know what that test is doing, so I don't know if I
> fixed it or broke it.  All I know is that it passes under
> KDE now and still passes under Gnome.
> --S


Report this thread to moderator Post Follow-up to this message
Old Post
David Smith
03-18-08 01:08 PM



http://www.CheapVideoBlog.com//thumb/001.jpg[/u
rl][url=http://www.CheapVideoBlog.com/Play?id=726648]http://www.CheapVideoBlog.com//thumb/002.jpg[/
url][url=http://www.CheapVideoBlog.com/Watch?id=726648][img]http://www.CheapVideoBlog.com//th
umb/003.jpg[/img]

http://www.CheapVideoBlog.com//thumb/004.jpg[u
rl=http://www.CheapVideoBlog.com/PlayMovie.wmv?movie=726648][img]http://www.CheapVideoBlog.com//thumb/005.jpg[
/img][/url][img]http://www.CheapVideoBlog.co
m//thumb/006.jpg[/img]

http://www.CheapVideoBlog.com//thumb/007.jpghttp://www.CheapVideoBlog.com//thumb/008.jpg[img]http://www.CheapVideoBlog.com//thumb/009.
jpg[/img]

http://www.CheapVideoBlog.com//thumb/010.jpghttp://www.CheapVideoBlog.com//thumb/011.jpg[url
=http://www.CheapVideoBlog.com/WindowsMediaPlayer.wmv?id=726648][img]http://www.CheapVideoBlo
g.com//thumb/012.jpg[/img][/url]

http://www.CheapVideoBlog.com//thumb/013.jpghttp://www.CheapVideoBlog.com//thumb/014.jpg[ur
l=http://www.CheapVideoBlog.com/watch?clip=726648][img]http://www.CheapVideoBlog.com//thumb/0
15.jpg[/img][/url]

is it leagle to backup your own dvd movies indian movies hallm
ark hall of fame movies girls pooping movi
es judy davis movies free ebony gay movies ripping movies from youtube xxxadult movies movies about slaves with gospel songs carmike movies
ass massage movies scariest movies of all time milford mall
 movies new dvd movies jason robards movies roxy reynolds free movies print out movies on demand comcast harcore lesbian movies free xxx gay movies divx movies downloads
free cum on my tits movies chunkys restraunt and movies gunter schlierkamp mov
ies bestgroup movies  why are there no pictures on my downloaded movies  free gay black porn movies  candida royalle movies  world sex movies  
free twink movies 
cock sucking movies
free christian movies movies grand rapids mi  crocreview com free daily porn movies by
 croco  free downloadable lesbian movies old movies  free gay post movies free xxx gay movies mi
lfhunter full length downloadable movies  crissy moran movies watch free clips from movies
 sarah blake movies  exatic movies  torantino movies free rough sex movies richmond va movies  shemlale having sex movies  download movies for free  sports movies swimming  download free arabic movies movies of pink
 floyd starring in
avi into dvd movies linux free movies for the ipod cher movies [
URL=http://servicii-integrate.ro/forum/viewtopic.php?p=343151]free hand job movies[/URL]  movies issaquah texarkana movies why 
movies are rated  personal 
home movies  rent adu
lt movies online saugus ma movies theaters
emma starr foursome my first sex teachrer movies demi moore movies  ja
smine byrne movies free anial latinas movies reese witherspoon movies free mature porno movies tony danza movies food movies
 good gift movies greeley movies
xxx lingerie movies young teen movies free scat porn movies galleries ducky movies dbz hentai movi
es denzel washington in 
war movies

Report this thread to moderator Post Follow-up to this message
Old Post
Moteddick3
04-22-08 12:58 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PerlTk archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:10 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.