| View previous topic :: View next topic |
| Author |
Message |
almostlucky n00b


Joined: 10 Jun 2002 Posts: 33
|
Posted: Tue Sep 03, 2002 11:57 pm Post subject: PWM + MPlayer = Borked |
|
|
When i launch Mplayer in PWM, it locks up, and i have to close X to get anything working again. But this only happens from a menu, or when Mozilla launches Mplayer. I can run it from a command line just fine. Haven't had any problems with Mplayer and any other WM's either. Any ideas?  |
|
| Back to top |
|
 |
ebrostig Bodhisattva


Joined: 20 Jul 2002 Posts: 3152 Location: Orlando, Fl
|
Posted: Wed Sep 04, 2002 12:55 am Post subject: Re: PWM + MPlayer = Borked |
|
|
| almostlucky wrote: | When i launch Mplayer in PWM, it locks up, and i have to close X to get anything working again. But this only happens from a menu, or when Mozilla launches Mplayer. I can run it from a command line just fine. Haven't had any problems with Mplayer and any other WM's either. Any ideas?  |
Ok, first, which wm is PWM? (Can't keep up with all the window managers flowing onto the arena these days )
Secondly, is mplayer started from the menu with the complete path? i.e /usr/bin/mplayer or just mplayer? If the latter, it may not be able to pick up the correct libraries or other parts it may need or even an old version that is trying to use a newer library. Stranger things has happened!
Since it runs fine from the command line (using xterm or a similar console I assume?), it has to be a configuration issue.
Erik |
|
| Back to top |
|
 |
almostlucky n00b


Joined: 10 Jun 2002 Posts: 33
|
Posted: Wed Sep 04, 2002 1:12 am Post subject: |
|
|
Click For Full Size
[img:cbe1da71d5]http://home.attbi.com/~almostlucky/pwm1_thumb.jpg[/img:cbe1da71d5]
PWM is a tabbed, minimalistic WM. Its an older one, i beleive.
First thing i thought was that it was a problem with a config file. But then i tried it as root ( Which hasn't run pwm or mplayer, and has no config files in the dir). Still locked up.
It doesnt make a difference if i use the complete path or not, apparently.
The only way i can get it to start from a menu, is by doing a
| Code: | | "exec", "xterm -e mplayer" |
but that is a cheap work-around |
|
| Back to top |
|
 |
ebrostig Bodhisattva


Joined: 20 Jul 2002 Posts: 3152 Location: Orlando, Fl
|
Posted: Wed Sep 04, 2002 1:29 am Post subject: |
|
|
Ok, I see.
Well, I guess it is time to pull out the good old strace again
Try this:
1. emerge strace
2. Change the menu to "exec", "strace -f -o mplayer.log mplayer"
Then try to execute it again, hopefully it will hang and the tracefile will show us where. Paste in the last 20-30 lines of the mplayer.log file which contains the trace.
The problem is to attach a debugger or tracing utility to mplayer when it hangs, this is not easy. If the previous idea does not cause a hang, we need to attach strace to the hanging process. Does it lock up the WM too? Can you switch to a textbased console using alt+ctrl+F1 when it hangs?
Erik |
|
| Back to top |
|
 |
almostlucky n00b


Joined: 10 Jun 2002 Posts: 33
|
Posted: Wed Sep 04, 2002 2:00 am Post subject: |
|
|
When it locks up, a simple ctrl+alt+backspace kicks me back to the console. The whole wm locks up, not just mplayer. It didnt even APPEAR to launch, and it didnt freeze. But here are the last lines of the log:
| Code: | 3946 open("/usr/share/mplayer/font//iso-8859-1-b.raw", O_RDONLY|O_LARGEFILE) = 11
3946 fstat64(11, {st_mode=S_IFREG|0644, st_size=71552, ...}) = 0
3946 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40075000
3946 read(11, "mhwanh\0\4\f\220\0\26\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
3946 read(11, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 65536) = 65536
3946 read(11, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 1920
3946 close(11) = 0
3946 munmap(0x40075000, 4096) = 0
3946 read(10, "00D2|\322\n0x00d3 2424 2440;\tU+00D3|"..., 4096) = 1823
3946 open("/usr/share/mplayer/font//osd-mplayer-a.raw", O_RDONLY|O_LARGEFILE) = 11
3946 fstat64(11, {st_mode=S_IFREG|0644, st_size=11200, ...}) = 0
3946 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40075000
3946 read(11, "mhwanh\0\4\1\240\0\31\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
3946 read(11, "\0\1\25t\340\374\376\376\370\274+\1\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
3946 read(11, "\0\0\21c\321\372\377\377\377\377\377\377\377\377\377\377"..., 4096) = 3008
3946 close(11) = 0
3946 munmap(0x40075000, 4096) = 0
3946 open("/usr/share/mplayer/font//osd-mplayer-b.raw", O_RDONLY|O_LARGEFILE) = 11
3946 fstat64(11, {st_mode=S_IFREG|0644, st_size=11200, ...}) = 0
3946 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40075000
3946 read(11, "mhwanh\0\4\1\240\0\31\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
3946 read(11, "\0\0\0\0T\377\377\377\254\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
3946 read(11, "\0\0\0\0\7\316\377\377\377\377\377\377\377\377\377\377"..., 4096) = 3008
3946 close(11) = 0
3946 munmap(0x40075000, 4096) = 0
3946 read(10, "", 4096) = 0
3946 close(10) = 0
3946 munmap(0x40074000, 4096) = 0
3946 write(1, "Font /usr/share/mplayer/font/fon"..., 72) = 72
3946 ioctl(0, SNDCTL_TMR_TIMEBASE, {B38400 opost isig icanon echo ...}) = 0
3946 ioctl(0, SNDCTL_TMR_START, {B38400 opost isig -icanon -echo ...}) = ? ERESTARTSYS (To be restarted)
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 --- SIGTTOU (Stopped (tty output)) ---
|
.....then a WHOLE LOT OF this.....
| Code: | 3946 ioctl(0, SNDCTL_TMR_START, {B38400 opost isig -icanon -echo ...}) = ? ERESTARTSYS (To be restarted)
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 ioctl(0, SNDCTL_TMR_START, {B38400 opost isig -icanon -echo ...}) = ? ERESTARTSYS (To be restarted)
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 ioctl(0, SNDCTL_TMR_START, {B38400 opost isig -icanon -echo ...}) = ? ERESTARTSYS (To be restarted)
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 ioctl(0, SNDCTL_TMR_START, {B38400 opost isig -icanon -echo ...}) = ? ERESTARTSYS (To be restarted)
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 ioctl(0, SNDCTL_TMR_START, {B38400 opost isig -icanon -echo ...}) = ? ERESTARTSYS (To be restarted)
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 ioctl(0, SNDCTL_TMR_START, {B38400 opost isig -icanon -echo ...}) = ? ERESTARTSYS (To be restarted)
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 ioctl(0, SNDCTL_TMR_START, {B38400 opost isig -icanon -echo ...}) = ? ERESTARTSYS (To be restarted)
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 ioctl(0, SNDCTL_TMR_START, {B38400 opost isig -icanon -echo ...}) = ? ERESTARTSYS (To be restarted)
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 --- SIGTTOU (Stopped (tty output)) --- |
...finally this....
| Code: | 3946 ioctl(0, SNDCTL_TMR_START, {B38400 opost isig -icanon -echo ...}) = ? ERESTARTSYS (To be restarted)
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 ioctl(0, SNDCTL_TMR_START, {B38400 opost isig -icanon -echo ...}) = ? ERESTARTSYS (To be restarted)
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 --- SIGTTOU (Stopped (tty output)) ---
3946 --- SIGHUP (Hangup) ---
3946 write(6, "\221\2\2\0\3\0\0\1\1\20\f\0\10\0\0\1b\0\0\0\0\0\0\0\310"..., 284) = -1 EPIPE (Broken pipe)
3946 --- SIGPIPE (Broken pipe) ---
3946 +++ killed by SIGPIPE +++ |
BTW, thanks for the quick responses
edit: oops... posted wrong log , fixed |
|
| Back to top |
|
 |
pjp Administrator


Joined: 16 Apr 2002 Posts: 15989 Location: Colorado
|
Posted: Wed Sep 04, 2002 2:57 am Post subject: |
|
|
Is that xmms I see running? If it is, try closing it, then try starting mplayer. Close any program using sound. _________________ Safety is my gaol.
US Constitution | Amendments |
|
| Back to top |
|
 |
almostlucky n00b


Joined: 10 Jun 2002 Posts: 33
|
Posted: Wed Sep 04, 2002 3:56 am Post subject: |
|
|
| Yea, that is xmms in the screenshot, but nothing was runnung when i was trying mplayer |
|
| Back to top |
|
 |
zypher Retired Dev


Joined: 10 Jun 2002 Posts: 413 Location: Cologne, ger.
|
Posted: Wed Sep 04, 2002 5:54 am Post subject: |
|
|
Run X with twm and try mplayer.
If it still crashes, check your make.conf settings.
If it doesn't, check pwm and maybe rebuild it.
I've no idea what the strace output means but I tried some multimedia-apps and had to recompile them in special order to get them working correctly.
I also had to change CFLAGS for several libs (compiled fine with -O3 but did not work afterwards).
BTW that's on gcc3.2 and ymmw. _________________ linux user 65882 |
|
| Back to top |
|
 |
almostlucky n00b


Joined: 10 Jun 2002 Posts: 33
|
Posted: Wed Sep 04, 2002 6:30 am Post subject: |
|
|
Ill try to recompile pwm. Mplayer works fine with every other wm ive used since i installed it (waimea, flux, openbox, windowmaker, and it even works with twm:))
I also noticed this on the mailing list from Aug 27:
| Quote: | I'm using pwm as my window manager. When I open up an xterm and start gmplayer manually by just typing "gmplayer", everything works perfectly. So I added gmplayer to my pwm menu, running the exact same "gmplayer" to start. When I start the program through the pwm menu, my whole X session locks up. The only way to get it back is to ctrl-alt-backspace out and restart X.
I've tried switching to another console and doing a kill -9 on gmplayer, no luck. The only thing that gets me anywhere is a kill -9 on pwm, but of course that kills my X-session as well.
Running from the menu in fluxbox works fine, I only have this problem in pwm. I'm running Gentoo 1.4 (beta) with gcc 3.2. Has anyone experienced this? If not, I'd appreciate if somebody could at least temporarily emerge pwm and see if they can replicate this. |
I replied to that, maybe he has found a solution. Ill try the pwm/ion mailing list too. Hopefully ill come up with something. |
|
| Back to top |
|
 |
chr1z Apprentice

Joined: 17 Jul 2002 Posts: 207
|
Posted: Sat Jan 18, 2003 1:05 am Post subject: |
|
|
| i have the same problem. please let us know if u found a solution! |
|
| Back to top |
|
 |
frogger n00b

Joined: 05 Dec 2002 Posts: 35
|
Posted: Sat Jan 18, 2003 1:51 am Post subject: |
|
|
This is a known problem with PWM. I submitted a bug report on it awhile ago, but it is PWM related and not Gentoo related.
I have contacted the developer of PWM about this issue. It seems this was a bug that was fixed in Ion, but never made it into the PWM code. I was looking into this, but have been unable to get a fix working so far. I'm hoping to have another shot at it sometime when I have some more time.
For anyone else interested in fixing this issue, the suggestion from Tuomo Valkonen (the one who wrote PWM) was the following: "Try adding setpgid(0,0) before the execvpe call in wm_do_exec (exec.c)"
Until then, just execute MPlayer from an xterm instead of the menu, or use the following in the menu (either of which will work fine):
entry "gmplayer", "exec", "gmplayer > /dev/null &"
OR
entry "gmplayer", "exec", "xterm -e gmplayer"
-Matt |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|