Exception 0xC0000005 after invoking BASS_StreamCreateURL

Started by nadia,

nadia

Hello  ;D

any clue on what could cause an exception 0xC0000005 after invoking the BASS_StreamCreateURL function?
It happened a couple of times only and the call stack didn't gave much but here it is the code that was reported

bass.dll!00007ffca0181d4e()

the version of bass is 2.4.18.18

Any idea?

Kind regards

nadia

Ian @ un4seen

Please provide a dump file from the crash to have a look at here:

   ftp://ftp.un4seen.com/incoming/

From the "bass.dll!00007ffca0181d4e()" line above, it looks like you're catching it in Visual Studio? If so, you can use its "Save Dump As..." option to get a dump file. If you've had the crash outside of Visual Studio, also check your "%LOCALAPPDATA%\CrashDumps" folder for a dump file.

nadia

Hello,  ;D

unfortunately I'm not able to replicate the issue and no minidump was generated; below the full contents of the call stack that was missing in my previous message:

    [Unhandled exception at 0x0000000000000000 in logger.exe: 0xC0000005: Access violation executing location 0x0000000000000000.]   
    [Frames may be missing, no binary loaded for bass.dll]   
>    bass.dll!00007fff5f111d4e()    Unknown

Hope this helps

Kind regards

nadia

Ian @ un4seen

Unfortunately, can't really tell anything from just that - also need the BASS.DLL base address at least, to calculate the offset. If you happen to catch the crash again, please get a dump file (using the "Save Dump As..." option).

nadia

Hello  ;D

unfortunately i'm on vacation with a very limited bandwidth and the dmp file is around 500 MB so I cannot upload it.
Here is a more detailed call stack that could be of better help:

    [Unhandled exception at 0x0000000000000000 in logger.dmp: 0xC0000005: Access violation executing location 0x0000000000000000.]   
>    0000000000000000()    Unknown
    bass.dll!00007ff9e9e31d4e()    Unknown
    bass.dll!00007ff9e9e3b002()    Unknown
    bass.dll!00007ff9e9e3b49b()    Unknown
    bass_opus.dll!BASS_OPUS_StreamCreateURL() + 41 bytes    Unknown
    AdjMmsEng64.dll!00000001801ad9d3()    Unknown
    AdjMmsEng64.dll!00000001801ae822()    Unknown
    kernel32.dll!BaseThreadInitThunk() + 23 bytes    Unknown
    ntdll.dll!RtlUserThreadStart() + 44 bytes    Unknown

Using the .map file generated when bass.dll is compiled could be of help?
It must be noted that I'm not using the very latest bassopus (currently using version 2.4.2.1) and that the problem arose after I upgraded bass from version 2.4.17.23 to version 2.4.18.18 ; may be that this could be the issue?

Kind regards

nadia

Ian @ un4seen

That looks like BASS tried to call a WININET.DLL function before the function was imported. There was recently a change in how the WININET.DLL functions are imported, and I see now there's a regression in that which could cause this crash if the first 2 internet stream creation calls are made simultaneously - is that what you're doing? Here's an update to fix the regression:

    www.un4seen.com/stuff/bass.zip

Let me know whether it helps.

nadia

Hello  ;D
indeed there are a few calls in a very short time for the creation of internet streams from different threads; the patched version seems to have sorted out the issue. Thanks

Kind regards  ;D

nadia