Details Ticket 1107


Comment | Reply | Take | Resolve


Serial Number 1107
Subject i.points, i.vpoints: crashes at terminal resize
Area grass6
Queue grass
Requestors hamish_nospam@yahoo.com
Owner none
Status open
Last User Contact Wed Sep 27 14:54:41 2006 (2 yr ago)
Current Priority 20
Final Priority 70
Due No date assigned
Last Action Mon Jan 29 03:14:12 2007 (2 yr ago)
Created Tue Jun 11 14:31:57 2002 (6 yr ago)

Transaction History Ticket 1107


Tue, Jun 11 2002 14:31:57    Request created by guest  
Subject: v.digit locks if the terminal is too small

Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Compiled from Sources
GRASS Version: 5.0.0pre4

If the terminal size is smaller than 79x24, v.digit has trouble on the "GRASS-DIGIT
Modified  4.10                  Main Menu"
screen.

If the terminal is less than 24 lines long, but greater than about 20, the main
part of the the terminal screen renders, but the lower portion with
"Digitize  Edit  Label  Customize ..."
is not there. But v.digit still seems to work if you know what the menu commands
should be. Redrawing the screen with * doesn't fix it.

If the terminal is less than about 20 lines long, it locks up with a blank screen
once it gets to the Main Menu. Killing the v.digit process from another terminal
gets you out, but the Grass terminal is left in a broken state and has to be
abandoned and Grass restarted.

If the terminal is less than 79 columns wide, it locks as above.


e.g. this works:
gnome-terminal --geometry 79x24 -e grass5

this chops off the bottom:
gnome-terminal --geometry 94x22 -e grass5

this locks up v.digit:
gnome-terminal --geometry 94x18 -e grass5

this locks up v.digit:
gnome-terminal --geometry 78x24 -e grass5


I am using gnome-terminal, but get simular results with xterm.
For what it's worth, i.points does behave itself.

Not terribly critical, but thought someone might like to know.


best,
Hamish
[Debian GNU/Linux 3.0 (Woody) i686]
Fri, Aug 23 2002 15:23:33    Comments added by bernhard  
Cc: grass5@grass.itc.it

Maybe we should add a check for the terminal size for v.digit.
At least a warning in the man page would be appropriate.
Fri, Aug 23 2002 16:21:35    Mail sent by neteler@itc.it  
Return-Path <neteler@itc.it>
Delivered-To grass-bugs@lists.intevation.de
Date Fri, 23 Aug 2002 16:21:26 +0200
From Markus Neteler <neteler@itc.it>
To Bernhard Reiter via RT <grass-bugs@intevation.de>
Cc grass5 developers list <grass5@grass.itc.it>
Subject Re: [GRASS5] [bug #1107] (grass) v.digit locks if the terminal is too small
Message-ID <20020823162126.I7452@itc.it>
Mail-Followup-To Bernhard Reiter via RT <grass-bugs@intevation.de>, grass5 developers list <grass5@grass.itc.it>
References <20020823132333.EC0A01397F@lists.intevation.de>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.2.5.1i
In-Reply-To <20020823132333.EC0A01397F@lists.intevation.de>; from grass-bugs@intevation.de on Fri, Aug 23, 2002 at 03:23:33PM +0200
X-Spam-Status No, hits=-4.4 required=5.0 tests=IN_REP_TO version=2.20
X-Spam-Level
On Fri, Aug 23, 2002 at 03:23:33PM +0200, Bernhard Reiter via RT wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=1107
> 
> Request number 1107 was commented on by 'bernhard' (Bernhard Reiter). 
> Responding to this message will send mail to the requestor.
> 			
> 			Request Tracker
> 			rt@intevation.de
> 
> --------------------------------------------------------------
> Cc: grass5@grass.itc.it
> 
> Maybe we should add a check for the terminal size for v.digit.

This I tried, but I didn't understand how to do it (curses
didn't give me the numbers as suggested by Glynn). An expert
is needed here :-)

Markus


> At least a warning in the man page would be appropriate.
> 
> 
> -------------------------------------------- Managed by Request Tracker
> 
> _______________________________________________
> grass5 mailing list
> grass5@grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5

-- 
Markus Neteler

ITC-irst, Istituto per la Ricerca Scientifica e Tecnologica
     Project on Predictive Models for the Environment    
Via Sommarive, 18        -      38050 Povo (Trento), Italy
tel +39 0461 314 -520 (fax -591)          http://mpa.itc.it


Sat, Aug 24 2002 02:36:15    Mail sent by glynn.clements@virgin.net  
Return-Path <glynn.clements@virgin.net>
Delivered-To grass-bugs@lists.intevation.de
From Glynn Clements <glynn.clements@virgin.net>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Message-ID <15718.52363.224758.503894@cerise.nosuchdomain.co.uk>
Date Sat, 24 Aug 2002 01:00:11 +0100
To Markus Neteler <neteler@itc.it>
Cc Bernhard Reiter via RT <grass-bugs@intevation.de>, grass5 developers list <grass5@grass.itc.it>
Subject Re: [GRASS5] [bug #1107] (grass) v.digit locks if the terminal is too small
In-Reply-To <20020823162126.I7452@itc.it>
References <20020823132333.EC0A01397F@lists.intevation.de> <20020823162126.I7452@itc.it>
X-Mailer VM 6.94 under 21.4 (patch 9) "Informed Management (RC2)" XEmacs Lucid
X-Spam-Status No, hits=-4.4 required=5.0 tests=IN_REP_TO version=2.20
X-Spam-Level
Markus Neteler wrote:

> > Maybe we should add a check for the terminal size for v.digit.
> 
> This I tried, but I didn't understand how to do it (curses
> didn't give me the numbers as suggested by Glynn). An expert
> is needed here :-)

It works fine for me. If I add the line:

    fprintf(stderr, "LINES = %d, COLS = %d\n", LINES, COLS);

to Init_curses() in dig_curses.c, it prints:

	LINES = 24, COLS = 80

Note that v.digit doesn't initialise curses until after you have
selected a digitiser, selected a map, and filled in the information
screen for the map.

The variables are set by curses and, as such, aren't valid until
curses has been initialised (by initscr(), which is called from
V_init()).

-- 
Glynn Clements <glynn.clements@virgin.net>


Sat, Aug 24 2002 07:38:11    Mail sent by neteler@itc.it  
Return-Path <neteler@itc.it>
Delivered-To grass-bugs@lists.intevation.de
Date Sat, 24 Aug 2002 07:38:06 +0200
From Markus Neteler <neteler@itc.it>
To Glynn Clements <glynn.clements@virgin.net>
Cc Bernhard Reiter via RT <grass-bugs@intevation.de>, grass5 developers list <grass5@grass.itc.it>
Subject Re: [GRASS5] [bug #1107] (grass) v.digit locks if the terminal is too small
Message-ID <20020824073806.A26842@itc.it>
Mail-Followup-To Glynn Clements <glynn.clements@virgin.net>, Bernhard Reiter via RT <grass-bugs@intevation.de>, grass5 developers list <grass5@grass.itc.it>
References <20020823132333.EC0A01397F@lists.intevation.de> <20020823162126.I7452@itc.it> <15718.52363.224758.503894@cerise.nosuchdomain.co.uk>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.2.5.1i
In-Reply-To <15718.52363.224758.503894@cerise.nosuchdomain.co.uk>; from glynn.clements@virgin.net on Sat, Aug 24, 2002 at 01:00:11AM +0100
X-Spam-Status No, hits=-4.4 required=5.0 tests=IN_REP_TO version=2.20
X-Spam-Level
On Sat, Aug 24, 2002 at 01:00:11AM +0100, Glynn Clements wrote:
> 
> Markus Neteler wrote:
> 
> > > Maybe we should add a check for the terminal size for v.digit.
> > 
> > This I tried, but I didn't understand how to do it (curses
> > didn't give me the numbers as suggested by Glynn). An expert
> > is needed here :-)
> 
> It works fine for me. If I add the line:
> 
>     fprintf(stderr, "LINES = %d, COLS = %d\n", LINES, COLS);
> 
> to Init_curses() in dig_curses.c, it prints:
> 
> 	LINES = 24, COLS = 80
> 
> Note that v.digit doesn't initialise curses until after you have
> selected a digitiser, selected a map, and filled in the information
> screen for the map.

Ah! This is the point. I added the test too early.
 
> The variables are set by curses and, as such, aren't valid until
> curses has been initialised (by initscr(), which is called from
> V_init()).

However, it will be also strange that v.digit stops working in the middle.
To have the test at the very beginning might be more conventient.
But of course: later is better than nothing.

 Markus


Sun, Nov 20 2005 12:07:19    Comments added by msieczka  
This bug has an effect on i.points in Grass 6.1 as well, thus I'm assigning it
to 6.1. Changing the title as well.

ian_macmillan AT umail DOT ucsb DOT edu wrote:
>> I was using i.points in an xy location when I mistakenly resized the 
>> i.points terminal window as I was entering points.  The terminal
>> window  looked a little funky (mishapen i.points display), and I was
>> presented  with a grass prompt, instead of the normal i.points
>> display.  My cursor  no longer responded on the monitor, though it
>> still displayed the  typical 'cross' cursor from i.points.

Hamish wrote:
> if the terminal was smaller than 80x24 the i.points text may have done
> weird things when it tried to draw the ascii "boxes". See bug #1107
> https://intevation.de/rt/webrt?serial_num=1107

For details refer to http://thread.gmane.org/gmane.comp.gis.grass.user/10255
Maciek
Sun, Nov 20 2005 12:09:47    Subject changed to i.points terminal freezes at resize (grass61) v.digit locks if the terminal is too small (grass5) by msieczka  
Sun, Nov 20 2005 12:09:59    Area changed to grass6 by msieczka  
Tue, Jun 27 2006 05:27:29    User changed to hamish_nospam@yahoo.com by hbowman  
Sat, Jul 22 2006 15:29:05    Mail sent by guest  
http://intevation.de/rt/webrt?serial_num=1107

Does this also happen in i.vpoints?

Markus
Thu, Aug 3 2006 15:36:46    Mail sent by guest  
Since the v.digit portion of this bug is now obsolete, I tried testing the
i.points part. Using Ubuntu 6.06 and 2006-07-31 cvs, I can't confirm a freeze
per se, but rather a crash. Resizing the i.points terminal created the
following error message:

ERROR reading from graphics driver.
Monitor <x0>: Caught SIGPIPE

After which I am returned to my bash command prompt.

~ Eric.
<epatton at nrcan dot gc dot ca>
Thu, Aug 3 2006 15:44:39    Comments added by guest  
Cc: tutey@o2.pl

As an add-on to the previous comment, although control passes back to the
command line interface after this crash, each <Enter> or <Return> results in
the  next bash prompt being appended to thte last, like this:

GRASS 6.1.cvs (spearfish60):~/Projects > GRASS 6.1.cvs
(spearfish60):~/Projects > GRASS 6.1.cvs (spearfish60):~/Projects > GRASS
6.1.cvs (spearfish60):~/Projects >

Ctrl-C-ing my way out doesn't help, but prints each bash prompt diagonally
rather than horizontally, like this:

<prompt>
        <prompt>
                <prompt>
                        <prompt>
                                 ...etc.

May or may not be important in relation to this bug.

~ Eric.
<epatton at nrcan dot gc dot ca>





 
Thu, Aug 3 2006 17:15:17    Subject changed to i.points: terminal crashes at resize by msieczka  
Thu, Aug 3 2006 17:34:15    Mail sent by guest  
>Does this also happen in i.vpoints?

>Markus

Yes, I can confirm identical crash as described above when using i.vpoints and
resizing the termial.

~ Eric.
<epatton at nrcan dot gc dot ca>
Thu, Aug 3 2006 17:37:16    Subject changed to i.points, i.vpoints: crashes at terminal resize by msieczka  
Mon, Sep 18 2006 16:33:05    Mail sent by guest  
http://www.forumage.com/?mforum=designerreplica <a href=http://www.forumage.com/?mforum=designerrepl
ica>designer
replica handbags</a> designer replica handbags
Mon, Sep 18 2006 16:34:18    Mail sent by guest  
http://www.forumage.com/?mforum=designerreplica <a href=http://www.forumage.com/?mforum=designerrepl
ica>designer
replica handbags</a> designer replica handbags
Thu, Sep 21 2006 02:48:47    Mail sent by guest  
http://www.forumage.com/?mforum=salvationbracel <a href="http://www.forumage.com/?mforum=salvationbr
acel">salvation
bracelets</a> salvation bracelets
Thu, Sep 21 2006 02:57:40    Mail sent by guest  
http://www.forumage.com/?mforum=salvationbracel <a href="http://www.forumage.com/?mforum=salvationbr
acel">salvation
bracelets</a> salvation bracelets
Thu, Sep 21 2006 15:37:06    Mail sent by guest  
http://www.bloggen.be/rosarybracelets <a href="http://www.bloggen.be/rosarybracelets">rosary
bracelets</a> rosary bracelets
Fri, Sep 22 2006 15:39:51    Mail sent by guest  
http://xoomer.alice.it/gpokil <a href="http://xoomer.alice.it/gpokil">Free nokia
ringtones</a> Free nokia ringtones
Fri, Sep 22 2006 21:14:02    Mail sent by guest  
http://www.bloggen.be/zend/ <a href="http://www.bloggen.be/zend/">replica watches</a>
replica watches
Fri, Sep 22 2006 23:20:34    Mail sent by guest  
http://rolexreplica.awardspace.com/ <a href="http://rolexreplica.awardspace.com/">Rolex
replica</a> rolex replica
Sat, Sep 23 2006 01:53:15    Mail sent by guest  
Hello, nice site look this:
<a href="http://lokimno.info/free-ringtones-for-tracfones.html">free ringtones
for tracfones</a>
<a href="http://lokimno.info/download-free-wav-ringtones.html">download free
wav ringtones</a>
<a href="http://lokimno.info/download-ringtones.html">download ringtones</a>
http://lokimno.info/zelda-ringtone.html
<a href="http://lokimno.info/ringtone-ringtone.html">ringtone ringtone</a>

End ^) See you
Sat, Sep 23 2006 13:36:31    Mail sent by guest  
http://www.forumage.com/index.php?mforum=chimichangareci <a href="http://www.forumage.com/index.php?
mforum=chimichangareci">chimichanga
recipe</a> chimichanga recipe
Sat, Sep 23 2006 14:39:07    Mail sent by guest  
http://www.forumage.com/?mforum=buyphentermine <a href="http://www.forumage.com/?mforum=buyphentermi
ne">buy
phentermine</a> buy phentermine
Sun, Sep 24 2006 15:29:26    Mail sent by guest  
Great site, look this:
http://porinol.info/free-i205-motorola-ringtone.php
http://porinol.info/nextel-cellular-ringtones.php
http://porinol.info/free-motorola-v60i-ringtones.php
http://porinol.info/free-ringtones-for-nokia-phones.php
<a href="http://porinol.info/free-ringtones-for-my-motorola-cell-phone.php">free
ringtones for my motorola cell phone</a>
<a href="http://porinol.info/mobile-ringtone-converter.php">mobile ringtone converter</a>
<a href="http://porinol.info/mobile-phone-ringtones.php">mobile phone ringtones</a>
http://porinol.info/cingular-ringtones.php
<a href="http://porinol.info/no-internet-required-ringtones.php">no internet
required ringtones</a>
<a href="http://porinol.info/free-motorola-ringtones.php">free motorola ringtones</a>
Mon, Sep 25 2006 14:01:16    Mail sent by guest  
Hello, nice site look this:
http://sato.awardspace.com/chanel-replica-sun-glasses.htm
http://sato.awardspace.com/chanel-replica-sun-glasses.htm
http://sato.awardspace.com/chanel-replica-sun-glasses.htm
http://sato.awardspace.com/replica-oakley-sun-glasses.htm
http://sato.awardspace.com/wholesale-replica-sun-glasses.htm
Mon, Sep 25 2006 22:01:58    Mail sent by guest  
Great site, look this:
http://sendinok.info/fundraising-bracelets.html
[URL="http://sendinok.info/we-care-bracelets.html"]we care bracelets[/URL]
http://sendinok.info/the-nursing-bracelet.html
[URL="http://sendinok.info/fundraising-silicone-bracelets.html"]fundraising silicone
bracelets[/URL]
http://sendinok.info/italian-charm-bracelet-watches.html
http://sendinok.info/silver-toggle-bracelet.html
<a href=«http://sendinok.info/sterling-silver-charm-bracelets.html">sterling
silver charm bracelets</a>
http://sendinok.info/gps-bracelets.html
http://sendinok.info/making-copper-wire-bracelets.html
http://sendinok.info/custom-made-silicone-bracelet.html
Wed, Sep 27 2006 14:54:41    Mail sent by guest  
Great site, look this:
http://domkifo.info/rolex-diamond-ring.php
<a href="http://domkifo.info/fake-rolex-watch.php">fake rolex watch</a>
[URL="http://domkifo.info/rolex-watchs.php"]rolex watchs[/URL]
[URL="http://domkifo.info/rolex-watch-parts.php"]rolex watch parts[/URL]
http://domkifo.info/swiss-replica-rolex.php
<a href="http://domkifo.info/vintage-rolex-watches.php">vintage rolex watches</a>
http://domkifo.info/battery-rolex-watch.php
http://domkifo.info/rolex-presidential.php
[URL="http://domkifo.info/rolex-watch-repair.php"]rolex watch repair[/URL]
<a href="http://domkifo.info/rolex-oyster-watch.php">rolex oyster watch</a>
Mon, Jan 29 2007 03:14:12    Comments added by hbowman  
Search note: this bug contains SPAM!

Hamish
Comment | Reply | Take | Resolve

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request