Bug 189299 - Konsole won't accept any input
Summary: Konsole won't accept any input
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-10 18:40 UTC by Juan Honorato
Modified: 2009-04-27 21:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Konsole dead :( (20.35 KB, image/png)
2009-04-10 18:45 UTC, Juan Honorato
Details
output of: strace konsole --nofork 2> log (54.69 KB, text/plain)
2009-04-25 20:20 UTC, palypster
Details
strace konsole --nofork >2 log output (36.24 KB, text/plain)
2009-04-25 20:47 UTC, Juan Honorato
Details
strace konsole --nofork >2 log correct output this time (820.55 KB, text/plain)
2009-04-25 23:00 UTC, Juan Honorato
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juan Honorato 2009-04-10 18:40:31 UTC
Version:            (using KDE 4.2.2)
Compiler:          gcc 
OS:                Linux
Installed from:    Unlisted Binary Package

Hi, i have archlinux 2.6.29 with kdemod 4.2.2 and recenly, im not sure what exactly triggered this, konsole will not accept any input, although it responds well in menus and right clicking works well too.
I dont know how to search for more information without a console :(
If i write or try to paste anything it doesn't work, the same if i type a command and press enter.
Please help, i can't do anything without my konsole!
Comment 1 Juan Honorato 2009-04-10 18:45:40 UTC
Created attachment 32747 [details]
Konsole dead :(
Comment 2 Juan Honorato 2009-04-10 18:46:42 UTC
(In reply to comment #1)
> Created an attachment (id=32747) [details]
> Konsole dead :(

Notice that it doesn't show my user name before the cursor
Comment 3 Robert Knight 2009-04-10 22:32:08 UTC
Couple of things I can suggest:

1.  When you press keys are the letters printed on the terminal?
2.  Using KRunner (Alt+F2), try starting Konsole with:

konsole -e /bin/sh

And see if you get a prompt that you can use.
Comment 4 Juan Honorato 2009-04-11 03:06:49 UTC
Hi Robert,
1. Letters are not printed, terminal looks all the time as it is on the image attached.
2. The command just opens konsole and nothing else happends
Comment 5 palypster 2009-04-24 16:26:53 UTC
Hi all

I'm confirming this behaviour, exactly as Juan said (including answers 1 and 2, that "no letters are printed" - nor my username@computer_name, nothing and also that "command konsole -e /bin/sh" do the same as just "konsole").

In other terminal when I check "ps axf" I can see /bin/bash running as child process of konsole (so I'm guessing that konsole run bash, and bug is somewhere else).

For addition I can tell that I've just upgraded from Kubuntu 8.04 (KDE 3.??) to Kubutu 9.04 (KDE 4.2.2) and then the behaviour started.

palino
Comment 6 Juan Honorato 2009-04-24 16:37:21 UTC
I,ve noticed i have another problem that may be associated or not: Root actions doesn't seem to work in dolphin (and i dont think it's related to dolphin). It just gives an error when i enter my password
Look in this video: http://www.youtube.com/watch?v=nF4113yFH0c

Root dialog error says
"No se encontró el programa «su».<br/>Asegúrese de que su variable PATH esté configurada correctamente."
It would be something like this in English:
"Could not find program «su».<br/> Be sure that your variable PATH is configured correctly."
Comment 7 Robert Knight 2009-04-25 11:09:36 UTC
If you open up xterm or another terminal and start konsole from that, do you see any warnings from Konsole printed to the original terminal?
Comment 8 palypster 2009-04-25 14:22:05 UTC
Me, I cannot start xterm (when I run it from Alt+F2, nothing happen, no window show). Xterm is definitely installed (I manually installed it by apt-get). I don't know any other terminal.

So my only "pseudo-terminal" is KRunner, where I can run simple commands. When I run: "konsole &> ~/debug.txt", the debug file is empty.
Comment 9 Robert Knight 2009-04-25 17:49:52 UTC
> I don't know any other terminal.

rxvt and gnome-terminal are two others - you would probably need to install them first using a package manager.

Failing that, you can use the Linux terminal.

1.  Press Ctrl+Alt+F1 to switch to VT1.
2.  Login
3.  Run "export DISPLAY=:0"
4.  Run "konsole"

Konsole will be started on your main display (which you can switch back to with Ctrl+Alt+F7 - depending on your setup the numbers of the 'F' keys might vary) and any output should be displayed on VT1.
Comment 10 Juan Honorato 2009-04-25 18:21:56 UTC
The same happens to me.
I will try with the VT but i have to create another account first (from within the terminal of course)
Comment 11 palypster 2009-04-25 18:30:05 UTC
I've installed also rxvt. When I run it, the windows appears for a split a second and it disappears. (so in conclusion, it's the third terminal, which is not working: Konsole, xterm, rxvt)


Running Konsole from Linux terminal (or also from Konsole which is run with "kdesudo konsole") prints:

konsole
<unknown program name>(31336)/: KUniqueApplication: Cannot find the D-Bus session server

<unknown program name>(31334)/: KUniqueApplication: Pipe closed unexpectedly.


Actually, I can run all terminals with "kdesudo".
Comment 12 Juan Honorato 2009-04-25 18:44:24 UTC
Ok, i've done it, and i didn't have to create another user (noob). I just needed to login first in terminal.
This is the output of konsole:
Konsole (7473) Konsole::Pty::flowControlEnabled: Unable to get flow control status, terminal not connected.
Konsole (7473): Attempt to use QAction "change-profile" with KXMLGUIFactory!
Konsole (7473) Konsole::Pty::start: Unable to set terminal attributes

 @ "palypster@gmail.com": You dont have the problem with root actions in dolphin?
Comment 13 Robert Knight 2009-04-25 19:18:25 UTC
> Konsole (7473) Konsole::Pty::start: Unable to set terminal attributes

Can you start Konsole from the terminal using strace as follows:

strace konsole --nofork 2> log

And attach the 'log' file which is created to this bug report.
Comment 14 palypster 2009-04-25 20:20:49 UTC
Created attachment 33099 [details]
output of: strace konsole --nofork 2> log
Comment 15 palypster 2009-04-25 20:27:06 UTC
I attached output of the command. (I run command from the Konsole instance that I run with kdesudo, I hope that is ok).

@juan: I don't think so. Because I don't use Dolphin at all. (If you are thinking about the builtin actions in Dolphin and Konqueror to work with Konsole, they didnt work for me nowadays forasmuch as my Konsole doesn't work at all :) ). But if you think of something, feel free to advise.. thx
Comment 16 Juan Honorato 2009-04-25 20:47:03 UTC
Created attachment 33101 [details]
strace konsole --nofork >2 log output

Here's mine
Comment 17 Robert Knight 2009-04-25 22:08:57 UTC
Juan,

Looks like Konsole didn't start up at all when you created that trace? - The log ends with a message about not being able to connect to DBus.  Did you run "export DISPLAY=:0" first before starting Konsole?

You should find that after starting Konsole with strace it does not stop until you press Ctrl+C in the shell to kill it manually.
Comment 18 Juan Honorato 2009-04-25 22:59:10 UTC
(In reply to comment #17)
> Juan,
> 
> Looks like Konsole didn't start up at all when you created that trace? - The
> log ends with a message about not being able to connect to DBus.  Did you run
> "export DISPLAY=:0" first before starting Konsole?
> 
> You should find that after starting Konsole with strace it does not stop until
> you press Ctrl+C in the shell to kill it manually.

You're right, sorry
Comment 19 Juan Honorato 2009-04-25 23:00:27 UTC
Created attachment 33104 [details]
strace konsole --nofork >2 log correct output this time
Comment 20 Juan Honorato 2009-04-25 23:03:08 UTC
but i was able to close konsole from X though (and its not in the processes anymore)
Comment 21 Robert Knight 2009-04-26 23:42:43 UTC
palypster,

Can you see my comment #17 as well about setting the DISPLAY variable before running strace?

Juan, palypster

I wonder whether this might be relevant - http://bbs.archlinux.org/viewtopic.php?id=15466

When running 'mount' from the Linux terminal, do you see an entry like:

devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)

If not, does running 'sudo mount devpts' help?
Comment 22 palypster 2009-04-27 01:09:34 UTC
Robert

thx, you was right:

root@palino:/home/palino# mount | grep pts
root@palino:/home/palino# sudo mount devpts
mount: can't find devpts in /etc/fstab or /etc/mtab
root@palino:/home/palino#

So I google for it, and here you are:
http://ubuntuforums.org/showthread.php?t=1058221
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/313947

So I mounted it manually and now all terminals are working. Thx a lot.

p
Comment 23 Juan Honorato 2009-04-27 02:58:49 UTC
Yes! It does work with te command "sudo mount -t devpts devpts /dev/pts"
But how can i make it permanent, cause it didn't work when i rebooted,
Adding it to fstab maybe? can you attach yours Robert? My problem would be the UUID though
btw MANY THX!!
Comment 24 Juan Honorato 2009-04-27 03:59:10 UTC
I think i found the answer here: http://ubuntuforums.org/showthread.php?p=7025446
I will try tomorrow. Thx again Robert
Comment 25 Robert Knight 2009-04-27 11:12:19 UTC
Hi Juan,

My fstab file doesn't have any pts-related entries in it, just one for the main HDD partition and another for the DVD drive.  As the forum comments mentioned - this must be mounted by something else.  The bug report palypster linked to is a duplicate of another which has more details - but I don't know if any of this will be applicable to ArchLinux.

https://bugs.launchpad.net/ubuntu/+source/insserv/+bug/321927
Comment 26 Juan Honorato 2009-04-27 21:36:49 UTC
Well, it did work after all with that entry in fstab.
If anyone esle has the same problem just add this line to /etc/fstab
devpts          /dev/pts        devpts          gid=5,mode=620  0       0

Thanks for your time Robert!