Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.* 1 > Newsgroup comp.lang.tcl

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-17-2012, 06:38 PM
Gerhard Reithofer
Guest
 
Posts: n/a
Default 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
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 07-18-2012, 03:10 PM
Jeff Godfrey
Guest
 
Posts: n/a
Default Re: Crash on drawing to canvas

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


Reply With Quote
  #3 (permalink)  
Old 07-19-2012, 05:16 AM
Donal K. Fellows
Guest
 
Posts: n/a
Default 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.
Reply With Quote
  #4 (permalink)  
Old 07-20-2012, 03:57 PM
Gerhard Reithofer
Guest
 
Posts: n/a
Default 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
Reply With Quote
  #5 (permalink)  
Old 07-22-2012, 09:53 AM
Harald Oehlmann
Guest
 
Posts: n/a
Default 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/?grou...97&atid=112997
Reply With Quote
  #6 (permalink)  
Old 07-22-2012, 12:04 PM
Gerhard Reithofer
Guest
 
Posts: n/a
Default 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/?grou...97&atid=112997


Item created successfully. (Artifact 3547229)

THX

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 10:53 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.