Memory Leak With glimagesink on OSX
Using the Mac OSX packages from the 1.15.1 release the following pipeline leaks memory:
gst-launch-1.0 testvideosrc is-live=true pattern=black ! timeoverlay ! glimagesink
On my machine it starts off using ~17MB but will continue to climb. At a certain point quitting the application will then cause the video output on the machine to freeze for many seconds, the length of which correlates to how much memory the process is currently consuming.
Please let me know if if additional logs would be helpful.
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
Can confirm that I get this issue with:
gst-launch-1.0 videotestsrc is-live=true pattern=black ! timeoverlay ! glimagesink
However, I don't get this issue when timeoverlay is removed:
gst-launch-1.0 videotestsrc is-live=true pattern=black ! glimagesink
I'm running GStreamer 1.15.2 (GIT).
- Matthew Waters mentioned in commit ystreet/gst-plugins-base@87ac5ae0
mentioned in commit ystreet/gst-plugins-base@87ac5ae0
- Matthew Waters mentioned in merge request !141 (merged)
mentioned in merge request !141 (merged)
- Matthew Waters mentioned in commit ystreet/gst-plugins-base@13fc711e
mentioned in commit ystreet/gst-plugins-base@13fc711e
- Matthew Waters closed via commit 13fc711e
closed via commit 13fc711e
- Matthew Waters mentioned in commit tpm/gst-plugins-base@2cc018e8
mentioned in commit tpm/gst-plugins-base@2cc018e8
I have the same issue with gstreamer versions 1.15.2/1.16 I tested many times and I think the problem inside: glupload/gldownload/glimagesink/vtenc_h264_hw/vtdec_hw
log1:
Crashed Thread: 74 gstglcontext Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Application Specific Information: abort() called Thread 0:: Dispatch queue: com.apple.main-thread 0 libobjc.A.dylib 0x00007fff59d5f377 search_method_list(method_list_t const*, objc_selector*) + 83 1 libobjc.A.dylib 0x00007fff59d5f304 getMethodNoSuper_nolock(objc_class*, objc_selector*) + 98 2 libobjc.A.dylib 0x00007fff59d61725 lookUpImpOrForward + 377 3 libobjc.A.dylib 0x00007fff59d61114 _objc_msgSend_uncached + 68 4 com.apple.AppKit 0x00007fff2cc7b85d -[NSButtonCell setTitle:] + 109 5 com.apple.AppKit 0x00007fff2cc7af6a -[NSButtonCell init] + 69 6 com.apple.AppKit 0x00007fff2cc7ada5 -[NSControl initWithFrame:] + 104 7 com.apple.AppKit 0x00007fff2cc7aca9 -[NSButton initWithFrame:] + 66 8 com.apple.AppKit 0x00007fff2cc7aa61 -[_NSThemeWidget initWithButtonID:] + 105 9 com.apple.AppKit 0x00007fff2cc7a99e +[_NSThemeCloseWidget closeWidgetInView:withButtonID:action:] + 60 10 com.apple.AppKit 0x00007fff2cc7a85e +[NSWindow standardWindowButton:forStyleMask:] + 1185 11 com.apple.AppKit 0x00007fff2cc7a37f -[NSThemeFrame newCloseButton] + 79 12 com.apple.AppKit 0x00007fff2cc7942f -[NSThemeFrame _updateButtons] + 476 13 com.apple.AppKit 0x00007fff2cc676ad -[NSWindow _cacheAndSetPropertiesForCollectionBehavior:] + 448 14 com.apple.AppKit 0x00007fff2cc66d8f -[NSWindow _effectiveCollectionBehavior] + 422 15 com.apple.AppKit 0x00007fff2cc79ee1 -[NSWindow(NSFullScreen) canEnterFullScreenMode] + 17 16 com.apple.AppKit 0x00007fff2cc79e79 -[NSWindow showsFullScreenButton] + 22 17 com.apple.AppKit 0x00007fff2cc79342 -[NSThemeFrame _updateButtons] + 239 18 com.apple.AppKit 0x00007fff2cc791c3 -[NSThemeFrame _moveTitlebarViewsToView:] + 635 19 com.apple.AppKit 0x00007fff2cc73b6d __49-[NSThemeFrame _floatTitlebarAndToolbarFromInit:]_block_invoke + 895 20 com.apple.AppKit 0x00007fff2cc735f0 +[NSAnimationContext runAnimationGroup:] + 55 21 com.apple.AppKit 0x00007fff2cc73513 -[NSThemeFrame _floatTitlebarAndToolbarFromInit:] + 88 22 com.apple.AppKit 0x00007fff2cc72594 -[NSThemeFrame initWithFrame:styleMask:owner:] + 230 23 com.apple.AppKit 0x00007fff2cc5c086 -[NSWindow _commonInitFrame:styleMask:backing:defer:] + 584 24 com.apple.AppKit 0x00007fff2cc5b8df -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1199 25 com.apple.AppKit 0x00007fff2cc5b42a -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45 26 com.apple.AppKit 0x00007fff2cf27d08 -[NSWindow initWithContentRect:styleMask:backing:defer:screen:] + 52 27 libgstgl-1.0.0.dylib 0x000000010163abff -[GstGLNSWindow initWithContentRect:styleMask:backing:defer:screen:gstWin:] + 159 28 libgstgl-1.0.0.dylib 0x000000010163a958 gst_gl_window_cocoa_create_window + 520 29 libgstgl-1.0.0.dylib 0x000000010163b4a0 ___invoke_on_main_block_invoke + 16 30 libdispatch.dylib 0x00007fff5b4ee5f8 _dispatch_call_block_and_release + 12 31 libdispatch.dylib 0x00007fff5b4ef63d _dispatch_client_callout + 8 32 libdispatch.dylib 0x00007fff5b4fa68d _dispatch_main_queue_callback_4CF + 1135 33 com.apple.CoreFoundation 0x00007fff2f5e82d7 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 34 com.apple.CoreFoundation 0x00007fff2f5e7a01 __CFRunLoopRun + 2289 35 com.apple.CoreFoundation 0x00007fff2f5e6ebe CFRunLoopRunSpecific + 455 36 com.apple.HIToolbox 0x00007fff2e8461ab RunCurrentEventLoopInMode + 292 37 com.apple.HIToolbox 0x00007fff2e845ee5 ReceiveNextEventCommon + 603 38 com.apple.HIToolbox 0x00007fff2e845c76 _BlockUntilNextEventMatchingListInModeWithFilter + 64 39 com.apple.AppKit 0x00007fff2cbde79d _DPSNextEvent + 1135 40 com.apple.AppKit 0x00007fff2cbdd48b -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1361 41 com.apple.AppKit 0x00007fff2cbd75a8 -[NSApplication run] + 699 42 com.apple.AppKit 0x00007fff2cbc6ae8 NSApplicationMain + 777
log2:
Application Specific Information: abort() called Thread 0:: Dispatch queue: com.apple.main-thread 0 com.apple.AppKit 0x00007fff2cc686d7 -[NSView inputContext] + 61 1 com.apple.AppKit 0x00007fff2cc56c95 -[NSView _setWindow:] + 920 2 com.apple.AppKit 0x00007fff2cc57ee5 -[NSView removeFromSuperview] + 164 3 com.apple.AppKit 0x00007fff2cc8aa4b -[NSThemeFrame _updateBackdropView] + 200 4 com.apple.AppKit 0x00007fff2cc663a0 -[NSWindow setBackgroundColor:] + 301 5 libgstgl-1.0.0.dylib 0x000000010aa14c74 -[GstGLNSWindow initWithContentRect:styleMask:backing:defer:screen:gstWin:] + 276 6 libgstgl-1.0.0.dylib 0x000000010aa14958 gst_gl_window_cocoa_create_window + 520 7 libgstgl-1.0.0.dylib 0x000000010aa154a0 ___invoke_on_main_block_invoke + 16 8 libdispatch.dylib 0x00007fff5b4ee5f8 _dispatch_call_block_and_release + 12 9 libdispatch.dylib 0x00007fff5b4ef63d _dispatch_client_callout + 8 10 libdispatch.dylib 0x00007fff5b4fa68d _dispatch_main_queue_callback_4CF + 1135 11 com.apple.CoreFoundation 0x00007fff2f5e82d7 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 12 com.apple.CoreFoundation 0x00007fff2f5e7a01 __CFRunLoopRun + 2289 13 com.apple.CoreFoundation 0x00007fff2f5e6ebe CFRunLoopRunSpecific + 455 14 com.apple.HIToolbox 0x00007fff2e8461ab RunCurrentEventLoopInMode + 292 15 com.apple.HIToolbox 0x00007fff2e845ee5 ReceiveNextEventCommon + 603 16 com.apple.HIToolbox 0x00007fff2e845c76 _BlockUntilNextEventMatchingListInModeWithFilter + 64 17 com.apple.AppKit 0x00007fff2cbde79d _DPSNextEvent + 1135 18 com.apple.AppKit 0x00007fff2cbdd48b -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1361 19 com.apple.AppKit 0x00007fff2cbd75a8 -[NSApplication run] + 699 20 com.apple.AppKit 0x00007fff2cbc6ae8 NSApplicationMain + 777