Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse Preset causes crash #362

Open
SoloSniperCode opened this issue Aug 7, 2023 · 10 comments
Open

Mouse Preset causes crash #362

SoloSniperCode opened this issue Aug 7, 2023 · 10 comments

Comments

@SoloSniperCode
Copy link

Describe the bug
OBS crashes after selecting a mouse overlay config file

To Reproduce
Add Input Overlay source, add default mouse.png from preset zip, then add any of the three default mouse config json files, upon double clicking/pressing open with the json file selected in the file manager, OBS will crash.

Expected behavior
The config file imports properly, enabling the Input Overlay.

Additional information:

Thanks in advance.

@qarlosalberto
Copy link

Same for me

@univrsal
Copy link
Owner

univrsal commented Sep 2, 2023

Try version 5.0.4

@leanmendoza
Copy link

leanmendoza commented Sep 4, 2023

I opened with gdb and I got this
image
with version 5.0.4

@univrsal
Copy link
Owner

univrsal commented Sep 4, 2023

looks like that fix didn't make it into that release v5.0.5 should fix the issue

@C-L-A
Copy link

C-L-A commented Sep 19, 2023

I see that the version number has been bumped to v5.0.5.
But the latest release is still v5.0.4.
Any eta on the v5.0.5 release that will address this issue?

@univrsal
Copy link
Owner

I thought that I had already fixed it and it just didn't make it into the previous release, but from what it looks like it's something related to the build on github. When I load a mouse preset with a local build it doesn't crash.

@L30n4rd0-4rg3nt1n0
Copy link

I thought that I had already fixed it and it just didn't make it into the previous release, but from what it looks like it's something related to the build on github. When I load a mouse preset with a local build it doesn't crash.

So... How can this problem be solved?
I wanted to compile the plugin locally but I couldn't. when I run "build-linux.sh" I get the following warnings and errors:

     (...)
     CMake Warning:
     Manually-specified variables were not used by the project:

     ENABLE_PIPEWIRE
     QT_VERSION

     (...)
     CMake Warning:
     Manually-specified variables were not used by the project:

     LINUX_PORTABLE
     LOCAL_INSTALLATION
     QT_VERSION

     (...)
     [10/15] Building CXX object CMakeFiles/io_client.dir/src/network_helper.cpp.o
     FAILED: CMakeFiles/io_client.dir/src/network_helper.cpp.o

     (...)
     [14/15] Building CXX object MY_PATH/input-overlay/deps/json11/json11.cpp.o
     ninja: build stopped: subcommand failed.
     ✖︎ script execution error

     Callstack:
     MY_PATH/input-overlay/.github/scripts/build-linux.zsh:242
     MY_PATH/input-overlay/.github/scripts/build-linux.zsh:260

Is there currently a solution to be able to use the mouse source in Linux? OBS crashes (shut down) immediately every time I try to load mouse presets.

Thanks

@L30n4rd0-4rg3nt1n0
Copy link

Describe the bug OBS crashes after selecting a mouse overlay config file

To Reproduce Add Input Overlay source, add default mouse.png from preset zip, then add any of the three default mouse config json files, upon double clicking/pressing open with the json file selected in the file manager, OBS will crash.

Expected behavior The config file imports properly, enabling the Input Overlay.

Additional information:

* Plugin version: input-overlay-5.0.3-linux-x86_64

* Full OBS Studio log https://obsproject.com/logs/BeOem5iPsJBQBNUX

* Linux Mint 21.1

Thanks in advance.

Have you managed to solve it? please tell us how you did it

@univrsal
Copy link
Owner

To build the plugin you just need to run mkdir build && cd build && cmake .. && make, it'll give you an input-overlay.so

@L30n4rd0-4rg3nt1n0
Copy link

L30n4rd0-4rg3nt1n0 commented Jan 21, 2024

mkdir build && cd build && cmake .. && make

Ok, thank you, it works! (but first, I should to install 'libobs0' and 'libobs-dev' packages)

Also, taking 'input-overlay-5.0.4-linux-x86_64.zip' like inspiration, I created a folder structure:
input-overlay
|-->bin
|-->data
And I copied the content of 'build/rundir/RelWithDebInfo/obs-plugins/' into 'bin'
And I copied the content of 'build/rundir/RelWithDebInfo/data/obs-plugins/input-overlay/data' into 'data'
And finally I moved 'input-overlay' into '~/.config/obs-studio/plugins'

I think if you hadn't told me I wouldn't have guessed since I don't know how these kind of projects are built. I also would not have known how to use the .so file if I had not had the .zip file with the binaries for Linux as a reference (which gives me the same problem as the .deb, that is, it crashes when I load the mouse presets .json)

Now It's working perfect :)

EDIT: Only one fail... the side button closest to the front doesn't work with the 'mouse-arrow' preset

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants