sparklemotion icon indicating copy to clipboard operation
sparklemotion copied to clipboard

update ftd2 libs with arm64 arch; but segfaults :(

Open kcking opened this issue 11 months ago • 0 comments

  • compiled ftd2xxj for arm64 and combined it with the existing x86 library using lipo
  • downloaded latest d2xx driver which has both archs

unfortunately listDevice segfaults:


Current thread (0x000000015300da00):  JavaThread "main" [_thread_in_native, id=259, stack(0x000000016e964000,0x000000016f160000)]

Stack: [0x000000016e964000,0x000000016f160000],  sp=0x000000016f14e5a0,  free space=8105k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libsystem_platform.dylib+0x3800]  _platform_memmove+0x1c0
C  [libsystem_c.dylib+0xd3ec]  __strcpy_chk+0x24
C  [libftd2xx.1.4.4.dylib+0x17d74]  ReadAndParse232R+0x118
C  [libftd2xx.1.4.4.dylib+0x128d8]  FT_EE_Read+0x51c
C  [libftd2xxj-2.1.dylib+0x618c]  Java_com_ftdichip_ftd2xx_EEPROM_readDeviceDescriptor+0xb0
j  com.ftdichip.ftd2xx.EEPROM.readDeviceDescriptor(J)Lcom/ftdichip/ftd2xx/DeviceDescriptor;+0
j  com.ftdichip.ftd2xx.EEPROM.readDeviceDescriptor()Lcom/ftdichip/ftd2xx/DeviceDescriptor;+11
j  com.ftdichip.ftd2xx.EEPROM.getDeviceDescriptor()Lcom/ftdichip/ftd2xx/DeviceDescriptor;+9
j  com.ftdichip.ftd2xx.Device.getDeviceDescriptor()Lcom/ftdichip/ftd2xx/DeviceDescriptor;+4
j  com.ftdichip.ftd2xx.Device.<init>(JJ)V+74
v  ~StubRoutines::call_stub
V  [libjvm.dylib+0x473abc]  JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x390
V  [libjvm.dylib+0x4d0210]  jni_invoke_nonstatic(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, JavaThread*)+0x2cc
V  [libjvm.dylib+0x4d069c]  jni_NewObject+0x198
C  [libftd2xxj-2.1.dylib+0x7124]  Java_com_ftdichip_ftd2xx_Service_listDevices+0x1dc

kcking avatar Aug 07 '23 21:08 kcking