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

Surge - Pressing Bluetooth Midi in Settings crashes on Mac OS #7429

Closed
gitsmol opened this issue Jan 4, 2024 · 8 comments
Closed

Surge - Pressing Bluetooth Midi in Settings crashes on Mac OS #7429

gitsmol opened this issue Jan 4, 2024 · 8 comments
Labels
Awaiting User Information Self-explanatory Bug Report Item submitted using the Bug Report template Resolved Issues that have been resolved, but not merged - usually only used directly after a release

Comments

@gitsmol
Copy link
Contributor

gitsmol commented Jan 4, 2024

Bug Description:

Pressing the bluetooth midi button crashes Surge on Mac OS.

Surge XT Version

Version: 1.3.0.20a8e16
Plugin Type: Standalone
Bitness: 64-bit

Reproduction Steps:

Go to settings, press the bluetooth midi button.

Computer Information (please complete the following!):

OS: Mac OS 13.6.1
Host: Standalone

Additional Information:

The crash reporter helpfully indicates that:

Termination Reason:    Namespace TCC, Code 0 
This app has crashed because it attempted to access privacy-sensitive data without a usage description. 
The app's Info.plist must contain an NSBluetoothAlwaysUsageDescription key with a string value explaining
to the user how the app uses this data.

Surge XT-2024-01-04-210528.ips.zip

@gitsmol gitsmol added the Bug Report Item submitted using the Bug Report template label Jan 4, 2024
@mkruselj
Copy link
Collaborator

mkruselj commented Jan 4, 2024

Can you attach the whole crashlog please? (ideally as a zip file)

@gitsmol
Copy link
Contributor Author

gitsmol commented Jan 4, 2024

Can you attach the whole crashlog please? (ideally as a zip file)

Sure can, here it is.
Surge XT-2024-01-04-210528.ips.zip

@baconpaul
Copy link
Collaborator

Hmm this is a dup of #7204 which I couldn't repro. Will look when I'm back

@baconpaul
Copy link
Collaborator

But it looks like we just need to add the permission to the plist and maybe signature. Very useful error thank you

@baconpaul
Copy link
Collaborator

It looks like we need to add

  _juce_append_target_property(file_content BLUETOOTH_PERMISSION_ENABLED         ${target} JUCE_BLUETOOTH_PERMISSION_ENABLED)
    _juce_append_target_property(file_content BLUETOOTH_PERMISSION_TEXT            ${target} JUCE_BLUETOOTH_PERMISSION_TEXT)

those properties to the standalone. Let me try that and then build a nightly and see if it fixes your problem, since I still can't repro it here (but also don't have a bluetooth midi device)

baconpaul added a commit to baconpaul/surge that referenced this issue Jan 13, 2024
baconpaul added a commit that referenced this issue Jan 13, 2024
@baconpaul
Copy link
Collaborator

OK @gitsmol I just merged what I think is a fix for this crash. Manually inspecting the info.plist adds the missing field mentioned in your crash.

In about 90 minutes from now this change will be in our nightly build which you can download https://surge-synthesizer.github.io/nightly_XT/ here

If you get a chance in the next few days, but again after 90 minutes from now, to download the nightly and try again i'd appreciate it. I'll leave this issue open but marked as potentially resolved until we hear from you.

We will do a 1.3.1 bug fix release in early feb I bet, and this change will be included in it.

@baconpaul baconpaul added Awaiting User Information Self-explanatory Resolved Issues that have been resolved, but not merged - usually only used directly after a release labels Jan 13, 2024
@baconpaul baconpaul added this to the Surge XT 1.3.1 milestone Jan 13, 2024
@gitsmol
Copy link
Contributor Author

gitsmol commented Jan 13, 2024

@baconpaul Just built from source and the bluetooth menu pops up now. Looks fixed to me.

@baconpaul
Copy link
Collaborator

Oh that's great!

I think this is an os 13 bug. I'm on 14 and I see generic boilerplate text without this set

But glad it's fixed. Will close this. And thanks! Great bug reports make great software. Appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting User Information Self-explanatory Bug Report Item submitted using the Bug Report template Resolved Issues that have been resolved, but not merged - usually only used directly after a release
Projects
None yet
Development

No branches or pull requests

3 participants