Bug Report OBS Crashes Every Time I Close It

artao

New Member
Hello, new to the forum, but have been using OBS for years. Since before the Studio version.
Logging on today to report this crash problem. It's not hurting my system or affecting my usage, but it is a bit annoying.
Just today, I DLed and installed the most recent version of OBS Studio. I also installed the ASIO plugin, as that is something I have been longing for FOREVER, and have been fighting with trying to get it to work using that crappy VB ASIO Bridge BS, that I never could get to work right.
THANK YOU whomever made this new ASIO plugin for OBS Studio. Godsend!! I use it with ReaRoute, because Reaper is my DAW. It works PERFECTLY!! \o/ WOOT
Anyhow, the problem is this:
Every time I close OBS, it crashes.
Here is the uploaded log file from OBS: https://obsproject.com/logs/JD7p-luALdrZqJVp
Here is the windows output details of said crash:

Problem Event Name: APPCRASH
Application Name: obs64.exe
Application Version: 0.0.0.0
Application Timestamp: 5b875866
Fault Module Name: obs64.exe
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 5b875866
Exception Code: c0000005
Exception Offset: 000000000002eb16
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 6b72
Additional Information 2: 6b72e917d3afb586cb518e2de10b26fd
Additional Information 3: 38d9
Additional Information 4: 38d9196fe4a17c0ed5ec32e7f40611b2

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
 

Suslik V

Active Member
Maybe something wrong with the hosting site? I see the Crash Reports only, under the link:
https://obsproject.com/logs/JD7p-luALdrZqJVp said:
Code:
OBS 22.0.2 (64-bit, windows) log file uploaded at 2018-09-08, 17:47:05

Unhandled exception: c0000005
Date/Time: 2018-09-08, 17:21:05
Fault address: 7FEC341E1D4 (c:\program files\obs-studio\obs-plugins\64bit\portaudio_x64.dll)
libobs version: 22.0.2 (64-bit)
Windows version: 6.1 build 7601 (revision: 18939; 64-bit)
CPU: AMD FX(tm)-6300 Six-Core Processor             


Thread 2224 (Crashed)
Stack            EIP              Arg0             Arg1             Arg2             Arg3             Address
00000000002F9EE8 000007FEC341E1D4 000000000B8807D0 0000000000000004 0000000000000080 00000000002FA020 portaudio_x64.dll!PaUtil_ValidateStreamPointer+0x24
00000000002F9EF0 000007FEC341E25E 0000000006366CA0 000000000000BB80 0000000005F2ED60 0000000000000004 portaudio_x64.dll!Pa_CloseStream+0xe
00000000002F9F20 000007FEC3536EFB 000007FECC2F4030 000000000BE66660 0000000000000000 00000000000B57F0 obs-asio.dll!0x7fec3536efb
00000000002FA0C0 000000013FEE4FE1 000007FECC2F4030 00000000002FA1A9 0000000013EB00E0 000007FECC2F4030 obs64.exe!OBSBasicProperties::qt_metacall+0x41
00000000002FA0F0 000007FECBF5E4FD 0000000013EB00E0 0000000000000007 0000000000000000 0000000000000024 qt5core.dll!0x7fecbf5e4fd
00000000002FA210 000007FED0DC2237 00000000002FA319 000007FED0DC20F0 000007FECC2F3CD8 0000000000000004 qt5widgets.dll!0x7fed0dc2237
00000000002FA260 000007FECBF5E41A 0000000013EAC020 0000000000000009 000000000C5B80C0 0000000000000008 qt5core.dll!0x7fecbf5e41a
...
The second log, I'm asking about, is just obs session log or Log Files (there is info about loaded plugins, scenes, encoding...).
 

Suslik V

Active Member
Yeah, but I think it is not from the attempt when OBS Studio crashed (in other words - the last log after obs was restarted after the crash).
 

artao

New Member
Yeah, but I think it is not from the attempt when OBS Studio crashed (in other words - the last log after obs was restarted after the crash).
It crashes every time I close it, so any log I post has certainly been involved in a crash.
I'll redo both here then.
Here is the crash log from the last time OBS closed and crashed: https://obsproject.com/logs/suqJf5uwZ5ZAyhDs
And here is the regular log file from the same session: https://obsproject.com/logs/YWmRVht380UC_PkS
I hope that works. :D
Sorry about all the confusion on my end.
 

pkv

Developer
hi im' one of the developpers of the asio plugin; the crash is indeed in the asio plugin when drivers are closed. For some reason portaudio library fails to close properly the driver.
That's not a super easy thing to debug because it can be due to badly written asio drivers (there are much more than one would think).
I need more info to debug:
- what is your asio device ? it is a focusrite, but which model specifically ?
- try closing reaper first, and then obs : does it still crash ?
- make sure that no other app than reaper is using your device (focusrite i guess)
 

artao

New Member
hi im' one of the developpers of the asio plugin; the crash is indeed in the asio plugin when drivers are closed. For some reason portaudio library fails to close properly the driver.
That's not a super easy thing to debug because it can be due to badly written asio drivers (there are much more than one would think).
I need more info to debug:
- what is your asio device ? it is a focusrite, but which model specifically ?
- try closing reaper first, and then obs : does it still crash ?
- make sure that no other app than reaper is using your device (focusrite i guess)
It's a Focusrite Scarlett 2i4.
The crash happens even if nothing else is running, Reaper or otherwise. I just tried it, shutting down all other software, and it still crashed.
Here's the two logs:
Crash log: https://obsproject.com/logs/fJsKyC9s-D0vPk63
Session log: https://obsproject.com/logs/jj8kOdvMwSHmIzUP

Hope that's helpful.
And thank you SO MUCH pkv for the ASIO plugin. It's works wonderfully. So much better than that VB Cable ASIO Bridge thing. :D
 

pkv

Developer
ok i'll investigate; kind of surprised because I get no crash with the scarlett 2i4; stay subscribed to this topic.
I'm suspecting a regression. Could you try the previous versions of the driver ? they will get installed to Program Files (x86)/obs-studio/obs-plugins/64bit while obs 22 + installs in program Files so you'll have to copy manually the following file: obs-asio.dll
Try with V1 and V2.
You can post here the results or open an issue on github.com/pkviet/obs-asio
 

artao

New Member
ok i'll investigate; kind of surprised because I get no crash with the scarlett 2i4; stay subscribed to this topic.
I'm suspecting a regression. Could you try the previous versions of the driver ? they will get installed to Program Files (x86)/obs-studio/obs-plugins/64bit while obs 22 + installs in program Files so you'll have to copy manually the following file: obs-asio.dll
Try with V1 and V2.
You can post here the results or open an issue on github.com/pkviet/obs-asio
Sorry if I'm being dense here, but I'm not quite understanding what you mean.
RE: "Could you try the previous versions of the driver ? they will get installed to Program Files (x86)/obs-studio/obs-plugins/64bit while obs 22 + installs in program Files so you'll have to copy manually the following file: obs-asio.dll
Try with V1 and V2."
I don't have any obs-studio in Program Files (x86) as I deleted them when I upgraded to the newest version of OBS. Should I totally un- and re-install?
Also, not sure what you mean by "Try with V1 and V2." ...... V1 and V2 of what?

Like I said, this isn't affecting my usage or the functionality of the software. it's just a minor annoyance. I'll stay subscribed and keep helping if I can.
Thanks. :D
 

pkv

Developer
here :https://github.com/pkviet/obs-asio/releases
There are two releases 1.1.0 and 1.0.0 ; you're using release 1.1.0. Test release 1.0.0.
For release 1.0.0 : there are two exe which correspond to 2 versions of the plugin called V1 and V2.
The installer for release 1.0.0 installs in Program Files (x86) because it was built before obs 22; you don't have to install an earlier version of obs-studio though. The obs-asio.dll for release 1.0.0 will be found there; copy to your current obs 22 folder (Program Files) and test
 

artao

New Member
Okay, I have tested like you asked.
V2 of the of the version 1.0.0 release doesn't display this problem. V1 does.
 

artao

New Member
@artao could you test this build ? https://github.com/pkviet/obs-asio/releases/tag/1.1.1
I've uploaded the dll and pdb files; you just have to swap the current ones with these (keep a copy of the previous since they were working)
Okay, did so. Still crashed upon closing OBS.
Crash log: https://obsproject.com/logs/1HVuBf2OA96yh9__
Session log: https://obsproject.com/logs/d5t7T7doY9ob1bJ9

EDIT: Oh dear. I made a grevious error. Previously, I hadn't tested the V2 1.0.0 plugin actually USING Reaper. I'd only tested to see if it crashed OBS Studio.
Sadly, when using the V2 plugin, I get no signal from Reaper. So yeah. I guess that one doesn't work right, even tho it doesn't crash OBS. Sorry to misinform you. My bad. In the future I'll make sure to test actually functionality instead of just whether it crashes or not. Oops.
 
Last edited:

pkv

Developer
ok np; both versions work with rearoute on my pc; i can't reproduce the crash so it's kind of difficult to troubleshoot.
Can you try the following ? with reaper, don't use the scarlett but something else, for instance asio4all or any other sound card. Does it crash again with rearoute in obs ?
 
Top