Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Crash on drawing to canvas

192 views
Skip to first unread message

Gerhard Reithofer

unread,
Jul 17, 2012, 2:38:55 PM7/17/12
to
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)?

% info pa
8.5.8

Linux Ubuntu 10.04 - 64bit
Toshiba Notebook

--
Gerhard Reithofer
Tech-EDV Support Forum - http://support.tech-edv.co.at

Jeff Godfrey

unread,
Jul 18, 2012, 11:10:27 AM7/18/12
to
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)

Sorry, no Linux available at the moment.

Jeff


Donal K. Fellows

unread,
Jul 19, 2012, 1:16:51 AM7/19/12
to
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.

Donal.

Gerhard Reithofer

unread,
Jul 20, 2012, 11:57:19 AM7/20/12
to
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.

> Donal.

Harald Oehlmann

unread,
Jul 22, 2012, 5:53:57 AM7/22/12
to
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?

http://sourceforge.net/tracker/?group_id=12997&atid=112997

Gerhard Reithofer

unread,
Jul 22, 2012, 8:04:59 AM7/22/12
to
Servus Harald
Item created successfully. (Artifact 3547229)

THX

Gerhard Reithofer

unread,
Oct 20, 2012, 11:20:33 AM10/20/12
to
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:

... cut start of screen messages ...

-----------------------------------------------------------------
Creating directory /opt/ActiveTcl-8.5/include ...
Creating directory /opt/ActiveTcl-8.5/include/tcl8.5 ...
Installing demos ...
Creating directory /opt/ActiveTcl-8.5/demos/Tk8.5 ...
Creating directory /opt/ActiveTcl-8.5/demos/Tk8.5/images ...
Done ...
Finishing the installation
Patching the shells and libraries for the new location ...
* /opt/ActiveTcl-8.5/bin/tclsh8.5 ...
* /opt/ActiveTcl-8.5/bin/wish8.5 ...
* /opt/ActiveTcl-8.5/bin/tclsh8.5 ...
* /opt/ActiveTcl-8.5/bin/wish8.5 ...
* 8.5 /opt/ActiveTcl-8.5/lib/libtcl8.5.so ...
* 8.5 /opt/ActiveTcl-8.5/lib/libtcl8.5.a ...
* /opt/ActiveTcl-8.5/lib/libtk8.5.so ...
* /opt/ActiveTcl-8.5/lib/libtk8.5.a ...
Patching configuration scripts (8.5)
* /opt/ActiveTcl-8.5/lib/tclConfig.sh ...
* /opt/ActiveTcl-8.5/lib/tclConfig-shared.sh ...
* /opt/ActiveTcl-8.5/lib/tkConfig-shared.sh ...
* /opt/ActiveTcl-8.5/lib/tkConfig.sh ...
* /opt/ActiveTcl-8.5/lib/tcl8.5/tclConfig.sh ...
* /opt/ActiveTcl-8.5/lib/tcl8.5/tclConfig-shared.sh ...
* /opt/ActiveTcl-8.5/lib/tk8.5/tkConfig-shared.sh ...
* /opt/ActiveTcl-8.5/lib/tk8.5/tkConfig.sh ...
- Patching AT applications
* /opt/ActiveTcl-8.5/bin/tkcon ... (wish)

TEA Package Management - Standard Repositories.

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

Any idea?

TIA,
Gerhard
0 new messages