Closed dawiinci closed 1 year ago
Scrypted does use python for opencv and tensorflow. If python is crashing, this is gstreamer or something segfaulting. There's nothing I can do to fix this. It's an upstream problem. Only happens on Mac.
I can confirm it is OpenCV plugin. If I disable it, it works.
What can I do though?
Also experiencing the same issue here.
Why isn't opencv using Python 3.10? Maybe that's the issue here.
from the discord channel:
https://discord.com/channels/882329362295316500/894052368302354483/1071461098848518255
lumino has a temporary workaround
Do you mind adding the workaround here?
the issue is related to the gstreamer 1.22.0 release and the related components (gst-plugins and gstpython) you need to downgrade your gstreamer components back to the 1.20.x release and unlink the existing gstreamer 1.22.0 install. steps below for installing via brew
unlink the existing gstreamer and components in brew
brew unlink gstreamer
brew unlink gst-python
brew unlink gst-plugins-ugly
brew unlink gst-plugins-good
brew unlink gst-plugins-base
brew unlink gst-plugins-bad
download the previous releases and install them.
curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/49a8667f0c1a6579fe887bc0fa1c0ce682eb01c8/Formula/gstreamer.rb && brew install ./gstreamer.rb
curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/49a8667f0c1a6579fe887bc0fa1c0ce682eb01c8/Formula/gst-python.rb && brew install ./gst-python.rb
curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/49a8667f0c1a6579fe887bc0fa1c0ce682eb01c8/Formula/gst-plugins-ugly.rb && brew install ./gst-plugins-ugly.rb
curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/49a8667f0c1a6579fe887bc0fa1c0ce682eb01c8/Formula/gst-plugins-good.rb && brew install ./gst-plugins-good.rb
curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/49a8667f0c1a6579fe887bc0fa1c0ce682eb01c8/Formula/gst-plugins-base.rb && brew install ./gst-plugins-base.rb
curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/49a8667f0c1a6579fe887bc0fa1c0ce682eb01c8/Formula/gst-plugins-bad.rb && brew install ./gst-plugins-bad.rb
this will pin the newly installed 1.20.x releases so they will not get overwritten by any updates performed using brew
brew pin gstreamer
brew pin gst-python
brew pin gst-plugins-ugly
brew pin gst-plugins-good
brew pin gst-plugins-base
brew pin gst-plugins-bad
once installed restart scrypted and you should be all set.
credit to lumino from the discord channel
I have not upgraded by brew stuff yet, but suspect that the brew gst and/or various plugins are currently busted or incompatible with python or even itself... this is not a scrypted issue, but rather an upstream or distribution error. I may need to pin the brew packages to specific versions in the install script as done in the fix above. Alternatively, I need to remove the python gst binding dependency but that's a lot more involved.
so realistically since its not really koushs problem the easiest solution for now is to do a clean install of homebrew and then run the scrypted installer. once that completes run the steps above in that general order and then restart scrypted. you will have have a working scrypted instance with a working opencv plugin
Ok confirmed issue, Python 3.11 does not fix it. This is the current workaround: https://github.com/koush/scrypted/issues/544#issuecomment-1418247949
Just for future reference. What do we have to do once this is resolved, to get the latest versions again?
I'll update the installer script to unpin/undo the changes.
not entirely sure why that broke or why that fixed it, but the parameter wasn't really necessary
Thanks, is the pinning undone by this update or is there anything I need to do?
rerun the script unpin yes
The crashes happens shortly after Scrypted is loaded and crashes after every restart and after a few minutes. The camera in HomeKit works intermittently (HKSV).
First time this occurred is February 1st.
Scrypted is on 0.6.11, all plugins updated.
Python 3.10.9 is installed but obviously not used by Scrypted.
Not sure ion this crash report is of any help.