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

64-bit support? #4

Open
dlublin opened this issue Aug 29, 2018 · 30 comments
Open

64-bit support? #4

dlublin opened this issue Aug 29, 2018 · 30 comments

Comments

@dlublin
Copy link

dlublin commented Aug 29, 2018

Hi!

Big fan of this app for a long time!

Any plans to update this for 64-bit? It would be a shame to lose it when 10.14 is released.

If not, do you have any alternatives you could recommend?

@HaskellZhangSong
Copy link

I build it on mac os 10.15 Catalina(no longer support 32bit software) with XCode, it is fairly simple. If you want I can send it to you.

@Lunkers
Copy link

Lunkers commented Nov 11, 2019

I'd love some sort of build guide, since I'm trying to get this to work on catalina and failing repeatedly.

@rafalciecwierz
Copy link

I build it on mac os 10.15 Catalina(no longer support 32bit software) with XCode, it is fairly simple. If you want I can send it to you.

I have the same problem :( would be nice if you could sent it :)

@k012957
Copy link

k012957 commented Nov 20, 2019

@HaskellZhangSong , I would appreciate it if you could send a copy to me. ikroll@mac.com

@voorth
Copy link

voorth commented Dec 5, 2019

I build it on mac os 10.15 Catalina(no longer support 32bit software) with XCode, it is fairly simple. If you want I can send it to you.

Good job! Can you send me a copy as well: voorth@xs4all.nl
Posting build instructions is fine as well - it might save you a lot of hassle in the future...

@MBonnice
Copy link

MBonnice commented Dec 8, 2019

If you don't mind, I'd like a copy for Catalina. Mike.Bonnice@pobox.com.

@MBonnice
Copy link

MBonnice commented Dec 9, 2019

If you don't mind, I'd like a copy for Catalina. Mike.Bonnice@pobox.com.

I'm still at 10.14 but wanted to get ready for 10.15.

Here are the XCode Build Settings that I used to build it:
Change "Architectures" to "Standard Architectures"
Change "Base SDK" to "macOS"
Change "Compiler for C" to "Default compiler"
Change "macOS Deployment" Target to "macOS 10.14"

This removed the fatal errors, I didn't bother to fix the warning messages.

@matlimatli
Copy link

matlimatli commented Jan 6, 2020

I made a quick build for Catalina, which at least seems to work fine for me. Binary available for download here: https://github.com/matlimatli/simplesynth/releases/download/1.2/SimpleSynth_1.2.zip

@nonbinarysynthesis
Copy link

Hi - I'm using Catalina and trying to get Simplesynth running for use with Scala (microtuning app). I just tried the above link that matlimatli kindly provided above, but it seems to be missing from Github (if I'm not mistaken somehow). My email address is nonbinarysynthesis@gmail.com -- if anyone can help me out with a 64 bit build (feel free to email) or a link to one, I'd be sooooo appreciative. Thanks!

@matlimatli
Copy link

Sorry, i formatted the link wrong. I have updated my comment, so now the link should work.

@suyashcjoshi
Copy link

suyashcjoshi commented Jun 27, 2020

@HaskellZhangSong Looks like I'm having similar problem as the app is not opening. Can you please share the instructions of how to build locally for 64 bit or share the 64 bit version source code with us so we don't have to email you. I need this for a workshop in 2 days please. Thanks.
Screen Shot 2020-06-27 at 4 23 31 PM

@matlimatli
Copy link

@SuyashJoshi You can download a pre-built binary from the link I provided above. There is also updated source code in my github repo (https://github.com/matlimatli/simplesynth)

@mamoa70
Copy link

mamoa70 commented Aug 13, 2020

I build it on mac os 10.15 Catalina(no longer support 32bit software) with XCode, it is fairly simple. If you want I can send it to you.

Good job! Can you send me a copy as well: voorth@xs4all.nl
Posting build instructions is fine as well - it might save you a lot of hassle in the future...

my name il mamoa70I build it on mac os 10.15 Catalina(no longer support 32bit software) with XCode, it is fairly simple. If you want I can send it to you.

I have the same problem :( would be nice if you could sent it :)

@mamoa70
Copy link

mamoa70 commented Aug 13, 2020

I have catalina 10.15.6 does not work Simple Synth how can I do ?? Help me ??? send me links to solve the problem thanks

1 similar comment
@mamoa70
Copy link

mamoa70 commented Aug 13, 2020

I have catalina 10.15.6 does not work Simple Synth how can I do ?? Help me ??? send me links to solve the problem thanks

@mamoa70
Copy link

mamoa70 commented Aug 13, 2020

i downloaded simple synth 1.2 for pure data but it doesn't work !!!

@ronalson
Copy link

Hi @matlimatli

I'm unable to run the pre-built binary linked above; Also, I tried to compile the source code using xcode but got this exception:

SimpleSynth[90481:1791973] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString getCharacters:range:]: Range {0, 4} out of bounds; string length 3'

Any tips on how to proceed here?

@matlimatli
Copy link

@ronalson In what way are you unable to run the binary? Any kind of message? What OS version are you on? (I do not have any problem on 10.15.6) Any esoteric MIDI devices connected?

Since you seem to have it running in Xcode, albeit with a crash, you could perhaps run in debug mode and enable break on exceptions to get some clue about what is happening.

@Velthuijs
Copy link

I'm also a big fan of this app (using it with OpenMusic) but sadly can't run it on Big Sur, including the one updated for Catalina. Could someone perhaps build it for Big Sur? I would be very thankful!

@matlimatli
Copy link

@Velthuijs I have built it for Big Sur now, available at https://github.com/matlimatli/simplesynth/releases/download/v1.2.1/SimpleSynth.zip

Let me know if it works, since I have no means of testing it properly myself at the moment.

@Velthuijs
Copy link

Velthuijs commented Feb 26, 2021

@matlimatli Thank you very much. Unfortunately I get an error message and am unable to open it. Here's a small snippet:

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString getCharacters:range:]: Range {0, 10} out of bounds; string length 5'
abort() called
terminating with uncaught exception of type NSException

Thanks for taking the time!

@fkutsukos
Copy link

I build it on mac os 10.15 Catalina(no longer support 32bit software) with XCode, it is fairly simple. If you want I can send it to you.

Great! Could you send me a copy please? my mail is fotis.kutsukos@gmail.com

Thanks!

@richiegreene
Copy link

@Velthuijs I have built it for Big Sur now, available at https://github.com/matlimatli/simplesynth/releases/download/v1.2.1/SimpleSynth.zip

Let me know if it works, since I have no means of testing it properly myself at the moment.

Woohoo! Thank you so much. All seems to be working here on my end (M1 Big Sur)

@cicerojones
Copy link

We are all grateful for @matlimatli helping to keep this project alive for macOS 10.15 (and beyond)!

Just to recap, the apps built by matlimatli for 10.15 and Big Sur (macOS 11) are found here:
https://github.com/matlimatli/simplesynth/releases

But the problem described above by @ronalson happens for me too, when trying to open (the app here called) SimpleSynth_1.2 on Catalina 10.15.7

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString getCharacters:range:]: Range {0, 10} out of bounds; string length 5'
abort() called
terminating with uncaught exception of type NSException

Building your own binary requires both the correct version of XCode (found here for those on 10.15.7: https://developer.apple.com/download/all/?q=Xcode%2012.4) and, more importantly, a whole lot of effort and more than a little expertise (not too mention the 10 GB+ download with your Apple developer account).

Maybe we can treat this thread as a place for instructions or guidance on the process of doing so, in the hope that others may be able to help get to the bottom of keeping this piece of FOSS alive.

For example, the comment above by @MBonnice (#4 (comment)) mentions a few things they had to do in compiling for 10.14.

Perhaps this will be helpful of 10.15 versions as well. Either way, I am downloading Xcode 12.4 in the hope of being able to contribute as well.

@matlimatli
Copy link

@cicerojones Here is a debug build of the application. Can you try running this version, then use the "Console" app to view the Crash Report and share it with me.

SimpleSynthDebug.zip

@cicerojones
Copy link

cicerojones commented Feb 10, 2022

Thank you for hopping back in here @matlimatli !

Perhaps I should've mentioned that I'm still on Catalina; so this version, SimpleSynthDebug, returns the message about the macOS mismatch when attempting to open:

Screen Shot 2022-02-10 at 12 06 59 PM

However, I went into the crash reports from the previous attempts to run SimpleSynth 1.2 and so I'm copying that beginning of the report in at the end of this comment.

Is there anything you recommend (apart from updating the OS!) or suggest trying?

I downloaded (all 26 GB of) Xcode 12.4, which I thought was the correct version for those still running macOS 10.15.7. But trying to open it I got an error message about a missing library. Don't know if any of this is helpful, or if I am simply doing something wrong.

Dyld Error Message:
Library not loaded: @rpath/DVTCocoaAdditionsKit.framework/Versions/A/DVTCocoaAdditionsKit

Thanks again for any help!

Here's the report from my attempt to run the SimpleSynth 1.2 that I downloaded from
https://github.com/matlimatli/simplesynth/releases/tag/1.2

Process: SimpleSynth [27309]
Path: /private/var/folders/*/SimpleSynth 4.app/Contents/MacOS/SimpleSynth
Identifier: com.notahat.SimpleSynth
Version: 1.2 (???)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: SimpleSynth [27309]
User ID: 501

Date/Time: 2022-02-05 08:25:58.597 -0500
OS Version: Mac OS X 10.15.7 (19H1519)
Report Version: 12
Bridge OS Version: 6.0 (19P549)
Anonymous UUID: 837CCD28-AE4F-FF13-453A-290E8C28130A

Sleep/Wake UUID: B40BCA3F-DD05-4817-97B3-C26C9AE3F6F7

Time Awake Since Boot: 180000 seconds
Time Since Wake: 500 seconds

System Integrity Protection: enabled

Notes: Translocated Process

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString getCharacters:range:]: Range {0, 10} out of bounds; string length 5'
abort() called
terminating with uncaught exception of type NSException

UPDATE:

After re-installing Xcode (which fixed the problem with of it not opening before), I opened SimpleSynth 1.2 from Xcode and ran the build process. It complained about a version mismatch again:

UPDATE x2
Changing the deployment target, (which is in a variable named MACOSX_DEPLOYMENT_TARGET that I found by searching for macos), still results in an error, as described in the next comment.

Details

William’s MacBook Pro cannot run SimpleSynth.
Domain: IDEFoundationErrorDomain
Code: 3
Recovery Suggestion: William’s MacBook Pro runs macOS 10.15.7, which is lower than SimpleSynth’s minimum deployment target of 11.1. Change your project’s minimum deployment target or upgrade William’s MacBook Pro’s version of macOS.

System Information

macOS Version 10.15.7 (Build 19H1713)
Xcode 12.4 (17801) (Build 12D4e)
Timestamp: 2022-02-10T16:20:38-05:00

@cicerojones
Copy link

cicerojones commented Feb 10, 2022

Not quite sure how to best format an Exception trace from Xcode, but I'm copying the error below.

It appears that the out of bounds error is happening in the file that begins as such:

#import <PYMIDI/PYMIDIUtils.h>


NSString*
PYMIDIGetEndpointName (MIDIEndpointRef midiEndpointRef)

Here's what the exception trace (which I only got after fixing the Deployment Target as mentioned in the previous comment):

2022-02-10 16:27:18.342730-0500 SimpleSynth[1978:69746] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600000250e80> F8BB1C28-BAE8-11D6-9C31-00039315CD46
2022-02-10 16:27:21.672241-0500 SimpleSynth[1978:69746] [General] An uncaught exception was raised
2022-02-10 16:27:21.672326-0500 SimpleSynth[1978:69746] [General] -[NSTaggedPointerString getCharacters:range:]: Range {0, 10} out of bounds; string length 5
2022-02-10 16:27:21.672477-0500 SimpleSynth[1978:69746] [General] (
0 CoreFoundation 0x00007fff2f99d4d7 __exceptionPreprocess + 250
1 libobjc.A.dylib 0x00007fff682445bf objc_exception_throw + 48
2 CoreFoundation 0x00007fff2fa4ceae -[__NSCFString characterAtIndex:].cold.1 + 0
3 CoreFoundation 0x00007fff2fa4acc7 -[NSTaggedPointerString substringWithRange:].cold.1 + 0
4 CoreFoundation 0x00007fff2f8adf82 CFUniCharDecomposeWithErrorLocation + 0
5 CoreFoundation 0x00007fff2f8b5a26 CFStringCompareWithOptionsAndLocale + 1286
6 SimpleSynth 0x00000001000096dc PYMIDIGetEndpointName + 252
7 SimpleSynth 0x000000010000707d -[PYMIDIEndpoint setNameFromMIDIEndpoint] + 45
8 SimpleSynth 0x0000000100006ff0 -[PYMIDIEndpoint setPropertiesFromMIDIEndpoint] + 80
9 SimpleSynth 0x0000000100006de9 -[PYMIDIEndpoint initWithMIDIEndpointRef:] + 73
10 SimpleSynth 0x0000000100008fe9 -[PYMIDIRealEndpoint initWithMIDIEndpointRef:] + 57
11 SimpleSynth 0x00000001000084c1 -[PYMIDIManager updateRealSources] + 225
12 SimpleSynth 0x000000010000819d -[PYMIDIManager init] + 141
13 SimpleSynth 0x00000001000080ed +[PYMIDIManager sharedInstance] + 45
14 SimpleSynth 0x0000000100009ebb -[PYMIDIVirtualDestination initWithName:] + 43
15 SimpleSynth 0x0000000100004373 -[SynthController awakeFromNib] + 83
16 CoreFoundation 0x00007fff2f915785 -[NSSet makeObjectsPerformSelector:] + 231
17 AppKit 0x00007fff2cb71ed7 -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 1485
18 AppKit 0x00007fff2cb65cf1 loadNib + 401
19 AppKit 0x00007fff2cb652b2 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 693
20 AppKit 0x00007fff2cb64f08 -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 201
21 AppKit 0x00007fff2cb64ce1 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 446
22 AppKit 0x00007fff2cb56886 NSApplicationMain + 505
23 SimpleSynth 0x0000000100003ca2 main + 34
24 libdyld.dylib 0x00007fff693eccc9 start + 1
25 ??? 0x0000000000000003 0x0 + 3
)
2022-02-10 16:27:21.679449-0500 SimpleSynth[1978:69746] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString getCharacters:range:]: Range {0, 10} out of bounds; string length 5'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff2f99d4d7 __exceptionPreprocess + 250
1 libobjc.A.dylib 0x00007fff682445bf objc_exception_throw + 48
2 CoreFoundation 0x00007fff2fa4ceae -[__NSCFString characterAtIndex:].cold.1 + 0
3 CoreFoundation 0x00007fff2fa4acc7 -[NSTaggedPointerString substringWithRange:].cold.1 + 0
4 CoreFoundation 0x00007fff2f8adf82 CFUniCharDecomposeWithErrorLocation + 0
5 CoreFoundation 0x00007fff2f8b5a26 CFStringCompareWithOptionsAndLocale + 1286
6 SimpleSynth 0x00000001000096dc PYMIDIGetEndpointName + 252
7 SimpleSynth 0x000000010000707d -[PYMIDIEndpoint setNameFromMIDIEndpoint] + 45
8 SimpleSynth 0x0000000100006ff0 -[PYMIDIEndpoint setPropertiesFromMIDIEndpoint] + 80
9 SimpleSynth 0x0000000100006de9 -[PYMIDIEndpoint initWithMIDIEndpointRef:] + 73
10 SimpleSynth 0x0000000100008fe9 -[PYMIDIRealEndpoint initWithMIDIEndpointRef:] + 57
11 SimpleSynth 0x00000001000084c1 -[PYMIDIManager updateRealSources] + 225
12 SimpleSynth 0x000000010000819d -[PYMIDIManager init] + 141
13 SimpleSynth 0x00000001000080ed +[PYMIDIManager sharedInstance] + 45
14 SimpleSynth 0x0000000100009ebb -[PYMIDIVirtualDestination initWithName:] + 43
15 SimpleSynth 0x0000000100004373 -[SynthController awakeFromNib] + 83
16 CoreFoundation 0x00007fff2f915785 -[NSSet makeObjectsPerformSelector:] + 231
17 AppKit 0x00007fff2cb71ed7 -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 1485
18 AppKit 0x00007fff2cb65cf1 loadNib + 401
19 AppKit 0x00007fff2cb652b2 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 693
20 AppKit 0x00007fff2cb64f08 -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 201
21 AppKit 0x00007fff2cb64ce1 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 446
22 AppKit 0x00007fff2cb56886 NSApplicationMain + 505
23 SimpleSynth 0x0000000100003ca2 main + 34
24 libdyld.dylib 0x00007fff693eccc9 start + 1
25 ??? 0x0000000000000003 0x0 + 3
)
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString getCharacters:range:]: Range {0, 10} out of bounds; string length 5'
terminating with uncaught exception of type NSException
(lldb)

@matlimatli
Copy link

Ah, sorry. XCode changed the deployment target without me noticing. (I'm really not a Mac developer, so I'm not very familiar with XCode).

However, your stack trace was exactly what I was looking for. I think I found the problem, so try the new debug build which should hopefully work even on Catalina (and not crash if we are lucky).

SimpleSynthDebug.zip
.

@cicerojones
Copy link

It runs now--Hooray!

Thank you so much...I was learning more than I wanted about Xcode to see if I could make sense of the error myself. Which I'm sure I wouldn't have.

Let me know if there's anything I can do to help. I'd been using the application in a program I'd done with kids, routing motion tracking data from a Kinect through Pure Data and out to SimpleSynth, a whole chain of open source software!

Thanks again.

@matlimatli
Copy link

I'm glad to hear that! Your project sounds awesome, so I am happy to be able to help you.

I created a binary release package, available on https://github.com/matlimatli/simplesynth/releases/tag/v1.2.2
It seems to work on Monterey, and should work on anything from macOS 10.9 and newer.

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