Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP 3.x app on macOS Sierra segfault on launch
RCP 3.x app on macOS Sierra segfault on launch [message #1751399] Mon, 09 January 2017 18:32 Go to next message
Jim Klo is currently offline Jim KloFriend
Messages: 49
Registered: September 2012
Member
Looking for ideas on how to solve this problem.

We have a fairly large RCP 3.x application that we use across multiple platforms (Linux, Windows, and OS X/macOS).

With the arrival of macOS Sierra, when launching the app via Finder, it immediately segfaults.

I've discovered that if I launch the app within Terminal using the executable buried within "Sunflower Studio CE.app/Contents/MacOS/Sunflower Studio CE", the app launches fine.

I suspect there is some problem with the bundled Info.plist that is created by default when we build (using Tycho).

Anyone know how to resolve so the app can be launched from Finder again?

Thanks,

Jim
Re: RCP 3.x app on macOS Sierra segfault on launch [message #1751485 is a reply to message #1751399] Tue, 10 January 2017 17:12 Go to previous messageGo to next message
Eclipse UserFriend
I think this is due to the new Gatekeeper Path Randomization. See the following link for a description and links to other documents:

https://dev.eclipse.org/mhonarc/lists/cross-project-issues-dev/msg13877.html

Brian.
Re: RCP 3.x app on macOS Sierra segfault on launch [message #1751487 is a reply to message #1751485] Tue, 10 January 2017 17:15 Go to previous messageGo to next message
Eclipse UserFriend
It sounds like you may be able to launch with "-protect base" to work around this?

https://bugs.eclipse.org/bugs/show_bug.cgi?id=509040
Re: RCP 3.x app on macOS Sierra segfault on launch [message #1751488 is a reply to message #1751487] Tue, 10 January 2017 17:29 Go to previous messageGo to next message
Jim Klo is currently offline Jim KloFriend
Messages: 49
Registered: September 2012
Member
How does one pass "-protect base" to the launcher? Is this something you put into the Info.plist or the config.ini?

Also, since our product is based on 4.3; I don't think that option is available - since the bug report shows that it was fixed in 4.6.
Re: RCP 3.x app on macOS Sierra segfault on launch [message #1751490 is a reply to message #1751485] Tue, 10 January 2017 17:36 Go to previous messageGo to next message
Jim Klo is currently offline Jim KloFriend
Messages: 49
Registered: September 2012
Member
This is somewhat useful, however I don't have the ability to sign the app - and we aren't using a DMG; just a zip file.

I've tried the whole move the extracted files to a different location, however that yields the same problem.
Re: RCP 3.x app on macOS Sierra segfault on launch [message #1751838 is a reply to message #1751490] Mon, 16 January 2017 03:48 Go to previous messageGo to next message
Eclipse UserFriend
Shipping your app either in a signed DMG or (unconfirmed) a 'xip' file (signed zip) seems to be the easiest solution. Signing a dmg/xip requires an Apple Developer account.

Brian.
Re: RCP 3.x app on macOS Sierra segfault on launch [message #1751907 is a reply to message #1751838] Mon, 16 January 2017 18:05 Go to previous messageGo to next message
Jim Klo is currently offline Jim KloFriend
Messages: 49
Registered: September 2012
Member
Do you know if there's a way to verify that signing will actually work? I don't have an active ADC account to do signing.
Re: RCP 3.x app on macOS Sierra segfault on launch [message #1751987 is a reply to message #1751907] Tue, 17 January 2017 14:43 Go to previous messageGo to next message
Eclipse UserFriend
It's what's suggested on numerous other forums. This isn't a problem unique to Eclipse.

Brian.
Re: RCP 3.x app on macOS Sierra segfault on launch [message #1752022 is a reply to message #1751838] Wed, 18 January 2017 01:04 Go to previous messageGo to next message
Jim Klo is currently offline Jim KloFriend
Messages: 49
Registered: September 2012
Member
Is there a guide for signing RCP apps for macOS?

I was able to find someone in my org who was able to add me to an Enterprise Apple Developer Program, and I was able to get a Developer ID and I generated a Mac Developer Certificate.

I copying the contents of our Zip into a DMG and then signed the DMG. That doesn't seem to solve the problem.

If I try signing our RCP app.. because we have the JRE bundled, I get "unsealed contents present in the bundle root", and not sure how to work around that.

Any assistance greatly appreciated.
Re: RCP 3.x app on macOS Sierra segfault on launch [message #1752075 is a reply to message #1752022] Wed, 18 January 2017 15:58 Go to previous message
Eclipse UserFriend
Sorry, I'm not aware of any such guide.

Could you try copy the app contents into the DMG, rather than the zip?

There are a few relevant bugs to follow along:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=445050
https://bugs.eclipse.org/bugs/show_bug.cgi?id=446390
https://bugs.eclipse.org/bugs/show_bug.cgi?id=462905

Brian.
Previous Topic:Eclipse 3.8 (or Juno) Java 9 Support
Next Topic:How to add the Project Explorer view to an Eclipse RCP application
Goto Forum:
  


Current Time: Thu Mar 28 20:08:43 GMT 2024

Powered by FUDForum. Page generated in 0.03252 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top