Recently we installed OMNeT++ 5.0 on a couple of OS X (MacOS Sierra) machines and found that the IDE crashes when starting. The compilation had no problems. Here’s the crash report we got (a partial stack trace).
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.CoreFoundation 0x00007fff98a41bf4 CFBundleGetFunctionPointerForName + 36
1 org.eclipse.Eclipse 0x0000000100003006 findSymbol + 66
2 org.eclipse.Eclipse 0x0000000100001791 original_main + 1572
3 org.eclipse.Eclipse 0x0000000100001e50 main + 1230
4 org.eclipse.Eclipse 0x0000000100000fec start + 52
When I investigated, I found that the IDE (i.e., Eclipse) was not able to find the plugins though the application bundle had the paths specified.
I’ve no idea how it worked before. Maybe something changed with OS X Sierra.
Since I wanted desperately to get it working, I found a dirty hack.
1
Right click on the omnetpp.app
2
Select ‘Show Package Contents’
3
Go to Contents/MacOS and open the omnetpp.ini with a text editor. You should see something like this
-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20150204-1316
-name
OMNeT++ IDE
-vmargs
-Xms256m
-Xmx1024m
-XX:MaxPermSize=320m
4
Change all the paths given to absolute paths (to where your OMNeT++ 5.0 is installed). Example,
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
to
/Users/myhome/omnet-5.0/ide/plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
A proper solution is greatly appreciated.
Thanks in advance.
/Users/myhome/omnet-5.0/ide/plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
– Demona