nativelibs4java / BridJ

BridJ: blazing fast Java / C / C++ interop
https://code.google.com/archive/p/bridj/
Other
299 stars 77 forks source link

native library loading blocked since OSX Sierra update to 10.12.4 #95

Closed alowoa closed 7 years ago

alowoa commented 7 years ago

It seems that bridj failed to register ObjCObject since macOs Sierra version 10.12.4 With debug logs enabled (bridj.debug=true), we can see that it blocks just after the logs below.

Environment:

Success case logs

avr. 13, 2017 5:19:43 PM org.bridj.BridJ log
INFOS: Registering protected static native org.bridj.Pointer org.bridj.objc.ObjectiveCRuntime.sel_getName(org.bridj.objc.SEL) as C function sel_getName (address = 0x7fff91fb6f20)
avr. 13, 2017 5:19:43 PM org.bridj.BridJ log
INFOS: Registering type org.bridj.CRuntime$MethodCallInfoBuilder
avr. 13, 2017 5:19:43 PM org.bridj.BridJ log
INFOS: Registering type org.bridj.CRuntime$CTypeInfo
avr. 13, 2017 5:19:43 PM org.bridj.BridJ log
INFOS: Registering type org.bridj.CRuntime
avr. 13, 2017 5:19:43 PM org.bridj.BridJ log
INFOS: Registering type org.bridj.AbstractBridJRuntime
avr. 13, 2017 5:19:43 PM org.bridj.BridJ log
INFOS: Registering type org.bridj.objc.ObjCObject
avr. 13, 2017 5:19:43 PM org.bridj.BridJ log
INFOS: Analyzing org.bridj.objc.ObjCObject.hash
avr. 13, 2017 5:19:44 PM org.bridj.BridJ log

Failure case logs

avr. 13, 2017 5:16:03 PM org.bridj.BridJ log
INFOS: Registering type org.bridj.CRuntime$MethodCallInfoBuilder
avr. 13, 2017 5:16:03 PM org.bridj.BridJ log
INFOS: Registering type org.bridj.CRuntime$CTypeInfo
avr. 13, 2017 5:16:03 PM org.bridj.BridJ log
INFOS: Registering type org.bridj.CRuntime
avr. 13, 2017 5:16:03 PM org.bridj.BridJ log
INFOS: Registering type org.bridj.AbstractBridJRuntime
alowoa commented 7 years ago

The built version works .. sorry ^^'