vzhd1701 / gridplayer

Play videos side-by-side
GNU General Public License v3.0
1.17k stars 91 forks source link

[Bug]: App opens but dropping one or more videos shows "Buffering" placeholder and app gets unresponsive #126

Closed porg closed 11 months ago

porg commented 1 year ago

Environment

Bug

gridplayer totally unresponsive

Reproduction

Whatever iGPU / dGPU mode I run in, the bug is always the same

Log excerpt

system.log during using gridplayer

# Launching app - Idle until I have my videos ready fro drag-n-drop

May 13 16:29:30 mbpr com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0D000000-0600-0000-0000-000000000000[52396]): Service exited due to SIGKILL | sent by mds[120]

# Dropping 2 videos: Screen recording as MOV (h264, no audio track) + its Handbrake transcoded counterpart MP4 (h264, variable bit rate at constant quality RF 28)

# Shows video placeholder with message "Buffering" per each video dropped (so 2 in total) - But becomes unresponsive immediately "spinning beachball of death" on top of the window

## The following (2+3) lines repeat twice, I guess per each technical video player instance, seems the path to the GPU driver is not found.

May 13 16:29:52 mbpr VTDecoderXPCService[52402]: DEPRECATED USE in libdispatch client: Changing the target of a source after it has been activated; set a breakpoint on _dispatch_bug_deprecated to debug
May 13 16:29:52 mbpr VTDecoderXPCService[52402]: DEPRECATED USE in libdispatch client: Changing target queue hierarchy after xpc connection was activated; set a breakpoint on _dispatch_bug_deprecated to debug

May 13 16:29:52 mbpr VTDecoderXPCService[52402]: getattrlist failed for /Library/GPUBundles/AppleIntelHD5000GraphicsVADriver.bundle/Contents/MacOS/AppleIntelHD5000GraphicsVADriver: #2: No such file or directory
May 13 16:29:52 mbpr VTDecoderXPCService[52402]: getattrlist failed for /Library/GPUBundles/GeForceVADriver.bundle/Contents/MacOS/GeForceVADriver: #2: No such file or directory
May 13 16:29:52 mbpr VTDecoderXPCService[52402]: getattrlist failed for /Library/GPUBundles/AppleIntelHSWVA.bundle/Contents/MacOS/AppleIntelHSWVA: #2: No such file or directory

May 13 16:29:52 mbpr VTDecoderXPCService[52402]: DEPRECATED USE in libdispatch client: Changing the target of a source after it has been activated; set a breakpoint on _dispatch_bug_deprecated to debug
May 13 16:29:52 mbpr VTDecoderXPCService[52402]: DEPRECATED USE in libdispatch client: Changing target queue hierarchy after xpc connection was activated; set a breakpoint on _dispatch_bug_deprecated to debug

May 13 16:29:52 mbpr GridPlayer[52398]: getattrlist failed for /System/Library/Extensions/AppleIntelHD5000GraphicsGLDriver.bundle/Contents/MacOS/AppleIntelHD5000GraphicsGLDriver: #2: No such file or directory
May 13 16:29:52 mbpr GridPlayer[52398]: getattrlist failed for /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/GeForceGLDriver: #2: No such file or directory
May 13 16:29:52 mbpr GridPlayer[52398]: getattrlist failed for /System/Library/Frameworks/OpenGL.framework/Resources//GLRendererFloat.bundle/GLRendererFloat: #2: No such file or directory

...

# Omitted some lines where I was 100% sure they came from something else totally unrelated

# About the next line I don't know if this is still related to gridplayer of coming from something else
May 13 16:31:19 mbpr com.apple.appkit.xpc.openAndSavePanelService[52415]: assertion failed: 20G1120: libxpc.dylib + 88455 [AB7BBDA1-3AC6-3832-8AB1-F3BFB7A0E5EC]: 0x89

# Force quitting

May 13 16:32:33 mbpr com.apple.xpc.launchd[1]: Coalition Cache Hit: app<application.com.vzhd1701.gridplayer.53138580.53138686(501)> [38658]
May 13 16:32:36 mbpr syslogd[90]: ASL Sender Statistics
vzhd1701 commented 1 year ago

Looks like a libVLC problem, I'll need to update libVLC and test it. I can't get my hands on working macOS at the moment, this will have to wait, sorry.

porg commented 1 year ago
  1. Thanks for giving a quick initial reply.
  2. Besides the bug, in general is macOS 11 Big Sur supported by gridplayer. and will remain so for the near future?
  3. No hurry. I'm subscribed to this bug, and will get notified whenever you make progress on this. Will check it out then.
porg commented 1 year ago

Last but not least: If the problem is that you don't have a mac device available to you currently, I could help out, if it is just a matter of replacing a library file somewhere, and no other adaptions or compilations are needed.

vzhd1701 commented 1 year ago

Besides the bug, in general is macOS 11 Big Sur supported by gridplayer. and will remain so for the near future?

Yes, I will try to keep GridPlayer running on macOS

I could help out, if it is just a matter of replacing a library file somewhere, and no other adaptions or compilations are needed.

You will need to use terminal, I am not sure if app content is viewable through Finder.

You can try downloading latest VLC for mac

https://get.videolan.org/vlc/3.0.18/macosx/vlc-3.0.18-intel64.dmg

Then mount it

hdiutil attach vlc-3.0.18-intel64.dmg

Then copy two directories from VLC to GridPlayer's Contents/MacOS/libVLC

cp -a /Volumes/VLC media player/VLC.app/Contents/MacOS/lib /Applications/GridPlayer.app/Contents/MacOS/libVLC
cp -a /Volumes/VLC media player/VLC.app/Contents/MacOS/plugins /Applications/GridPlayer.app/Contents/MacOS/libVLC

Unmount VLC

hdiutil detach "/Volumes/VLC media player"
vzhd1701 commented 1 year ago

Should be fixed in version 0.5.1. I tested on Monterey. Please try it and tell how it works for you.

porg commented 11 months ago

v0.5.3 does not work for me on macOS 11.7.9 Big Sur

vzhd1701 commented 11 months ago

Have you tried running this command?

sudo xattr -rd com.apple.quarantine /Applications/GridPlayer.app
porg commented 11 months ago

Now ran it.