Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Crash on drawing to canvas
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Gerhard Reithofer  
View profile  
 More options Jul 17 2012, 2:38 pm
Newsgroups: comp.lang.tcl
From: Gerhard Reithofer <gerhard.reitho...@tech-edv.co.at>
Date: Tue, 17 Jul 2012 20:38:55 +0200
Local: Tues, Jul 17 2012 2:38 pm
Subject: Crash on drawing to canvas
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff Godfrey  
View profile  
 More options Jul 18 2012, 11:10 am
Newsgroups: comp.lang.tcl
From: Jeff Godfrey <jeffgodfre...@gmail.com>
Date: Wed, 18 Jul 2012 08:10:27 -0700 (PDT)
Local: Wed, Jul 18 2012 11:10 am
Subject: Re: Crash on drawing to canvas

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Donal K. Fellows  
View profile  
 More options Jul 19 2012, 1:16 am
Newsgroups: comp.lang.tcl
From: "Donal K. Fellows" <donal.k.fell...@manchester.ac.uk>
Date: Thu, 19 Jul 2012 07:16:51 +0200
Local: Thurs, Jul 19 2012 1:16 am
Subject: Re: Crash on drawing to canvas
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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gerhard Reithofer  
View profile  
 More options Jul 20 2012, 11:57 am
Newsgroups: comp.lang.tcl
From: Gerhard Reithofer <gerhard.reitho...@tech-edv.co.at>
Date: Fri, 20 Jul 2012 17:57:19 +0200
Local: Fri, Jul 20 2012 11:57 am
Subject: Re: Crash on drawing to canvas

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.

> Donal.

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

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Harald Oehlmann  
View profile  
 More options Jul 22 2012, 5:53 am
Newsgroups: comp.lang.tcl
From: Harald Oehlmann <wortka...@yahoo.de>
Date: Sun, 22 Jul 2012 02:53:57 -0700 (PDT)
Local: Sun, Jul 22 2012 5:53 am
Subject: Re: Crash on drawing to canvas
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

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gerhard Reithofer  
View profile  
 More options Jul 22 2012, 8:04 am
Newsgroups: comp.lang.tcl
From: Gerhard Reithofer <gerhard.reitho...@tech-edv.co.at>
Date: Sun, 22 Jul 2012 14:04:59 +0200
Local: Sun, Jul 22 2012 8:04 am
Subject: Re: Crash on drawing to canvas
Servus Harald

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?

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

Item created successfully. (Artifact 3547229)

THX

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Teacup problem" by Gerhard Reithofer
Gerhard Reithofer  
View profile  
 More options Oct 20 2012, 11:20 am
Newsgroups: comp.lang.tcl
From: Gerhard Reithofer <gerhard.reitho...@tech-edv.co.at>
Date: Sat, 20 Oct 2012 17:20:33 +0200
Local: Sat, Oct 20 2012 11:20 am
Subject: Teacup problem
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

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »