Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Wrong bundle loaded after update on macosx
Wrong bundle loaded after update on macosx [message #1763975] Tue, 23 May 2017 14:19 Go to next message
Guillaume Papon is currently offline Guillaume PaponFriend
Messages: 13
Registered: August 2016
Junior Member
Hello,

I have a problem with p2 updating on mac os x, i described it here for more context.

We use the standard UpdateService which is working correctly. The app loads new stuff from repository and put it in app/plugins directory, so we end up having in this directory both versions of each of our plugins (say versions 1 and 2).

On windows, when the app starts, it picks up the correct version of the plugins (version 2), but on mac, it keeps loading the wrong one (version 1). If i delete all v1 jars, it picks up the correct ones (v2 obviously) but if i then undelete them (so we now have back v1 and V2), it keeps taking v2.

I noticed a difference between windows and mac in the file configuration\org.eclipse.equinox.simpleconfigurator\bundles.info (which, correct me if i am wrong, seems to describe the jars to load)

On windows, when i do the update, this file contains only the new version of the jars, ex:
dp.fast.app,2.0.1,plugins/dp.fast.app_2.0.1.jar,4,false
dp.fast.app.update,2.0.1,plugins/dp.fast.app.update_2.0.1.jar,4,false
dp.fast.app.workbench,2.0.1,plugins/dp.fast.app.workbench_2.0.1.jar,4,false
dp.fast.connector,2.0.1,plugins/dp.fast.connector_2.0.1.jar,4,false
dp.fast.core,2.0.1,plugins/dp.fast.core_2.0.1.jar,4,false
dp.fast.core.fx,2.0.1,plugins/dp.fast.core.fx_2.0.1.jar,4,false
....


But on mac, it contains both the old and the new version:

dp.fast.app,2.0.1,plugins/dp.fast.app_2.0.1.jar,4,false
dp.fast.app,2.0.0,plugins/dp.fast.app_2.0.0.jar,4,false
dp.fast.app.update,2.0.1,plugins/dp.fast.app.update_2.0.1.jar,4,false
dp.fast.app.update,2.0.0,plugins/dp.fast.app.update_2.0.0.jar,4,false
dp.fast.app.workbench,2.0.1,plugins/dp.fast.app.workbench_2.0.1.jar,4,false
dp.fast.app.workbench,2.0.0,plugins/dp.fast.app.workbench_2.0.0.jar,4,false
dp.fast.connector,2.0.1,plugins/dp.fast.connector_2.0.1.jar,4,false
dp.fast.connector,2.0.0,plugins/dp.fast.connector_2.0.0.jar,4,false
dp.fast.core,2.0.1,plugins/dp.fast.core_2.0.1.jar,4,false
dp.fast.core,2.0.0,plugins/dp.fast.core_2.0.0.jar,4,false
dp.fast.core.fx,2.0.1,plugins/dp.fast.core.fx_2.0.1.jar,4,false
dp.fast.core.fx,2.0.0,plugins/dp.fast.core.fx_2.0.0.jar,4,false
...


I guess the problem lays here. If i remove the lines containing the old version, the app correctly loads the new bundle (obvioulsy).

So what can create these double lines ?
Re: Wrong bundle loaded after update on macosx [message #1763998 is a reply to message #1763975] Tue, 23 May 2017 18:29 Go to previous messageGo to next message
Eclipse UserFriend
Are you running on MacOS 10.12 (Sierra)? Sierra introduced a new feature called Gatekeeper Path Randomization. See the following links for some details:

https://weblog.rogueamoeba.com/2016/06/29/sierra-and-gatekeeper-path-randomization/
https://bugs.eclipse.org/bugs/show_bug.cgi?id=507328
https://bugs.eclipse.org/bugs/show_bug.cgi?id=461670
Re: Wrong bundle loaded after update on macosx [message #1764043 is a reply to message #1763998] Wed, 24 May 2017 09:30 Go to previous messageGo to next message
Guillaume Papon is currently offline Guillaume PaponFriend
Messages: 13
Registered: August 2016
Junior Member
Thank you for your interesting information.

Yes we are running on Sierra but i am not sure that we are concerned by GPR, since our app is shipped directly in Applications folder.

From the debug i did, it seems to have something to do with "shared mode", although i dont know how to disable it.
Re: Wrong bundle loaded after update on macosx [message #1782872 is a reply to message #1764043] Fri, 02 March 2018 17:50 Go to previous messageGo to next message
Veselin Markov is currently offline Veselin MarkovFriend
Messages: 15
Registered: February 2012
Junior Member
Hello

I'm experiencing the same problem on Windos 10.. Have you found any solution?
Re: Wrong bundle loaded after update on macosx [message #1820913 is a reply to message #1782872] Fri, 31 January 2020 14:32 Go to previous message
Rafael Chaves is currently offline Rafael ChavesFriend
Messages: 10
Registered: August 2015
Junior Member
Same here (although it is not reproducible), on Linux and Windows.

Quote:

I'm experiencing the same problem on Windos 10.. Have you found any solution?


Did you ever find a solution or cause, Veselin?
Previous Topic:Export: Generate metadata repository fails with "A problem occured while invoking the direc
Next Topic:Updating target platform for RCP application from Neon to 2019-12
Goto Forum:
  


Current Time: Sat Apr 20 00:36:16 GMT 2024

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

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

Back to the top