Hi TLCers,
I experienced a strange problem with in Tk's canvas.
I'm working on a dxf viewing program and am drawing many lines, circles, e.g.
.mf.frame.pw.f0.frame.sw.c create line 347.007250 -247.562322 \ 302.794127 -247.562322 -fill #ff0000 \
-dash {2 2 3 2 2 2 2 2 2 2 3 2 2 2 2 2 2 2 1 2} -tags *
.. and after many such commands I get the error:
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 55 (X_CreateGC)
Value in failed request: 0x1a000b2
Serial number of failed request: 1204
Current serial number in output stream: 1205
There is no fixed location where it crashes and there seems to be some timing depending behavior.
If I put a delay before the drawing command, it crashes on other locations and sometime it does not crash.
Code part:
puts $b
after 10
{*}$b
puts ok
When removing the delay, it crashes very soon.
It also seems to depend on using the -dash option, because when I remove this option the program does not crash (at least in my tries - also without the delay).
Any ideas where to check?
Any hints for analyzing the problematic point?
Where to place a bug report (if it is one)?
On Tuesday, July 17, 2012 1:38:55 PM UTC-5, Gerhard Reithofer wrote:
> Hi TLCers,
> I experienced a strange problem with in Tk's canvas.
> I'm working on a dxf viewing program and am drawing many lines, circles, > e.g.
> .mf.frame.pw.f0.frame.sw.c create line 347.007250 -247.562322 \ > 302.794127 -247.562322 -fill #ff0000 \
> -dash {2 2 3 2 2 2 2 2 2 2 3 2 2 2 2 2 2 2 1 2} -tags *
> .. and after many such commands I get the error:
> X Error of failed request: BadValue (integer parameter out of range for > operation)
> Major opcode of failed request: 55 (X_CreateGC)
> Value in failed request: 0x1a000b2
> Serial number of failed request: 1204
> Current serial number in output stream: 1205
> There is no fixed location where it crashes and there seems to be some > timing depending behavior.
> If I put a delay before the drawing command, it crashes on other > locations and sometime it does not crash.
When you say "after many such commands I get the error...", approximately how much geometry are you talking about? I will say that I can't reproduce the error under these circumstances:
- ActiveTcl 8.5.9
- Win7, 64bit
- 250,000 line entities using your mentioned attributes (including the -dash property)
It's a complaint out of the X11 layer that something's gone wrong
(dashes work in a very different way on Windows and OSX/Aqua, so they
can't be compared). Haven't had the time to examine the problem yet, but
I'm guessing that it is a problem with the dash processing as that's
less frequently used than many other parts of Tk's rendering layer.
On Thu, 19 Jul 2012, Donal K. Fellows wrote:
> On 18/07/2012 17:10, Jeff Godfrey wrote:
> > Sorry, no Linux available at the moment.
> It's a complaint out of the X11 layer that something's gone wrong
> (dashes work in a very different way on Windows and OSX/Aqua, so they
> can't be compared). Haven't had the time to examine the problem yet, but
> I'm guessing that it is a problem with the dash processing as that's
> less frequently used than many other parts of Tk's rendering layer.
I can confirm this.
I have tested now:
tcl8.4 - this version works rock solid
tcl8.5 - crashes always
tcl8.6 - crashes frequently or later (after more draw commands)
Nothing found on Windows until now, tested tcl8.5 and tcl8.6 on XP and Win7 (not all combinations).
Where/How can I submit a bug report?
What information does it need?
The dxf file has ca. 55Kb, the script a few KB but it iuses several packages.
On Sun, 22 Jul 2012, Harald Oehlmann wrote:
> On Jul 20, 5:57 pm, Gerhard Reithofer <gerhard.reitho...@tech-
> edv.co.at> wrote:
> > Where/How can I submit a bug report?
> > What information does it need?
Hi TCLers,
after some time of not-using my computer I tried to test some programs. I got many package load errors on a rather full Activestate installation. The teacup start failed also (with an error message like below).
Then I removed all /opt/ActiveTcl-8.5 files and I did a new install.
Unfortunately this installation failes with following error message:
TEAcup @ /opt/ActiveTcl-8.5/bin/teacup
Create repository: /opt/ActiveTcl-8.5/bin/teacup/entry.tcl: The TclPro ByteCode Loader is not available or does not support the correct version -- can't find package tbcload 1.6
while executing
"source $startup"
(file "/opt/ActiveTcl-8.5/bin/teacup/main.tcl" line 35)
Aborting TEApot setup
-----------------------------------------------------------------
The file from which I tried is:
ActiveTcl8.5.8.1.291945-linux-x86_64-threaded.tar.gz