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

modules in the patchbay reset positions when loading project file. #1552

Closed
Skrappjaw opened this issue Dec 19, 2021 · 27 comments
Closed

modules in the patchbay reset positions when loading project file. #1552

Skrappjaw opened this issue Dec 19, 2021 · 27 comments

Comments

@Skrappjaw
Copy link

Every time I load up Carla the positions are reset or random. Some in the top left corner or bottom left. Also happens when selecting/moving multiple modules at the same time.
Carla-Pathcbay

Also, this is how i startup jack/pulse and config my audio bridges....

#!/bin/bash
killall -9 carla
killall -9 jackdbus
killall -9 pulseaudio
sleep 5
jack_control start &
sleep 1
pulseaudio --start
cadence &
sleep 2
pacmd unload-module module-jack-sink
pacmd unload-module module-jack-source
sleep 2
#pulseaudio bridges | in / out
pacmd load-module module-jack-source channels=2 source_name=voip-in client_name=voip-in connect=false
pacmd load-module module-jack-sink channels=2 sink_name=voip-out client_name=voip-out connect=false
pacmd load-module module-jack-sink channels=2 sink_name=games-out client_name=games-out connect=false
pacmd load-module module-jack-source channels=2 source_name=media-in client_name=media-in connect=false
pacmd load-module module-jack-sink channels=2 sink_name=media-out client_name=media-out connect=false
sleep 2
#a2jmidid -e &
sleep 5
#carla &
carla ~/carla.setup.carxp &
sleep 3
wall "Audio systems up and running"
sleep 1
exit 0

I've tried starting carla with and without the project file being opened via the script.

OS- Garuda Linux on Zen Kernel.

@mxmilkiib
Copy link
Contributor

Exactly what versions of JACK and Carla are you using? I think at least JACK might be out of date.

@Skrappjaw
Copy link
Author

Carla - 2.4.1
jack2 - 1.9.19

@All3xJ
Copy link

All3xJ commented Dec 30, 2021

I have the same issue with Catia 0.9. The patch #1554 (so https://github.com/All3xJ/Catia/tree/patch-1 under Catia) does not fix the bug for me.

@All3xJ
Copy link

All3xJ commented Jan 2, 2022

I know that I am talking about Catia, but I find it weird that two very similar softwares have the same bug at the same time (@Skrappjaw reported the bug 14 days ago, which was more or less the same period I encoutered the bug in Catia). So I think they are in some way related. @Skrappjaw uses Garuda, I use ArchLinux, so I think that since these are bleeding edge distros, it must be an update of some package that caused the issue. I also tried downgrading pipewire, but it does not fix. I don't really know what could have caused the issue. Any suggestion about any package that may have caused this issue? I can try to downgrade it and see if it fix.

@udf
Copy link

udf commented Jan 2, 2022

I'm facing the same issue on Arch Linux, I think it started from the python 3.10 upgrade.

I downgraded the following packages and it seemed to fix the issue:

python 3.10.1-2 ->3.9.9-1
python-pyqt5 5.15.6-6 -> 5.15.6-2
python-pyqt5-sip 12.9.0-3 ->12.9.0-1

None of the package versions changed, just the release number (aside from python of course).


I also tried building the current python-pyqt5 and python-pyqt5-sip packages for python 3.9 since there were some minor revisions which might have caused the bug, but I can't reproduce the issue on python 3.9.

@All3xJ
Copy link

All3xJ commented Jan 2, 2022

I'm facing the same issue on Arch Linux, I think it started from the python 3.10 upgrade.

I downgraded the following packages and it seemed to fix the issue

I confirm what @udf says

@BlueMax
Copy link

BlueMax commented Jan 2, 2022

Maybe some more float/int Python bugs.

Below is a video showing some of the behavior i've noticed in Carla:

  • Loading a project results in some bad node positions. Usually (some time ago) only the default nodes (input/output) were misplaced. But oddly the 'spectr' node is bad now as well. I recently re-assigned its port and re-saved the project. Possible that re-assigning ports corrupts the node/project now. Just saving the project seems ok.
  • Another issue is the 'Loopack' node. It jumps back to top/left when i move the 'Loopback monitor' node.
  • Some nodes/cables are flickering when moved across the screen. They seem to quickly jump to top/left and back.
  • Sometimes nodes are offscreen or bottom/right (instead of top/left).
  • Maybe just coincidental, but the flickering/jumping started here when i switched Pipewires session manager (media session->wireplumber). But around that time Python jumped to 3.10.1 as well.

Carla 2.4.1.r34.g036f208cc-1
Arch Linux 5.15.12
Pipewire 0.3.42
Python 3.10.1

Carla-Node-Positions.mp4

@falkTX
Copy link
Owner

falkTX commented Jan 2, 2022

could be partially pipewire's fault too, which has received many tweaks around this.

for now, because of the many issues seen when using pipewire, I am just ignoring them completely.
unless using jack1 or jack2, I expect such issues to still happen from time to time.
we should fix things for when using proper/real jack first, then figure out the pipewire stuff after.

@BlueMax
Copy link

BlueMax commented Jan 2, 2022

c9c0375 helps alot. All bugs i've mentioned above seem fixed but the 'Loopback' <> 'Loopback monitor' one. Probably a Pipewire bug. Now, instead of jumping to top/left it "follows" the other node (placed behind). They seem somehow "connected". Maybe they share the same ID or something.

@All3xJ
Copy link

All3xJ commented Jan 2, 2022

Thanks for answer!

could be partially pipewire's fault too, which has received many tweaks around this.

which tweaks? if you talk about this: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1945 the issue was not fixed after these.

for now, because of the many issues seen when using pipewire, I am just ignoring them completely. unless using jack1 or jack2, I expect such issues to still happen from time to time. we should fix things for when using proper/real jack first, then figure out the pipewire stuff after.

I have starting to have this issue only two weeks ago, and I downgraded pipewire to older versions (months ago), but the bug is still there.

@All3xJ
Copy link

All3xJ commented Jan 2, 2022

c9c0375 helps alot. All bugs i've mentioned above seem fixed but the 'Loopback' <> 'Loopback monitor' one. Probably a Pipewire bug. Now, instead of jumping to top/left it "follows" the other node (placed behind). They seem somehow "connected". Maybe they share the same ID or something.

does patchbay works well to? for example if you are recording your microphone into some apps and try to put the audio output of some music to input of the recording app? It does not work for me

@Skrappjaw
Copy link
Author

could be partially pipewire's fault too, which has received many tweaks around this.

for now, because of the many issues seen when using pipewire, I am just ignoring them completely. unless using jack1 or jack2, I expect such issues to still happen from time to time. we should fix things for when using proper/real jack first, then figure out the pipewire stuff after.

I'm using jack2 on Garuda (arch) . I can confirm the issues post python update. Ill try the python downgrade to see if issues persist.

@udf
Copy link

udf commented Jan 3, 2022

@Skrappjaw Can you try installing carla-git? c9c0375 seems to solve most of the issues for me too.

@Skrappjaw
Copy link
Author

@Skrappjaw Can you try installing carla-git? c9c0375 seems to solve most of the issues for me too.

Everytime I try Carla git from AUR it fails for some reason. I'll try as soon as I can. I'm moving this week and probably won't have my studio set back up for a couple weeks. Unfortunately. But, I do know that there was a manual intervention required with the way python updates work with arch. I had a heck of a time working it out but after that, these Carla issues began.

@BlueMax
Copy link

BlueMax commented Jan 3, 2022

does patchbay works well to? for example if you are recording your microphone into some apps and try to put the audio output of some music to input of the recording app? It does not work for me

I don't have such a setup. All my connections (as in the video above) do work.

What i've also noticed is that out of a sudden some nodes got merged. In the video there are still two separate midi nodes (input/output). Now i have them merged as one. The same happened to the 'Loopback' node. I'm sure it was separated some time ago. This probably is Pipewire related as well (it just didn't kick in yet). That's a good thing though. I like it.

@All3xJ
Copy link

All3xJ commented Jan 6, 2022

@udf the python, python-pyqt5, and python-pyqt5-sip downgrades seem to have broken gnome-tweaks(it says "ModuleNotFoundError: No module named 'gi'"), and maybe other stuff I guess.
What's your current situation? You are still having the downgraded packages?

@udf
Copy link

udf commented Jan 6, 2022

@All3xJ No I'm not using downgraded packages because as I said before, downgrading python breaks all other system python packages since they're for 3.10.

I'm using carla-git from the aur, c9c0375 fixes most of the issues but it's not in a release version yet.

@All3xJ
Copy link

All3xJ commented Jan 6, 2022

@udf does patchbay works well to? for example if you are recording your microphone into some apps and try to put the audio output of some music to input of the recording app? It does not work for me. And this is what I use Carla and Catia for, and I must keep the python packages downgraded.

@All3xJ
Copy link

All3xJ commented Jan 11, 2022

Now on Carla the problem is gone. With Catia, the bug is still there and it's not usable.

@falkTX
Copy link
Owner

falkTX commented Jan 21, 2022

Closing this since issue is fixed on latest git. Release will be made soon

@falkTX falkTX closed this as completed Jan 21, 2022
@All3xJ
Copy link

All3xJ commented Jan 22, 2022

Closing this since issue is fixed on latest git. Release will be made soon

Great news. Is it also fixed in Catia?

@falkTX
Copy link
Owner

falkTX commented Jan 22, 2022

No, Catia will need a proper release after being split off from Cadence.
I havent even made the Carla release yet, and still have Ildaeil and WineASIO to handle too first.

So this is going to take a while.

@All3xJ
Copy link

All3xJ commented Feb 6, 2022

Update: now on Carla, in patchcanvas, I can't see the input and output devices.... I can only see these and they don't seem to be useful:
image

@mxmilkiib
Copy link
Contributor

mxmilkiib commented Feb 6, 2022

That looks like the internal patchbay. There is a menu option to change the view between internal and external. Or change Carla to multi-client mode in the settings and every plugin becomes a JACK client, so you're dealing with just one audio graph. This is explained in the home page but it still catches many folk out, I think tabs are the solution (for the first part, as that itself doesn't indicate that multi-client mode exists) #564 (comment)

@All3xJ
Copy link

All3xJ commented Feb 10, 2022

That looks like the internal patchbay. There is a menu option to change the view between internal and external. Or change Carla to multi-client mode in the settings and every plugin becomes a JACK client, so you're dealing with just one audio graph. This is explained in the home page but it still catches many folk out, I think tabs are the solution (for the first part, as that itself doesn't indicate that multi-client mode exists) #564 (comment)

If I set to external, I can only see this:
image
so there must be something wrong.

@falkTX
Copy link
Owner

falkTX commented Feb 10, 2022

that is patchbay engine mode, change it to multi-client.

@All3xJ
Copy link

All3xJ commented Feb 10, 2022

that is patchbay engine mode, change it to multi-client.

I noticed that I had Audio driver set to "Pulseaudio". I have set it to "JACK" and then the mode set to "Multiple clients", then restarted Carla and now it works again :)

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