libllcvore.dll problem when using VLC activex

This forum is about all development around libVLC.
vbalaji_tvr
New Cone
New Cone
Posts: 8
Joined: 25 Apr 2009 12:06

libllcvore.dll problem when using VLC activex

Postby vbalaji_tvr » 27 Apr 2009 14:46

Hi all,
I am using the VLC activex to Play media file of mpeg/flv/avi format like this

private AxAXVLC.AxVLCPlugin2 vlcp;
string[] options = new string[] {":no-video-title-show"};
vlcp.addTarget(source,options, AXVLC.VLCPlaylistMode.VLCPlayListInsert, 1);
vlcp.play();
vlcp.stop();
This application is intended to play some set of media files continuously, after some time there is a Micrososft error message, that the application needs to be closed.
And it specifies libvlccore.dll is the faulty module.

This is happening irrespective of the codec used to encode the media.

Thanks in anticipation

Balaji

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: libllcvore.dll problem when using VLC activex

Postby thannoy » 27 Apr 2009 18:25

I don't think it is the problem, but I find strange you are using at the same time "AxVLCPlugin2" and the old API (.addTarget). You should use the last API (describled in link1) in which addTarget become .playlist.add(url, name, option) for example. old API is deprecated since ages.

For your crash problem, you can try different VLC releases. I used to see 0.9.8a as quite stable from the plugin point of view.


link1: http://wiki.videolan.org/Documentation: ... lla_plugin

vbalaji_tvr
New Cone
New Cone
Posts: 8
Joined: 25 Apr 2009 12:06

Re: libllcvore.dll problem when using VLC activex

Postby vbalaji_tvr » 28 Apr 2009 08:01

Thanks , I 'll try your solution .
Balaji

vbalaji_tvr
New Cone
New Cone
Posts: 8
Joined: 25 Apr 2009 12:06

Re: libllcvore.dll problem when using VLC activex

Postby vbalaji_tvr » 29 Apr 2009 15:49

Hi ,
I am using the AxVLCPlugin2 with new APIs specified in the link.
Still the problem persists.I am playing the media using VLC activex control continously .After sometime(approximately 6 hours after starting the application which uses VLC active x control) , it tells the application needs to be closed because of the faulty module libvlccore.dll.

Thanks and Regards
Balaji V

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: libllcvore.dll problem when using VLC activex

Postby thannoy » 29 Apr 2009 16:07

The only usefull thing to test in my opinion is to compile your VLC with all debugs enabled, start your program using gdb (through cygwin for example) and try to work on the error backtrace.

You can also try to test different releases of VLC media player.

vbalaji_tvr
New Cone
New Cone
Posts: 8
Joined: 25 Apr 2009 12:06

Re: libllcvore.dll problem when using VLC activex

Postby vbalaji_tvr » 07 May 2009 13:18

Hi all,
I have written one application which uses VLC activex and crashes frequently(With the vlc versions 0.9.7,0.9.8 and 0.9.9). So as per your instructions I compiled VLC in debug mode in cygwin .

I am using VLC activex as follows

private AxAXVLC.AxVLCPlugin2 vlcp;
string[] options = new string[] {":no-video-title-show"};
vlcp.playlist.add(murl,"Video1",options);
vlcp.playlist.play();

After time is elapsed the i am stopping player like this

vlcp.playlist.stop();
vlcp.playlist.items.clear();
vlcp.Dispose();
vlcp = null;

And again i am playing the next media.


I ran the Application with dlls compiled in debug mode.

After some time it gives the following information(I used drmingw to get the info)


Application caused an Access Violation at location 11ca9554 in module libavcodec_plugin.dll Reading from location ffffffff.

Registers:
eax=117124a0 ebx=00000008 ecx=0000000a edx=11ca9e70 esi=0b868c00 edi=fffffffe
eip=11ca9554 esp=1b51fa88 ebp=117124a0 iopl=0 nv up ei ng nz ac pe cy
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000293

Call stack:
11CA9554 libavcodec_plugin.dll:11CA9554 vlc_entry_license__1_0_0e



Then i ran my application using gdb, then it gives segmentaion fault in sad16_y2_mmx() from ../VideoLAN/VLC/plugins/libavcodec_plugin.dll
I could not get the backtrace as i have more than one form playing video using VLC activex plugin and it is hiding the gdb window.

Is it the same problem as reported earlier ?
And what is the solution for this?

Thanks in Anticipation
Balaji V

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: libllcvore.dll problem when using VLC activex

Postby thannoy » 07 May 2009 14:46

It could be the same error as previous. I advise you to not destroy the ActiveX for each track you play.

I don't understand how video blocks you from using gdb. If you start your program on gdb and if your program crash, then you will go back to gdb prompt and have backtraces easily, no?
Maybe you have some VLC debugs too (adding "-vvv" parameter)

vbalaji_tvr
New Cone
New Cone
Posts: 8
Joined: 25 Apr 2009 12:06

Re: libllcvore.dll problem when using VLC activex

Postby vbalaji_tvr » 08 May 2009 08:53

This is complete stack trace after the crash.Anyway i'll try your solution

#0 0x165a9554 in sad16_y2_mmx ()
from /cygdrive/c/program files/VideoLAN/VLC/plugins/libavcodec_plugin.dll
#1 0x165a9d85 in sad16_y2_mmx ()
from /cygdrive/c/program files/VideoLAN/VLC/plugins/libavcodec_plugin.dll
#2 0x165a9db5 in sad16_y2_mmx ()
from /cygdrive/c/program files/VideoLAN/VLC/plugins/libavcodec_plugin.dll
#3 0x165a9de5 in sad16_y2_mmx ()
from /cygdrive/c/program files/VideoLAN/VLC/plugins/libavcodec_plugin.dll
#4 0x165a9e15 in sad16_y2_mmx ()
from /cygdrive/c/program files/VideoLAN/VLC/plugins/libavcodec_plugin.dll
#5 0x165a9e45 in sad16_y2_mmx ()
from /cygdrive/c/program files/VideoLAN/VLC/plugins/libavcodec_plugin.dll
#6 0x165a9e75 in sad16_y2_mmx ()
from /cygdrive/c/program files/VideoLAN/VLC/plugins/libavcodec_plugin.dll
#7 0x165aa016 in ff_fft_dispatch_sse ()
from /cygdrive/c/program files/VideoLAN/VLC/plugins/libavcodec_plugin.dll
#8 0x165a6623 in ff_imdct_calc_sse ()
from /cygdrive/c/program files/VideoLAN/VLC/plugins/libavcodec_plugin.dll
#9 0x0958f280 in ?? ()
#10 0xfffffff8 in ?? ()
#11 0x0958f284 in ?? ()
#12 0x00001000 in ?? ()
#13 0x00000400 in ?? ()
#14 0x00000800 in ?? ()
---Type <return> to continue, or q <return> to quit---
#15 0x00000200 in ?? ()
#16 0x0958f280 in ?? ()
#17 0x1196e7a0 in ?? ()
#18 0x0cbba490 in ?? ()
#19 0x11b277d0 in ?? ()
#20 0x00000800 in ?? ()
#21 0x0cbb5480 in ?? ()
#22 0x0cbbd490 in ?? ()
#23 0x0cbb3000 in ?? ()
#24 0x163a119b in wma_decode_block ()
from /cygdrive/c/program files/VideoLAN/VLC/plugins/libavcodec_plugin.dll
#25 0x0cbbd490 in ?? ()
#26 0x0cbb9490 in ?? ()
#27 0x3fa99999 in ?? ()
#28 0x003e0000 in ?? ()
#29 0x0cb4bdd0 in ?? ()
#30 0x40000060 in ?? ()
#31 0x00006d5d in ?? ()
#32 0x10f8fb34 in ?? ()
#33 0x7e1e18b3 in ?? () from /cygdrive/c/WINDOWS/system32/urlmon.dll
#34 0x00000001 in ?? ()
#35 0x00000001 in ?? ()
#36 0x00000001 in ?? ()
#37 0x10f8fbf0 in ?? ()
#38 0x7e1e1855 in ?? () from /cygdrive/c/WINDOWS/system32/urlmon.dll
#39 0x095dd398 in ?? ()
#40 0x418e432a in ?? ()
#41 0x0cb4bdc8 in ?? ()
#42 0x003e0000 in ?? ()
#43 0x00000002 in ?? ()
#44 0x7e1e186e in ?? () from /cygdrive/c/WINDOWS/system32/urlmon.dll
#45 0x00002000 in ?? ()
#46 0xf3f8fb10 in ?? ()
#47 0x0cbb3410 in ?? ()
#48 0x0cbb3480 in ?? ()
#49 0x00000000 in ?? ()

Thanks and Regards
Balaji V


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 32 guests

cron