Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, degenerate_762), 1,309 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Media_play crash #44147
04/12/05 07:40
04/12/05 07:40
Joined: Jan 2003
Posts: 710
T
Templar Offline OP
Developer
Templar  Offline OP
Developer
T

Joined: Jan 2003
Posts: 710
Hi,

I've experienced crash when using media_play - the engine suddenly quits without any error message or entry in acklog.txt when executing the instruction.

I've been able to reproduce it even with a new empty level with no other script at all.
What the script does is basically this:

1) select random .wma file
2) media_play it
3) after random 1 - 4s sleep terminate it
4) start over

Now the crash happens (tested numerous times) after playing of (by repeating the loop) 140-160 files. I've checked task manager and there seems to be no memory leak - the memory is allocated and freed just fine.

It seems to, however, happen only on certain PCs. I have been unable to find the difference that could cause this. The PCs with this problem had both WinXP and Win 2000 installed, 512 MB RAM, AMD processor and C-Media internal audio (but there are some PC that had not this problem while having the same C-Media audio).

Can you please try that on some of you test configurations? If needed, I can send the small testing project along with DXdiag info from some of the affected PCs.

thank you.

Re: Media_play crash [Re: Templar] #44148
04/12/05 08:28
04/12/05 08:28
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Yes, I can test it if you send me that project. If it only happens on a certain PC, it's probably a CODEC bug, maybe in combination with that particular WMA file. However I must tell you in advance that even if we can reproduce the bug, we most likely won't be able to do anything about it.

Re: Media_play crash [Re: jcl] #44149
04/12/05 09:40
04/12/05 09:40
Joined: Jan 2003
Posts: 710
T
Templar Offline OP
Developer
Templar  Offline OP
Developer
T

Joined: Jan 2003
Posts: 710
Thank you for your reply, I've sent you the mail. I was able to produce it even when playing a single empty .wma file over and over again.

EDITED:

I'm sorry, there's a bug in the script I sent you.
string strTemp[10];
should be
string strTemp[20];
otherwise the sound isn't found and played. I apologize and send corrected version.

also:

The sound file doesn't have to play for long, so the sleep() part can be replaced with wait(1). And what's most strange - after I set the script to play only one file, the crash happens always at the same place (after being played 125 times - with this file).

Last edited by Templar; 04/12/05 10:16.
Re: Media_play crash [Re: Templar] #44150
04/13/05 07:56
04/13/05 07:56
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Thanks, I've got it and will try to reproduce the problem on some of our test systems in the next days.

Re: Media_play crash [Re: jcl] #44151
04/20/05 09:13
04/20/05 09:13
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
We've run a test on several systems and could not observe a problem. So I suppose it's indeed related to a Codec on that particular system.

Re: Media_play crash [Re: jcl] #44152
04/24/05 04:21
04/24/05 04:21
Joined: Jul 2003
Posts: 82
Southern California
lucidman Offline
Junior Member
lucidman  Offline
Junior Member

Joined: Jul 2003
Posts: 82
Southern California
JCL,

This same crash was happening to me awhile back until I disabled my ZipDrive driver. The driver was apparently polling the printer port once each second causing the engine to stop momentarily. It was annoying but occasionally it would crash.





Vision is mind
Mind is emptiness
Empty is clear light
Clear light is union
Union is great bliss
Re: Media_play crash [Re: lucidman] #44153
04/25/05 07:49
04/25/05 07:49
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
This is interesting. Polling the parallel port certainly won't do harm to the engine, but maybe the zip driver does some other ugly things that cause a crash. It would be great if you could find out the driver version.

Re: Media_play crash [Re: jcl] #44154
04/26/05 07:17
04/26/05 07:17
Joined: Jan 2003
Posts: 710
T
Templar Offline OP
Developer
Templar  Offline OP
Developer
T

Joined: Jan 2003
Posts: 710
Hi, I'm sorry that I don't have time now to react more throroughly or do some tests - maybe later this week - but just to let you know : one of the affected PCs I wrote about indeed has IOmega zip drive installed, the other doesn't but did in the past so there may still be some drivers active. This really sounds like a very probable cause...


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1