! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Hangs on startup with one --default-working-dir
Status:
RESOLVED: INVALID
Product:
Xfce4-terminal
Component:
General

Comments

Description Alexander Kurakin 2019-04-25 12:47:07 CEST
This hangs (a window appears and disappears):

$ xfce4-terminal --default-working-directory '/home/sasha/Рабочий стол/_1/ЗАКУПКА №203750000011900049/Документы/1. ИЗВЕЩЕНИЕ, ИЗМЕНЕНИЕ ИЗВЕЩЕНИЯ О ПРОВЕДЕНИИ ЭЛЕКТРОННОГО АУКЦИОНА, ДОКУМЕНТАЦИЯ О ПРОВЕДЕНИИ ЭЛЕКТРОННОГО АУКЦИОНА/Проекты/Калуга, Театральная, 10/'

The directory exists.
Comment 1 Igor editbugs 2019-04-25 15:34:18 CEST
Hmm, working fine here:
$ xfce4-terminal --default-working-directory '/home/igor/Рабочий стол/_1/ЗАКУПКА №203750000011900049/Документы/1. ИЗВЕЩЕНИЕ, ИЗМЕНЕНИЕ ИЗВЕЩЕНИЯ О ПРОВЕДЕНИИ ЭЛЕКТРОННОГО АУКЦИОНА, ДОКУМЕНТАЦИЯ О ПРОВЕДЕНИИ ЭЛЕКТРОННОГО АУКЦИОНА/Проекты/Калуга, Театральная, 10/'
opens a window with the current working directory set as specified.

Can you double check that the path exists and is accessible?
Can any other app open the path or a file located there in a similar way, i.e. via the command line?
Comment 2 Alexander Kurakin 2019-04-25 23:33:13 CEST
Hm, now I see that `cd` also hangs the terminal. Could I have some hooks on `cd`?

Directory is correct. If I use Thunar's "Open in Terminal" I get a hanging terminal.

> Can you double check that the path exists and is accessible?

Does. But maybe  path has extra symbols? Which are not copied here? I doesn't have this issue for the neighbor directory (with even longer name). 

> Can any other app open the path or a file located there in a similar way, i.e. via the command line?

Can. In different ways.
Comment 3 Igor editbugs 2019-04-25 23:35:51 CEST
Can you run `xfce4-terminal --disable-server --default-working-directory '/home/igor/Рабочий стол/_1/ЗАКУПКА №203750000011900049/Документы/1. ИЗВЕЩЕНИЕ, ИЗМЕНЕНИЕ ИЗВЕЩЕНИЯ О ПРОВЕДЕНИИ ЭЛЕКТРОННОГО АУКЦИОНА, ДОКУМЕНТАЦИЯ О ПРОВЕДЕНИИ ЭЛЕКТРОННОГО АУКЦИОНА/Проекты/Калуга, Театральная, 10/'` from another terminal and post the output here?
It's the same command that you're using but with an additional parameter: "--disable-server".
Comment 4 Alexander Kurakin 2019-04-25 23:41:06 CEST
$ xfce4-terminal --disable-server --default-working-directory '/home/sasha/Рабочий стол/_1/ЗАКУПКА №203750000011900049/Документы/1. ИЗВЕЩЕНИЕ, ИЗМЕНЕНИЕ ИЗВЕЩЕНИЯ О ПРОВЕДЕНИИ ЭЛЕКТРОННОГО АУКЦИОНА, ДОКУМЕНТАЦИЯ О ПРОВЕДЕНИИ ЭЛЕКТРОННОГО АУКЦИОНА/Проекты/Калуга, Театральная, 10/'

** (xfce4-terminal:9233): WARNING **: 00:37:20.682: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
$ xfce4-terminal --default-working-directory '/home/sasha/Рабочий стол/_1/ЗАКУПКА №203750000011900049/Документы/1. ИЗВЕЩЕНИЕ, ИЗМЕНЕНИЕ ИЗВЕЩЕНИЯ О ПРОВЕДЕНИИ ЭЛЕКТРОННОГО АУКЦИОНА, ДОКУМЕНТАЦИЯ О ПРОВЕДЕНИИ ЭЛЕКТРОННОГО АУКЦИОНА/Проекты/Калуга, Театральная, 10/'
$


(And nothing else happen.) But I often see that warning while starting X-apps from terminal.
Comment 5 Egmont Koblinger 2019-04-27 04:46:58 CEST
> Hm, now I see that `cd` also hangs the terminal.
Do you mean a `cd` to this particular directory, or a `cd` anywhere?

> But maybe  path has extra symbols? 
Could easily be.

Perhaps related to bug 13383 (C1 control character issue).
Comment 6 Alexander Kurakin 2019-04-27 13:07:53 CEST
> Do you mean a `cd` to this particular directory, or a `cd` anywhere?

In that dir only. And:

> I doesn't have this issue for the neighbor directory (with even longer name).
Comment 7 Alexander Kurakin 2019-04-27 13:08:03 CEST
Next. New terminal hangs up if I type that command and doesn't hang up if I'm trying to get it from file. So:

Next scenario hangs up new terminal:
1. Use my filesystem :)
2. Copy command from topic start (Ctrl-C).
3. Insert it in Terminal (Ctrl-V) end press Enter.

Next scenario hangs up new terminal:
1. Use my filesystem :)
2. Copy command from topic start (Ctrl-C).
3. Insert it in Terminal (Ctrl-V) and press Enter.
4. Close Terminal.
5. Open Terminal.
6. Restore last command (press Up) and press Enter.

Next scenario *doesn't* hang up new terminal:
1. Use my filesystem :)
2. Copy command from topic start (Ctrl-C).
3. Insert it in Terminal (Ctrl-V) and press Enter.
4. Close Terminal.
5. Open Terminal.
6. Type: "bash -c $(tail -n 1 .bash_history)" and press Enter.
Comment 8 Alexander Kurakin 2019-04-27 13:17:14 CEST
UPD to the last scenario in the last comment: it hangs up at point 3 but doesn't hang up at point 6.

Next. It doesn't hang up on copy of that dir. So, after

$ cp -R '/home/sasha/Рабочий стол/_1' '/home/sasha/Рабочий стол/_2'

modified version (s/_1/_2/) of topic start command *doesn't* hang up new terminal.

I don't want to modify the original folder because I'm afraid it will stop to reproduce. But I'm ready to continue the investigation.
Comment 9 Egmont Koblinger 2019-04-27 16:06:21 CEST
What's the encoding of your terminal (Edit -> Preferences -> Advanced -> Default character encoding)?

What does `locale charmap` report?

What does `echo $VTE_VERSION` say? If lower than 5400 then could you please upgrade VTE to version 0.54.0 or newer?

What happens if you do an `unset PROMPT_COMMAND` and then `cd` to that directory, does it still hang?

Do you see anything suspicious in the output of `dmesg` that could perhaps refer to some file system or disk error?
Comment 10 Alexander Kurakin 2019-04-29 07:37:25 CEST
(In reply to Egmont Koblinger from comment #9)
> What's the encoding of your terminal (Edit -> Preferences -> Advanced ->
> Default character encoding)?

Default (UTF-8)

> What does `locale charmap` report?

UTF-8

> What does `echo $VTE_VERSION` say? If lower than 5400 then could you please
> upgrade VTE to version 0.54.0 or newer?

4804. Will upgrade.

> What happens if you do an `unset PROMPT_COMMAND` and then `cd` to that
> directory, does it still hang?

Does.
 
> Do you see anything suspicious in the output of `dmesg` that could perhaps
> refer to some file system or disk error?

No.
Comment 11 Alexander Kurakin 2019-04-29 07:53:48 CEST
$ echo $VTE_VERSION
5404

Nothing changed.
Comment 12 Egmont Koblinger 2019-04-29 08:53:59 CEST
Can you reproduce the problem in `xterm`?
Comment 13 Alexander Kurakin 2019-04-29 16:38:06 CEST
(In reply to Egmont Koblinger from comment #12)
> Can you reproduce the problem in `xterm`?

Yes (`cd` hangs xterm).
Comment 14 Alexander Kurakin 2019-04-29 16:41:49 CEST
(In reply to Alexander Kurakin from comment #7)

(Addition.) Next scenario *doesn't* hang up new terminal:
1. Use my filesystem :)
2. Copy *path* from topic start (Ctrl-C).
3. Open XFCE Terminal or xterm.
4. Type: "v='<Ctrl-V>'" and press Enter.
5. Type: "cd '$v'" and press Enter.
Comment 15 Egmont Koblinger 2019-04-29 18:27:08 CEST
> Yes (`cd` hangs xterm).

At this point I'm absolutely puzzled. Some problem with the file system is still my best guess. But at least we now know for sure that it's not a problem with xfce4-terminal or vte.

The next thing you could do is debug/strace what your shell does.

> Type: "cd '$v'" and press Enter.

I assume you meant to quote it differently; in its current form you're cd'ing to the directory called "dollar-vee", without doing variable substitution.
Comment 16 Alexander Kurakin 2019-04-29 18:33:47 CEST
> I assume you meant to quote it differently; in its current form you're cd'ing to the directory called "dollar-vee", without doing variable substitution.

Yes :-) I reprinted quotes incorrectly here.
Comment 17 Igor editbugs 2019-04-29 18:44:09 CEST
This is an interesting case but I'm closing this bug since the problem is unrelated to xfce4-terminal.

Egmont, thanks for the support!
Comment 18 Alexander Kurakin 2019-04-29 22:38:14 CEST
strace of `cd`:

https://gist.github.com/kuraga/7dab4eff51ff16d8d5d86b56d8bbedf6

Bug #15326

Reported by:
Alexander Kurakin
Reported on: 2019-04-25
Last modified on: 2019-04-29

People

CC List:
2 users

Version

Version:
0.8.7.4

Attachments

Additional information