[Konsole-devel] [konsole] [Bug 320522] New: Session restored tab has zero initial size

Paul Eggleton bluelightning at bluelightning.org
Fri May 31 09:40:36 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=320522

            Bug ID: 320522
           Summary: Session restored tab has zero initial size
    Classification: Unclassified
           Product: konsole
           Version: 2.10.2
          Platform: Ubuntu Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: konsole-devel at kde.org
          Reporter: bluelightning at bluelightning.org

I have a set of tabs in Konsole which is always restored on login via the
standard session support. In my ~/.bashrc I have a script which calls qdbus to
check the Konsole tab's title, and based on that automatically logs into a
remote machine using mosh; however if I haven't switched to the tab before this
happens mosh fails with:

mosh-server: terminalframebuffer.cc:73: Terminal::Framebuffer::Framebuffer(int,
int): Assertion `s_height > 0' failed.

If I switch to the tab before it has a chance to connect, it works with no
error. I suspect the issue is that the terminal within the tab has 0x0 size
until you first show the tab.

Reproducible: Always

Steps to Reproduce:
1. Add the following to ~/.bashrc:
if [ "$KONSOLE_DBUS_SESSION" != "" ] ; then
        TAB_TITLE=`qdbus $KONSOLE_DBUS_SERVICE $KONSOLE_DBUS_SESSION title 1`
        if [ "${TAB_TITLE:0:8}" == "myserver" ] ; then
                mosh myserver
        fi
fi

2. Add an additional tab and change its title to "myserver"

3. Log out and log back in again
Actual Results:  
mosh fails with an error on connect:
mosh-server: terminalframebuffer.cc:73: Terminal::Framebuffer::Framebuffer(int,
int): Assertion `s_height > 0' failed.


Expected Results:  
mosh does not fail with an error

I'm using mosh 1.2.4.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list