[Bug 359857] Re: blt does not work as currently packaged

2014-07-08 Thread Matthias Klose
works in at least 14.04 LTS

** Changed in: blt (Ubuntu)
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/359857

Title:
  blt does not work as currently packaged

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bkchem/+bug/359857/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 359857] Re: blt does not work as currently packaged

2013-08-30 Thread Bug Watch Updater
** Changed in: blt (Debian)
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/359857

Title:
  blt does not work as currently packaged

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bkchem/+bug/359857/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 359857] Re: blt does not work as currently packaged

2010-06-16 Thread Brian Murray
** Tags added: patch

-- 
blt does not work as currently packaged
https://bugs.launchpad.net/bugs/359857
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 359857] Re: blt does not work as currently packaged

2010-06-16 Thread pauljohn32
Zoomstack patch from Fedora

** Patch added: "blt patch for zoomstack"
   http://launchpadlibrarian.net/50440158/blt2.4z-zoomstack.patch

-- 
blt does not work as currently packaged
https://bugs.launchpad.net/bugs/359857
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 359857] Re: blt does not work as currently packaged

2010-06-16 Thread pauljohn32
I agree with Gertjan. The Ubuntu packages do not fix this problem.

I learned that the Fedora team has a solution. They added the 2 attached
patches on January 10,2010.

blt2.4z-tk8.5.6-patch
blt2.4z-zoomstack.patch

I've applied their patches to Ubuntu's blt source and after that, blt
works with tcl/tk 8.5.  The smaller patch, for ZoomStack, does not apply
cleanly and I had to do that manually, but the big one, applies without
a fight to the blt tree you get from "apt-get source blt".

It appears this board will allow me only one attachment. Now I attach 
blt2.4z-tk8.5.6-patch 
 for your convenience. Will send the other in a separate message.

** Attachment added: "blt patch for pixmap/render crashes"
   http://launchpadlibrarian.net/50439736/blt2.4z-tk8.5.6-patch

-- 
blt does not work as currently packaged
https://bugs.launchpad.net/bugs/359857
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 359857] Re: blt does not work as currently packaged

2010-06-11 Thread Gertjan
Daniel,

Can you tell me what has been fixed ?  Running /usr/../demo/barchart1.tcl on 
Lucid with 2.4z-4.2 installed still gives me the segfault when trying to zoom, 
as reported by the first author of this bug.
It looks like by default Lucid pulls in tk/tcl 8.4, and its against that 
version that BLT crashes.
I tried rebuilding the .deb and using the fixed by Carlos Vidal references 
above, but it makes no diferrence. I am not sure this is the same issue .  
Getting BLT on an LTS platform is important to us, I am happy to experiment if 
you give me some pointers.

Gertjan

-- 
blt does not work as currently packaged
https://bugs.launchpad.net/bugs/359857
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 359857] Re: blt does not work as currently packaged

2010-06-04 Thread Daniel Leidert
Fixed in blt 2.4z-4.2.

** Changed in: bkchem (Ubuntu)
   Status: New => Fix Released

-- 
blt does not work as currently packaged
https://bugs.launchpad.net/bugs/359857
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 359857] Re: blt does not work as currently packaged

2009-11-11 Thread Gene Hilton
I can also confirm that Bills patch fixes the python blt plotting
problem I reported in https://bugs.launchpad.net/ubuntu/+source/python-
pmw/+bug/305211 .  Thanks!

-- 
blt does not work as currently packaged
https://bugs.launchpad.net/bugs/359857
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 359857] Re: blt does not work as currently packaged

2009-09-12 Thread Daniel Leidert
I can confirm, that Bills patch "fixes" some of the crashes in which I
saw the mixture of tcl/tk 8.4/8.5. Examples: all crash reports against
bkchem in Debian and Ubuntu.

-- 
blt does not work as currently packaged
https://bugs.launchpad.net/bugs/359857
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 359857] Re: blt does not work as currently packaged

2009-09-11 Thread Bill Metzenthen
I suspect that you (pauljohn32) have made a typo in your posting, but
just to reiterate, my patch causes tcl/tk 8.5 to load libBLT.2.4.so.8.5
instead of the incorrect libBLT.2.4.so.8.4 (i.e. it doesn't change the
version of tcl/tk which is loaded).

I haven't worked through the building of BLT to see what the differences
are between libBLT.2.4.so.8.4 and libBLT.2.4.so.8.5 so I don't know if
my patch affects the anti-aliased fonts problem at all.  In my case the
problem was that I was getting a segfault in Blt_Init.  I didn't dig
down to find out exactly what was happening to cause the segfault.

-- 
blt does not work as currently packaged
https://bugs.launchpad.net/bugs/359857
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 359857] Re: blt does not work as currently packaged

2009-09-11 Thread pauljohn32
I have not tried that fix, but I've been meaning to point out what I
learned in the Fedora/RedHat bug tracker on this same problem.  Go here

https://bugzilla.redhat.com/show_bug.cgi?id=504388

Look for a post by Carlos Vidal.  He shows that if you hack two lines in
blt, you can stop it from crashing.  The problem that affects most of us
is that blt is using some outmoded approaches to draw text and the
tcl/tk group refuses to repair those components, they insist instead we
should do things differently.

I believe your patch is achieving the same result. By telling your
system to use the older tcl/tk, you are avoiding the use of the fancy
fontwork.

I made RPMs for blt after applying that patch, I probably can make deb
too for Ubun/Debian users.

I wrote directly to the BLT author about this several months ago, and
did not get an answer.  So the entirety of my knowledge is now on
display for you!

To ghowl...@grandecom.net, g...@siliconmetrics.com

Hello, how are you doing?

I haven't found any guidance about whether BLT can be adapted to tk 8.5
and anti aliased fonts. So I'm asking the expert.

We have use BLT for years in the Swarm Simulation System
(www.swarm.org).  User issues have developed with tk8.5. If tk is not
compiled with "--disable-xft", then programs that use BLT almost
invariably crash.  I bet you know this already--its some issue about
text can't be written on a bitmap of depth 1 using xft.  I found a few
posts about it.

I've tried the simple fix of going through the Blt code and changing all of the 
places where the depth of anything is set to 1 to some higher value like 8 or 
24, but I still get crashes.  Running in the debugger seems to indicate the 
problem is especially likely in writing in margins, where text is rotated.
If you can help us by speaking up on this, we would be grateful.

Programs crash like this:

$ ./heatbugs
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  151 (RENDER)
  Minor opcode of failed request:  4 (RenderCreatePicture)
  Serial number of failed request:  3758
  Current serial number in output stream:  3764


is caused by a bug in tcl/tk 8.5 that is triggered by usage of Tk_DrawChars() 
in blt.  I gather that one of the significant improvements in tk 8.5 is support 
for xft fonts, and it turns out that the bug is caused by usage of xft fonts.
The workaround for now is to recompile tcl/tk with --disable-xft.  That makes 
the fonts uglier, but after that Swarm programs do not crash anymore!


Apparently, this problem has been known since 2007.
Joe English, one of the Tk maintainers, says "The preferred solution is to not 
call Tk_DrawChars() on drawables of depth 1. This is preferable in any event, 
so that compositing will work."  
(http://objectmix.com/tcl/303826-8-5b3-linked-against-x11.html) It could be 
that means they will refuse to fix Tk, and blt will have to change...


There is an example tcl program in that note that can be used to test blt and 
tk.

It is simple. Put this in a file "blttest.tcl"

#! /usr/bin/wish
package require Tclx
package require BLT
namespace import blt::*
tabset .ts -side left -rotate 90 -activebackground green
.ts insert end .tstab -text "Test"
pack .ts


In this post:

December 10, 2007:
How --enable-xft breaks backwards compatibility - ObjectMix Forum
http://objectmix.com/tcl/313024-how-enable-xft-breaks-backwards-compatibility.html

"Another solution is to pass a full-depth Pixmap to Tk_DrawChars()
instead of a Bitmap. Extensions will generally want to do this
anyway so that compositing works properly."


April 7, 2009
[Xquartz-dev] X Error
http://lists.macosforge.org/pipermail/xquartz-dev/2009-April/002252.html

This explains the tk problem, says we should look for pixmaps of depth 1
and change to 8.  But toward the end it says there is a deeper X11
problem.


** Bug watch added: Red Hat Bugzilla #504388
   https://bugzilla.redhat.com/show_bug.cgi?id=504388

-- 
blt does not work as currently packaged
https://bugs.launchpad.net/bugs/359857
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 359857] Re: blt does not work as currently packaged

2009-09-11 Thread Bill Metzenthen
First, I should declare that I don't know much about the internal
workings of Python, Tcl, or BLT.

This bug has been stopping one of my programs from working.  Waiting for
a fix to appear demonstrably didn't work :-( hence I have tackled the
problem with a brute force approach and have found a solution which
works for me.  Others can judge whether it is the correct solution.

Starting from the top, I found that in my case the sequence was like this:
Python calls Pmw.ButtonBox
Pmw.ButtonBox calls Pwm._checkForBlt, which calls Tcl (via Tk) ('package', 
'require', 'BLT')
Tcl goes through its magic and calls Blt_Init in libBLT.2.4.so.8.4
Boom!

I noticed something suspicious when I got this far into the bowels: The
current Ubuntu version of BLT installs libBLT.2.4.so.8.4 and
libBLT.2.4.so.8.5, which are presumably meant to be used with tcl8.4 and
tcl8.5 respectively.  A bit of digging showed that Pmw was using tcl8.5.
The question then was why was Blt using the wrong version?  More brute-
forcing showed that libBLT.2.4.so.8.4 was being loaded because
/usr/lib/blt2.4/pkgIndex.tcl said to.

I haven't done any coding in Tcl for some time but it didn't take much
skill to see that /usr/lib/blt2.4/pkgIndex.tcl doesn't appear to know
about tcl8.5.  It appears that whoever maintains BLT has forgotten to
update library/pkgIndex.tcl.in in the sources.  By making the following
change (and installing the updated /usr/lib/blt2.4/pkgIndex.tcl which
results) I have managed to get my Python program work again ;-)

$ diff -u blt-2.4z/library/pkgIndex.tcl.in~  blt-2.4z/library/pkgIndex.tcl.in
--- blt-2.4z/library/pkgIndex.tcl.in~   2009-09-11 18:38:35.0 +1000
+++ blt-2.4z/library/pkgIndex.tcl.in2009-09-11 18:33:37.0 +1000
@@ -15,8 +15,10 @@
 set taillib ${version}.so.8.2
 } elseif {[package vcompare [info tclversion] 8.4] < 0} {
 set taillib ${version}.so.8.3
-} else {
+} elseif {[package vcompare [info tclversion] 8.5] < 0} {
 set taillib ${version}.so.8.4
+} else {
+set taillib ${version}.so.8.5
 }

 if { [info commands tk] == "tk" } {

-- 
blt does not work as currently packaged
https://bugs.launchpad.net/bugs/359857
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 359857] Re: blt does not work as currently packaged

2009-06-08 Thread Bug Watch Updater
** Changed in: blt (Debian)
   Status: Unknown => New

-- 
blt does not work as currently packaged
https://bugs.launchpad.net/bugs/359857
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 359857] Re: blt does not work as currently packaged

2009-06-08 Thread Daniel Leidert
** Bug watch added: Debian Bug tracker #524149
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524149

** Also affects: blt (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524149
   Importance: Unknown
   Status: Unknown

-- 
blt does not work as currently packaged
https://bugs.launchpad.net/bugs/359857
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 359857] Re: blt does not work as currently packaged

2009-06-08 Thread Daniel Leidert
** Also affects: bkchem (Ubuntu)
   Importance: Undecided
   Status: New

-- 
blt does not work as currently packaged
https://bugs.launchpad.net/bugs/359857
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 359857] Re: blt does not work as currently packaged

2009-05-26 Thread Daniel Leidert
Several packages are affected. Related reports are:

https://bugs.launchpad.net/ubuntu/+source/bkchem/+bug/380346 (+ duplicates)
https://bugs.launchpad.net/ubuntu/+source/python-pmw/+bug/305211
https://bugs.launchpad.net/ubuntu/+source/python-pmw/+bug/370657
http://bugs.debian.org/blt (both)

This should been fixed/triaged asap, because it makes several
packages/applications unusable.

-- 
blt does not work as currently packaged
https://bugs.launchpad.net/bugs/359857
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs