Re: [i3] i3 hangs, when I execute this script => bug?

  • From: "Sasha" <crawlingwithsnakes@xxxxxxxx>
  • To: i3-discuss@xxxxxxxxxxxxx
  • Date: Sat, 06 Feb 2010 19:57:36 -0400

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Sat, 06 Feb 2010 07:52:45 -0400 Uli Armbruster
<uli.armbruster@xxxxxxxxxxxxxx> wrote:

Hi, it's me again, the new mister i3-user ;-)


I managed to configure everything the way I want it, am really
happy with i3. But there's one little thing that disturbs me and I
can't figure out, what's the problem.

I have a tv card and I have to use mplayer to watch tv, because
it's the only app which can handle my tv card. So I have a script
for watching tv, which looks like this


#!/bin/bash
mplayer tv:// -tv
driver=v4l2:norm=PAL:fps=25:width=768:height=576:device=/dev/video0
:chanlist=europe-
west:alsa=yes:adevice=plughw.1,0:audiorate=32000:forceaudio:immedia
temode=0:channels=\
E7-ARD,\
E6-ZDF,\
E5-SWR_BW,\
SE10-BR,\
E10-Sat1,\
SE14-Pro7,\
E9-RTL,\
SE7-MTV,\
SE12-VIVA,\
SE6-Kabel1,\
SE5-VOX,\
E12,DSF,\
SE4-Tele5,\
SE9-Phoenix,\
SE11-SuperRTL,\
SE13-3sat,\
SE15-EuroSport,\
E11-ZDF-Doku,\
SE16-RTL2,\
SE17-WDR,\
SE18-NDR,\
22-SF_DRS,\
47-SF2,\
24-ORF1,\
23-ORF2,\
25-RegioTV,\
26-N24,\
27-NTV,\
28-MDR,\
31-ARTE,\
34-DMAX,\
36-Das_Vierte,\
41-BR_alpha,\
42-HR,\
44-CNN,\
45-Bloomberg,\
50-AnixeSD,\
51-RBB\
-af volnorm -vf pp=lb -vo xv -delay 0.2

(I still have to find a good chanel order ;-) )

It works, when I run it from urxvt, but when I start it with
dmenu, i3 completely crashes. But it cannot be a dmenu issue,
because it worked in musca (which uses dmenu as well). All I can
do is go to tty and hit ^C. Here's an output, which tells me
something like "mplayer crashed. that should not happen" (in case
it's really relevant, I can provide the complete output).


Anyone with an idea?

Regards
Army

This may be obvious, but also obvious enough to overlook:

Are you sure to fork off the dmenu execution from the i3 process,
as well as fork off the mplayer script from dmesg? I mean, using
the "&" to fork the process?
Otherwise, dmenu will remain "attached" to i3, and mplayer will
remain "attached" to dmenu, causing non-desirable effects :-)

I did have a similar thing happen, and forking off the process I
had forgotten to, fixed the problem.

Sasha
-----BEGIN PGP SIGNATURE-----
Note: This signature can be verified at https://www.hushtools.com/verify
Charset: iso-8859-1
Version: Hush 3.0

wpwEAQMCAAYFAktuBJYACgkQNSYFEb1mCzLOQgQAi1QQdHKRMIcMNuIp6uitpDh26g5u
T69Gp9xN5+GLNdiPX06Bg+60SyuVZlVDCuib7ZdVq4Tklh/H3LPFXZ5rOIuZpJ/j/nrR
Th952Km4uqiUhEqBNnYlkH/pWka9MKS4TPE1aaqnly8Y91s/SlMNYShzvGYZAwiIqqEW
zDdjBW4=
=rE8i
-----END PGP SIGNATURE-----


Other related posts: