Media Player Classic crashes

Found a bug in EventGhost? Report it here.
Post Reply
easy
Posts: 46
Joined: Wed Dec 05, 2007 10:05 pm

Media Player Classic crashes

Post by easy » Mon Dec 10, 2007 8:11 am

Hi all,

I am using MPC with latest EG beta. In general MPC crashes always if You press remote button more than once, and second event comes while MPC didn't finnish it's action on the first event.

Illustration:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Name="Configuration Tree" Expanded="True" Version="1240" Guid="{AE237D6B-FE0E-4E7F-A421-99BE69C6F65A}" Time="1197274096.69">
<Autostart Name="Autostart" Expanded="True">
<Plugin File="MediaPlayerClassic" Identifier="MediaPlayerClassic">gAIpLg==</Plugin>
</Autostart>
<Folder Name="Test" Expanded="True">
<Macro Name="Media Player Classic: Jump Backward Large" Expanded="True">
<Action>MediaPlayerClassic.JumpBackwardLarge()</Action>
<Action>EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)</Action>
</Macro>
</Folder>
</EventGhost>
It depends on Your PC's speed, but with this action You'll always crash MPC if You'll hold button for that macro.

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Media Player Classic crashes

Post by Bitmonster » Mon Dec 10, 2007 2:17 pm

I can not reproduce the problem here. MPC 6.4.9.1 runs fine here even after flooding it a minute with the macro.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

easy
Posts: 46
Joined: Wed Dec 05, 2007 10:05 pm

Re: Media Player Classic crashes

Post by easy » Mon Dec 10, 2007 3:29 pm

While playing?
MPC 6.4.9.1 playing usual DVDRip after 10 seconds of flood.

Tested on two PC's:
Core2 6400/2Gb Ram/400Gb HDD/IntelGMA3000
Pentium4 Northwood 2.4Ghz/1Gb Ram/80Gb HDD/Nvidia 5600 Ultra

This one action crashes it after one execution:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Name="Configuration Tree" Expanded="True" Version="1240" Guid="{8EC58A87-64C0-400A-8E12-C287E2641C42}" Time="1197300373.08">
<Autostart Name="Autostart" Expanded="True">
<Plugin File="MediaPlayerClassic" Identifier="MediaPlayerClassic">gAIpLg==</Plugin>
</Autostart>
<Folder Name="Test" Expanded="True">
<Macro Name="Media Player Classic: Jump Forward Large" Expanded="True">
<Action>MediaPlayerClassic.JumpForwardLarge()</Action>
<Action>MediaPlayerClassic.JumpForwardLarge()</Action>
<Action>MediaPlayerClassic.JumpForwardLarge()</Action>
<Action>MediaPlayerClassic.JumpForwardLarge()</Action>
<Action>MediaPlayerClassic.JumpForwardLarge()</Action>
<Action>MediaPlayerClassic.JumpForwardLarge()</Action>
<Action>MediaPlayerClassic.JumpForwardLarge()</Action>
<Action>MediaPlayerClassic.JumpForwardLarge()</Action>
</Macro>
</Folder>
</EventGhost>
Log:
Media Player Classic: Jump Forward Large
Media Player Classic: Jump Forward Large
Media Player Classic: Jump Forward Large
Media Player Classic: Jump Forward Large
Media Player Classic: Jump Forward Large
MediaPlayerClassic not running
Media Player Classic: Jump Forward Large
MediaPlayerClassic not running
Media Player Classic: Jump Forward Large
MediaPlayerClassic not running
Media Player Classic: Jump Forward Large
MediaPlayerClassic not running
Media Player Classic: Jump Forward Large
MediaPlayerClassic not running
For this example I have played:
Filesize: 1398.28 Mb ( 1.466.202.112 bytes )
Play length: 01:40:10.000 (150250 frames)
Subtitles: Not Present
Video: 640x352 (1.82:1), 25 fps, XviD MPEG-4 ~1557 kbps avg, 0.28 bit/pixel
Audio: 48 kHz, AC3 Dolby Digital, 3/2 (L,C,R,l,r) + LFE ch, ~384.00 kbps avg
MPC must be running.

On slower P4 PC where seeking takes more time it can sometimes crash if I simply press buttons on remote faster.

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Media Player Classic crashes

Post by Bitmonster » Mon Dec 10, 2007 3:40 pm

No, doesn't crash either. But I don't have such a big MPEG4 file on my (quite slow) workstation. MPC might have a problem to answer the request in time. You can try to increase the SendMessage timeout value to circumvent this.

plugins/MediaPlayerClassic/__init__.py Line 200:
Change value 1000 to 2000 or even bigger.

But this looks like a bug of MPC, so it should be reported there also.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

easy
Posts: 46
Joined: Wed Dec 05, 2007 10:05 pm

Re: Media Player Classic crashes

Post by easy » Mon Dec 10, 2007 4:51 pm

I refuse to understand it then :)
I'we tested two different PC's, release and beta versions of EventGhost, original release 6.4.9.0 of MPC and guliverkli2 updated MPC, and all of them on both PCs crashes. I don't understand why it doesn't crash on Your PC...
Generally it's not only with JumpForward or any certain command. What I see is that if I press controls faster than MPC runs commands, MPC hangs. I'we discovered that first, while watching movies from network. Even on 100Mbit LAN the seeking is slower than locally, so there is a lot of time to press same JumpforwardLarge button...

I'we increased timeout, but it still changes nothing. But I'we seen something strange: For testing I'we created macro and started adding actions for JumpForward one by one. It still worked with 9 actions, but next execution it crashed after 3 of them...

Tomorow I'll try it on one more PC wich has more powerfull CPU, more RAM and HDD connected in RAID.
If unsuccessfull I'll be forced to switch to VLC and lose 5.1 sound :(


And for MPC bug - it isn't developed for one and a half year, would it make any difference. Only if I'd try to find solution by myself, make patch and contribute it to guliverkli2 project. And I miss lots of knowledge for that. I know php and perl, but I'm still noobie at desktop applications programming...

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Media Player Classic crashes

Post by Bitmonster » Mon Dec 10, 2007 5:36 pm

As it seems, the MPC project has forked. This one has some more updates lately (this is the one I tried):
http://sourceforge.net/project/showfile ... _id=205650

And then there is another fork:
http://tibrium.neuf.fr/
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

Post Reply