Home > Archive (Community help, from old helpdesk) > About :Media Player SDK let the all application Crash problem(With Record Video)

About :Media Player SDK let the all application Crash problem(With Record Video)

Avatar image
Aug 22, 2015
Archive Agent wrote
I'm before suspect application crash because click next movies twice, or there is happening:Unable to perform first rendering. exception.

but I found , some times you play a lot video file, it's still crash.
and when application crash, visual studio output:return value is -1073741819 (0xc0000005) 'Access violation'。

I was catch it before, but can't catch it now...

there is a video record. please check it:
https://www.dropbox.com/s/x0g0aoxcf6o1vkt/Crash%20Video.avi

Video is very boring, the best accelerate playback.

qakmak on July 29, 2013 18:50
Completed
0
Vote
Reply
200 Answers
Aug 22, 2015
Archive Agent agent wrote
qakmak

today I'm Suddenly catch it before crash when I'm test.

https://www.dropbox.com/s/b90rm6c1p03xl50/crash.png

on July 31, 2013 10:20 AM
Aug 22, 2015
Archive Agent agent wrote
qakmak

I give you Sample code if you want.
https://www.dropbox.com/s/xu2qneqncfhz387/CrashSample.rar

you just need play it ,and wait until it crash....

on July 31, 2013 12:09 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

Do you reproduce this problem?

on August 2, 2013 12:38 PM
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

Checking it now.

on August 2, 2013 9:35 PM
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

Not crashed within 90 minutes... We'll made it working during this night, maybe will crash.

on August 2, 2013 9:55 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

Really? Ok, thanks. you can change it sleep time to 3 second, or 15 second.Try more variability.

on August 2, 2013 9:58 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

Successfully crash yet?

on August 4, 2013 8:12 AM
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

No ==

Difficult to told why that's happen on your pc. Maybe PC is not so stable? Did you tried on another PC?

on August 4, 2013 3:51 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

Not yet... I'll try on another PC tomorrow.

on August 4, 2013 3:54 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

I'm just test on Other PC i3 cpu (3.4G hz)

still crash. I copy 3 time crash info from windows log.

first crash(2 error in windows log).
Application: WpfApplication2.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code eedfade, exception address 7674C41F

错误应用程序名称: WpfApplication2.exe,版本: 1.0.0.0,时间戳: 0x51ff8ae7
错误模块名称: KERNELBASE.dll,版本: 6.1.7601.18015,时间戳: 0x50b83c8a
异常代码: 0x0eedfade
错误偏移量: 0x0000c41f
错误进程 ID: 0x744
错误应用程序启动时间: 0x01ce91d69d1e4d28
错误应用程序路径: D:\Debug\Debug\dd\WpfApplication2.exe
错误模块路径: C:\windows\syswow64\KERNELBASE.dll
报告 ID: aa4034af-fdcb-11e2-b342-00e04c471a4b
--------------------------------------------------------------------------------------------------------

second crash(2 error in windows log).
Application: WpfApplication2.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c0000005, exception address 0B407CB6

错误应用程序名称: WpfApplication2.exe,版本: 1.0.0.0,时间戳: 0x51ff8ae7
错误模块名称: VisioForge_Audio_Effects_4.ax,版本: 7.15.0.0,时间戳: 0x2a425e19
异常代码: 0xc0000005
错误偏移量: 0x00007cb6
错误进程 ID: 0x11e0
错误应用程序启动时间: 0x01ce91d8af107744
错误应用程序路径: D:\Debug\Debug\dd\WpfApplication2.exe
错误模块路径: C:\windows\SysWOW64\VisioForge_Audio_Effects_4.ax
报告 ID: 45c5751f-fdcd-11e2-b342-00e04c471a4b
--------------------------------------------------------------------------------------------

third time crash(2 error in windows log).

Application: WpfApplication2.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code eedfade, exception address 7674C41F

错误应用程序名称: WpfApplication2.exe,版本: 1.0.0.0,时间戳: 0x51ff8ae7
错误模块名称: KERNELBASE.dll,版本: 6.1.7601.18015,时间戳: 0x50b83c8a
异常代码: 0x0eedfade
错误偏移量: 0x0000c41f
错误进程 ID: 0x10bc
错误应用程序启动时间: 0x01ce91da5c99c54f
错误应用程序路径: D:\Debug\Debug\dd\WpfApplication2.exe
错误模块路径: C:\windows\syswow64\KERNELBASE.dll
报告 ID: b9dba480-fdd0-11e2-b342-00e04c471a4b

on August 5, 2013 5:42 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

I'm use ffdshow codec.

Another strange thing is if I'm use CoreAVC codec. there is another error:also 2 error

Application: WpfApplication2.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
at DirectShowLib.IMediaControl.Pause()
at VisioForge.Controls.MediaPlayer.MediaPlayerSlave.Pause()
at VisioForge.Controls.WPF.MediaPlayer.Pause()
at WpfApplication2.MainWindow.Button_Click_4(System.Object, System.Windows.RoutedEventArgs)
at WpfApplication2.MainWindow.<MediaPlayer1_OnError>b__3()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
at System.Threading.ExecutionContext.runTryCode(System.Object)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
at System.Windows.Application.RunDispatcher(System.Object)
at System.Windows.Application.RunInternal(System.Windows.Window)
at System.Windows.Application.Run(System.Windows.Window)
at System.Windows.Application.Run()
at WpfApplication2.App.Main()

错误应用程序名称: WpfApplication2.exe,版本: 1.0.0.0,时间戳: 0x51ff8ae7
错误模块名称: quartz.dll,版本: 6.6.7601.17713,时间戳: 0x4ea78b37
异常代码: 0xc0000005
错误偏移量: 0x0000de65
错误进程 ID: 0x3ec
错误应用程序启动时间: 0x01ce91d2562605f8
错误应用程序路径: D:\Debug\Debug\dd\WpfApplication2.exe
错误模块路径: C:\Windows\syswow64\quartz.dll
报告 ID: 935d1e84-fdc6-11e2-b342-00e04c471a4b

on August 5, 2013 5:43 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

I suspect because stop not stop finish. and play it will be problem. or maybe when play(). I can't pause() Immediately. and clear audio effect(the second crash).

I also find in ffdshow setting can setting the ffdshow Instances count. maybe ffdshow just close, and we open other file, will let it crash......maybe

Is there anyway can quickly change media file. like now :
stop();
//change file
play();
pause();
//do something
Restore();

change to :

//change file
//ReLoad();//do not need stop it, codec do not need quit and load again. do not need set audio or volume or audio effect .

on August 5, 2013 5:49 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

How do you think?

on August 5, 2013 5:49 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

This is the ffdshow codec I'm using.
https://www.dropbox.com/s/n4zk8p9dbw9xlem/ffdshow_rev4515_20130612_clsid.zip

on August 5, 2013 7:16 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

Another quastion is , every time I play next movie, change the playlist:
MediaPlayer1.FilenamesOrURL.Add("Next Movie");

visual studio output display 2 thread exit.

but if I'm change playlist to original movie. visual studio output display only 1 thread exit.

Is that normal?

on August 5, 2013 8:16 PM
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

Maybe normal. Maybe not. We'are do not control threads count, it's automatical for DirectShow applications.

Sorry, we are not provide support for a codec-related questions, use commercial codecs to get support or contact ffdshow guys.

on August 5, 2013 8:33 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

Do you remember the problem:
http://support.visioforge.com/forums/172855-developers-community-help/suggestions/3984709-media-player-is-crash-when-clear-audio-effect-and-

I said:
and I can't use :Player.Audio_Effects_Clear(-1);
because that like before, some times crash.

and I thought you already fixed it.
but looks like some times audio effect still let application crash.

look the video record:
https://www.dropbox.com/s/mta48cha9gn5zxk/crash_prolem.rar

but even I'm remove the code, still crash. and still return Value:-1073741819 (0xc0000005) 'Access violation'。but the crash very like before because audio effect crash....
I don't know why you can't reproduce it.
I don't have money for buy commercial codec.

if ffdshow is a source let the all application crash. I hope you Recommend me other codec or way to handle it. because now I have no any Idea to handle it......

on August 5, 2013 10:18 PM
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

If you are unable to purchase commercial codec - it's doesn't mean that we'll resolve your problems with a free codecs. It's not SDK problems. Elecard codecs can be great choise.

We'll check audio problem crash again.

on August 05, 2013 22:21
Aug 22, 2015
Archive Agent agent wrote
qakmak

use it replace the old sample code if you wan't to catch the exception:
https://www.dropbox.com/s/x6a62y6qqfcmfb8/MainWindow.xaml.rar

on August 05, 2013 22:25
Aug 22, 2015
Archive Agent agent wrote
qakmak

Do you mean: if I don't want your sdk crash, I need purchase commercial codec?
if you confirm it's not you sdk problem , why you just don't recommend to me a other free codec? I give you the record video all because I did not lie, and you know it. I don't have any money for pruchase other commerical codec. I hope you recommend me at least one free codec, and let me test, confirm it's not your sdk problem, and I think this requirement is not excessive.right?

very thanks.

on August 05, 2013 22:36
Aug 22, 2015
Archive Agent agent wrote
qakmak

Does not bother you. I'll check all free codec myself. and will give you result. thanks.

on August 05, 2013 22:46
Aug 22, 2015
Archive Agent agent wrote
qakmak

Video Encoder test:
1.CoreAVC crashed about 10-15 minutes
2.CLAVC crashed about 5 minutes(when I'm browsing the web use Chrome), and it also output(visual studio2012):

“System.AccessViolationException”类型的第一次机会异常在 VisioForge.Controls.dll 中发生
“System.Runtime.InteropServices.SEHException”类型的第一次机会异常在 VisioForge.MediaFramework.dll 中发生
“System.AccessViolationException”类型的第一次机会异常在 VisioForge.MediaFramework.dll 中发生
程序“[7388] WpfApplication2.vshost.exe: 托管(v4.0.30319)”已退出,返回值为 -1073741819 (0xc0000005) 'Access violation'。
程序“[7388] WpfApplication2.vshost.exe: 程序跟踪”已退出,返回值为 0 (0x0)。

3.Microsoft: More than 15 minute, not crash , just stuck(I'm browsing the web use Chrome, and cpu used height...)
4.ffdshow crashed about 20 minutes
5. ffdshow crashed about 10minute second time. also output(visual studio):return value -1073741795 (0xc000001d) 'Illegal Instruction'。

all crash with visual studio output:return value -1073741819 (0xc0000005) 'Access violation'。(Does not contain a single mention the output of top)

all I'm use the old sample code, and remove "related things with audio effect", play next file every 3 second.

I'm using FinalCodecs test it. I'll continue test tomorrow.

on August 05, 2013 23:57
Aug 22, 2015
Archive Agent agent wrote
qakmak

when remove "add audio effect" and "clear audio effect" function. the crash be reduction

I test 5 times ffdshow today, every time about 20 minutes. crash 5 time.

1.ffdshow crashed about 20minute

visual stuidio 2012 output:

“System.AccessViolationException”类型的第一次机会异常在 VisioForge.Controls.dll 中发生
线程 '<无名称>' (0x15ac) 已退出,返回值为 0 (0x0)。
程序“[2908] WpfApplication2.vshost.exe: 托管(v4.0.30319)”已退出,返回值为 -1073741819 (0xc0000005) 'Access violation'。
程序“[2908] WpfApplication2.vshost.exe: 程序跟踪”已退出,返回值为 0 (0x0)。

------------------------------------------------------------------------------------

2.ffdshow crashed about 20 minute

visual stuidio 2012 output:
程序“[5104] WpfApplication2.vshost.exe: 程序跟踪”已退出,返回值为 0 (0x0)。
程序“[5104] WpfApplication2.vshost.exe: 托管(v4.0.30319)”已退出,返回值为 250477278 (0xeedfade)。

crash 2 some times will display, but I don't know what's that mean...

3,4 ffdshow crash about 10 minutes:

程序“[9828] WpfApplication2.vshost.exe: 托管(v4.0.30319)”已退出,返回值为 -1073741819 (0xc0000005) 'Access violation'。
程序“[9828] WpfApplication2.vshost.exe: 程序跟踪”已退出,返回值为 0 (0x0)。

I'm test 4 time CoreAVC 3.01 today: application crash 4 time, stuck 2 time:
1 crash about 5 minutes
程序“[8496] WpfApplication2.vshost.exe: 程序跟踪”已退出,返回值为 0 (0x0)。
程序“[8496] WpfApplication2.vshost.exe: 托管(v4.0.30319)”已退出,返回值为 250477278 (0xeedfade)。

2 crash about 10 minute
程序“[1164] WpfApplication2.vshost.exe: 程序跟踪”已退出,返回值为 0 (0x0)。
程序“[1164] WpfApplication2.vshost.exe: 托管(v4.0.30319)”已退出,返回值为 -1073741819 (0xc0000005) 'Access violation'。

3 crash about 30 second
程序“[1164] WpfApplication2.vshost.exe: 程序跟踪”已退出,返回值为 0 (0x0)。
程序“[1164] WpfApplication2.vshost.exe: 托管(v4.0.30319)”已退出,返回值为 -1073741819 (0xc0000005) 'Access violation'。

4 crash about 5 minute(this problem again)

程序“[5104] WpfApplication2.vshost.exe: 程序跟踪”已退出,返回值为 0 (0x0)。
程序“[5104] WpfApplication2.vshost.exe: 托管(v4.0.30319)”已退出,返回值为 250477278 (0xeedfade)。

----------------------------------------------------------------------------------------
and about the audio decoder, I'm using ffdshow, aac, FLAC....etc.

some times all application stuck, some times crash.
crash will output on vs2010 2 return value
1. 250477278 (0xeedfade)。
2. -1073741819 (0xc0000005) 'Access violation'。

splitter I'm using haali, Gabest.

I don't why what is the source let the crash or stuck happing. video decoder or audio decoder or splitter?

I have not you control.dll source code, so I can't catch it. and find.

-----------------------------

good news is I'm test 3 time LAVFilter splitter (with ffdthow video encoder) today: application not crash. but some times....will stuck....

so I think maybe that's not about video decoder. maybe about use the splitter in your sdk. can you check it please?

on August 06, 2013 15:15
Aug 22, 2015
Archive Agent agent wrote
qakmak

when it stuck, I'm pause the visual studio debug. and I found the current line is :
MediaPlayer1.Stop();

on August 06, 2013 15:30
Aug 22, 2015
Archive Agent agent wrote
qakmak

Unfortunately, still crashes even use LAV splitter if the switching time is short. Now do not know how to do ....

on August 06, 2013 16:58
Aug 22, 2015
Archive Agent agent wrote
qakmak

I just add "add audio effect" and "clear audio effect", and I found it crash more easy, just like before, and the visual studio also output: -1073741819 (0xc0000005) 'Access violation'。

so I think that's not some codec problem.

on August 06, 2013 19:58
Aug 22, 2015
Archive Agent agent wrote
qakmak

I found if I'm use chrome see online video(flash), it's more easy to crash..... I don't know because cpu or memory.......

on August 06, 2013 20:22
Aug 22, 2015
Archive Agent agent wrote
qakmak

Is there possible because when changed the play list and play next file but the sdk still request the first media file , and it already not exists on memory? and that will the the exception happening.(Just guessing, because maybe there is some Asynchronous Operation, and some times......)

on August 06, 2013 20:58
Aug 22, 2015
Archive Agent agent wrote
qakmak

and you know some times it will stuck(all application), the stuck picture is the last picture of the video. and current command is : MediaPlayer.Stop();

I think maybe there is something happening. so some time stuck, or some time crash.(crash also because audio effect problem)

I try a lot codec, splitter. but the result still not changing

on August 06, 2013 21:48
Aug 22, 2015
Archive Agent agent wrote
qakmak

I just use other way(just like the sample code last time give you) play next file, and this time not crash in 30 minute. so now I have Idea.

you know every time I'm use this way if want to play next file:

stop();// stop first
//change play list
play();//play it
pause(); pause it

// do some thing. like setting the audio volume, set audio stream, clear audio stream

restore();// and restore it.

and why I'm doing this?? why I'm not just set it all before play.(and not need pause it)
because:http://support.visioforge.com/forums/172855-developers-community-help/suggestions/3985218-audio-volumn-and-audio-stream-and-audio-effect-aut

and today , I'm use this way

stop();

// change the play list . also set the audio stream, audio volume, clear audio effect

play();

and play about 30 minute , change every 3 second, not crash.

so maybe I can use this way. but............
audio volume, audio stream.....all not working.
and effect will let application crash just like you know before.

so can you fixed it . let me use the normal way. I don't need pause it. maybe there is not crash, I think maybe that is a final way. thanks

on August 06, 2013 23:15
Aug 22, 2015
Archive Agent agent wrote
qakmak

I think maybe that's a only way we can try.
so , please. I just test it ,not crash. but volume can't set, audio stream can't set.
audio effect....you know....so can you help me analyze it?

on August 06, 2013 23:17
Aug 22, 2015
Archive Agent agent wrote
qakmak

forget it . I'm just open other application, I don't know because cpu or memory, it will still crash.....I don't know haw now again.... can you just find some other old pc , or test it and do other thing. test it crash?

on August 06, 2013 23:35
Aug 22, 2015
Archive Agent agent wrote
qakmak

But maybe I said before the problem may be able to improve application performance (although it can not solve the crash)

on August 06, 2013 23:37
Aug 22, 2015
Archive Agent agent wrote
qakmak

I find another function maybe let the crash happening. I before use two encrypted file, and use (File_DS_Encrypted mode). but this time I'm use two mp4 file(just convert to mp4, not encrypted). and use File_DS mode. and test 2 time. every time 15 minute. and It's not crash.....

so maybe except audio effect the Encrypted mode is will let the crash source.

I'll continue test today, so I hope you can help me Analysis encryption mode if there is this possibility. very thanks...

on August 07, 2013 10:20
Aug 22, 2015
Archive Agent agent wrote
qakmak

still crash. not about the Mode.

on August 07, 2013 11:53
Aug 22, 2015
Archive Agent agent wrote
qakmak

I think maybe when It's Stop(); SDK still request get the picture of video. but there is already not this video. so maybe that's let the Access violation happening. maybe.....

on August 07, 2013 11:54
Aug 22, 2015
Archive Agent agent wrote
qakmak

and if the operation is Asynchronous, maybe let it happening.....

on August 07, 2013 12:00
Aug 22, 2015
Archive Agent agent wrote
qakmak

I'm using a lot codec test it a lot time . and I think it's not a codec problem.
even it's codec problem, I think it's can't be let all application crash........

How can I do??

on August 07, 2013 14:17
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

As I told we are checking audio effects now... Without audio effects crashed too?

P.S. You are write a lot of messages and I'm loosing main idea a little.

on August 07, 2013 14:23
Aug 22, 2015
Archive Agent agent wrote
qakmak

yes. Without audio effects crash too...maybe there is other possibility let it crash too.

sorry, because I worry if I miss something .... It will affects you find and solve the problem. I hope you can take a time and read it. I'll test continue....

on August 07, 2013 14:38
Aug 22, 2015
Archive Agent agent wrote
qakmak

I think maybe the second crash possibility position is : MediaPlayer.Stop();
because some times it's not crash, will stuck in here.
MediaPlayer picture will suck on last picture before stop. and all application will stuck.
so maybe if there is some asynchronous operation. if media player stop(), but it still execute, so maybe some time stuck...some times crash.....

on August 07, 2013 14:49
Aug 22, 2015
Archive Agent agent wrote
qakmak

In fact, if this crashes , stuck issue is resolved my projects are almost completed ..... unfortunately this problem for a long long time could not find a solution .....

on August 07, 2013 20:58
Aug 22, 2015
Archive Agent agent wrote
qakmak

I search Internet today, they say maybe because some buffer was already removed, but still access....(Maybe)

on August 08, 2013 17:21
Aug 22, 2015
Archive Agent agent wrote
qakmak

or the buffer content is wrong(not the correct file it request)

on August 08, 2013 17:39
Aug 22, 2015
Archive Agent agent wrote
qakmak

may be helpful:http://www.codeproject.com/Questions/166883/Unhandled-exception-in-exe-0xC0000005-access-viola

on August 08, 2013 20:24
Aug 22, 2015
Archive Agent agent wrote
qakmak

I finally found a problem where if you look carefully, you will find that switching media file while memory is constantly increasing (different video decoder to increase the situation is different). Eventually lead to two results.
1 Crash
2 stuck.

Please carefully look the record video.

https://www.dropbox.com/s/k3pv0x87s6iamua/video5.rar

I'm really hope if you can find the problem fixed it soon. thanks you very much

on August 09, 2013 14:24
Aug 22, 2015
Archive Agent agent wrote
qakmak

new sample code, if you want:https://www.dropbox.com/s/77z8dgl8pwnoxi0/WpfApplication2-5.rar

on August 09, 2013 14:42
Aug 22, 2015
Archive Agent agent wrote
qakmak

Well, Can you see the problem now?

on August 09, 2013 17:07
Aug 22, 2015
Archive Agent agent wrote
qakmak

If that is not the problem source. I'll continue to search.

on August 10, 2013 14:20
Aug 22, 2015
Archive Agent agent wrote
qakmak

How is it going?

on August 12, 2013 08:01
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

Not reproduced, that's a main problem.

on August 13, 2013 18:07
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

About main crash problem, not about audio effects clean up.

on August 13, 2013 18:08
Aug 22, 2015
Archive Agent agent wrote
qakmak

Ok, did you Install FinalCodecs? I recommend you to select CoreAVC(H264 codec) in Final Codecs, that's easy to crash, may be more helpful to find the problem.

FinalCodecs:https://www.dropbox.com/s/g7b7yb05bw9utuz/FinalCodecs.1.13.0719.rar

on August 13, 2013 18:12
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

As I told many times we'll not install any codecs only to get crash. Please resolve this problem with codecs vendor. We're trying to find a problem with Haali splitter and default codecs on Windows for H264/AAC,

on August 13, 2013 18:14
Aug 22, 2015
Archive Agent agent wrote
qakmak

You are not understand what I'm mean, I mean every codec all will crash use your SDK, it's just some codec crash more, So I'm let you use the easy one to test you product.

Well, You do not want to use it does not matter.Just don't let your SDK crash.

If there is some way I can catch it or use log Analysis it , tell me. I'll Assist you.

on August 13, 2013 18:22
Aug 22, 2015
Archive Agent agent wrote
qakmak

by the way, FilalCodecs it's not a single codec, it's just a all codecs collection.
it's more Convenient and easy than "default codec". I'm just want to help. thanks....

on August 13, 2013 18:45
Aug 22, 2015
Archive Agent agent wrote
qakmak

Hi Roman, How long do you think the main crash problem can be resolved? thanks.

on August 15, 2013 20:06
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

We're trying to reproduce it and find a problem.

on August 17, 2013 11:06
Aug 22, 2015
Archive Agent agent wrote
qakmak

Not find yet?
Ok...., if you want me help or something, just tell me ....I want to help you find the problem more fast.

on August 17, 2013 17:03
Aug 22, 2015
Archive Agent agent wrote
qakmak

Come on guys.

on August 20, 2013 22:21
Aug 22, 2015
Archive Agent agent wrote
qakmak

I think the problem really taking a long time....And I almost went bankrupt ....I hope you will fixed it as soon as possible, thank you very much.

on August 30, 2013 18:41
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

Yeah, very difficult to find and fix, because no simple exceptions or memory leaks in our own code, all happens deeper in DirectShow code.

I think you can release with this bug, because only very small count of users have this problem.

on September 01, 2013 14:34
Aug 22, 2015
Archive Agent agent wrote
qakmak

I can't .....because I have this problem all the time, even I'm change PC, even change all Codec or Splitter. I don't know why you can't find it use the same sample code that I send before.

On My PC, the sample code always has 2 result.
1.all application crash.
2.all application stuck.

and Increasing memory usage.

The time very urgent. if there is no way to test on your PC. please let you Technical Support connect my computer and find it . we can use teamviewer or something. and there is vs2012 on my PC. or....anything you want. please let's find it.....

on September 01, 2013 15:35
Aug 22, 2015
Archive Agent agent wrote
qakmak

Let's reproduce it use my computer or something.
if I can ignore the problem, I already sale it , trust me.

on September 01, 2013 15:45
Aug 22, 2015
Archive Agent agent wrote
qakmak

Are you sure that's DirectShow problem??

I just use FFDSHOW mode test it . and I found the memory usage continue Increase 200M to 800M

and finally it's not crash or stuck. it's just output this on visual studio(and video not display)

“System.OutOfMemoryException”类型的第一次机会异常在 PresentationCore.dll 中发生
“System.OutOfMemoryException”类型的第一次机会异常在 PresentationCore.dll 中发生
线程 '<无名称>' (0x17c0) 已退出,返回值为 0 (0x0)。
“System.AccessViolationException”类型的第一次机会异常在 mscorlib.dll 中发生
Error:-------------Unable to add FFMPEG source filter.
“System.AccessViolationException”类型的第一次机会异常在 mscorlib.dll 中发生
Error:-------------Unable to add FFMPEG source filter.
“System.AccessViolationException”类型的第一次机会异常在 mscorlib.dll 中发生
Error:-------------Unable to add FFMPEG source filter.
“System.AccessViolationException”类型的第一次机会异常在 mscorlib.dll 中发生
Error:-------------Unable to add FFMPEG source filter.
“System.AccessViolationException”类型的第一次机会异常在 mscorlib.dll 中发生

Error:-------------Unable to add FFMPEG source filter.
“System.AccessViolationException”类型的第一次机会异常在 mscorlib.dll 中发生

....................SAME ....................................

on September 01, 2013 18:22
Aug 22, 2015
Archive Agent agent wrote
qakmak

Obviously , You guys not completely clear the resource. or not delete some pointer when MediaPlayer.Stop(); So, every time stop and play it. the memory usage will Incremental.
and will Cause crash or stuck. or other Unexpected errors.

like “System.AccessViolationException”类型的第一次机会异常在 mscorlib.dll 中发生

exception from mscorlib.dll, ofcourse you can't find it, I begging you completely check when Stop(); Is there anything not clear or missing some other operate.(when play finish auto stop also has this problem)

on September 01, 2013 18:29
Aug 22, 2015
Archive Agent agent wrote
qakmak

I'm write wrong. not FFDSHOW, it's File_FFMPEG mode. I just test it again. but this time application crashed.

on September 01, 2013 19:28
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

Please download updated build. Set Debug_DeepCleanUp to true in your code before .Play() call in Media Player SDK.

on September 01, 2013 22:09
Aug 22, 2015
Archive Agent agent wrote
qakmak

looks like you're forget Release the full version . full version still 7.20.1.0.

on September 02, 2013 07:24
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

Yes, correct. Uploaded now.

on September 02, 2013 13:52
Aug 22, 2015
Archive Agent agent wrote
qakmak

I just download new full version 7.20.8.0.

but not found Debug_DeepCleanUp property.

on September 02, 2013 14:09
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

WInForms?

on September 02, 2013 14:12
Aug 22, 2015
Archive Agent agent wrote
qakmak

I just use wpf . looks like wpf not this function. I'll make another demo use winform and test it.

on September 02, 2013 14:17
Aug 22, 2015
Archive Agent agent wrote
qakmak

still crash..... but I found winform not like wpf easy to crash.

Is there some clear resource method is asynchronised? if has. can you let it change to synchronised? I still worry when stop(); some operate not finish, and play() start. but because some reason stop() not finish, and new Stop() requst comming.

there is the last output in visual studio before crash(winform sample, every 4 second play next media file):

Info---------------------Pre Stop
线程 '<无名称>' (0x285c) 已退出,返回值为 0 (0x0)。
Info---------------------Pre Play
Info---------------------2 audio stream
线程 '<无名称>' (0x1fc0) 已退出,返回值为 0 (0x0)。
线程 '<无名称>' (0xf84) 已退出,返回值为 0 (0x0)。
Info---------------------Pre Stop
线程 '<无名称>' (0x2cf0) 已退出,返回值为 0 (0x0)。
Info---------------------Pre Play
Info---------------------1 audio stream
线程 '<无名称>' (0x2f00) 已退出,返回值为 0 (0x0)。
线程 '<无名称>' (0x2bb0) 已退出,返回值为 0 (0x0)。
Info---------------------Pre Stop
线程 '<无名称>' (0x2d4c) 已退出,返回值为 0 (0x0)。
线程 '<无名称>' (0x2da4) 已退出,返回值为 0 (0x0)。
Info---------------------Pre Play
Info---------------------2 audio stream
线程 '<无名称>' (0x2c34) 已退出,返回值为 0 (0x0)。
线程 '<无名称>' (0x2fcc) 已退出,返回值为 0 (0x0)。
Info---------------------Pre Stop
线程 '<无名称>' (0x2944) 已退出,返回值为 0 (0x0)。
Info---------------------Pre Play
Info---------------------1 audio stream
线程 '<无名称>' (0x19b4) 已退出,返回值为 0 (0x0)。
线程 '<无名称>' (0x2a18) 已退出,返回值为 0 (0x0)。
线程 '<无名称>' (0x2528) 已退出,返回值为 0 (0x0)。
程序“[7572] WindowsFormsApplication16.vshost.exe: 托管(v4.0.30319)”已退出,返回值为 -1073741819 (0xc0000005) 'Access violation'。
程序“[7572] WindowsFormsApplication16.vshost.exe: 程序跟踪”已退出,返回值为 0 (0x0)。

on September 02, 2013 17:55
Aug 22, 2015
Archive Agent agent wrote
qakmak

why MediaPlayerSlave must be operate in UI thread?
event I'm not use wpf window . I only use writablebitmap.

but because it need work in UI thread. every time I need use Dispatcher.Invode/beginInvoke

like:

window.Dispatcher.BeginInvoke(new Action(() =>
{
//Play Next
PlayNext(null, null);
}));

actually I'm worry wpf ui thread not let some Asynchronous operations performed immediately.
and let it execute with next same operate, like:
stop();
start();
hold.....
stop();
start();

change to :
stop();
start();
stop();
start();

or let the inside Order confusing

on September 02, 2013 18:22
Aug 22, 2015
Archive Agent agent wrote
qakmak

sdk very easy to crash if it's operating under the wpf UI thread. winform not easy to crash.

on September 02, 2013 18:41
Aug 22, 2015
Archive Agent agent wrote
qakmak

today the winform only crash 2 times. even Debug_DeepCleanUp true or not.

looks like we need focus the source on the wpf

on September 02, 2013 18:42
Aug 22, 2015
Archive Agent agent wrote
qakmak

Do you think is this possible some operate not very good support wpf in Visioforge.Control.dll or not handle use best way for wpf?

I think the problem not about (Visioforge.Control.wpf.dll).

on September 02, 2013 19:03
Aug 22, 2015
Archive Agent agent wrote
qakmak

looks like problem with wpf model, not about winform.
winform memory usage not increased , not so Obvious like wpf.

and I hope you can check about wpf in visioforge.control.dll .

why don't add the Debug_DeepCleanUp on MediaPlayerSlave ?? now I can't test wpf sample....

on September 02, 2013 20:25
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

We'll add it to WPF today...

on September 02, 2013 20:34
Aug 22, 2015
Archive Agent agent wrote
qakmak

How about this?

you add a method in you api : CustomPlay(String NewMediaPath, int AudioStream, int AudioVlume, bool IsClearVideoEffect, bool IsClearAudioEffect,bool IsAsynchronous)

in the Method inside. you can:

1.check the media player status, if it's not free, the stop it.
2.clear and set the current play list from NewMediaPath param;
3.close all audio stream, and set current audio stream open from AudioStream param;
4.set current Audio volume from AudioVolume param;
5.clear Video or Audio effect use these 2 param;
6.if IsAsynchronous=false. let the all operate stuck all application(At least you ensure the Stability of the system)
7.Play it.

or through own ideas only Released or initialize some resources to optimize it.
Is this will consume a lot of your time?

I really not found any Idea better then......Unless you find WPF crash or stuck problem......

on September 02, 2013 21:04
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

WPF code updated, please download new build.

on September 02, 2013 21:14
Aug 22, 2015
Archive Agent agent wrote
qakmak

Can you add the Debug_DeepCleanUp property on MediaPlayerSlave. if possible , I want test my final project tomorrow.

on September 02, 2013 22:08
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

It's not possible. Using this property in WPF/WinForms wrapper dispose MediaPlayerSlave and create it again. So, full clean.

on September 02, 2013 22:15
Aug 22, 2015
Archive Agent agent wrote
qakmak

only this operation?
ok, well. then tomorrow I try to ReInstantiation MediaPlayerSlave every time when it gonna play.....

on September 02, 2013 22:20
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

slave.Clear()
slave.Dispose()
slave = new MediaPlayerSlave();

on September 02, 2013 22:38
Aug 22, 2015
Archive Agent agent wrote
qakmak

I'm use this function initial every time before play

public void ReInitialPlayer()
{
if (null != Player)
Player.Dispose();
Player = new MediaPlayerSlave();
ThePlayer.Player.Source_Mode = VFMediaPlayerSource.Encrypted_File_DS;
ThePlayer.Player.SetLicenseKey(Res.Resources.MEDIA_PLAYER_NO);
ThePlayer.Player.Video_Renderer = VFVideoRenderer.None;
ThePlayer.Player.Encryption_Password = Res.Resources.ENCRYPTION_KEY;
ThePlayer.Player.Audio_Effects_Enabled = true;
SetPlayerEvents();
}

looks like slave.Clear() is a private method. but now not display any error. I'll continue try.

on September 02, 2013 22:51
Aug 22, 2015
Archive Agent agent wrote
qakmak

this time better, but crashed. and I can catch crash exception.
position is : salve.Player();

this is a exception info:
https://www.dropbox.com/s/rqieawz6qomcc8a/AccessException.png

very Unfortunately, I thought that problem has been solved, but I think we almost resolved the problem now.

on September 02, 2013 22:55
Aug 22, 2015
Archive Agent agent wrote
qakmak

please check the image and try to Track it.

on September 02, 2013 22:55
Aug 22, 2015
Archive Agent agent wrote
qakmak

this time before crash. visual studio output this error(from OnError):

ExceptionPro: 2013-09-03 02:50:20,295 [9] ERROR - Source files or URL are not specified Z:\Multiple Language\20131129\0083.avi

on September 02, 2013 22:59
Aug 22, 2015
Archive Agent agent wrote
qakmak

0083.avi is no problem, don't worry.

on September 02, 2013 23:06
Aug 22, 2015
Archive Agent agent wrote
qakmak

this time I'm change the mothod, because Dispose() just throw something, so I add a lock for it:

public void ReInitialPlayer()
{
lock (objLock)
{
if (null != Player)
Player.Dispose();
Player = new MediaPlayerSlave();
ThePlayer.Player.Source_Mode = VFMediaPlayerSource.Encrypted_File_DS;
ThePlayer.Player.SetLicenseKey(Res.Resources.MEDIA_PLAYER_NO);
ThePlayer.Player.Video_Renderer = VFVideoRenderer.None;
ThePlayer.Player.Encryption_Password = Res.Resources.ENCRYPTION_KEY;
ThePlayer.Player.Audio_Effects_Enabled = true;
SetPlayerEvents();
}
}

but this time still crash. output:

“System.IO.IOException”类型的第一次机会异常在 mscorlib.dll 中发生
程序“[12100] VodPlayer.vshost.exe: 托管(v4.0.30319)”已退出,返回值为 -1073741819 (0xc0000005) 'Access violation'。
程序“[12100] VodPlayer.vshost.exe: 程序跟踪”已退出,返回值为 0 (0x0)。

It mean:first chance exception of type 'System.IO.IOException' in mscorlib.dll

on September 02, 2013 23:17
Aug 22, 2015
Archive Agent agent wrote
qakmak

Is there any possible to know Dispose() is in progress?

I think if system slow and let the function execute twice, maybe would let the application crashed.

if (Player.Disposing() == true) //
{
// maybe I can wait, or ignore....
}

on September 02, 2013 23:37
Aug 22, 2015
Archive Agent agent wrote
qakmak

I just entered a dead loop
1.Play(); throw exception and I can catch it.
2.Dispose throw exception, I can catch it too.

but I don't know how handle it if this happening. it's just a dead loop.(because every time throw exception I'll continue play next movies.)

this is the pic:
1.https://www.dropbox.com/s/9jweywu6hglj21r/PlayAccessException.png
2.https://www.dropbox.com/s/3gy2p0qn8ta9bj1/DisoposeAccessException.png

Is there any possible to break it?

on September 02, 2013 23:57
Aug 22, 2015
Archive Agent agent wrote
qakmak

last night the exception can't be catch, maybe it's just display. today even can't display. only crash...

on September 03, 2013 08:34
Aug 22, 2015
Archive Agent agent wrote
qakmak

New Exception display on Play();
https://www.dropbox.com/s/rzg5gfvzsozv573/NewPlay.png

on September 03, 2013 12:27
Aug 22, 2015
Archive Agent agent wrote
qakmak

Is this possible because Visioforge.MediaFramework.Classes.FilterGraphTools.AddFilter(or remove Fileter) operate

or some Filter not clear when dispose it.

actually, I'm never use any filter. even my Video_Effects_Enabled = false;

on September 03, 2013 12:33
Aug 22, 2015
Archive Agent agent wrote
qakmak

this time I try to enable Video effect. Video_Effects_Enabled = true;
then application very easy display this to me :

https://www.dropbox.com/s/sgstyflm3gp9ptt/EnableVideoEffect.png

on September 03, 2013 12:39
Aug 22, 2015
Archive Agent agent wrote
qakmak

first Dispose() will display: RaceOnRCWCleanup
second Play() will display that picture.

but not crash Immediately. it will continue play next movies. and After a while(when play next movies operation) it will crash. but when it crash, it wouldn't display anything

on September 03, 2013 12:47
Aug 22, 2015
Archive Agent agent wrote
qakmak

I can't create debug file on your SDK use MediaPlayerSlave

error:Unable to save SDK control setting

on September 03, 2013 13:14
Aug 22, 2015
Archive Agent agent wrote
qakmak

I was wrong, wpf , winform all display:"Unable to save SDK control settings" too.

on September 03, 2013 13:21
Aug 22, 2015
Archive Agent agent wrote
qakmak

you debug api will use OnError event output, don't forget unsubscription before dispose() or when dispose();

any findings today?

on September 03, 2013 13:43
Aug 22, 2015
Archive Agent agent wrote
qakmak

do you think is this because the old movies and new movies size not same will let it happening?
I mean right now I play a vcd size(320*240) movies, and now I'm play next movies is dvd size(720*480) movies.
and continue play , the size always changed. and will let something happening.....

on September 03, 2013 13:52
Aug 22, 2015
Archive Agent agent wrote
qakmak

Can you check the VisioForge.MediaFramework.dll Filter problem please?

on September 03, 2013 14:37
Aug 22, 2015
Archive Agent agent wrote
qakmak

I found why I'm stuck some times. because every time my main thread into you api Play(); or Stop(); the 2 method not return, and stuck in inside. and my main thread stuck and wait this, so it's stuck too...

on September 03, 2013 14:51
Aug 22, 2015
Archive Agent agent wrote
qakmak

I just release it, and install on a i3 win7 PC. and it stuck again, and wait long time ago, it's no any response. and I close it and check windows log. find there is something. looks like about:VisioForge_Audio_Effects_4.ax

-----------------------------------------------------------------------------------------------------------

错误应用程序名称: Player.exe,版本: 1.0.0.0,时间戳: 0x51ab724d
错误模块名称: VisioForge_Audio_Effects_4.ax,版本: 7.15.0.0,时间戳: 0x2a425e19
异常代码: 0xc0000005
错误偏移量: 0x00007d23
错误进程 ID: 0x338
错误应用程序启动时间: 0x01cea8a665861453
错误应用程序路径: C:\Program Files (x86)\Oybab\Player.exe
错误模块路径: C:\windows\SysWOW64\VisioForge_Audio_Effects_4.ax
报告 ID: 5ac7d28c-149b-11e3-9f4a-00e04c471a4b

-------------------------------------------

Application: Player.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
at DirectShowLib.ICaptureGraphBuilder2.RenderStream(DirectShowLib.DsGuid, DirectShowLib.DsGuid, System.Object, DirectShowLib.IBaseFilter, DirectShowLib.IBaseFilter)
at VisioForge.Controls.MediaPlayer.MediaPlayerSlave.DHiwsPe2Ve()
at VisioForge.Controls.MediaPlayer.MediaPlayerSlave.VEwwThdGTU()
at VisioForge.Controls.MediaPlayer.MediaPlayerSlave.Play()
.............................................Omission.............................

on September 03, 2013 18:54
Aug 22, 2015
Archive Agent agent wrote
qakmak

actually I'm not use audio effect, I just open it:Player.Audio_Effects_Enabled = true. but looks like it will application crash. I don't belive, and I close it :Audio_Effects_Enabled = false. and release a new version. install to i3. this time you know what , memory would increase, but not like before very fast. and this time I test about 30 minute, test 2 time. not crash. So this is it. don't say this is a codec problem, because I test 2 different codec. so ....I long time ago tell you audio effect will let crash happening. you don't believe. and this time I hope you can Rocket speed fixed it . because My situation is not very good, thank you very much.

details please look this topic history.

on September 03, 2013 20:22
Aug 22, 2015
Archive Agent agent wrote
qakmak

look like memory usage Constantly increases problem not about the crash/stuck problem.

on September 03, 2013 20:54
Aug 22, 2015
Archive Agent agent wrote
qakmak

Rocket speed please. I'll waiting for you response.

on September 03, 2013 20:56
Aug 22, 2015
Archive Agent agent wrote
qakmak

test info:
OS: WIN7 x64
DLL:.NET 4.0 X86

please fixed soon.

on September 04, 2013 16:11
Aug 22, 2015
Archive Agent agent wrote
qakmak

How is going??

on September 04, 2013 19:55
Aug 22, 2015
Archive Agent agent wrote
qakmak

Can you fixed this BUG first, and then do other things?

on September 05, 2013 19:23
Aug 22, 2015
Archive Agent agent wrote
qakmak

I just meet a new exception I never met before. looks like it would let application stuck or crash to.
but this is my first time see it. so maybe you can Analyses when you have free time.

1.https://www.dropbox.com/s/of0ogl1xhjhner7/1.png
2.https://www.dropbox.com/s/qgdtv72bvrnxug8/2.png

on September 06, 2013 20:45
Aug 22, 2015
Archive Agent agent wrote
qakmak

Did you found the BUG this time? or just like before still not found.
looks like now The most time-consuming is find problem. I hope this time not like before use a lot time and result is : not found. if you already find the problem and going to fixed, please let me know. thanks.

on September 07, 2013 19:09
Aug 22, 2015
Archive Agent agent wrote
qakmak

still not finish? hurry please.thanks

on September 09, 2013 15:00
Aug 22, 2015
Archive Agent agent wrote
qakmak

Hi Roman, How is it going? Are you solving the problem or still searching the problem? Give me a progress info please. Thanks.

on September 11, 2013 11:14
Aug 22, 2015
Archive Agent agent wrote
qakmak

Can you stop Ignore your customer?? That's your application BUG. your product BUG affecting my all work now. You need to report the progress let me know, And let me adjust my work by your progress.

I report the BUG about 2 month now, Where is your responsibility?

on September 11, 2013 18:54
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

1. Only you have this bug. Other customers do not reported us about this.
2. We unable to reproduce it using latest SDK build, as you see it's fully dispose VideoCaptureSlave class and created new class. So, even if but located in core - it's always new after Stop method call.

on September 11, 2013 20:36
Aug 22, 2015
Archive Agent agent wrote
qakmak

1.How can you say that after the 2 month? Other customers not reported not mean there is No this BUG. maybe they are just not using like me. Maybe the requirement not same to you SDK.
2.I give you video record. I give you log. and now the problem source very clear:
VisioForge_Audio_Effects_4.ax or DirectShowLib.ICaptureGraphBuilder2.RenderStream method one of them. How can you still not found it?
3. I already told you , if you're not found let me help. I can let you use my PC to catch it, but you always Not willing for this.
4.You always ignore me, I don't know what are you thinking .

Why you just use My PC find the problem. I can show you how it crash. You even can develope your source code. (use any safe way for you), Now I really don't care you source code. I want the problem resolve. because continue like that, My company will die.

you need to fixed it use anyway. Not tell me unable to reproduce every time.

on September 11, 2013 20:44
Aug 22, 2015
Archive Agent agent wrote
qakmak

We have same point. resolved the problem.
If today you not fixed because other customer not reporting, tomorrow a lot people asking. and then you hard to find it. come on. let us find it and finish it.

on September 11, 2013 20:50
Aug 22, 2015
Archive Agent agent wrote
qakmak

That's not about new call or not release the resource now.
do you remember I before said that's some time I just open and crash.
did you see my all content. now the problem is about AudioEffect_Enable = true.

Come on . ..... Do not hesitate again. Handle it together like what I said. How about it?

on September 11, 2013 21:15
Aug 22, 2015
Archive Agent agent wrote
qakmak

If I sale it I already pay you money for this. but I hope you can Have mercy on me now.

on September 11, 2013 21:21
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

https://www.dropbox.com/s/41uxg9ehij8la20/VisioForge_Audio_Effects_4.zip

please update existing audio effects filter

on September 12, 2013 13:21
Aug 22, 2015
Archive Agent agent wrote
qakmak

What was that for? I just replace and test. still crash when enable audio effect. same output error like before.

on September 12, 2013 13:41
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

OK. We'll continue to search a problem.

on September 12, 2013 13:51
Aug 22, 2015
Archive Agent agent wrote
qakmak

Thank you a lot. I'll continue test when you give me a update version.

on September 12, 2013 13:52
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

https://www.dropbox.com/s/41uxg9ehij8la20/VisioForge_Audio_Effects_4.zip

release version, with some exception catching added

on September 16, 2013 19:31
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

updated sdk build available

on September 17, 2013 12:03 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

problem not be solved. where are you , I can't connect with you .........

on September 17, 2013 4:12 PM
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

still trying to find a problem

on September 23, 2013 11:20 AM
Aug 22, 2015
Archive Agent agent wrote
qakmak

You need to on Line. let me help you find it. you can't find it alone.

on September 23, 2013 12:20 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

don't you want to fixed it? I am very disappointed ...

on September 25, 2013 5:02 PM
Aug 22, 2015
Archive Agent agent wrote
fil

Hello Roman,

I have the same error when the Source mode of the media player is set to VFMediaPlayerSource.File_FFMPEG.
When setting it to VFMediaPlayerSource.File_DS I don't have this issue.
In my application, I am also playing RTSP Stream.To do so, I set the source mode to VFMediaPlayerSource.HTTP_RTSP_FFMPEG, and here again I dont have any problem.

I hope it can help you in your investigation.

on October 1, 2013 12:04 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

Hi fil , I think maybe we problem is not a same problem. My problem because enable the audio effect(no matter I'm use audio effect or not, if I just enable it . when play a lot file, It always crash). if I not enable audio effect there is no more crash problem.

on October 1, 2013 8:39 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

by the way I always use encrypted mode(DirectShow mode)

on October 1, 2013 8:41 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

Did you finish this on 8.0?
Can I use 8.0 SDK version? or need pay for this alone?

on October 12, 2013 2:18 PM
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

Yes, you can check full version, no payment required. Download link same as before.

on October 12, 2013 2:22 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

“System.AccessViolationException”类型的第一次机会异常在 VisioForge.Controls.dll 中发生
线程 '<无名称>' (0x15fc) 已退出,返回值为 0 (0x0)。
线程 '<无名称>' (0xe6c) 已退出,返回值为 0 (0x0)。
线程 '<无名称>' (0x2504) 已退出,返回值为 0 (0x0)。
Media Player SDK OnERROR - Source files or URL are not specifiedK:\VODFiles\20130927\Movies\0283.avi
程序“[9792] VodPlayer.vshost.exe: 程序跟踪”已退出,返回值为 0 (0x0)。
程序“[9792] VodPlayer.vshost.exe: 托管(v4.0.30319)”已退出,返回值为 -1073741819 (0xc0000005) 'Access violation'。

that is Visual studio output when it crash(when enable audio effect = true)

and did you add new encrypted mode(ffdshow+fastEncrypted) future in 8.0 version?

on October 16, 2013 3:18 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

I said wrong before, I mean new encrypted mode(FFMPEG+fastEncrypted) future in 8.0 version. not ffdshow.

but the topic main problem: Audio effect let application crash or stuck not fixed in new version 8.0.

on October 17, 2013 3:37 PM
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

v8 have only new VLC-related feature, nothing more, just a new alternative engine

on October 17, 2013 3:56 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

Hi Roman, Long time no see. how about this problem ?. the problem was not fixing , and I waiting it a lot time , So I remove audio effect feature on my application and release it . But I still waiting you can fixed it some day , then I can release a complete version of my application. So can you trying to find out and fixed it again please?

on December 10, 2013 10:21 AM
Aug 22, 2015
Archive Agent agent wrote
Lin

If you used DirectShow Audio Codec LAVCodec Filter File Name - LAVAudio.ax
You usually get Access Violation Error , It is not compatible with Media Player SDK.
I used visioforge version 8 got that error.
I disabled that Audio Codec and in long run , player not crash anymore ,tested for 20hrs multiple play back files with Audio Effects= True

on December 19, 2013 9:27 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

you mean "used" is use it for audio encoding? or just install it?

if you mean just juse. I never use it. I usually use ffdshow or CoreAAC,madFLAC for audio encode.

I give you my test demo for crash, please write your email . you can open it and play it and wait it crash.

it will every 4 second play next media file.(actually only 2 files)

(by the way, I just unregister LAVAudio.ax file even I'm not use it. and use ffdshow video decode+CoreAAC audio decode play mp4 file, but still crash)

on December 19, 2013 11:21 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

of course I'm use LAVCodec for splitter, but I just change it , use Haali splitter. but Media player stuck.(all application stuck, no response, I think that's same to crash)

on December 19, 2013 11:23 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

the problem not just about long run. it's about play more. you can try play a lot file (every 5 second play next , and make sure enable audio effect. and you'll know what's wrong)

on December 19, 2013 11:25 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

you can use this demo test it

https://www.dropbox.com/s/f3bsb65kqgrn0k1/debug.rar

click play and wait it crash or stuck.

on December 20, 2013 10:01 AM
Aug 22, 2015
Archive Agent agent wrote
Lin

I am also user for media player sdk , I will download and check your file and will let you know
flammablegas88 at gmail.com is my mail

on December 21, 2013 6:55 AM
Aug 22, 2015
Archive Agent agent wrote
Lin

for every 5 second , I faced that solution yesterday night while developing programs,

It's took me 12 hrs to solved ..

Go to mediaplayer On Error event , then write Mediaplayer.stop() command :)

on December 21, 2013 6:57 AM
Aug 22, 2015
Archive Agent agent wrote
Lin

It's is because even media is not currently loaded , another mediaplayer.play() is trigged .
you need to make sure , media player is already solved . VFMediaplayer status is sometimes not dependent ,try to solve new way.

on December 21, 2013 8:26 AM
Aug 22, 2015
Archive Agent agent wrote
qakmak

Hi Lin, thank you for replay. Maybe it's about not loaded yet, and I already think about it. but Visioforge guys not give me solution for this. So every time I play Next, I will stop it before and play it. sometime not stop yet and play it(maybe because that is asynchronize operation).

But even I use Halli splitter , it's crash some time, stuck some time. only I know is, if I'm Disable Audio Effect, there is all fine.

on December 21, 2013 8:35 AM
Aug 22, 2015
Archive Agent agent wrote
qakmak

I'm use Finalcodecs, it's very strong decode collection tools. you can choice your decode for some file. I'll give you , and you can test .
https://www.dropbox.com/s/3ojdqfgyskfe82l/FinalCodecs.1.13.0719.exe

there is my config setting, and some time I change it and test , but still not success.(you can choice English language when install)
https://www.dropbox.com/s/94ir4bhnvtib29l/config.png

on December 21, 2013 8:49 AM
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

Please contact this codecs support.

Do not use Stop command in OnError event, that's not correct. Use Invoke to run Stop from the same thread that called Start.

on December 21, 2013 9:23 AM
Aug 22, 2015
Archive Agent agent wrote
qakmak

You're not understand . the Finalcodecs not any supoort, it's a free tool. because the Finalcodecs just a encode collection from other codec, that mean it's just use other encode, and you can switch it all when use someone. So the problem even not about the tool. and you still said......... if you so confirm, why you just don't give me say one codec name it will not be happening this problem?

and I'm not use Stop command in OnError, why are you saying that to??

on December 21, 2013 9:32 AM
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

We are do not provide support for 3rd-party codecs, contact community.

I've replied to Lin about Stop command.

on December 21, 2013 9:35 AM
Aug 22, 2015
Archive Agent agent wrote
qakmak

I know you do not provide support for 3rd-party codecs. and the problem not about 3rd-party codecs, it's your sdk bug. I'm long time ago already proof it before, Otherwise, Why I'm still doing here?

If it's 3rd-party codecs problem why any codecs all crash or stuck when enable audio effect on your sdk?

on December 21, 2013 9:38 AM
Aug 22, 2015
Archive Agent agent wrote
qakmak

You always say in check, and then repair ...... And now still tell me that's not your problem just like the problem when I just tell you?

Look at the all problem comments history friend, 160+ comment. I always been trying to help you find and fixed. Why it's still not fixed and you still tell me tha's a codec problem again?

Tha's so sad....

on December 21, 2013 9:44 AM
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

I told it to Lin not to you... I can share audio effects source code with you if required.

on December 21, 2013 12:42 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

Sorry.
if I can use Direct Show programming I so hope I can't Bother you.............. and another way....Maybe it's not about audio effect ax file problem. maybe it's sdk load or unload filter problem just like Lin said, because the crash or stuck every time happening when "Play Next" .

So I'm very confuse now. I don't know why you can't reappear it.

more important thing is why you just don't tell me which one codec will not has this problem.

So maybe we just wait, wait someone can use my test demo success crash, and can suggested something. and then we will find problem source.

on December 21, 2013 12:48 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

Hi Lin, can you help us, use my test demo and any codec to test this problem ? I'll very thank you.

on December 21, 2013 12:51 PM
Aug 22, 2015
Archive Agent agent wrote
Lin

qakmak , I tried your demo already and it's also crashed in my computer for about playing 20 minutes.

I invoke stop on error in my solution I created and it's already solved .
I used Channel Order audio effect.

on December 21, 2013 10:24 PM
Aug 22, 2015
Archive Agent agent wrote
Lin

Dear Roman , thank you for your reply . Actually ,it's my mistake , not included that to state that I used invoke back to original thread :) , I already wrote like you said.

on December 21, 2013 10:26 PM
Aug 22, 2015
Archive Agent agent wrote
Lin

qakmak , I used K-Lite codec pack

on December 21, 2013 10:28 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

thank you Lin, you test is very helpfull. Can you help me check my source code and give me a suggestion for crash and stuck. If you have free time of course. thank you very much.

on December 21, 2013 10:29 PM
Aug 22, 2015
Archive Agent agent wrote
Lin

did you already tried , Invoke called player.Stop() back to original thread that player.Play() is called when OnError event is triggered ???

on December 21, 2013 22:38
Aug 22, 2015
Archive Agent agent wrote
qakmak

When OnError trigger. I set a bool. for example

public void OnError(){
IsError = true;
}

then I can stop operate, like

Play();

//if Error I will stop now.
if (IsError)
return;

but my demo not do this, my final application will.

this is my demo, please check it, if you can give me some advice for handle that problem, it will be great.

https://www.dropbox.com/s/sdtl6jif3o188iq/Crash%20Source.rar

on December 21, 2013 22:42
Aug 22, 2015
Archive Agent agent wrote
Lin

could you please uploaded only crash source files only because I already have 2 test mp4 that you attached because of my internet connection ,it's took me hours to download your 114.36mb again :)

on December 21, 2013 22:45
Aug 22, 2015
Archive Agent agent wrote
qakmak

Sure. here :https://www.dropbox.com/s/nzurg2z7o8bqwp5/OnlySource.rar

on December 21, 2013 22:48
Aug 22, 2015
Archive Agent agent wrote
qakmak

and you will find if you disable the audio effect. all fine.

on December 21, 2013 22:51
Aug 22, 2015
Archive Agent agent wrote
Lin

do you have some Instant messanger that I can talk to you , because I am testing your codes now ..

on December 21, 2013 22:55
Aug 22, 2015
Archive Agent agent wrote
qakmak

Skype:huangjinshe@outlook.com

on December 21, 2013 23:00
Aug 22, 2015
Archive Agent agent wrote
qakmak

Or you can tell me you IM, I can download.

on December 21, 2013 23:06
Aug 22, 2015
Archive Agent agent wrote
Lin

I added you on skype ,I think I found out the solution ,not crash until now

on December 21, 2013 23:17
Aug 22, 2015
Archive Agent agent wrote
qakmak

I'm not found you . please tell me your Skype ID.

on December 21, 2013 23:21
Aug 22, 2015
Archive Agent agent wrote
Lin

Why you used Mediaplayer1.Play();
MediaPlayer1.Pause();
MediaPlayer1.Resume();
in Button_Click??

on December 21, 2013 23:33
Aug 22, 2015
Archive Agent agent wrote
qakmak

That's because before every time I play Next Media file. the sound volume will change to 100. So visioforge suggess I can pause it and set audio volume or audio track something, then resume. of course I already remove it on new version. but still crash.

on December 21, 2013 23:38
Aug 22, 2015
Archive Agent agent wrote
Lin

I am still running now for 15minutes and not crash until now ,here is my code
private void Button_Click(object sender, RoutedEventArgs e)
{

if (MediaPlayer1.Status != VFMediaPlayerStatus.Play)
{
//Clear Audio Effect first, And I think maybe this is will let player crash. just maybe
MediaPlayer1.Audio_Effects_Clear(-1);

MediaPlayer1.Stop();

//Play
MediaPlayer1.Play();
}

on December 21, 2013 23:44
Aug 22, 2015
Archive Agent agent wrote
Lin

Good luck and thank you giving me some ideas also ...

on December 21, 2013 23:45
Aug 22, 2015
Archive Agent agent wrote
qakmak

by the way Lin told me he is still crash too. So that's a BUG. not about me or any codec. Sorry.......

on December 27, 2013 22:52
Aug 22, 2015
Archive Agent agent wrote
qakmak

If there is any new result , I'll told you.

on December 27, 2013 22:53
Aug 22, 2015
Archive Agent agent wrote
qakmak

Hi Roman, I just use MaximalSpeedPlayback = true; and wait 2 times(every time 30 minute). not crash. So can you search your code

Is there some place you use :
if (MaximalSpeedPlayback){
Release some thing or operate some other filter or Audio render different with default.
}

for example in Play() method or Stop() method.

or other place , maybe something different when use MaximalSpeedPlayback = true

because this time my Audio Effec is enable, and not crash. but there is no sound can hear.

Sorry for bother you again.

on December 28, 2013 13:49
Aug 22, 2015
Archive Agent agent wrote
qakmak

did you found something?

I mean in MediaPlayerSlave class. when : if (MaximalSpeedPlayback)

on December 28, 2013 20:29
Aug 22, 2015
Archive Agent agent wrote
qakmak

Come on......don't let the problem into 2014......

on December 28, 2013 22:03
Aug 22, 2015
Archive Agent agent wrote
qakmak

Hi Roman. can you check it please. I think the problem maybe can fixed if you found.
Thank you so much.

on December 30, 2013 16:11
Aug 22, 2015
Archive Agent agent wrote
qakmak

Why you don't release com object IMediaFilter when play it every time ? (just like when use MaximalSpeedPlayback = true)

on January 06, 2014 18:33
Aug 22, 2015
Archive Agent agent wrote
qakmak

Except Audio Effect let application crash. I found there is another problem still let application crash....

and I find this message on Windows log:

Framework Version: v4.0.30319
The process was terminated due to an unhandled exception
Exception Info: exception code c0000005, exception address 0FF36504

But my application not catch any exception.
I'm disable audio effect, so the new crash not always happening, but still some times happening.
I think maybe play a lot files(about 50-100), or play long time.....but still don't know....

Is there possible to catch it ?
PS: this time not crash when switch files(play next), it's crash when play about 30-60 second..

on January 13, 2014 21:52
Aug 22, 2015
Archive Agent agent wrote
qakmak

How much need pay if required find all crash bug and fixed it please?

on January 13, 2014 22:05
Aug 22, 2015
Archive Agent agent wrote
qakmak

Required audio effects source code please.

on January 14, 2014 03:56
Aug 22, 2015
Archive Agent agent wrote
qakmak

I found one "Access violation" problem happening when you render the audio effect 1. I mean ICaptureGraphBuilder2.RenderStream() //happening on this place.

And about stuck. it happening when you execute Stop() method:
IMediaControl.Stop(); // this place.

which filter will use when you use:IMediaControl.Stop(); ? I search google, some people say that's because not synchronize in filter.

I'm still analysis. please share with me the audio effects source cod(ax file) please.

on January 14, 2014 10:51
Aug 22, 2015
Archive Agent agent wrote
qakmak

Hi Roman, Can you tell me you Skype ID please?

on January 14, 2014 14:33
Aug 22, 2015
Archive Agent agent wrote
qakmak

Thank you for sharing the Audio Effect Filter source code. that is a filter bug. I trying to fixed it. But I don't Reappear another problem yet(even disable audio effect still crash when play a lot file when use XP).

on January 22, 2014 20:16
Aug 22, 2015
Archive Agent agent wrote
qakmak

Can use Custom Audio Effect now? How please?

on February 06, 2014 15:59
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

What do you mean? Specify filter CLSID for each audio stream? Something like it?

on February 06, 2014 16:13
Aug 22, 2015
Archive Agent agent wrote
qakmak

You before said , We can use Custom filter. I thought, I can extends your own Audio Effect class, and only need change CLSID, and then can use My custom Audio filter replace the original.

on February 06, 2014 16:17
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

Yes, that's possible, we can add it.

But also we must add the way to communicate between your application, so, you must create interface for a filter, like in our audio effects filter.

Right now you can use graphstudionext tool to work with new filter and test it instead our sdk.

on February 06, 2014 16:21
Aug 22, 2015
Archive Agent agent wrote
qakmak

I think if I just change the filter not need to change your original interface. even I'm changed the original interface, I still can't change the SDK inside for use it.

So I think maybe you can consider the way I said, and then write these interface your SDK used. and user just need design filter by your interface, and extends the flter class changed the CLSID.

And about Audio effect crash problem, I think I can changed the filter inside, there is some thing I can changed make it more better. I don't need anything else except replace the audio effect CLSID. looks like I even don't need extends the class.

But about the some times play will Crash problem. I still searching the problem source. So I think maybe you can close the ticket to. when I found that crash problem I'll open another ticked.

Thank you.

on February 06, 2014 16:28
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

ok. I can add custom audio filter clsid usage within several days if required.

on February 06, 2014 16:34
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

custom interface can be used in your C# code outside of SDK code. it's not a problem.

on February 06, 2014 16:35
Aug 22, 2015
Archive Agent agent wrote
qakmak

Sure. If can change the audio fiter clsid would be better. Thank you.

on February 06, 2014 16:37
Aug 22, 2015
Archive Agent agent wrote
qakmak

Very sorry, can you help me to check the fast encryption ? now all is fine, but when finish encrypted, I just find the encrypted file only 4k.....I don't know what's going on ....

on February 06, 2014 16:49
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

New API to use custom audio effects available in latest SDK build

List<Guid> CLSID_List = new List<Guid>();
for (int i = 0; i < 4; i++)
{
CLSID_List.Add(new Guid("E90165B8-8E1C-4C96-AC89-266A20BB3EBD"));
}

MediaPlayer1.Audio_Effects_UseCustomAudioEffectsFilters(CLSID_List);

on February 06, 2014 17:51