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

Rename Ctl1 without zenity installed breaks the gui #1618

Closed
magnetophon opened this issue Mar 11, 2020 · 3 comments · Fixed by #1863
Closed

Rename Ctl1 without zenity installed breaks the gui #1618

magnetophon opened this issue Mar 11, 2020 · 3 comments · Fixed by #1863
Labels
UI Issues related to UI look&feel
Milestone

Comments

@magnetophon
Copy link
Contributor

magnetophon commented Mar 11, 2020

Describe the bug
When I click "rename Ctl1" the gui turns into this:
screenshot_20200311_134455

Then I did something with Surge that crashed Ardour. I forgot what I did, sorry.
When I reopen Ardour, create a new track, add Surge and open the gui, it's still broken.

The name of the function I clicked is from memory, as I don't have a working surge anymore.

Please let us know your surge version

  • Surge Version: 1.6.6
  • Plugin type: LV2
  • Bits 64

To Reproduce
Steps to reproduce the behavior:

  1. right click Ctl1
  2. click "rename Ctl1"
  3. See error

Desktop (please complete the following information):

  • OS: NixOS
  • Host: Ardour
  • Version: 5.12
@baconpaul
Copy link
Collaborator

that rename pops up zenity
i just tried it on ubuntu 18 with the lv2 in ardour and it worked fine
did you get a small window popping up when you clicked rename?

I am not sure why it would permanently blow up your surge. perhaps start a fresh ardour session?

@magnetophon
Copy link
Contributor Author

magnetophon commented Mar 11, 2020

When I open a new ardour session, the gui works again.
The other session still doesn't; I can attach it if you want.

I ran Ardour from the cli, and got "zenity: command not found" when I tried to rename, that's almost certainly a NixOS thing.
No broken gui this time.

@baconpaul
Copy link
Collaborator

baconpaul commented Mar 11, 2020

Nah no need

I bet the problem is here

snprintf(cmd, 1024, "zenity --entry --entry-text \"%s\"", c );

when zenity isn't found we leave garbage in the buffer.

Both those return branches should add a c[0] = 0; before the return. And that strncopy should be maxchars - 1

@magnetophon magnetophon changed the title Rename Ctl1 breaks the gui Rename Ctl1 without zenity installed breaks the gui Mar 21, 2020
@mkruselj mkruselj added the UI Issues related to UI look&feel label Apr 11, 2020
@baconpaul baconpaul added this to the 1.7 beta 1 milestone May 9, 2020
baconpaul added a commit to baconpaul/surge that referenced this issue May 11, 2020
* Don't do bad thigns if zenity isn't there. Closes surge-synthesizer#1618
* Make it so you don't crash if you still try to play the
  window oscillator after clicking through 20 warnings.
  Closes surge-synthesizer#1617
baconpaul added a commit that referenced this issue May 11, 2020
* Don't do bad thigns if zenity isn't there. Closes #1618
* Make it so you don't crash if you still try to play the
  window oscillator after clicking through 20 warnings.
  Closes #1617
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI Issues related to UI look&feel
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants