ACCESS_VIOLATION crash when starting YawCam

Report and discuss bugs here!
Post Reply
igvk
Posts: 4
Joined: Sun Jan 14, 2024 5:47 pm

ACCESS_VIOLATION crash when starting YawCam

Post by igvk »

I get the following crash when starting YawCam on my PC.

Code: Select all

Stack: [0x000000d4b1600000,0x000000d4b1700000],  sp=0x000000d4b16fece0,  free space=1019k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [dsj_x64.dll+0x2cc60]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  de.humatic.dsj.DSFiltergraph.getMovieInfo(J[J)I+0
j  de.humatic.dsj.DSCapture.a(ILde/humatic/dsj/DSFilterInfo;Lde/humatic/dsj/DSFilterInfo;)V+579
j  de.humatic.dsj.DSCapture.<init>(ILde/humatic/dsj/DSFilterInfo;ZLde/humatic/dsj/DSFilterInfo;Ljava/beans/PropertyChangeListener;)V+131
j  yawcam.CamManager.initCam(III)V+1197
j  yawcam.Main.<init>([Ljava/lang/String;)V+1990
j  yawcam.Main.main([Ljava/lang/String;)V+67
v  ~StubRoutines::call_stub 0x000001f5374d100d

siginfo: EXCEPTION_ACCESS_VIOLATION (0xc0000005), reading address 0x0000000000000000
Full log (hs_err.log):
https://pastebin.com/BTx3tntx
malun
Site Admin
Posts: 1593
Joined: Sun Jan 04, 2004 1:29 pm

Re: ACCESS_VIOLATION crash when starting YawCam

Post by malun »

Some hardware can make Yawcam crash like this when Yawcam looks for devices at startup. Make sure to use updated drivers for your webcam. This also applies to any TV tuner card if you have one of those.

What is the webcam you are you using?

Next step would be to disconnect all webcams and see if Yawcam starts without them connected to the computer. It' would be helpful if we could identify which device is causing the crash.

/malun
igvk
Posts: 4
Joined: Sun Jan 14, 2024 5:47 pm

Re: ACCESS_VIOLATION crash when starting YawCam

Post by igvk »

I have Elgato Virtual Camera and OBS Virtual Camera.
All the drivers are the latest available.
Physical cameras/capture devices are disconnected at the time of the program startup and crash.
malun
Site Admin
Posts: 1593
Joined: Sun Jan 04, 2004 1:29 pm

Re: ACCESS_VIOLATION crash when starting YawCam

Post by malun »

On my machine, Yawcam will start fine with booth Elgato Camera Hub and OBS Studio installed.
I can connect the Elgato Virtual Camera, but when I try to connect to the OBS Virtual Camera, Yawcam will crash.

In theory, it could be that Yawcam has selected the OBS Virtual Camera and tries to connect to it at startup.
You could try to rename (or delete) Yawcam's settings file and try to start Yawcam again. This should force Yawcam to startup without trying to connect to any camera.

The settings file is located here:
C:\Users\%username%\.yawcam\yawcam_settings.xml

/malun
igvk
Posts: 4
Joined: Sun Jan 14, 2024 5:47 pm

Re: ACCESS_VIOLATION crash when starting YawCam

Post by igvk »

You are right, it's OBS Virtual Camera that crashes yawcam.
If I delete yawcam_settings.xml, it starts o.k.
When selecting OBS, it crashes immediately.
malun
Site Admin
Posts: 1593
Joined: Sun Jan 04, 2004 1:29 pm

Re: ACCESS_VIOLATION crash when starting YawCam

Post by malun »

Nice! We have pinpointed the problem :D
...and I can reproduce it on my machine.

You might want to try this beta version:
https://www.yawcam.com/forum/viewtopic.php?t=13193

It should be more stable regarding the device selection when you plugin and unplug devices from your computer.
Hopefully that will help so that OBS Virtual Camera don't get selected by mistake again.

/malun
igvk
Posts: 4
Joined: Sun Jan 14, 2024 5:47 pm

Re: ACCESS_VIOLATION crash when starting YawCam

Post by igvk »

If I select OBS Virtual Camera, it still crashes.
Shouldn't this be considered a bug in YawCam?
There is another software that can use Windows cameras such as OBS Virtual Camera - it doesn't crash, just shows black screen.
malun
Site Admin
Posts: 1593
Joined: Sun Jan 04, 2004 1:29 pm

Re: ACCESS_VIOLATION crash when starting YawCam

Post by malun »

Yes, that's a bug in Yawcam.
I get the same behavior.
/malun
Post Reply