! 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 !
xfce freezes when using a command line application in launcher without "run i...
Status:
RESOLVED: WONTFIX
Priority:
Very Low
Product:
Xfce4-panel
Component:
Launcher

Comments

Description Roshan 2005-01-13 00:10:28 CET
Steps to recreate problem:

1. Choose commandline app (e.g. 'cplay')
2. Add launcher for chosen app, without selecting "run in terminal"

Result:  xfce freezes.  Mouse can move, but cannot select anything (other
windows, etc.).  When switching to a virtual terminal then back to X, panel
graphic is not refreshed and instead is just a gray box.  

Expected Behavior:  program should just not run, or the command should not be
run.  All of xfce should not freeze.

Reproducible: Always
Steps to Reproduce:
1. Choose commandline app (e.g. 'cplay')
2. Add launcher for chosen app, without selecting "run in terminal"
Actual Results:  
Result:  xfce freezes.  Mouse can move, but cannot select anything (other
windows, etc.).  When switching to a virtual terminal then back to X, panel
graphic is not refreshed and instead is just a gray box.  

Expected Results:  
Expected Behavior:  program should just not run, or the command should not be
run.  All of xfce should not freeze.
Comment 1 Jasper Huijsmans editbugs 2005-01-13 06:43:08 CET
Yeah, this is a known issue with X. I tried to solve it once, but it failed.
Anyone who is willing to work on this is most welcome to try.
Comment 2 Ori Bernstein 2005-08-25 17:04:46 CEST
Created attachment 298 
Prevents X from freezing when launching console app (Fingers crossed)

I played around with this bug, and I still don't understand it, but the
attached seems to fix the problem. At the very least, it neatens the indents =)


All I've done is add flags to g_spawn_async_with_pipes() to close of stderr and
stdout.

If people could test this to make sure it actually makes a difference, it would
be good.

Also, if anyone could shed some light on *why* it works (at least for me), that
would also be great.
Comment 3 Ori Bernstein 2005-08-30 18:58:37 CEST
an additional note to my previous patch: it seems like all output streams must
be directed to /dev/null for it to work, so leaving stderr open isn't any good.

I haven't tried yet, but possibly directing stderr to an error log of some sort
would work, and keep error logs around.

Also, I still haven't figured out why this patch works, and I'm not all that
sure where to start trying.
Comment 4 Jasper Huijsmans editbugs 2005-09-06 16:05:14 CEST
(In reply to comment #3)
> an additional note to my previous patch: it seems like all output streams must
> be directed to /dev/null for it to work, so leaving stderr open isn't any good.
> 
> I haven't tried yet, but possibly directing stderr to an error log of some sort
> would work, and keep error logs around.
> 
> Also, I still haven't figured out why this patch works, and I'm not all that
> sure where to start trying.

I'm afraid this doesn't work for me. My test app, mc, still freezes everything
and I can't even get X to regain control after killing mc.

I also tried running setsid() in the child, but that didn't work either :( I
wonder if someone really knows what is going on here. I'd like to know...
Comment 5 Brian J. Tarricone (not reading bugmail) 2005-10-15 11:34:17 CEST
*** Bug 135 has been marked as a duplicate of this bug. ***
Comment 6 Harold Aling 2007-02-15 20:52:22 CET
I tried to reproduce it in 4.4 using 'top', but nothing happened...

Closing as 'fixed'...
Comment 7 Olivier Fourdan editbugs 2007-02-15 20:57:07 CET
It's fairly unavoidable unfortunately. It's a bug as old as X itself. It shows only when X is started from a console (ie not from gdm).
Comment 8 Brian J. Tarricone (not reading bugmail) 2007-02-15 21:01:32 CET
...
Comment 9 Nick Schermer editbugs 2011-12-24 12:47:12 CET
Going to close this, not much we can do about it and nobody complained since 2005.
Comment 10 Mateus 2019-07-23 14:14:27 CEST
*** Bug 15719 has been marked as a duplicate of this bug. ***

Bug #682

Reported by:
Roshan
Reported on: 2005-01-13
Last modified on: 2019-07-23
Duplicates (2):
  • 135 system hangsup after running mc on 'mini comand' panel plugin
  • 15719 XFCE4 sometimes freezes when using an alarm command

People

Assignee:
Nick Schermer
CC List:
2 users

Version

Version:
Unspecified

Attachments

Additional information