Access Violation with 1.0.1

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
ekennedy
Blank Cone
Blank Cone
Posts: 38
Joined: 18 Sep 2008 22:05
VLC version: 1.0
Operating System: Windows
Location: Texas

Access Violation with 1.0.1

Postby ekennedy » 26 Aug 2009 23:25

This is odd and maybe there is a simple explanation!!

I've build a player using libvlc.dll using C++. Running the player from the hard drive generally doesn't have major issues. However running from a small thumbdrive or DVD (with plugins on the thumbdrive/DVD) results in an access violation right after starting to play. Below is output captured while trying to catch what was going on with a debugger. I"ve used FileMon and ProcMon to try to see if there were any obvious external errors and I don't see any.

'sampler.exe': Loaded 'C:\WINDOWS\system32\ksuser.dll'
First-chance exception at 0x6a59d90b in sampler.exe: 0xC0000005: Access violation reading location 0x00000078.
First-chance exception at 0x00000000 in sampler.exe: 0xC0000005: Access violation reading location 0x00000000.

This occurs with XP and Vista.
File type makes no difference.
This issue doesn't occur with 9.9a & previous versions. (I'm thinking of rolling back however 1.0.1 actually stops and starts on a dime which is really nice!)

Below is how I set up vlc. Similar to the sample here on the site.

Code: Select all

const char * const vlc_args[] = { "-I", "dummy", "--no-plugins-cache", "--no-one-instance", "--no-stats", "--no-media-library", "--ignore-config", "--no-video-title-show", "--plugin-path=\\plugins" }; libvlc_exception_init (&ex); m_pVlcInstance = libvlc_new (sizeof(vlc_args) / sizeof(vlc_args[0]), vlc_args, &ex); VLCCATCH(&ex);
I haven't seen this issue in the forums or anywhere else.

Thanks,

ed

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Access Violation with 1.0.1

Postby Jean-Baptiste Kempf » 26 Aug 2009 23:28

Never heard of that issue. Did you try to remove some plugins?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ekennedy
Blank Cone
Blank Cone
Posts: 38
Joined: 18 Sep 2008 22:05
VLC version: 1.0
Operating System: Windows
Location: Texas

Re: Access Violation with 1.0.1

Postby ekennedy » 26 Aug 2009 23:49

Yes.. still have the same issue. Is there a list of the absolute required plugins to get VLC up and running without an exception? Maybe I could build on that??

Thanks!

ed

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Access Violation with 1.0.1

Postby VLC_help » 27 Aug 2009 13:34

Does the same thing happen if you start normal VLC with those same options?

Beardless2
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 02 Feb 2007 09:53

Re: Access Violation with 1.0.1

Postby Beardless2 » 27 Aug 2009 13:51

try to remove the libdirac_plugin.dll from the plugins folder and see if that works.

ekennedy
Blank Cone
Blank Cone
Posts: 38
Joined: 18 Sep 2008 22:05
VLC version: 1.0
Operating System: Windows
Location: Texas

Re: Access Violation with 1.0.1

Postby ekennedy » 27 Aug 2009 16:21

Having to roll back to 0.9.9a.

What I've determined is that there is a conflict between some libs I'm using for processing PNGs and VLC 1.0.1. VLC 1.0.1 takes snapshots and exports them as PNG even if I request jpg or bmp. (viewtopic.php?f=14&t=64029&p=214392#p214392)

So basically I'm between a rock and a hard place until it's resolved or I can figure out where the memory issue is.

Thanks!

ed

ekennedy
Blank Cone
Blank Cone
Posts: 38
Joined: 18 Sep 2008 22:05
VLC version: 1.0
Operating System: Windows
Location: Texas

Re: Access Violation with 1.0.1

Postby ekennedy » 27 Aug 2009 19:53

Having to roll back to 0.9.9a.

What I've determined is that there is a conflict between some libs I'm using for processing PNGs and VLC 1.0.1. VLC 1.0.1 takes snapshots and exports them as PNG even if I request jpg or bmp. (viewtopic.php?f=14&t=64029&p=214392#p214392)
Using the same code rolling back to VLC 0.9.9a there is no access violation. I've narrowed it down to the PNG & ZLIB code by removing all of the other graphic code. However since VLC will only export PNG I have to keep it in there..

Thanks!

ed


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 91 guests