Closed Flowdeeps closed 2 years ago
Provide the log from obs as well please.
There is a mutex fix in master for resizing that you probably already have. Unfortunately, I am not able to repro this crash or GL errors at HEAD, so my hands are a bit tied.
As mentioned, a regular non-crash log would be appreciated.
@kkartaltepe thanks for correcting the name of the report, I missed it when I was creating it.
Fixing the glBindFramebuffer error is probably a prerequisite, but I still cannot reproduce. A call stack of the initial GL error might help. Maybe simplifying down the scene collection will isolate a problematic source.
Is this still an issue with the latest nightly?
@Flowdeeps Please confirm whether this is still an issue.
@WizardCM Yes it's still an issue.
@WizardCM Still got the issue when resizing OBS's window
I think I messed up something during the permissions setup but I checked and OBS has access to record screen, microphone, accessibility and input monitoring.
Steps to reproduce:
@WizardCM Any update by chance?
Is there any progress? I can reproduce this error as often as i want. I do not only have this on resize but also when dragging the OBS window to an external monitor. My OS is 11.3 Big Sur.
error: glBindFramebuffer failed, glGetError returned GL_INVALID_FRAMEBUFFER_OPERATION(0x506) error: glGenTextures failed, glGetError returned GL_INVALID_FRAMEBUFFER_OPERATION(0x506) error: device_texture_create (GL) failed [1] 34165 segmentation fault /Applications/OBS.app/Contents/MacOS/obs
@maxmichels I didn't hear any news
Can anyone still reproduce this on OBS Studio 28.0.2 (or newer) on macOS 12+?
I'm not able to reproduce this on any of my machines, the last instruction in the stack seems to be gl_bind_framebuffer
inside the async block of gl_update
.
What would help us most would be @jbouhier setting a breakpoint on line 236 of gl-cocoa.m
and step into the instruction and check if that's indeed where it crashes (it should be an inlined call to glBindFramebuffer
).
Closing this as we haven't heard back on this after 2 weeks. Feel free to follow-up on this issue with the requested information at a later point.
Hi, I found the problem and a workaround. I was able to reproduce the issue either when dragging and resizing the window. Secondly, I found that previews for media either video, screengrab, or image were not displaying. The problem stems from using secondary monitors that utilize the DisplayLink graphics driver.
The fix is to have the OBS studio screen open on the native screen of the device. For example, if you use a laptop with a docking station, have OBS open on the laptop screen.
If you're in a chicken and egg scenario where you can't drag the window over because it will crash, to address this, exit the DisplayLink manager application so that it reverts to the default OS graphics driver. This will then let you move OBS and resize and get preview etc to move to the native screen.
Once it's at the appropriate size and on the native screen, you can re-open DisplayLink manager to re-enable your other screens. As long as OBS studio's window remains on the native screen, it'll "just work". The issue will re-occur if you move it to another screen afterwards.
In that case this issue would be a duplicate of #8177 and possibly #5105 - we haven't been able to figure out whether this is a deficiency with macOS, OpenGL, the way these simulated displays are implemented, or a combination of all.
No maintainer has been able to reproduce either issue so far due to lack of access to hardware or software, so fixing this would require someone affected by this issue to actually debug and fix it.
I want to be able to resize my OBS app window but as soon as I start to drag from any side the app crashes to desktop. If I clone and build the repository from the latest master and run it from the resultant bin I get the following in the terminal:
The system crash logs give me this more in-depth report:
Click to expand
``` Process: obs [98078] Path: /Applications/OBS.app/Contents/MacOS/obs Identifier: com.obsproject.obs-studio Version: 25.0.8 (25.0.8) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: obs [98078] User ID: 501 Date/Time: 2020-05-16 19:19:04.137 +0200 OS Version: Mac OS X 10.15.4 (19E287) Report Version: 12 Anonymous UUID: E599E3F5-CAEB-33BE-453D-887DB3421FE6 Time Awake Since Boot: 340000 seconds System Integrity Protection: disabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000020 Exception Note: EXC_CORPSE_NOTIFY Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [98078] VM Regions Near 0x20: --> Kernel Alloc Once 0000000001084000-0000000001086000 [ 8K] rw-/rwx SM=PRV Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libobs-opengl.so 0x00000000187cac6b __gl_update_block_invoke + 363 1 libdispatch.dylib 0x00007fff6ac416c4 _dispatch_call_block_and_release + 12 2 libdispatch.dylib 0x00007fff6ac42658 _dispatch_client_callout + 8 3 libdispatch.dylib 0x00007fff6ac4dcab _dispatch_main_queue_callback_4CF + 936 4 com.apple.CoreFoundation 0x00007fff30d94041 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 5 com.apple.CoreFoundation 0x00007fff30d53e47 __CFRunLoopRun + 2028 6 com.apple.CoreFoundation 0x00007fff30d52ffe CFRunLoopRunSpecific + 462 7 com.apple.HIToolbox 0x00007fff2f986abd RunCurrentEventLoopInMode + 292 8 com.apple.HIToolbox 0x00007fff2f9867d5 ReceiveNextEventCommon + 584 9 com.apple.HIToolbox 0x00007fff2f986579 _BlockUntilNextEventMatchingListInModeWithFilter + 64 10 com.apple.AppKit 0x00007fff2dfd1c99 _DPSNextEvent + 883 11 com.apple.AppKit 0x00007fff2dfd04e0 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352 12 com.apple.AppKit 0x00007fff2e3b5111 -[NSView _getNextResizeEventFromMask:invalidatingLiveResizeCacheIfNecessary:] + 102 13 com.apple.AppKit 0x00007fff2e3b463e -[NSWindow(NSWindowResizing) _resizeWithEvent:] + 1007 14 com.apple.AppKit 0x00007fff2e28ac36 -[NSTitledFrame attemptResizeWithEvent:] + 177 15 com.apple.AppKit 0x00007fff2e28a917 -[NSThemeFrame handleMouseDown:] + 294 16 com.apple.AppKit 0x00007fff2e327dd8 -[NSThemeFrame mouseDown:] + 30 17 com.apple.AppKit 0x00007fff2e20d280 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4914 18 com.apple.AppKit 0x00007fff2e177a81 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2612 19 com.apple.AppKit 0x00007fff2e176e29 -[NSWindow(NSEventRouting) sendEvent:] + 349 20 libqcocoa.dylib 0x0000000003496f2d 0x3463000 + 212781 21 com.apple.AppKit 0x00007fff2e1751b4 -[NSApplication(NSEvent) sendEvent:] + 352 22 libqcocoa.dylib 0x000000000349d908 0x3463000 + 239880 23 com.obsproject.obs-studio 0x0000000101087759 0x101074000 + 79705 24 com.apple.AppKit 0x00007fff2dfc221f -[NSApplication run] + 707 25 libqcocoa.dylib 0x000000000349a5e8 0x3463000 + 226792 26 org.qt-project.QtCore 0x000000010436ab0f QEventLoop::exec(QFlagsPlatform
Operating system and version: OS X Catalina 10.15.4
OBS Studio version: 25.0.8
Expected Behavior
Should be able to resize window and expect app to remain stable
Current Behavior
Consistent crash
Steps to Reproduce
Open OBS Resize Application
Additional information