The InternetRadio Program crashes immediately

Started by Terry, November 20, 2024, 10:18:48 AM

Previous topic - Next topic

Terry

Hi,

I used your sample program InternetRadio.exe to connect to a streaming server set up with Icecast2 and with a connection limit.

Connections and playback are normal within the connection limit, but if the program connects under the condition of being the last available connection, it usually sometimes connects and sometimes doesn't. More often, the program crashes immediately without any error message, leaving an Application Error 1000 kernelbase.dll error record in the Windows Event Viewer.

Is there a way to solve this?

Thank you.
Terry

Terry

Hi,

I want to add that the Icecast server the program connects to does not use a playlist or mp3 file for streaming, but rather a stream similar to the following URL: http://ipaddress:8000/test

Thank you.
Terry

Administrator

Hello,

please, provide a valid URL that we can use to perform some testing in order to reproduce the issue.

Kind Regards

Severino Delaurenti
MultiMedia Soft

Terry

Hi,

http://220.135.102.142:8010/test

Sometimes it can connect and stream, sometimes it can't, and usually it suddenly crashes immediately. Please try several times.

Thank you.
Terry



Administrator

Hello,

we have tried several times to connect and, as you reported, most of the times the connection fails.
When the connection fails, by reading the URL directly, in a few cases we have got back an error message that the icecast connection reached its limit, in other cases we simply get back some stream of bytes without any useful information.

Unfortunately, in no case we experienced a crash so at the moment this doesn't allow us to understand its nature. If you could launch the InternetRadio.exe sample in debug mode from Visual Studio and get the call stack of the crash we could probably have a better understanding of the issue.

Kind Regards

Severino Delaurenti
MultiMedia Soft

Terry

#5
Hi,

When the connection and playback are normal, it usually triggers enumPlayerEvents.EV_STREAM_CONNECTING and then continues with the callback. However, when the program crashes, after triggering enumPlayerEvents.EV_STREAM_CONNECTING, the program stops responding and does not proceed to the callback. It crashed immediately after not responding for a few seconds, preventing the call stack from being checked.




Hope this information helps.

Thank you.
Terry



Administrator

Hello,

unfortunately this doesn't help because we cannot understand the exact point of the code where the application crashes.
In any case we have made a slight modification to our engine in order to avoid a potential issue when the connection to your test url fails. You can get the latest build of the multimedia engine from the link below:

https://www.multimediasoft.com/bins/AdjMmsEng14.zip
and you can use it to replace existing instances on your PC under the following folders:
* C:\Program Files\MultiMedia Soft\Audio Sound Suite API for .NET\Audio DJ Studio API for .NET\Redist
* C:\Program Files\MultiMedia Soft\Audio Sound Suite API for .NET\Audio Sound Recorder API for .NET\Redist
* C:\Program Files\MultiMedia Soft\Audio Sound Suite API for .NET\Audio Sound Editor API for .NET\Redist
* If your machine has a x86 version of Windows
   - C:\Windows\System32
* If your machine has a x64 version of Windows
   - C:\Windows\SysWOW64

The x64 version is available as well on the link below:
https://www.multimediasoft.com/bins/AdjMmsEng14_64.zip
and you can use it to replace existing instances on your PC under the following folders:
* C:\Program Files\MultiMedia Soft\Audio Sound Suite API for .NET\Audio DJ Studio API for .NET\Redist
* C:\Program Files\MultiMedia Soft\Audio Sound Suite API for .NET\Audio Sound Recorder API for .NET\Redist
* C:\Program Files\MultiMedia Soft\Audio Sound Suite API for .NET\Audio Sound Editor API for .NET\Redist
* If your machine has a x64 version of Windows
   - C:\Windows\System32

It would be very kind of you if you could report us if the updated version is enough to fix the reported issue.

Kind Regards

Severino Delaurenti
MultiMedia Soft


Terry

Hi,

After replacing the multimedia engine library, the program no longer experiences sudden interruptions. However, if I perform a stress test by continuously pressing the [Load] button, the program becomes unresponsive. This issue can be resolved through programming.

I will continue testing and will report any other issues. Thank you.

Terry