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

cmd-drag race condition on OSX #3179

Closed
leeavital opened this issue Dec 26, 2016 · 2 comments
Closed

cmd-drag race condition on OSX #3179

leeavital opened this issue Dec 26, 2016 · 2 comments

Comments

@leeavital
Copy link
Contributor

Hi folks,

I think I've found a race condition, or at least a bug with cmd-dragging automation tracks on OSX.
Environment:

  • OSX 10.11.5
  • Clang
  • qt5

Bug: if I open any synth (I tried triple oscillator and organic), and try to cmd+drag one of the knobs onto an automation track.

Some things I tried:

  • with some print statement debugging, it seems like we get to
    AutomationTrackView::dragEnterEvent and call acceptProposedAction() on the
    passed event, but even then, AutomationTrackView::dropEvent doesn't get called.
  • If I call, dropEvent() directly from dragEnterEvent(), it looks like dropEvent() does what it's supposed to. Qt just isn't calling dropEvent for some reason.
  • Now the race condition part: if I step through in lldb and set a breakpoint inside dragEnterEvent, dropEvent somehow starts getting called.

questions:

  • is anyone else seeing this? Perhaps on different platforms
  • how would one go about debugging this? I know next to nothing about Qt.
  • is there another way to create automation tracks like this without click-dragging?
@tresf
Copy link
Member

tresf commented Dec 27, 2016

@leeavital yes, we are also experiencing this.

#2890

We were under the belief that it was Qt5 + XCode SDK related. If it is a race condition it will help us fix this. It's a blocker for a Mac Qt5 release.

@leeavital
Copy link
Contributor Author

I just built this against qt 5.7.x, and cmd-drag is working. I think you're right, this can be chalked up to a bug in QT.

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

2 participants