Author Topic: Maybe there is a bug in basswma.dll(with test code)  (Read 2432 times)

zerglurker

  • Posts: 10
Hello ,I am back with a new problem.
Now I'm testing the basswma.dll.
The environment is follow:
Window Media Play 10.0
Windows XP SP3
bass.dll 2.4.5.19
basswma.dll 2.4.3.0
problem is follow:
The VS2008 debugger report a access exception when I play a wma music
The music is playing sound well.And it can paly to the end.
But the debugger report is bad.it seems that there may be some memory leek happen one day.
the reports is like this:(My vertion is a chinese vertion,so i have to translate it to english.This may be a little different from you see in a english vertion.)
BASSWmaTest.exe at position 0x086d7679 most possible exception: 0xC0000005:  write in 0x00000000 ,occur access exception
BASSWmaTest.exe at position 0x086d7b16 most possible exception: 0xC0000005:  write in 0x00000000 ,occur access exception
BASSWmaTest.exe at position 0x086d8903 most possible exception: 0xC0000005:  write in 0x00000000 ,occur access exception
The reports is show in "debug" window or "immediately" window by the VS2008.
And My friend tell me that vs2005 will also report that in debug window.
test code is follow:
//APP type is "windows console"
// BASSWmaTest.cpp :
//

#include "stdafx.h"
#include <windows.h>
#include <conio.h>
#include "bass.h"
#include "basswma.h"

int _tmain(int argc, _TCHAR* argv[])
{
   if (HIWORD(BASS_GetVersion())!=BASSVERSION) {
      return BASS_ERROR_VERSION;
   }
   if(BASS_Init(-1,44100,0 ,NULL,NULL)==FALSE){
      return BASS_ErrorGetCode();
   }
   HSTREAM hMusic = BASS_WMA_StreamCreateFile(FALSE,"D:\\DsppaProject\\BASSWmaTest\\BASSWmaTest\\1.wma",0,0,0);
   if(NULL == hMusic){
      return BASS_ErrorGetCode();
   }
   BASS_ChannelPlay(hMusic,FALSE);
   while(!_kbhit() && BASS_ChannelIsActive(hMusic)){
      printf("%08X\r",BASS_ChannelGetPosition(hMusic,BASS_POS_BYTE));
      Sleep(100);
   };
   if(BASS_ChannelIsActive(hMusic)){
      BASS_ChannelStop(hMusic);
   }
   BASS_StreamFree(hMusic);
   return 0;
}
Maybe you are sleepling now.Please check this ,when you are wake up ;D
I'm waiting for you,Thanks ::)


Ian @ un4seen

  • Administrator
  • Posts: 20426
Re: Maybe there is a bug in basswma.dll(with test code)
« Reply #1 on: 3 Aug '10 - 18:07 »
Please let Windows catch the crash (instead of the debugger), and then upload your DRWTSN32.LOG file to have a look at here...

   ftp.un4seen.com/incoming/

Also, does the problem affect all WMA files, or only a particular file? If the latter, please upload that too.

zerglurker

  • Posts: 10
Re: Maybe there is a bug in basswma.dll(with test code)
« Reply #2 on: 4 Aug '10 - 01:27 »
yes ,it affect all WMA files
the log file ,I will upload latter.

zerglurker

  • Posts: 10
Re: Maybe there is a bug in basswma.dll(with test code)
« Reply #3 on: 4 Aug '10 - 02:18 »
 ???
I can not find any log file in the place
C:\Documents and Settings\dsp\Local Settings\Application Data\Microsoft\Dr Watson
The detail i describe in the txt file uploaded to the incoming dir
I also upload the 1.wma file and the project to help me to describe the problem.
« Last Edit: 4 Aug '10 - 03:00 by zerglurker »

Ian @ un4seen

  • Administrator
  • Posts: 20426
Re: Maybe there is a bug in basswma.dll(with test code)
« Reply #4 on: 4 Aug '10 - 14:04 »
I am unable to reproduce the problem with your test on an XP SP3 system, so perhaps it is down the codecs installed on your system.

You mentioned that the file plays to the end. Does that mean it crashes when you free the stream (BASS_StreamFree) or when the program exits (after "return 0"), or do those messages just appear in the debugger console and the program continues running? If the crash/messages appear when exiting, you could try adding a BASS_Free call.

Btw, the DRWTSN32.LOG file should be located in this directory...

   C:\Documents and Settings\All Users\Application Data\Microsoft\Dr Watson

zerglurker

  • Posts: 10
Re: Maybe there is a bug in basswma.dll(with test code)
« Reply #5 on: 5 Aug '10 - 03:51 »
Tanks for you attention. ;D
I will try bass_free ,and report it later
In my application , i don't use bass_free in it.
when the application runs,it can play without crash or error.
but when i debug it ,the debugger can detect something and sends messages while wma file  is playing.In these messages ,the debugger reports that it detect some latent problems about the memory write.
there messages will not applear in anyother type music playing.
the debugger will not report these in wav file or mp3 file or midi file
So i gess there maybe something error about basswma.dll
And this bug is covert now.
In the incoming dir ,i send some pictures while i'm debuging.
I hope these can help you understand what i found. :P
Later,i will report bass_free status.

zerglurker

  • Posts: 10
Re: Maybe there is a bug in basswma.dll(with test code)
« Reply #6 on: 5 Aug '10 - 10:43 »
i have try it with bass_free
i use it after streamfree function
it reported nothing
even the debugger reported nothing about bass_free also.
but while wma file is playing,the debugger still sends warnnings
by the way,i find one thing
the warning is send after these dll loading
“C:\WINDOWS\system32\WMVCore.dll”
“C:\WINDOWS\system32\wmasf.dll”
“C:\WINDOWS\system32\mlang.dll”
“C:\WINDOWS\system32\msdmo.dll”
“C:\WINDOWS\system32\wmadmod.dll”
Maybe the wmasf.dll and wmadmod.dll cause it. :-\

Ian @ un4seen

  • Administrator
  • Posts: 20426
Re: Maybe there is a bug in basswma.dll(with test code)
« Reply #7 on: 6 Aug '10 - 15:43 »
The messages appear mid-playback? If so, are they always at the same positions? You could try running Windows Media Player under the debugger and see if you get the same messages playing the WMA file with that.

If the messages aren't actually resulting in a crash, I guess they aren't a major problem. That also means they probably won't show up in the DRWTSN32.LOG file either.

zerglurker

  • Posts: 10
Re: Maybe there is a bug in basswma.dll(with test code)
« Reply #8 on: 7 Aug '10 - 03:07 »
I have got the email form Un4seen
because today is a weekend ;D,i will send the test about the window media player in the night
What you say is a good idea ;)
Maybe this is a bug int media player.
Thanks very much for you attention, :-*

zerglurker

  • Posts: 10
Re: Maybe there is a bug in basswma.dll(with test code)
« Reply #9 on: 9 Aug '10 - 01:24 »
Now, i can be sure that it's caused by windows media player.
When i debug the WMP ,the debugger give me the same reports.
I will try to ask MS for help
Thanks for you  ;D