bugWeeChat - Bugs: bug #36107, Issue with small windows, zooming,...

 
 

bug #36107: Issue with small windows, zooming, iset and being left in unusable state

Submitted by:  Filip H.F. "FiXato" Slagter <fixato>
Submitted on:  Fri 06 Apr 2012 12:31:59 AM UTC  
 
Category:  display Severity:  3 - Normal
Item Group:  crash Status:  Fixed
Privacy:  Public Assigned to:  Sebastien Helleu <flashcode>
Originator Name:  Open/Closed:  Closed
Release:  0.3.7 IRC nick:  FiXato

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

( Jump to the original submission)

Wed 11 Apr 2012 02:40:37 PM UTC, comment #6:

Fixed, tests are welcome.

Now WeeChat will display only what it's possible to display (according to size of terminal). The windows or bars too small (width or height = 0) will be ignored (for display).

And I removed the minimum sizes for windows (5x2), now 1x1 is allowed (the only thing is that chat area must have at least 2 lines to be displayed, otherwise with one line you will see: "...").

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.
Fri 06 Apr 2012 01:22:11 PM UTC, comment #5:

And one with just Perl loaded:

Steps to reproduce above crashes:
- Terminal window of 50x15 (Lucida Console 8-point font so the same amount of text should be visible)
- /window splith
- /iset blaat
- /window zoom
- /window zoom
- /buffer close
- resize terminal window to be bigger
Result: crash
Reproduceable: 100%

Filip H.F. "FiXato" Slagter <fixato>
Fri 06 Apr 2012 11:23:19 AM UTC, comment #4:

And with latest git:

Filip H.F. "FiXato" Slagter <fixato>
Fri 06 Apr 2012 11:10:10 AM UTC, comment #3:
Filip H.F. "FiXato" Slagter <fixato>
Fri 06 Apr 2012 10:52:16 AM UTC, comment #2:

Backtrace of the resize crash:

Filip H.F. "FiXato" Slagter <fixato>
Fri 06 Apr 2012 12:34:32 AM UTC, comment #1:

I'm fairly certain this bug was already present in 0.3.0, as I've been randomly experiencing it for as long as I've been using WeeChat and iset.pl.

Filip H.F. "FiXato" Slagter <fixato>
Fri 06 Apr 2012 12:31:59 AM UTC, original submission:

For quite some time now I've been having random issues with iset and zooming, often leaving my WeeChat either in an unusable state (all windows displaying the iset buffer and no way to get rid of it) or even crashing my WeeChat.

I've finally been able to reproduce it for myself on 2 different remote Ubuntu hosts, connected via MinTTY (though I've experienced the bug with PuTTY as SSH/Terminal client too), using a clean WeeChat environment.

Basically this happens when zooming in and out of the iset.pl buffer while it is in a very small WeeChat window.

Steps to reproduce:

1. Resize your terminal window to a small size (for instance 50 columns by 15 rows) (see notes)
2. Start a clean WeeChat which only has the iset.pl script loaded
3. /window splith
4. /iset foobar

(at this point iset should be in 1 window and the weechat core buffer in the other)

5. /window zoom
6. /window zoom

Now you should see the iset buffer in both windows. Also, trying to switch buffers (/buffer 1) will lead to nothing.

Closing the iset buffer (/close) will most likely also not work and /quit is the only way out.
Occasionally, when this occurs in my general setup, it will even crash.

I took screenshots along the way: http://fixato.org/screenshots/isetbug/

Notes:
1. I've used a very small terminal window here as it makes it easier to reproduce. In my normal setup I use a much larger terminal window (160 Columns by 75 Rows), but with many more /window splits and I found it usually only occurs in a small WeeChat window.
2. While I use iset.pl to show this bug, my gut feeling says it could possibly happen with any 'free' window.
3. Probably a different bug, but when resizing the terminal window, WeeChat occasionally also gets a SIGSEGV.
4. When all windows are showing the iset.pl buffer as a result of this bugged state, I've tried resetting the window layout, closing the iset buffer, unloading the iset script, merging windows and changing the /buffer, but all without any result.

Filip H.F. "FiXato" Slagter <fixato>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Posted a comment)
  • -email is unavailable- added by fixato (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-06-03 flashcode Open/ClosedOpen => Closed
    2012-04-11 flashcode CategoryNone => display
        Item Groupother => crash
        StatusNone => Fixed
        Assigned toNone => flashcode

    Back to the top


    Powered by Savane 3.4