Giter Site home page Giter Site logo

Comments (8)

bmp avatar bmp commented on September 28, 2024 1

This just causes a segmention fault and OBS crashes when I click Advances Scene Switcher in the UI.

Is any core file or backtrace available? I assume the crash is caused by an incompatible build environment, but it won't hurt to double check.

Nothing new is added to the log, here is the last portion of the log before it exits,

22:28:06.840: ---------------------------------
22:28:06.841: ==== Startup complete ===============================================
22:28:06.891: All scene data cleared
22:28:06.891: ------------------------------------------------
22:28:06.902: pulse-input: Server name: 'PulseAudio (on PipeWire 1.0.7) 15.0.0'
22:28:06.902: pulse-input: Audio format: s32le, 48000 Hz, 2 channels
22:28:06.902: pulse-input: Started recording from 'alsa_output.pci-0000_00_1f.3.analog-stereo.monitor' (default)
22:28:06.902: [Loaded global audio device]: 'Desktop Audio'
22:28:06.904: pulse-input: Server name: 'PulseAudio (on PipeWire 1.0.7) 15.0.0'
22:28:06.904: pulse-input: Audio format: s32le, 48000 Hz, 2 channels
22:28:06.904: pulse-input: Started recording from 'alsa_input.pci-0000_00_1f.3.analog-stereo' (default)
22:28:06.904: [Loaded global audio device]: 'Mic/Aux'
22:28:06.907: Switched to scene 'Default'
22:28:06.913: [adv-ss] trying to reconnect to  in 10 seconds.
22:28:06.913: [adv-ss] started
22:28:06.913: ------------------------------------------------
22:28:06.913: Loaded scenes:
22:28:06.913: - scene 'Default':
22:28:06.913: ------------------------------------------------
22:28:07.488: adding 21 milliseconds of audio buffering, total audio buffering is now 21 milliseconds (source: Desktop Audio)
22:28:07.488: 

I'll report back here in case I am able to find a solution with either flatpak or with self-compiling.

from sceneswitcher.

WarmUpTill avatar WarmUpTill commented on September 28, 2024 1

Can confirm that OBS crashes when trying to start advanced-scene-switcher.

I renamed advanced-scene-switcher-opencv.so to advanced-scene-switcher-opencv.so.old. to test it without it. OBS still crashes when trying to open advanced-scene-switcher, just without the error message. Could provide a detailed log if needed, just let me know which part of it and in which state (:

Platform: Wayland Distribution: "Fedora Linux" 40 Desktop Environment: KDE (KDE) OBS 30.1.1 (linux)

14:52:55.220: [adv-ss] version: 1.26.4
14:52:55.220: [adv-ss] version: e3ff6f34fcce1a42d6eb65effdb7eb279776fb5e
14:52:55.223: [adv-ss] attempting to load "/usr/lib64/obs-plugins/adv-ss-plugins/advanced-scene-switcher-twitch.so"
14:52:55.234: [adv-ss] successfully loaded "/usr/lib64/obs-plugins/adv-ss-plugins/advanced-scene-switcher-twitch.so"
14:52:55.234: [adv-ss] attempting to load "/usr/lib64/obs-plugins/adv-ss-plugins/advanced-scene-switcher-midi.so"
14:52:55.246: [adv-ss] successfully loaded "/usr/lib64/obs-plugins/adv-ss-plugins/advanced-scene-switcher-midi.so"
14:52:55.246: [adv-ss] attempting to load "/usr/lib64/obs-plugins/adv-ss-plugins/advanced-scene-switcher-base.so"
14:52:55.260: [adv-ss] successfully loaded "/usr/lib64/obs-plugins/adv-ss-plugins/advanced-scene-switcher-base.so"
14:52:55.260: [adv-ss] attempting to load "/usr/lib64/obs-plugins/adv-ss-plugins/advanced-scene-switcher-opencv.so"
14:52:55.261: [adv-ss] failed to load "/usr/lib64/obs-plugins/adv-ss-plugins/advanced-scene-switcher-opencv.so": Cannot load library /usr/lib64/obs-plugins/adv-ss-plugins/advanced-scene-switcher-opencv.so: libopencv_objdetect.so.4.5d: cannot open shared object file: No such file or directory
14:52:55.328: Failed to load 'en-US' text for module: 'decklink-captions.so'
14:52:55.368: Failed to load 'en-US' text for module: 'decklink-output-ui.so'
14:52:55.417: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
14:52:55.417: Failed to initialize module 'decklink.so'

I downloaded the latest "advanced-scene-switcher-1.26.4-x86_64-linux-gnu.tar.xz" extracted it and then copied (took me days to figure this out. I am new to linux, maybe we could put it in the readme or wiki?) the /advanced-scene-switcher-1.26.4-x86_64-linux-gnu/lib/x86_64-linux-gnu/obs-plugins/* to /usr/lib64/obs-plugins/

and

/advanced-scene-switcher-1.26.4-x86_64-linux-gnu/share/obs/obs-plugins/advanced-scene-switcher/* to /usr/share/obs/obs-plugins/advanced-scene-switcher/

I tried the flatpak version, but OBS was already highly unstable before installing the plugin, but advanced-scene-switcher crashed it all the time (When it did somehow not crash for a minute it worked). Also, I could not get the performance out of OBS as with the fedora version, was just not usable in my case.

I also tried a system link without luck sudo ln -s /usr/lib64/libopencv_objdetect.so.4.9.0 /usr/lib64/libopencv_objdetect.so.4.5d

You are most likely facing the same issue as already discussed above.

The plugin was compiled for a Ubuntu 22 environment.
I cannot give any guarantee that this version is also compatible with other Linux distributions, since different Linux distributions might use completely different version of libraries the plugin is dependent on.

You will have to instead use a version of this plugin compiled for your particular Linux distribution.
I can only provide the Ubuntu 22 version of the plugin, since GitHub offers the corresponding build environment in one of their GitHub action runner images.

I know that for other Linux distributions (e.g. Arch) a version of the plugin is available via the respective package manager.
I don't think this is the case for Fedora.

Besides using flatpak or snap or compiling the plugin yourself I don't really have any other suggestion.

So unfortunately I cannot really be of much help here :(

from sceneswitcher.

WarmUpTill avatar WarmUpTill commented on September 28, 2024

The issue seems to be with version of libopencv being used in this version. Could you please let me know which version of the plugin used 4.0.9 or below? I can try and check with that plugin.

The plugin was built against, whichever version is available in the GitHub actions ubuntu-22.04 runner image.
As far as I remember, this has been version 4.5 for quite a long while.

You can try removing the [REDACTED]/.config/obs-studio/plugins/advanced-scene-switcher/bin/64bit/adv-ss-plugins/advanced-scene-switcher-opencv.so file, if you don't need the Video condition type.

But I believe this might not be the only incompatible library leading to the errors you are observing.
I assume you have directly used the *.deb files from the releases section, right?

If it is an option, I would instead recommend using the version of the plugin available via your native package manager.
This should ensure that everything is compatible.
Or you can use the Flatpak package manager to install OBS and the plugin:
flatpak install com.obsproject.Studio.Plugin.SceneSwitcher
Alternatively the Snap package manager offers an OBS Studio installation that is bundled with the plugin:
sudo snap install obs-studio

from sceneswitcher.

bmp avatar bmp commented on September 28, 2024

The issue seems to be with version of libopencv being used in this version. Could you please let me know which version of the plugin used 4.0.9 or below? I can try and check with that plugin.

The plugin was built against, whichever version is available in the GitHub actions ubuntu-22.04 runner image. As far as I remember, this has been version 4.5 for quite a long while.

You can try removing the [REDACTED]/.config/obs-studio/plugins/advanced-scene-switcher/bin/64bit/adv-ss-plugins/advanced-scene-switcher-opencv.so file, if you don't need the Video condition type.

This just causes a segmention fault and OBS crashes when I click Advances Scene Switcher in the UI.

But I believe this might not be the only incompatible library leading to the errors you are observing. I assume you have directly used the *.deb files from the releases section, right?

No, I extracted from https://github.com/WarmUpTill/SceneSwitcher/releases/download/1.26.4/advanced-scene-switcher-1.26.4-x86_64-linux-gnu.tar.xz and then copied the files as I had mentioned in the first post,

.config/obs-studio/plugins/advanced-scene-switcher/
├── bin
│   └── 64bit
│       ├── advanced-scene-switcher-lib.so -> advanced-scene-switcher-lib.so.1
│       ├── advanced-scene-switcher-lib.so.1
│       ├── advanced-scene-switcher.so
│       └── adv-ss-plugins
│           ├── advanced-scene-switcher-base.so
│           ├── advanced-scene-switcher-midi.so
│           ├── advanced-scene-switcher-opencv.so
│           └── advanced-scene-switcher-twitch.so
└── data
    ├── locale
    │   ├── de-DE.ini
    │   ├── en-US.ini
    │   ├── es-ES.ini
    │   ├── fr-FR.ini
    │   ├── ru-RU.ini
    │   ├── tr-TR.ini
    │   └── zh-CN.ini
    └── res
        ├── cascadeClassifiers
        │   ├── haarcascade_eye_tree_eyeglasses.xml
        │   ├── haarcascade_eye.xml
        │   ├── haarcascade_frontalface_alt2.xml
        │   ├── haarcascade_frontalface_alt_tree.xml
        │   ├── haarcascade_frontalface_alt.xml
        │   ├── haarcascade_frontalface_default.xml
        │   ├── haarcascade_fullbody.xml
        │   ├── haarcascade_lefteye_2splits.xml
        │   ├── haarcascade_lowerbody.xml
        │   ├── haarcascade_profileface.xml
        │   ├── haarcascade_righteye_2splits.xml
        │   └── haarcascade_upperbody.xml
        ├── images
        │   ├── DarkAdvanced.svg
        │   ├── DarkDoubleDown.svg
        │   ├── DarkDoubleUp.svg
        │   ├── DarkGroup.svg
        │   ├── DarkNotEqual.svg
        │   ├── DarkNote.svg
        │   ├── DarkRegex.svg
        │   ├── DarkSearch.svg
        │   ├── DarkTime.svg
        │   ├── LightAdvanced.svg
        │   ├── LightDoubleDown.svg
        │   ├── LightDoubleUp.svg
        │   ├── LightGroup.svg
        │   ├── LightNotEqual.svg
        │   ├── LightNote.svg
        │   ├── LightRegex.svg
        │   ├── LightSearch.svg
        │   └── LightTime.svg
        └── ocr
            └── eng.traineddata

Is it feasible to for me to use the deb package on OpenSUSE? Could you pleasse point me to the any resources to do the same?

If it is an option, I would instead recommend using the version of the plugin available via your native package manager. This should ensure that everything is compatible. Or you can use the Flatpak package manager to install OBS and the plugin: flatpak install com.obsproject.Studio.Plugin.SceneSwitcher Alternatively the Snap package manager offers an OBS Studio installation that is bundled with the plugin: sudo snap install obs-studio

This plugin is not not available natively on OpenSUSE, so am I correct in assuming my only option is to switch to flatpak (in case snap isn't a possibility) version if I'd like to use this plugin?

from sceneswitcher.

WarmUpTill avatar WarmUpTill commented on September 28, 2024

This just causes a segmention fault and OBS crashes when I click Advances Scene Switcher in the UI.

Is any core file or backtrace available?
I assume the crash is caused by an incompatible build environment, but it won't hurt to double check.

Is it feasible to for me to use the deb package on OpenSUSE?

Unfortunately, I can only say that it should work on Ubuntu 22.04.
I don't know if a OpenSUSE runtime environment is compatible with the version complied in the ubuntu-22.04 build environment.

This plugin is not not available natively on OpenSUSE, so am I correct in assuming my only option is to switch to flatpak (in case snap isn't a possibility) version if I'd like to use this plugin?

I myself am not familiar with OpenSUSE at all so maybe I am missing something obvious here, but unfortunately, I assume that is correct.
Note that if you choose to use the flatpak version of the plugin you will also have to use the flatpak version of OBS.

Alternatively you could try to compile the plugin yourself, but this might not be straight forward.

Sorry for not really being able to solve your issue :(

from sceneswitcher.

citizenserious avatar citizenserious commented on September 28, 2024

Can confirm that OBS crashes when trying to start advanced-scene-switcher.

I renamed advanced-scene-switcher-opencv.so to advanced-scene-switcher-opencv.so.old.
to test it without it. OBS still crashes when trying to open advanced-scene-switcher, just without the error message.
Could provide a detailed log if needed, just let me know which part of it and in which state (:

Platform: Wayland
Distribution: "Fedora Linux" 40
Desktop Environment: KDE (KDE)
OBS 30.1.1 (linux)

14:52:55.220: [adv-ss] version: 1.26.4
14:52:55.220: [adv-ss] version: e3ff6f34fcce1a42d6eb65effdb7eb279776fb5e
14:52:55.223: [adv-ss] attempting to load "/usr/lib64/obs-plugins/adv-ss-plugins/advanced-scene-switcher-twitch.so"
14:52:55.234: [adv-ss] successfully loaded "/usr/lib64/obs-plugins/adv-ss-plugins/advanced-scene-switcher-twitch.so"
14:52:55.234: [adv-ss] attempting to load "/usr/lib64/obs-plugins/adv-ss-plugins/advanced-scene-switcher-midi.so"
14:52:55.246: [adv-ss] successfully loaded "/usr/lib64/obs-plugins/adv-ss-plugins/advanced-scene-switcher-midi.so"
14:52:55.246: [adv-ss] attempting to load "/usr/lib64/obs-plugins/adv-ss-plugins/advanced-scene-switcher-base.so"
14:52:55.260: [adv-ss] successfully loaded "/usr/lib64/obs-plugins/adv-ss-plugins/advanced-scene-switcher-base.so"
14:52:55.260: [adv-ss] attempting to load "/usr/lib64/obs-plugins/adv-ss-plugins/advanced-scene-switcher-opencv.so"
14:52:55.261: [adv-ss] failed to load "/usr/lib64/obs-plugins/adv-ss-plugins/advanced-scene-switcher-opencv.so": Cannot load library /usr/lib64/obs-plugins/adv-ss-plugins/advanced-scene-switcher-opencv.so: libopencv_objdetect.so.4.5d: cannot open shared object file: No such file or directory
14:52:55.328: Failed to load 'en-US' text for module: 'decklink-captions.so'
14:52:55.368: Failed to load 'en-US' text for module: 'decklink-output-ui.so'
14:52:55.417: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
14:52:55.417: Failed to initialize module 'decklink.so'

I downloaded the latest "advanced-scene-switcher-1.26.4-x86_64-linux-gnu.tar.xz"
extracted it and then copied (took me days to figure this out. I am new to linux, maybe we could put it in the readme or wiki?)
the
/advanced-scene-switcher-1.26.4-x86_64-linux-gnu/lib/x86_64-linux-gnu/obs-plugins/*
to
/usr/lib64/obs-plugins/

and

/advanced-scene-switcher-1.26.4-x86_64-linux-gnu/share/obs/obs-plugins/advanced-scene-switcher/*
to
/usr/share/obs/obs-plugins/advanced-scene-switcher/

I tried the flatpak version, but OBS was already highly unstable before installing the plugin, but advanced-scene-switcher crashed it all the time (When it did somehow not crash for a minute it worked). Also, I could not get the performance out of OBS as with the fedora version, was just not usable in my case.

I also tried a system link without luck
sudo ln -s /usr/lib64/libopencv_objdetect.so.4.9.0 /usr/lib64/libopencv_objdetect.so.4.5d

from sceneswitcher.

citizenserious avatar citizenserious commented on September 28, 2024

Oh that's sad to hear.
Thank you for your work anyway. (:
I used this for years while on Windows.

from sceneswitcher.

flakywanderer avatar flakywanderer commented on September 28, 2024

I seem to also be running into this issue, or a similar one. In my case, I build the plugin on the system that I use it on from source (via AUR: https://aur.archlinux.org/packages/obs-advanced-scene-switcher). Upon opening plugin settings, OBS just straight up crashes without any logs or error messages. No error messages indicating library loading failure or such.

Edit: Seems to be a distinctly different issue.

from sceneswitcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.